/* 语通蔚蓝官网样式 v0.1 */
:root {
  --brand: #2b6bff;
  --brand-dark: #1d50d9;
  --ink: #16203a;
  --muted: #5f6b7f;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --line: #e6eaf2;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(22, 32, 58, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-shell { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); font-weight: 400; }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; }
.brand-mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: block; }
.brand-mark i:nth-child(2) { opacity: 0.65; }
.brand-mark i:nth-child(3) { opacity: 0.35; }
.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand); }
.main-nav .nav-account {
  background: var(--brand); color: #fff; padding: 7px 16px; border-radius: 999px;
}
.main-nav .nav-account:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 84px 0 72px; background: linear-gradient(160deg, #f2f6ff 0%, #ffffff 60%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.7rem; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.eyebrow span { width: 18px; height: 2px; background: var(--brand); display: inline-block; }
.hero-lead { color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.hero-proof { display: flex; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.hero-proof span::before { content: "✓ "; color: var(--brand); }
.brand-stage { position: relative; height: 260px; }
.stage-ring { position: absolute; inset: 20px; border: 2px dashed #c9d7ff; border-radius: 50%; animation: spin 30s linear infinite; }
.stage-dot { position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6f9aff, var(--brand)); box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }

/* button */
.button { display: inline-block; padding: 11px 26px; border-radius: 999px; font-size: 0.95rem; border: 1px solid transparent; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); color: #fff; }
.button.ghost { border-color: #c9d7ff; color: var(--brand); background: #fff; }
.button.ghost:hover { background: #f2f6ff; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead, .page-lead { color: var(--muted); margin-bottom: 34px; max-width: 680px; }
.section-actions { margin-top: 36px; text-align: center; }
.cta-section { text-align: center; }
.cta-section .hero-actions { justify-content: center; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card-inner { display: block; padding: 24px; color: var(--ink); }
.product-card h2 { font-size: 1.2rem; }
.product-card h3 { margin: 10px 0 8px; }
.product-card p { color: var(--muted); font-size: 0.92rem; }
.product-badge { display: inline-block; background: #eef3ff; color: var(--brand); font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; }
.product-platforms { display: block; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.article-date { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }

/* feature */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-item p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.link-card { color: var(--ink); transition: box-shadow 0.2s; }
.link-card:hover { box-shadow: var(--shadow); color: var(--ink); }

/* page */
.page-main { padding: 44px 20px 80px; min-height: 60vh; }
.center { text-align: center; }
.center .hero-actions { justify-content: center; }
.page-lead { margin-bottom: 22px; }
.empty-tip { color: var(--muted); margin-top: 30px; }
.footnote { color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* breadcrumbs */
.breadcrumbs { margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: #c3cad8; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .current { color: var(--ink); }

/* filter */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-bar a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.88rem; }
.filter-bar a:hover { color: var(--brand); border-color: var(--brand); }
.filter-bar a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* product detail */
.product-hero { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 40px; }
.product-logo {
  width: 120px; height: 120px; border-radius: 24px; flex: 0 0 auto;
  background: linear-gradient(140deg, #6f9aff, var(--brand));
  color: #fff; font-size: 2.6rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.platform-list { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.platform-list li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; color: var(--muted); }
.detail-section { margin-top: 44px; }
.detail-section h2 { border-left: 4px solid var(--brand); padding-left: 12px; margin-bottom: 18px; }
.feature-checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 24px; }
.feature-checks li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.feature-checks.inline { display: block; text-align: left; max-width: 420px; margin: 24px auto; }
.preline { white-space: pre-line; }
.article-body { margin-top: 22px; max-width: 760px; }
.article-meta { color: var(--muted); font-size: 0.85rem; margin: 8px 0 6px; }

/* tables */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.data-table th { background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* faq */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style-position: inside; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; float: right; color: var(--muted); }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; }
.plan-card.plan-hot { border-color: var(--brand); box-shadow: var(--shadow); }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 10px 0 4px; }
.plan-price em { font-size: 0.9rem; font-style: normal; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 0.88rem; }
.plan-days { font-size: 0.85rem; color: var(--muted); margin: 10px 0 18px; }
.plan-card .button { width: 100%; text-align: center; }

/* download groups */
.download-group { margin-bottom: 40px; }
.download-group h2 { margin-bottom: 14px; }

/* footer */
.site-footer { background: #101828; color: #c8d0de; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; padding: 48px 20px 34px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 0.95rem; }
.footer-col a { display: block; color: #c8d0de; font-size: 0.88rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #263044; padding: 18px 20px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #c8d0de; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .brand-stage { display: none; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); cursor: pointer; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .main-nav.open { display: flex; }
  .product-hero { flex-direction: column; }
}

/* ---- 表单 ---- */
.auth-main { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-sub { color: var(--muted); margin: 6px 0 18px; font-size: 0.9rem; }
.auth-foot { margin-top: 16px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.auth-foot.small-text { font-size: 0.78rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: #fbfcfe; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid #c9d7ff; border-color: var(--brand); background: #fff; }
.form-group input:disabled { background: var(--bg-alt); color: var(--muted); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { border: 1px solid var(--line); border-radius: 8px; }
.button.small { padding: 6px 14px; font-size: 0.85rem; }
.button.full { width: 100%; text-align: center; }
.button.danger { background: #e5484d; color: #fff; }
.button.danger:hover { background: #c93a3f; color: #fff; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 14px; }
.alert-ok { background: #eefaf1; color: #1a7f37; border: 1px solid #cdeeda; }
.alert-error { background: #fdf0ef; color: #c0392b; border: 1px solid #f5d5d1; }

/* header 退出 */
.logout-form { display: inline; }
.logout-btn { background: none; border: none; color: var(--ink); font-size: 0.95rem; cursor: pointer; font-family: inherit; padding: 0; }
.logout-btn:hover { color: var(--brand); }

/* ---- 用户中心 ---- */
.account-shell { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding-top: 44px; padding-bottom: 80px; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.account-user { padding: 18px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.account-name { font-weight: 700; }
.account-email { font-size: 0.8rem; color: var(--muted); word-break: break-all; }
.account-nav a { display: block; padding: 12px 18px; color: var(--ink); font-size: 0.92rem; border-bottom: 1px solid var(--bg-alt); }
.account-nav a:hover { background: #f7faff; color: var(--brand); }
.account-nav a.active { background: #eef3ff; color: var(--brand); font-weight: 600; }
.account-content h1 { margin-bottom: 18px; }
.vip-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 26px; }
.vip-banner.vip-active { background: linear-gradient(120deg, #eef3ff, #f7faff); border-color: #c9d7ff; }
.vip-banner h2 { font-size: 1.2rem; }
.vip-banner p { color: var(--muted); font-size: 0.9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--ink); }
.stat-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.avatar-row { display: flex; gap: 22px; align-items: center; }
.avatar-img { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
.danger-zone { border: 1px solid #f5d5d1; border-radius: var(--radius); padding: 24px; background: #fffbfa; }
.danger-zone h2 { border-left-color: #e5484d; }
.feedback-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.feedback-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.feedback-head time { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.feedback-status { color: var(--muted); font-size: 0.8rem; }
.feedback-body { margin-top: 10px; color: var(--ink); }
.feedback-reply { margin-top: 12px; background: var(--bg-alt); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; }
.pay-card .order-info { background: var(--bg-alt); border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-size: 0.92rem; }
.pay-card .order-info p { padding: 3px 0; }
.pay-card .pay-qr { text-align: center; }
.pay-card .pay-qr img { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.pay-card .pay-mock { margin: 8px 0; }
.plan-buy { width: 100%; text-align: center; font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.admin-topbar { background: #101828; color: #c8d0de; position: sticky; top: 0; z-index: 50; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.admin-bar nav { display: flex; gap: 20px; align-items: center; }
.admin-bar nav a { color: #c8d0de; font-size: 0.92rem; }
.admin-bar nav a:hover { color: #fff; }
.admin-bar .logout-btn { color: #c8d0de; }
.admin-bar .logout-btn:hover { color: #fff; }
.admin-main { padding: 36px 20px 80px; min-height: 70vh; }
.admin-main h1 small { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 12px; }
.inline-form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.inline-form-row .form-group { margin-bottom: 0; }
.inline-form-row .form-group input, .inline-form-row .form-group select { min-width: 140px; }
.admin-bar nav a.on { color: #fff; font-weight: 600; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkbox-grid label { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; color: var(--ink); }
.checkbox-grid input { width: auto; }
.rich-text { line-height: 1.8; }
.rich-text img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 8px 0; }
.rich-text iframe, .rich-text video { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.rich-text p { margin: 8px 0; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 14px 0 8px; }
.product-card-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; display: block; }
img.product-logo { object-fit: cover; }
.editor-toolbar { border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0; background: var(--bg-alt); }
.editor-body { border: 1px solid var(--line); border-radius: 0 0 10px 10px; min-height: 260px; background: #fff; }
body.dark .editor-body { background: #0f1523; }
.guest-box { max-width: 760px; margin: 0 auto; }
.guest-form { margin-top: 12px; }
@media (max-width: 860px) {
  .account-shell { grid-template-columns: 1fr; }
}
