:root {
  /* Apple HIG 调色 */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --blue: #0071e3;
  --blue-d: #0077ed;
  --blue-soft: #e8f1fd;
  --danger: #d70015;
  --ok: #1d8a3f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 毛玻璃导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; flex: none; }
.brand-name, .nav-links a, .nav-pill, .lang-seg button { white-space: nowrap; }
.logo {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 8px; font-size: 15px;
}
.brand-name { letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2px; margin-left: 4px; flex: 0 1 auto; min-width: 0; }
.nav-links a {
  padding: 6px 7px; border-radius: 980px; font-size: 13px; color: var(--ink-soft); font-weight: 500;
  transition: .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.nav-toggle {
  display: none; border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink); margin-left: auto; padding: 4px 8px;
}
.nav-pill {
  margin-left: auto; background: var(--blue); color: #fff;
  padding: 7px 16px; border-radius: 980px; font-size: 14px; font-weight: 500; transition: .18s;
}
.nav-pill:hover { background: var(--blue-d); }

/* ---------- 界面语言分段切换（中 | EN） ---------- */
.lang-seg {
  display: inline-flex; flex: none; align-items: center; gap: 2px;
  background: rgba(118, 118, 128, 0.12); border-radius: 9px; padding: 2px;
}
.lang-seg button {
  border: 0; background: transparent; color: var(--ink-soft);
  font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  padding: 5px 10px; border-radius: 7px; cursor: pointer; transition: .16s;
}
.lang-seg button:hover { color: var(--ink); }
.lang-seg button.active {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}
.lang-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

main { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 92px 0 64px; }
.eyebrow {
  margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--blue);
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.06; margin: 0;
}
.hero-sub {
  max-width: 600px; margin: 22px auto 0; font-size: 19px; line-height: 1.45;
  color: var(--ink-soft); font-weight: 400;
}
.hero-actions { margin-top: 32px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: #fff; padding: 12px 26px;
  border-radius: 980px; font-size: 16px; font-weight: 500; transition: .18s;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-link { color: var(--blue); font-size: 16px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Section 通用 ---------- */
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin: 12px 0 0; font-size: 18px; color: var(--ink-soft); }

/* ---------- Studio ---------- */
.studio { padding: 40px 0 30px; }
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface); padding: 56px 24px; text-align: center;
  transition: .2s; cursor: pointer; box-shadow: var(--shadow);
}
.dropzone:hover { border-color: var(--blue); }
.dropzone.drag { border-color: var(--blue); background: var(--blue-soft); transform: scale(1.005); }
.dz-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 24px;
}
.dz-main { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.dz-sub { font-size: 14px; color: var(--ink-soft); margin: 0; }
.dz-link { color: var(--blue); font-weight: 500; cursor: pointer; }

.batch-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.bq-count { font-size: 15px; color: var(--ink-soft); }
.bq-count b { color: var(--ink); font-weight: 600; }
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.btn {
  border: 1px solid transparent; border-radius: 980px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: .15s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }

/* Queue */
.queue { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.q-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.q-icon { font-size: 22px; }
.q-meta { flex: 1; min-width: 0; }
.q-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-type { font-size: 13px; color: var(--ink-soft); }
.q-target { display: flex; align-items: center; gap: 8px; }
.q-target select {
  padding: 8px 12px; border-radius: 980px; border: 1px solid var(--line-strong);
  font-size: 14px; background: var(--surface); color: var(--ink); font-family: inherit; cursor: pointer;
}
.q-target select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.q-remove { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 20px; line-height: 1; }
.q-remove:hover { color: var(--danger); }

.progress-wrap { margin-top: 22px; }
.progress-bar { height: 6px; background: var(--line); border-radius: 980px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.progress-text { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }

.result-wrap { margin-top: 18px; display: grid; gap: 10px; }
.result-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.result-card .ok { color: var(--ok); font-weight: 700; font-size: 16px; }
.result-card .note { font-size: 12px; color: var(--ink-soft); }
.result-card a.dl { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 15px; }
.result-card a.dl:hover { text-decoration: underline; }

/* ---------- 工具网格 ---------- */
.tools { padding: 80px 0 30px; }
.tool-grid-wrap { display: grid; gap: 18px; }
.cat-title { font-size: 21px; font-weight: 600; margin: 26px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 68px; }
.cat-title:first-child { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; cursor: pointer; text-align: left; transition: .18s; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0, 113, 227, 0.35); }
.tool-card .t-ico { font-size: 28px; }
.tool-card .t-name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-card .t-desc { font-size: 13px; color: var(--ink-soft); }
.badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 980px; font-weight: 600; letter-spacing: 0; }
.badge.best { background: #fff3e0; color: #9a5b00; }
.badge.limit { background: #fdeaea; color: #b3261e; }

/* ---------- 即将推出 ---------- */
.soon { padding: 80px 0 30px; }
.soon-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.soon-chip {
  padding: 10px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 980px; font-size: 15px; color: var(--ink-soft); box-shadow: var(--shadow);
}

/* ---------- 隐私 ---------- */
.privacy { padding: 80px 0 40px; }
.privacy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.pc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); text-align: left;
}
.pc-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.pc h3 { font-size: 19px; margin: 0 0 6px; }
.pc p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px 22px 56px; color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer .lang-seg { margin-top: 16px; }
.footer .lang-seg button { font-size: 13px; padding: 6px 14px; }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-pill { display: none; }
  .nav-links {
    position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch; margin-left: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 6px 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { border-radius: 0; padding: 13px 22px; font-size: 15px; }
  .nav-links a:hover { background: rgba(0, 0, 0, 0.04); }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .batch-bar { gap: 10px; }
  .batch-actions { margin-left: 0; width: 100%; }
  .q-target { flex-direction: column; align-items: flex-end; }
}
