:root {
  --brand-blue: #0b7fc4;
  --brand-blue-dark: #08679f;
  --brand-navy: #0a2a47;
  --brand-navy-2: #103a60;
  --brand-green: #4f9d18;
  --brand-lime: #b7d400;
  --ink: #17212f;
  --muted: #5c6b7e;
  --line: #e2e9f2;
  --soft: #f5f8fc;
  --soft-blue: #eef6fc;
  --radius: 16px;
  --shadow-sm: 0 4px 18px rgba(14, 42, 71, .06);
  --shadow-md: 0 14px 40px rgba(14, 42, 71, .12);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--brand-navy); font-weight: 700; letter-spacing: -.01em; }
p { color: #344255; }
.text-muted { color: var(--muted) !important; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 9999;
  background: var(--brand-navy); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- top bar & nav ---------- */
.topbar {
  background: var(--brand-navy); color: #c8d8e8; font-size: 12.5px; padding: 7px 0;
}
.topbar a { color: #d6e5f2; }
.topbar a:hover { color: #fff; }
.topbar-note { letter-spacing: .02em; }
.topbar-links { display: flex; align-items: center; gap: 10px; }
.topbar-sep { opacity: .35; }
.site-nav {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(14, 42, 71, .04);
  padding: 10px 0;
}
.site-nav .navbar-brand { display: flex; align-items: center; gap: 10px; }
.site-nav .navbar-brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--brand-navy); font-size: 20px; letter-spacing: .04em; }
.brand-text small { color: #7c8da2; font-size: 9.5px; letter-spacing: .24em; font-weight: 600; }
.site-nav .nav-link {
  color: #33455a; font-weight: 500; font-size: 14.5px; padding: 8px 14px !important;
  border-radius: 8px;
}
.site-nav .nav-link:hover { color: var(--brand-blue); background: var(--soft-blue); }
.site-nav .nav-link.active { color: var(--brand-blue); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { color: #33455a; text-decoration: none; }
.nav-cart { color: #33455a; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-cart:hover { color: var(--brand-blue); }
.cart-count {
  background: var(--brand-blue); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.btn-user {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px 5px 6px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--brand-navy);
}
.user-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--soft-blue);
  color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn { border-radius: 9px; font-weight: 500; padding: .55rem 1.1rem; }
.btn-brand {
  background: var(--brand-blue); border-color: var(--brand-blue); color: #fff;
  box-shadow: 0 6px 16px rgba(11, 127, 196, .2);
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }
.btn-navy { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.btn-navy:hover { background: var(--brand-navy-2); border-color: var(--brand-navy-2); color: #fff; }
.btn-outline-brand { color: var(--brand-blue); border: 1px solid #b9d7ea; background: #fff; }
.btn-outline-brand:hover { background: var(--soft-blue); color: var(--brand-blue-dark); border-color: #9cc6e0; }
.btn-lime { background: var(--brand-lime); border-color: var(--brand-lime); color: #23320a; font-weight: 600; }
.btn-lime:hover { background: #a8c400; border-color: #a8c400; color: #1b2706; }
.btn-lg { padding: .8rem 1.5rem; font-size: 16px; }

/* ---------- generic layout ---------- */
.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }
.eyebrow {
  display: inline-block; color: var(--brand-blue); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px;
}
.page-head { background: linear-gradient(180deg, #f3f8fd 0%, #fff 100%); padding: 44px 0 28px; border-bottom: 1px solid #eef3f9; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 780px; }
.breadcrumb { --bs-breadcrumb-divider: '/'; font-size: 13px; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.card-soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft-blue); color: var(--brand-blue); font-size: 20px; font-weight: 700;
}
.badge-soft { background: var(--soft-blue); color: var(--brand-blue); font-weight: 500; }
.badge-free { background: #eef8e6; color: #3d7d12; }
.badge-paid { background: #fff5e6; color: #a86200; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 90px 0 78px;
  background:
    radial-gradient(900px 420px at 85% 8%, rgba(183, 212, 0, .14), transparent 60%),
    radial-gradient(760px 480px at 6% 18%, rgba(11, 127, 196, .12), transparent 62%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.18; margin-bottom: 20px; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--brand-blue); }
.hero .lead { color: #506074; font-size: clamp(15.5px, 1.6vw, 18px); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #4d5e72; font-size: 13.5px; }
.hero-points span::before { content: "✓"; color: var(--brand-green); font-weight: 700; margin-right: 6px; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 22px; position: relative;
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: #dfe7f0; display: inline-block; }
.dot-row i:first-child { background: #f2b8b5; }
.dot-row i:nth-child(2) { background: #f6d58b; }
.dot-row i:nth-child(3) { background: #a9d7b4; }
.code-mini {
  background: #0c1f33; color: #cfe3f5; border-radius: 12px; padding: 16px; font-size: 12px;
  font-family: Consolas, Menlo, monospace; line-height: 1.7; overflow-x: auto;
}
.code-mini .k { color: #7ec8ff; }
.code-mini .s { color: #b7d400; }
.code-mini .c { color: #7f93a8; }
.hero-stats { display: flex; gap: 26px; margin-top: 18px; }
.hero-stats div strong { display: block; color: var(--brand-navy); font-size: 20px; }
.hero-stats div span { font-size: 12px; color: var(--muted); }

/* ---------- cards ---------- */
.feature-card { padding: 26px; height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h5 { margin: 16px 0 8px; font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }
.article-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h5 { font-size: 17px; line-height: 1.45; margin: 12px 0 8px; }
.article-card h5 a { color: var(--brand-navy); }
.article-card h5 a:hover { color: var(--brand-blue); }
.article-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 10px; color: #7b8a9c; font-size: 12px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef3f8; padding-top: 14px; margin-top: auto; }
.price-text { color: #c25b00; font-weight: 700; }
.price-text.free { color: #3d7d12; }

.plan-card { position: relative; padding: 30px; height: 100%; display: flex; flex-direction: column; }
.plan-card.recommended { border-color: var(--brand-blue); box-shadow: 0 18px 48px rgba(11, 127, 196, .14); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-blue); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-card h4 { font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan-price strong { font-size: 36px; color: var(--brand-navy); line-height: 1; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-original { color: #9aa8b8; text-decoration: line-through; font-size: 13px; }
.plan-features { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan-features li { padding: 7px 0; color: #45566a; font-size: 13.8px; border-bottom: 1px dashed #edf2f8; }
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before { content: "✓"; color: var(--brand-green); font-weight: 700; margin-right: 8px; }
.package-tokens { font-size: 13px; color: var(--muted); }
.package-tokens strong { color: var(--brand-blue); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  color: #c3d9e9; font-size: 13px; font-weight: 700; letter-spacing: .08em;
}
.step h6 { margin: 8px 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(183, 212, 0, .2), transparent 60%),
    linear-gradient(120deg, var(--brand-navy), #15527f);
  color: #fff; border-radius: 22px; padding: 44px; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: #cfe0ee; margin-bottom: 22px; }

/* ---------- article prose / paywall ---------- */
.article-hero { background: linear-gradient(180deg, #f5f9fd, #fff); padding: 40px 0 26px; border-bottom: 1px solid #eef3f9; }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; margin: 10px 0 14px; }
.article-shell { max-width: 860px; }
.article-body { font-size: 16px; color: #2d3b4d; line-height: 1.9; }
.article-body h2 { font-size: 23px; margin: 38px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand-blue); }
.article-body h3 { font-size: 18px; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 24px; }
.article-body li { margin-bottom: 7px; }
.article-body blockquote {
  border-left: 4px solid #bcd8ea; background: var(--soft-blue); padding: 14px 18px;
  color: #41566c; border-radius: 0 10px 10px 0; margin: 20px 0;
}
.article-body pre, .code-block {
  background: #0c1f33; color: #d7e8f7; border-radius: 12px; padding: 18px; overflow-x: auto;
  font-family: Consolas, Menlo, monospace; font-size: 13px; line-height: 1.7;
}
.article-body code { background: #eff5fa; color: #0a5f94; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; }
.article-body th { background: var(--soft); color: var(--brand-navy); }
.article-summary {
  background: var(--soft-blue); border: 1px solid #d9e9f5; border-radius: 12px;
  padding: 16px 18px; color: #3d556b; font-size: 14.5px; margin-bottom: 24px;
}
.paywall-wrap { position: relative; margin-top: -20px; }
.paywall-fade {
  height: 150px; margin-top: -150px; position: relative; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 88%);
}
.paywall-card {
  position: relative; border: 1px solid #cfe2f0; background: #fff; border-radius: 18px;
  padding: 30px; box-shadow: var(--shadow-md); text-align: center; margin-top: 8px;
}
.paywall-card h3 { font-size: 21px; margin-bottom: 6px; }
.paywall-card .paywall-price { font-size: 36px; font-weight: 700; color: #c25b00; line-height: 1.1; }
.paywall-card .paywall-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.paywall-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0; color: #516276; font-size: 13px; }
.paywall-benefits span::before { content: "✓"; color: var(--brand-green); margin-right: 5px; font-weight: 700; }
.reader-note { background: #eef8e6; border: 1px solid #d7ecc5; border-radius: 10px; padding: 10px 14px; color: #3d6b1b; font-size: 13px; }

/* ---------- pricing table / checkout ---------- */
.compare-table th { background: var(--soft); font-size: 13px; color: var(--brand-navy); }
.compare-table td, .compare-table th { vertical-align: middle; }
.checkout-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.summary-card { padding: 24px; position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; color: #4c5d70; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 15px; color: var(--brand-navy); font-weight: 600; }
.summary-row.total strong { color: #c25b00; font-size: 26px; }
.pay-method { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.pay-method + .pay-method { margin-top: 16px; }
.pay-method h5 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.bank-box { background: var(--soft); border: 1px dashed #c9d9e7; border-radius: 12px; padding: 16px 18px; }
.bank-box dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 7px 12px; font-size: 14px; }
.bank-box dt { color: var(--muted); font-weight: 500; }
.bank-box dd { margin: 0; color: var(--brand-navy); font-weight: 600; word-break: break-all; }
.demo-badge { background: #fff4d6; color: #8a5a00; border: 1px solid #f0dba6; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.order-status { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 11px; display: inline-block; }
.status-pending { background: #fff5e0; color: #946000; }
.status-paid { background: #eaf7ed; color: #27733a; }
.status-cancelled { background: #eef1f5; color: #657485; }
.status-refunded { background: #e8f3fa; color: #21688f; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid #e3ebf3; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c5d6e5;
  position: absolute; left: -6px; top: 6px;
}
.timeline li.done::before { background: var(--brand-blue); box-shadow: 0 0 0 4px rgba(11,127,196,.12); }
.timeline strong { display: block; font-size: 14px; color: var(--brand-navy); }
.timeline span { font-size: 12.5px; color: var(--muted); }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 320px); display: flex; align-items: center; padding: 56px 0; background: linear-gradient(180deg, #f5f9fd, #fff); }
.auth-card { max-width: 440px; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.auth-side { max-width: 440px; margin: 0 auto 14px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .form-control { flex: 1; }
.captcha-img { height: 46px; width: 132px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #f4f7fb; }
.form-control, .form-select { border-color: #d5dfea; border-radius: 9px; padding: .62rem .85rem; font-size: 14.5px; }
.form-control:focus, .form-select:focus { border-color: #7fb9dc; box-shadow: 0 0 0 .2rem rgba(11,127,196,.12); }
.form-label { font-weight: 500; color: #33455a; font-size: 13.5px; margin-bottom: 6px; }
.form-text { font-size: 12px; color: #8291a3; }
.invalid-feedback { font-size: 12.5px; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.account-nav { padding: 12px; position: sticky; top: 92px; }
.account-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 9px; color: #42546a; font-size: 14px; }
.account-nav a:hover, .account-nav a.active { background: var(--soft-blue); color: var(--brand-blue); }
.account-nav .nav-sep { height: 1px; background: var(--line); margin: 8px 10px; }
.stat-card { padding: 20px; height: 100%; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; color: var(--brand-navy); line-height: 1.25; margin-top: 4px; }
.stat-sub { font-size: 12px; color: #8291a3; }
.quota-bar { height: 8px; background: #e9f0f7; border-radius: 999px; overflow: hidden; }
.quota-bar div { height: 100%; background: linear-gradient(90deg, var(--brand-blue), #48a8d8); border-radius: 999px; }
.table > :not(caption) > * > * { padding: .8rem .65rem; vertical-align: middle; }
.table thead th { font-size: 12.5px; color: #6b7c90; font-weight: 600; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { font-size: 13.5px; color: #3c4d61; border-color: #eef3f8; }

/* ---------- AI / docs / console ---------- */
.ai-hero { background: linear-gradient(130deg, #081f34 0%, #0d3a5c 55%, #11567f 100%); color: #fff; padding: 82px 0; position: relative; overflow: hidden; }
.ai-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,212,0,.18), transparent 65%); right: -120px; top: -160px;
}
.ai-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.ai-hero p { color: #c6dbea; font-size: 16px; max-width: 610px; }
.ai-hero .hero-points { color: #d3e5f2; }
.ai-hero .hero-points span::before { color: var(--brand-lime); }
.ai-chip { display: inline-flex; border: 1px solid rgba(255,255,255,.25); color: #d9e9f5; border-radius: 999px; padding: 5px 12px; font-size: 12px; margin: 0 6px 8px 0; }
.ai-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ai-flow div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px; font-size: 13px; color: #d4e6f4; }
.ai-flow strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.docs-nav { position: sticky; top: 92px; padding: 16px; }
.docs-nav a { display: block; color: #4a5d72; font-size: 13.5px; padding: 6px 10px; border-radius: 7px; }
.docs-nav a:hover { background: var(--soft-blue); color: var(--brand-blue); }
.docs-body h2 { font-size: 24px; margin: 38px 0 14px; scroll-margin-top: 90px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 18px; margin: 26px 0 10px; }
.docs-body p, .docs-body li { color: #3d4e62; font-size: 14.5px; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.docs-body th, .docs-body td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.docs-body th { background: var(--soft); }
.code-header { display: flex; align-items: center; justify-content: space-between; background: #0a1a2b; color: #9fb6ca; border-radius: 12px 12px 0 0; padding: 8px 14px; font-size: 12px; font-family: Consolas, monospace; }
.code-header + .code-block { border-radius: 0 0 12px 12px; margin-top: 0; }
.copy-btn { background: transparent; border: 1px solid #33506a; color: #b9d0e2; border-radius: 6px; font-size: 11px; padding: 2px 9px; }
.copy-btn:hover { background: #143049; color: #fff; }
.key-reveal { background: #0c1f33; color: #b7d400; border-radius: 10px; padding: 14px; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
.alert-key { border-left: 4px solid var(--brand-lime); }

/* ---------- report / misc ---------- */
.report-intro { background: var(--soft-blue); border: 1px solid #d9e9f5; border-radius: 14px; padding: 18px; }
.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; color: var(--brand-navy); font-size: 15px; padding: 16px 18px; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--soft-blue); color: var(--brand-blue); box-shadow: none; }
.faq-accordion .accordion-body { color: #4a5c70; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.legal-nav { padding: 14px; position: sticky; top: 92px; }
.legal-nav a { display: block; padding: 7px 10px; border-radius: 7px; color: #4a5c70; font-size: 13.5px; }
.legal-nav a.active, .legal-nav a:hover { background: var(--soft-blue); color: var(--brand-blue); }
.legal-body h2 { font-size: 21px; margin: 30px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; margin: 22px 0 10px; }
.legal-body p, .legal-body li { color: #3c4d61; font-size: 14.5px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.contact-tile { padding: 24px; height: 100%; }
.contact-tile h6 { color: var(--brand-navy); font-size: 14px; margin: 12px 0 6px; }
.contact-tile p { margin: 0; color: #4c5d70; font-size: 14px; }
.contact-tile a { color: var(--brand-blue); }
.qual-box { padding: 24px; }
.qual-box h5 { font-size: 16px; }
.qual-box .qual-value { font-size: 18px; font-weight: 700; color: var(--brand-navy); word-break: break-all; }
.value-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.value-item:last-child { border-bottom: 0; }
.value-item h5 { font-size: 16px; margin-bottom: 6px; }
.value-item p { color: var(--muted); font-size: 14px; margin: 0; }
.error-page { padding: 100px 0; text-align: center; }
.error-code { font-size: 92px; line-height: 1; font-weight: 800; color: #dbe8f3; letter-spacing: -.05em; }
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 38px; color: #c4d6e5; margin-bottom: 10px; }
.info-strip { background: #fff9ea; border: 1px solid #f2e3b8; color: #7a5b10; border-radius: 10px; padding: 10px 14px; font-size: 12.8px; }
.danger-zone { border: 1px solid #f0cfcf; background: #fffafa; border-radius: 14px; padding: 22px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .03em; }
.footer-brand:hover { color: #fff; }
.footer-brand img { border-radius: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #081d31; color: #a9bdcf; padding: 56px 0 22px; margin-top: 0; }
.footer-main { padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-desc { color: #93a9bd; font-size: 13px; margin: 16px 0; max-width: 340px; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: #9fb4c7; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 7px; line-height: 1.6; }
.footer-contact li span { color: #64809a; flex: 0 0 62px; }
.footer-contact a { color: #c6d8e6; }
.footer-title { color: #fff; font-size: 13px; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #9fb4c7; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-report { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-size: 12px; color: #9fb4c7; }
.footer-report strong { display: block; color: #dbe8f2; margin-bottom: 4px; }
.footer-report a { color: #c6d8e6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; color: #6f8aa2; font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: #8fa8bd; }
.footer-legal a:hover { color: #fff; }
.footer-meta { color: #5f7b93; }
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand-navy); box-shadow: var(--shadow-sm);
  display: none; z-index: 900; font-size: 18px;
}
.back-top.show { display: block; }
.message-wrap { padding-top: 18px; }
.message-wrap .alert { border-radius: 10px; font-size: 14px; }
.alert-success { background: #eef8ed; border-color: #cfe8cf; color: #2f6b35; }
.alert-error, .alert-danger { background: #fdf0f0; border-color: #f0d0d0; color: #8b2f2f; }
.alert-info { background: #eef6fc; border-color: #d2e5f3; color: #265c7f; }
.alert-warning { background: #fff8e8; border-color: #f2e3b8; color: #785a12; }

/* ---------- mall ---------- */
.mall-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.mall-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mall-search { display: flex; gap: 8px; min-width: 280px; }
.mall-search .form-control { min-width: 180px; flex: 1 1 auto; }
.mall-search .btn { flex: 0 0 auto; white-space: nowrap; }
.product-card { padding: 24px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.product-type {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: #eef5fb; color: #1a6b9c; white-space: nowrap;
}
.product-type.type-membership { background: #eef7ee; color: #3d7d12; }
.product-type.type-ai { background: #f0f4ff; color: #3d4fa1; }
.product-type.type-article { background: #fff5e8; color: #a15d00; }
.product-flag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff4d6; color: #8a5a00; }
.product-flag.purchased { background: #eaf7ed; color: #27733a; }
.product-flag.free { background: #eef8e6; color: #3d7d12; }
.product-card h4 { font-size: 18px; margin: 2px 0 8px; }
.product-card h4 a { color: var(--brand-navy); }
.product-card h4 a:hover { color: var(--brand-blue); }
.product-summary { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; flex: 1; }
.product-meta { color: #6c8197; font-size: 12.5px; margin-bottom: 10px; }
.product-features { list-style: none; padding: 0; margin: 0 0 14px; color: #4c5d70; font-size: 13px; }
.product-features li { padding: 4px 0; }
.product-features li::before { content: "✓"; color: var(--brand-green); font-weight: 700; margin-right: 6px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eef3f8; padding-top: 14px; margin-top: auto; }
.product-price { color: #c25b00; font-size: 26px; font-weight: 700; }
.product-original { color: #9aa8b8; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.product-detail-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.product-detail-price .product-price { font-size: 34px; }
.product-feature-list { padding-left: 20px; color: #45566a; font-size: 14px; }
.product-feature-list li { margin-bottom: 7px; }
.product-buy-card { position: sticky; top: 92px; }
.article-preview { max-height: 420px; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fbfdff; }
.article-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(180deg, transparent, #fbfdff); }
.mall-cart-table td, .mall-cart-table th { vertical-align: middle; }
.mall-cart-table .price-text { white-space: nowrap; }
.cart-summary { max-width: 520px; margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
  .site-nav .nav-link { padding: 9px 4px !important; }
  .nav-actions { margin: 12px 0 6px; flex-wrap: wrap; }
  .hero { padding: 56px 0; }
  .hero-panel { margin-top: 34px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .account-nav a { padding: 8px 11px; }
  .account-nav .nav-sep { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav { position: static; margin-bottom: 20px; }
  .ai-flow { grid-template-columns: 1fr 1fr; }
  .topbar-note { display: none; }
}
@media (max-width: 767.98px) {
  .section { padding: 52px 0; }
  .hero { padding: 44px 0; }
  .hero h1 { font-size: 30px; }
  .cta-band { padding: 28px 22px; border-radius: 16px; }
  .auth-card { padding: 26px 20px; }
  .paywall-card { padding: 24px 18px; }
  .article-body { font-size: 15.5px; }
  .hero-stats { gap: 18px; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .topbar { font-size: 11.5px; }
  .back-top { right: 14px; bottom: 14px; }
  .table-responsive { font-size: 13px; }
  .summary-card { padding: 18px; }
  .pay-method { padding: 18px; }
  .mall-toolbar { flex-direction: column; align-items: stretch; }
  .mall-search { min-width: 0; }
  .mall-search .form-control { min-width: 0; }
  .product-card { padding: 20px; }
  .product-buy-card { position: static; }
  .cart-summary { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .article-card { transition: none; }
}
