/* =============================================================
   getits.cc 全站样式（多页站点共用）
   设计目标：移动端优先 + 深浅色主题 + 语义化排版
   断点：≤640（窄屏手机）/ 641-899（大屏手机·平板）/ ≥900（桌面双栏）
   ============================================================= */

:root {
  --bg: #f4f6fa;
  --bg-soft: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f2f4f8;
  --line: #e2e7ef;
  --text: #1a2130;
  --text-dim: #5b6577;
  --text-faint: #8a94a6;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-ink: #ffffff;
  --ok: #059669;
  --warn: #b45309;
  --err: #dc2626;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "JetBrains Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --header-bg: rgba(255, 255, 255, .86);
}
html[data-theme="dark"] {
  --bg: #0a0d12;
  --bg-soft: #0f1319;
  --panel: #141a23;
  --panel-2: #1a222e;
  --line: #232d3c;
  --text: #e7ecf3;
  --text-dim: #93a0b4;
  --text-faint: #5c6a80;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-ink: #06201c;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --header-bg: rgba(10, 13, 18, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 191, .08), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(59, 130, 246, .06), transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部导航 ===== */
header.site {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg); backdrop-filter: blur(12px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center; color: var(--accent-ink); font-size: 17px;
}
.brand-name { font-size: 16px; white-space: nowrap; }
.brand-name small { display: none; color: var(--text-dim); font-weight: 400; font-size: 11px; margin-left: 6px; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav button {
  font-family: var(--sans); font-size: 13px; white-space: nowrap; text-decoration: none;
  color: var(--text-dim); padding: 7px 10px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  min-height: 34px;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* ===== Hero（h1 所在） ===== */
.hero { padding: 34px 0 20px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .08);
  padding: 4px 12px; border-radius: 999px; letter-spacing: 1px;
}
.hero h1 { font-size: clamp(26px, 5.2vw, 42px); margin: 14px 0 10px; font-weight: 800; letter-spacing: -.4px; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--text-dim); font-size: clamp(14px, 2.4vw, 16px); max-width: 660px; margin: 0 auto; }

/* ===== 工作区：移动端单列 / 桌面左表单右结果 ===== */
.workspace { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 20px; }
.search-col, .result-col { min-width: 0; }
@media (min-width: 900px) {
  .workspace { grid-template-columns: 380px minmax(0, 1fr); align-items: start; margin-top: 24px; }
  .search-col { position: sticky; top: 76px; }
  .brand-name small { display: inline; }
  .nav a, .nav button { font-size: 13.5px; }
}

/* ===== 下载面板 ===== */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.panel h2 { font-size: 15px; color: var(--text-dim); font-weight: 600; margin: 0 0 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field label .tip { color: var(--text-faint); font-size: 12px; }
input[type="text"], input[type="password"], input[type="email"], input:not([type]), select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px;   /* 16px 防 iOS 聚焦缩放 */
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 46px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
button.primary {
  width: 100%; font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 0; border-radius: 10px; padding: 13px 16px; min-height: 48px; cursor: pointer;
}
button.primary:disabled { opacity: .6; cursor: not-allowed; }
button.ghost {
  font-family: var(--sans); font-size: 13px; color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; min-height: 34px; cursor: pointer;
}
button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.hint { font-size: 12.5px; color: var(--text-faint); margin: 12px 0 0; }
.hint code { background: transparent; padding: 0; color: var(--text-dim); }

/* 组合下拉 */
.combo {
  margin-top: 6px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); max-height: 260px; overflow-y: auto; box-shadow: var(--shadow);
}
.combo-title { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--text-faint); border-bottom: 1px solid var(--line); }
.combo-list { list-style: none; margin: 0; padding: 4px; }
.combo-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.combo-list li:hover, .combo-list li.active { background: var(--panel-2); }
.combo-list li .meta { color: var(--text-faint); font-size: 12px; margin-left: 6px; }
.combo-empty { margin: 0; padding: 12px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* ===== 结果区 ===== */
.result-col .panel { min-height: 200px; }
.empty { color: var(--text-faint); font-size: 13.5px; text-align: center; padding: 34px 10px; }
.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.task-count { font-size: 13px; color: var(--text-dim); }
.task-list { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); }
.card.active { border-color: var(--accent); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title { font-weight: 700; font-size: 14.5px; word-break: break-all; }
.card-sub { font-size: 12.5px; color: var(--text-faint); word-break: break-all; margin-top: 2px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--text-dim); white-space: nowrap; }
.tag.ok { color: var(--ok); background: rgba(5, 150, 105, .12); }
.tag.err { color: var(--err); background: rgba(220, 38, 38, .12); }
.tag.warn { color: var(--warn); background: rgba(180, 83, 9, .12); }
.bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 10px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width .4s; }
.share { margin-top: 10px; background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.share a { word-break: break-all; font-size: 13.5px; }
.share .code { font-weight: 700; color: var(--warn); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1 1 0; min-width: 0; }
.note { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }

/* ===== 内容区（SEO 内容在下载面板下方） ===== */
.section { margin: 44px 0 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(19px, 3.2vw, 24px); }
.section-head p { color: var(--text-dim); margin: 0; font-size: 14.5px; }
.grid-auto { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-auto.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-plain { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--panel); }
.card-plain h3 { font-size: 15.5px; margin-bottom: 6px; }
.card-plain p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.card-plain .ico { font-size: 22px; display: block; margin-bottom: 8px; }
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: 1fr; }
.steps .step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--panel); }
.steps .num {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 8px;
}
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: var(--panel); margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq details p { margin: 10px 0 0; font-size: 13.5px; color: var(--text-dim); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  text-decoration: none; font-size: 13.5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
}
.links a:hover { border-color: var(--accent); color: var(--accent); }
.prose { font-size: 14.5px; color: var(--text-dim); max-width: 760px; }
.prose h2 { color: var(--text); font-size: 18px; margin-top: 26px; }
.prose h3 { color: var(--text); font-size: 15.5px; margin-top: 20px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }

/* ===== 页脚 ===== */
footer.site { margin-top: 56px; border-top: 1px solid var(--line); padding: 26px 0 34px; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: 13px; margin: 8px 0 0; }
.footer-col h4 { font-size: 13.5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 6px 0; }
.footer-col a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-faint);
}
.footer-legal p { margin: 6px 0; }
.footer-legal strong { color: var(--text-dim); }

/* ===== 反馈弹窗 / Toast ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 13, 18, .55);
  display: none; place-items: center; z-index: 60; padding: 16px;
}
.modal-backdrop.show { display: grid; }
.modal {
  width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-size: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions button { flex: 1 1 0; min-height: 44px; border-radius: 10px; font-family: var(--sans); font-size: 15px; cursor: pointer; }
.btn-cancel { background: var(--panel-2); border: 1px solid var(--line); color: var(--text-dim); }
.btn-submit { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border: 0; color: var(--accent-ink); font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .24s; z-index: 80; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 后台 ===== */
.admin-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .admin-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px; }
.stat .num { font-size: 26px; font-weight: 800; font-family: var(--mono); }
.stat .lbl { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.admin { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
table.admin th, table.admin td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin th { color: var(--text-faint); font-weight: 600; font-size: 12px; white-space: nowrap; }
table.admin tr:last-child td { border-bottom: 0; }
