/* =========================================================
   全局基础样式
   ========================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  padding: 20px;
}

/* =========================================================
   右上角四叶草入口
   ========================================================= */

.clover-wrap {
  position: fixed !important;
  top: 16px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 12px 0 !important;
  z-index: 9999 !important;
  display: block;
  background: transparent !important;
}

.clover-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.clover-wrap:hover .clover-btn {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.clover-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  min-width: 150px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  z-index: 9999;
}

.clover-wrap:hover .clover-menu {
  display: block;
}

.clover-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: #3470c8;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.clover-menu a:hover {
  background: #eef5ff;
  color: #1a5fb4;
}

@media (max-width: 600px) {
  .clover-wrap { top: 10px; right: 12px; }
  .clover-btn { width: 36px; height: 36px; }
  .clover-menu { min-width: 130px; }
  .clover-menu a { font-size: 12px; padding: 8px 12px; }
}

/* =========================================================
   卡片
   ========================================================= */

.card {
  width: 480px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 30px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

h1 {
  font-size: 20px;
  margin: 0 0 6px;
  text-align: center;
  color: #222;
}

label {
  display: block;
  font-size: 13px;
  color: #555;
  margin: 12px 0 5px;
}

input[type=text],
input[type=file],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

input[type=text]:focus,
select:focus {
  border-color: #4facfe;
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #4facfe;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

button:disabled {
  background: #c8d6e5;
  cursor: not-allowed;
}

button.ghost {
  background: #ffffff;
  color: #4facfe;
  border: 1px solid #4facfe;
  margin-top: 8px;
  font-size: 13px;
  padding: 7px;
}

.msg {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

.msg.ok  { color: #27ae60; }
.msg.err { color: #e74c3c; }

.hidden { display: none !important; }

.who {
  background: #f4f8ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #3470c8;
  margin-top: 4px;
}

.hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  line-height: 1.4;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  background: #f7fbff;
  border: 1px solid #e3f0ff;
  border-radius: 8px;
}

.refresh-info {
  font-size: 12px;
  color: #567;
  line-height: 1.4;
  flex: 1;
}

.small-btn {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  font-size: 13px;
  background: #eef5ff;
  color: #3470c8;
  border: 1px solid #c9ddf8;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.small-btn:hover:not(:disabled) { background: #dde9fb; }
.small-btn:disabled { opacity: .6; cursor: not-allowed; }