/* ═══ AI RemoveBG 设计系统 — global.css ═══ */

:root {
  --c-primary: #4f46e5;
  --c-primary-dark: #4338ca;
  --c-primary-light: #6366f1;
  --c-accent: #7c3aed;
  --c-success: #059669;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-soft: #f1f5f9;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 40px rgba(79, 70, 229, .16);
  --radius: 12px;
  --radius-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--c-text-muted); }

/* ── 顶部迁移横幅 ── */
.top-banner { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: 14px; }
.top-banner .container { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 9px 24px; flex-wrap: wrap; text-align: center; }
.top-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-size: 21px; font-weight: 800; color: var(--c-text); text-decoration: none !important; letter-spacing: -.02em; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { color: var(--c-text-muted); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--c-primary); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-area .user-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--c-text); }
.auth-area .user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.auth-area .credit-badge { background: #ecfdf5; color: var(--c-success); border: 1px solid #a7f3d0; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ── 语言切换 ── */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  border: 1px solid var(--c-border); border-radius: 99px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--c-text-muted);
  white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--c-primary); color: var(--c-primary); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 2px 10px; padding: 12px; max-height: 320px; overflow: auto; z-index: 200;
}
.lang-option { font-size: 13.5px; color: var(--c-text-muted); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.lang-option:hover { background: var(--c-bg-soft); color: var(--c-primary); text-decoration: none; }
.lang-option.current { color: var(--c-primary); font-weight: 700; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 10px 22px; transition: all .15s ease; text-decoration: none !important;
}
.btn small { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: #eef2ff; }
.btn-ghost { background: var(--c-bg-soft); color: var(--c-text); }
.btn-ghost:hover { background: var(--c-border); }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; border: 1px solid var(--c-border); color: #323232; font-weight: 600; }
.btn-google:hover { background: var(--c-bg-soft); }
.link-btn { background: none; border: none; color: var(--c-primary); font-weight: 600; cursor: pointer; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* ── Section 通用 ── */
.section { padding: 72px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; text-align: center; margin-bottom: 12px; }
.section-title-sm { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--c-text-muted); max-width: 640px; margin: 0 auto 40px; font-size: 17px; }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
.compare-table thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); background: var(--c-bg-alt); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-them { color: #b45309; }
.compare-table .col-us { color: var(--c-success); font-weight: 700; background: #f0fdf4; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.data-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list.narrow { max-width: 700px; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; margin-bottom: 10px; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--c-primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--c-text-muted); padding-bottom: 16px; }

/* ── 表单 ── */
input[type="email"], input[type="password"], input[type="text"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--c-border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--c-text); background: #fff; transition: border .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label input, label select { margin-top: 6px; font-weight: 400; }
label small { display: block; color: var(--c-text-muted); font-weight: 400; margin-top: 4px; font-size: 12.5px; }
.form-msg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.form-msg.error { background: #fef2f2; color: #b91c1c; }
.form-msg.ok { background: #ecfdf5; color: #047857; }

/* ── Newsletter ── */
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-msg { text-align: center; margin-top: 12px; font-weight: 600; }

/* ── 弹窗（登录/升级）── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative; max-height: 90vh; overflow: auto;
}
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--c-text-muted); }
.modal-card h3 { margin-bottom: 8px; font-size: 22px; }
.modal-card .auth-sub { margin-bottom: 18px; }
.modal-card .btn-google { margin-bottom: 14px; }

/* ── Footer ── */
.footer { background: #0f172a; color: #cbd5e1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1.6fr; gap: 36px; padding: 56px 24px 40px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer a { color: #cbd5e1; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; display: inline-block; }
.footer-note { font-size: 14px; color: #94a3b8; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-langs a { font-size: 13.5px; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 24px; font-size: 13.5px; color: #94a3b8; text-align: center; }

/* ── 通用工具 ── */
.checklist { list-style: none; margin: 14px 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 800; }
.empty { color: var(--c-text-muted); text-align: center; padding: 24px; }
.breadcrumb { font-size: 13.5px; color: var(--c-text-muted); margin-bottom: 18px; }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: 16px 24px;
    flex-direction: column; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .lang-menu { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .section-title { font-size: 27px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-menu { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .auth-area .btn-sm { padding: 7px 10px; font-size: 13px; }
}
