/* ============================================
   LLM 价格比价 · Confident Editorial Tech
   纯白 · Instrument Serif + Geist · 电光绿强调
   不对称布局 · 数字驱动 · 克制而精致
   ============================================ */

:root {
  --bg: #FFFFFF;
  --bg-tint: #FAFAFA;
  --bg-sunken: #F4F4F4;

  --ink: #0A0A0A;
  --ink-soft: #3D3D3D;
  --ink-faint: #737373;
  --ink-ghost: #B0B0B0;
  --ink-line: #E8E8E8;

  --border: #E8E8E8;
  --border-light: #F0F0F0;
  --border-strong: #D0D0D0;

  --accent: #00DC82;
  --accent-dark: #00B36A;
  --accent-soft: #E6FFF5;
  --accent-glow: rgba(0, 220, 130, 0.25);

  --green: #00B36A;
  --green-soft: #E6FFF5;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --red: #DC2626;

  --font-display: 'Instrument Serif', 'Noto Serif SC', Georgia, serif;
  --font: 'Geist', 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;

  --max-w: 1400px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
  --shadow-accent: 0 8px 24px var(--accent-glow);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

#app { min-height: 100vh; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  line-height: 1.2;
}
.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  gap: 6px;
  flex: 1;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-menu a:hover {
  color: var(--ink);
  background: var(--bg-tint);
}
.nav-menu a.active {
  color: var(--ink);
  background: var(--bg-tint);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 导航搜索容器（含下拉建议） */
.header-search {
  position: relative;
}
.search {
  width: 220px;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") 10px center no-repeat;
  color: var(--ink);
  transition: all 0.15s;
}
.search:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.search::placeholder { color: var(--ink-ghost); }

/* 搜索建议下拉 */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  overflow: hidden;
  z-index: 200;
  animation: searchDrop 0.15s ease-out;
}
@keyframes searchDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover {
  background: var(--bg-tint);
}
.search-suggestion-text {
  flex: 1;
  min-width: 0;
}
.search-suggestion-name {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.search-suggestion-en {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 1px;
  line-height: 1.2;
}
.search-suggestion-arrow {
  flex-shrink: 0;
  color: var(--ink-ghost);
  transition: transform 0.15s, color 0.15s;
}
.search-suggestion:hover .search-suggestion-arrow {
  color: var(--ink);
  transform: translateX(2px);
}

.gh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
  transition: all 0.15s;
}
.gh-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-tint);
}
.gh-icon {
  display: block;
}

/* ============ HERO (不对称) ============ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-left {
  animation: heroLeft 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--bg);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-dark);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg-tint);
}

/* ============ HERO RIGHT (动态呼吸厂商图标集合) ============ */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroRight 0.7s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.icon-orbit {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
}
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring-1 {
  width: 200px;
  height: 200px;
  animation: ringPulse 4s ease-in-out infinite;
}
.orbit-ring-2 {
  width: 300px;
  height: 300px;
  animation: ringPulse 4s ease-in-out infinite 0.6s;
}
.orbit-ring-3 {
  width: 400px;
  height: 400px;
  animation: ringPulse 4s ease-in-out infinite 1.2s;
}
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: coreBreath 3s ease-in-out infinite;
}
.orbit-core .brand-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
  /* 位置由 CSS 变量 --x --y 控制，呼吸动画叠加在 translate 之上 */
  transform: translate(var(--x, 0), var(--y, 0));
  animation: iconBreath 3s ease-in-out infinite;
}
.orbit-icon:hover {
  /* hover 时改用 scale，保留原位置 */
  animation-play-state: paused;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  transform: translate(var(--x, 0), var(--y, 0)) scale(1.15);
}
.orbit-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* ============ BILLING CARDS ============ */
.billing-cards {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.billing-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
  overflow: hidden;
}
.billing-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}
.billing-card:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.billing-card:hover::before {
  transform: scaleY(1);
}
.billing-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.billing-card-body {
  flex: 1;
  min-width: 0;
}
.billing-card-title {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.billing-card-sub {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.billing-card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 10px;
}
.billing-card-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--ink-faint);
  font-family: var(--font);
  font-size: 14px;
  transition: transform 0.18s, color 0.18s;
}
.billing-card:hover .billing-card-arrow {
  color: var(--accent-dark);
  transform: translateX(3px);
}

/* 特征卡片：纯展示，动态美观 */
.feature-cards {
  gap: 20px;
  padding: 32px 40px 72px;
}
.feature-card {
  cursor: default;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}
.feature-card::before {
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  width: auto;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-card:hover {
  border-color: var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card .billing-card-icon {
  width: 100%;
  height: 88px;
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(0, 220, 130, 0.08) 0%, rgba(0, 220, 130, 0.02) 100%);
  color: var(--accent-dark);
  transition: background 0.25s;
}
.feature-card:hover .billing-card-icon {
  background: linear-gradient(135deg, rgba(0, 220, 130, 0.14) 0%, rgba(0, 220, 130, 0.04) 100%);
}
.feature-card .billing-card-icon svg {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-card:hover .billing-card-icon svg {
  transform: scale(1.12) rotate(-3deg);
}
.feature-card .billing-card-body {
  padding: 20px 22px 24px;
}
.feature-card .billing-card-title {
  font-size: 17px;
  font-weight: 600;
}
.feature-card .billing-card-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

/* 卡片入场：轻量淡入，首屏立即可见，避免动画期间卡片"显示不全" */
.feature-card:nth-child(1) { animation: featureIn 0.4s 0s both; }
.feature-card:nth-child(2) { animation: featureIn 0.4s 0.08s both; }
.feature-card:nth-child(3) { animation: featureIn 0.4s 0.16s both; }
@keyframes featureIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* ============ SECTION ============ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}
.section-page {
  padding-top: 56px;
  min-height: calc(100vh - 60px - 160px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--accent-dark);
}
.section-title .title-normal {
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  color: var(--accent-dark);
}
.section-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 520px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all 0.15s;
  white-space: nowrap;
}
.section-link:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============ FILTERS ============ */
.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.chip {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============ FRESHNESS ============ */
.freshness {
  padding: 14px 0;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
}
.freshness-sep { color: var(--ink-line); }
.freshness b {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stale-warning {
  color: var(--amber);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 11px;
}

/* ============ VIEW TOGGLE ============ */
.view-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
}
.view-toggle > div {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-tint);
  border-radius: var(--radius);
}
.view-toggle button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: all 0.15s;
}
.view-toggle button:hover { color: var(--ink); }
.view-toggle button.active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.currency-toggle button {
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 56px;
}

/* ============ TABLE ============ */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--bg);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 980px;
}
.price-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
  white-space: nowrap;
  background: var(--bg-tint);
  user-select: none;
}
.price-table th.sortable { cursor: pointer; }
.price-table th.sortable:hover { color: var(--ink); }
.price-table th.sort-asc,
.price-table th.sort-desc { color: var(--accent-dark); }
.price-table th.sort-asc::after { content: ' ↑'; }
.price-table th.sort-desc::after { content: ' ↓'; }
.price-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.price-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.price-table tbody tr:hover { background: var(--bg-tint); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr.stale td:first-child {
  position: relative;
}
.price-table tbody tr.stale td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
}
.price-table tbody tr.expanded { background: var(--accent-soft); }
.detail-row td {
  padding: 20px 18px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}
.detail {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}
.detail p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.stale-detail { color: var(--amber); font-weight: 500; }

.provider-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-tint);
}
.provider-icon img { width: 100%; height: 100%; object-fit: contain; }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.price-table a {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s;
}
.price-table a:hover { opacity: 0.7; }
/* 表头单位标注 */
.th-unit {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-ghost);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 2px;
}
/* 类型列（modalities） */
.modalities-cell {
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}
/* 卡片：类型 + 上下文行 */
.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.card-mods {
  color: var(--ink-faint);
  font-family: var(--font);
}
.card-ctx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.price-unit {
  font-size: 10px;
  color: var(--ink-ghost);
  margin-left: 2px;
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding-top: 8px;
}
.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card.stale {
  border-color: var(--amber);
  border-style: dashed;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-provider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-provider {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.card-billing {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 3px 9px;
  background: var(--bg-tint);
  border-radius: 999px;
}
.card-model {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.card-prices {
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.card-prices div {
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-prices span:first-child {
  color: var(--ink-faint);
  font-size: 11px;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.card-buy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.15s;
}
.card-buy:hover { gap: 8px; }

/* ============ PROVIDER DETAIL 计费方式 tab 切换 ============ */
.provider-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
  flex-wrap: wrap;
}
.provider-billing-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-tint);
  border-radius: var(--radius);
}
.provider-billing-tab {
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.provider-billing-tab .tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.provider-billing-tab:hover {
  color: var(--ink);
}
.provider-billing-tab.active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.provider-billing-tab.active .tab-count {
  color: var(--accent-dark);
}
/* 单一计费方式：不显示 tab，只显示标题 */
.provider-billing-tabs-single {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 7px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.provider-billing-tabs-single .tab-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
/* 厂商详情页套餐列表：单列全宽 */
.provider-plan-list--full {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ PLAN CARDS (coding_plan / subscription) ============ */
/* 独立套餐卡片网格：一张卡片一个套餐，参考厂商官网卡片式结构 */
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-top: 8px;
}
.plan-card-grid--provider {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.plan-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.plan-card:hover::before {
  transform: scaleX(1);
}
.plan-card.stale {
  border-color: var(--amber);
  border-style: dashed;
}
/* 首月优惠卡片：左侧红色细线提示 */
.plan-card--promo {
  border-left: 3px solid var(--red);
}

/* 头部：厂商 + 地区 */
.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.plan-card-provider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.provider-icon--sm {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-tint);
}
.provider-icon--sm img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.plan-card-provider-name {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.plan-card-region {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 套餐名 */
.plan-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

/* 价格行 */
.plan-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.plan-card-price-symbol {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}
.plan-card-price-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-card-price-period {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-left: 4px;
}

/* 首月优惠 */
.plan-card-promo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.06);
}
.plan-card-promo-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.03em;
}
.plan-card-promo-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* 额度 */
.plan-card-quota {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.plan-card-quota-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.plan-card-quota-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* 特性列表 */
.plan-card-features {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plan-card-feature-dot {
  flex-shrink: 0;
  margin-top: 7px;
  color: var(--ink-ghost);
}

/* 购买按钮 */
.plan-card-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, gap 0.18s ease;
}
.plan-card-buy:hover {
  background: var(--bg);
  color: var(--ink);
  gap: 10px;
}
.plan-card-buy-arrow {
  transition: transform 0.18s ease;
}
.plan-card-buy:hover .plan-card-buy-arrow {
  transform: translateX(2px);
}

/* ============ PROVIDER CARDS ============ */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.providers-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.providers-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* 厂商总览页：地区分组 */
.provider-region-group {
  margin-top: 40px;
}
.provider-region-group:first-of-type {
  margin-top: 0;
}
.provider-region-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.provider-region-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.provider-region-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* 厂商搜索框 */
.providers-search {
  align-self: end;
}
.providers-search-input {
  width: 260px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  transition: all 0.15s;
}
.providers-search-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.providers-search-input::placeholder {
  color: var(--ink-ghost);
}

/* 紧凑横向卡片 */
.provider-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.provider-card-compact:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.provider-card-compact .provider-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.provider-card-compact:hover .provider-card-icon {
  transform: scale(1.04);
}
.provider-card-body {
  flex: 1;
  min-width: 0;
}
.provider-card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.provider-card-count {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.provider-card-site {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
  transition: color 0.15s;
}
.provider-card-site:hover {
  color: var(--accent-dark);
}

/* 保留首页大卡片样式 */
.provider-card {
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
  overflow: hidden;
}
.provider-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.provider-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.provider-card:hover::before {
  transform: scaleX(1);
}
.provider-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.provider-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.provider-card:hover .provider-card-icon {
  transform: scale(1.06);
}
.provider-card-icon img { width: 80%; height: 80%; object-fit: contain; }
.provider-card-name {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}
.status-dot.fail {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-soft);
}

/* ============ PROVIDERS SECTION (首页主流大模型厂商) ============ */
.providers-section {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}
.providers-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  flex: 1;
  align-content: start;
}
.pv-card {
  position: relative;
  padding: 24px 22px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.22s, border-color 0.22s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pvCardIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes pvCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.pv-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pv-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pv-card:hover::before {
  transform: scaleX(1);
}
.pv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.pv-card:hover .pv-card-icon {
  transform: scale(1.08);
}
.pv-card-icon img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.pv-card-site {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.pv-card:hover .pv-card-site {
  opacity: 1;
}
.pv-card-site:hover {
  color: var(--accent-dark);
}
.pv-card-name {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pv-card-stats {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.pv-card-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}
.pv-card-unit {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
}

/* 厂商总览入口卡片（最后一张） */
.pv-card-more {
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pv-card-more:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
}
.pv-card-more::before {
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.pv-card-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pv-card-more-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-ghost);
  line-height: 0;
  transition: color 0.22s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pv-card-more:hover .pv-card-more-mark {
  color: var(--accent-dark);
  transform: rotate(-45deg);
}
.pv-card-more .pv-card-name {
  font-size: 16px;
}
.pv-card-more-sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .providers-home-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ ABOUT ============ */
.about-page {
  max-width: 760px;
  padding: 8px 0 32px;
}
.about-page h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.about-page h2 em { font-style: italic; color: var(--accent-dark); }
.about-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
/* 首段 lead：更大字号，保留 drop cap */
.about-page p.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
}
.about-page p.lead::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  float: left;
  line-height: 0.82;
  margin: 6px 12px 0 0;
  color: var(--accent-dark);
}
.about-page p.lead strong {
  font-weight: 600;
  color: var(--ink);
}
/* 注释/旁白文本 */
.about-page .about-note {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  margin: -6px 0 14px;
}
.about-page ul {
  margin: 0 0 16px 0;
  list-style: none;
}
.about-page ul li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-page ul li:last-child { border-bottom: none; }
.about-page ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.about-page ul li strong {
  font-weight: 600;
  color: var(--ink);
  min-width: 80px;
  flex-shrink: 0;
}
.about-page a {
  color: var(--accent-dark);
  font-weight: 500;
  transition: opacity 0.15s;
}
.about-page a:hover { opacity: 0.7; }

/* 厂商来源网格 */
.about-providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.about-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.about-provider:hover {
  border-color: var(--ink);
  background: var(--bg-tint);
}
.about-provider-text {
  flex: 1;
  min-width: 0;
}
.about-provider-name {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.about-provider-en {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 1px;
  line-height: 1.2;
}
.about-provider-region {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-ghost);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* 采集流程列表 */
.about-flow {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
.about-flow li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-flow li:last-child { border-bottom: none; }
.about-flow-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-top: -2px;
}
.about-flow strong {
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

/* ============ LOADING / ERROR ============ */
.loading-state {
  padding: 120px 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-faint);
}
.loading-state::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 10px;
  vertical-align: -2px;
}
.error {
  padding: 80px 0;
  text-align: center;
  color: var(--red);
  font-size: 15px;
}

/* ============ 计费方式 · 编辑杂志式三列专栏 ============ */
.billing-showcase {
  padding-bottom: 40px;
}

.billing-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.billing-column {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: billingColFadeIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}
.billing-column:nth-child(1) { --i: 0; }
.billing-column:nth-child(2) { --i: 1; }
.billing-column:nth-child(3) { --i: 2; }

/* 头部：序号 + label 同行 */
.billing-col-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.billing-col-index {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink-ghost);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
}
.billing-column:hover .billing-col-index {
  color: var(--accent-dark);
}
.billing-col-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.billing-col-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* 图片：无容器痕迹，直接展示内容 */
.billing-col-image {
  width: 100%;
  margin-bottom: 20px;
  /* 无 border / 无 background / 无 border-radius / 无 box-shadow */
}
.billing-col-image img {
  width: 100%;
  height: auto;
  display: block;
  /* 默认杂志感：轻微降饱和 */
  filter: saturate(0.9) contrast(0.98);
  transform: scale(1);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.7s ease;
}
.billing-column:hover .billing-col-image img {
  /* hover 动态：放大 + 彩色化 */
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.02);
}

.billing-col-desc {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 20px;
  min-height: 64px;
}
.billing-col-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.billing-col-stat .stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.billing-col-stat .stat-unit {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 400;
}
.billing-col-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
  margin-top: auto;
}
.billing-col-cta .arrow {
  font-family: var(--font);
  font-size: 14px;
  color: var(--accent-dark);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.billing-column:hover .billing-col-cta {
  color: var(--accent-dark);
}
.billing-column:hover .billing-col-cta .arrow {
  transform: translateX(5px);
}

@keyframes billingColFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .billing-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .billing-col-desc {
    min-height: auto;
  }
}

/* ============ FAQ + 社群 ============ */
.faq-community {
  padding-top: 24px;
}
.faq-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.faq-block .section-title,
.community-block .section-title {
  margin-bottom: 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}
.faq-item:first-child {
  border-top: none;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-toggle {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-faint);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover {
  color: var(--accent-dark);
}
.faq-answer {
  padding: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-answer p {
  margin-bottom: 8px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer b {
  color: var(--ink);
  font-weight: 600;
}
.faq-answer a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-block {
  padding-top: 4px;
}
.community-card {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.community-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: white;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.community-info {
  text-align: center;
}
.community-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.community-desc {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.community-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .faq-community-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
}
.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}
.footer-brand .brand-name {
  font-size: 16px;
}
.footer-brand .brand-tag {
  font-size: 12px;
}
.footer-meta {
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-meta a {
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-meta a:hover { color: var(--accent-dark); }

/* ============ ANIMATIONS ============ */
@keyframes heroLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes heroRight {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 动态呼吸：核心方块 */
@keyframes coreBreath {
  0%, 100% { box-shadow: 0 0 40px var(--accent-glow), 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 0 12px rgba(0, 220, 130, 0.08); }
}
/* 动态呼吸：环形 */
@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.03); }
}
/* 动态呼吸：图标 - 需要每个图标自己有延迟 */
@keyframes iconBreath {
  0%, 100% { transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
  50% { transform: translate(var(--x, 0), calc(var(--y, 0) - 6px)) scale(1.06); }
}

.section, .billing-cards, .providers-grid, .card-grid, .table-wrap {
  animation: fadeUp 0.5s ease-out;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 24px 48px;
  }
  .hero-title { font-size: 56px; }
  .icon-orbit { width: 320px; height: 320px; transform: scale(0.85); }
  .billing-cards {
    grid-template-columns: 1fr;
    padding: 16px 24px 40px;
  }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 12px; height: 64px; }
  .nav-menu { display: none; }
  .search { width: 130px; }
  .brand-tag { display: none; }
  .hero { padding: 40px 16px 32px; gap: 28px; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 15px; }
  .icon-orbit { transform: scale(0.7); }
  .section { padding: 56px 16px; }
  .section-title { font-size: 32px; }
  .section-head { grid-template-columns: 1fr; }
  .billing-cards { grid-template-columns: 1fr; padding: 12px 16px 32px; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 10px; }
  .providers-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 24px 16px; grid-template-columns: 1fr; }
}
