/*
Theme Name: 天下黄金网
Theme URI: https://txhuangjin.com/
Author: 天下黄金网编辑部
Author URI: https://txhuangjin.com/
Description: 专业的黄金 / 白银 / 铂金 / 钯金投资交易资讯门户。集成金价快讯、品种走势、平台对比、投资策略与文章系统。支持自定义文章类型「article」用于发布资讯、策略与平台评测。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: txhuangjin
Tags: gold, finance, news, custom-logo, custom-menu, featured-images, translation-ready, block-templates

本主题为经典主题（Classic Theme），所有页面与文章均可通过 WP 后台管理。
*/

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 金色系 */
  --gold-50:  #fff7e0;
  --gold-100: #fcecb1;
  --gold-200: #f5d77c;
  --gold-300: #ecc44a;
  --gold-400: #d4a017;
  --gold-500: #b8860b;
  --gold-600: #8a6f1a;
  --gold-700: #5c4a10;

  /* 中性 */
  --ink-900: #0a0e1a;
  --ink-800: #141a2a;
  --ink-700: #1f2638;
  --ink-600: #2c3447;
  --ink-500: #4a536b;
  --ink-400: #6b7488;
  --ink-300: #a0a8b9;
  --ink-200: #d4d8e0;
  --ink-100: #eef0f5;
  --ink-50:  #f6f7fb;

  /* 涨/跌 - 中国市场习惯 */
  --up:   #d92b2b;
  --down: #12996b;
  --neutral: #6b7488;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13.5px;
  --fs-base: 15px;
  --fs-md: 16.5px;
  --fs-lg: 19px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;

  /* 字体 */
  --font-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans", sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", "Menlo", Consolas, monospace;

  /* 布局 */
  --container: 1200px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 22, 36, .04), 0 2px 6px rgba(15, 22, 36, .04);
  --shadow-md: 0 4px 14px rgba(15, 22, 36, .06), 0 1px 3px rgba(15, 22, 36, .04);
  --shadow-lg: 0 12px 28px rgba(15, 22, 36, .10), 0 4px 10px rgba(15, 22, 36, .05);

  --t-fast: .14s ease;
  --t-base: .22s ease;
}

/* ---------- 2. Reset & 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-base)/1.65 var(--font-cn);
  color: var(--ink-800);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-500); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-400); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-300); outline-offset: 2px;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--ink-900); }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--ink-100); margin: 24px 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.visually-hidden, .screen-reader-text {
  position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: -40px; left: 0; padding: 8px 16px;
  background: var(--ink-900); color: var(--gold-200); z-index: 1000;
}
.skip-link:focus { top: 0; }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 16px auto; display: block; }

/* ---------- 3. 顶栏 ---------- */
.topbar {
  background: var(--ink-900); color: var(--ink-300);
  font-size: var(--fs-xs); border-bottom: 1px solid #000;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; gap: 16px;
}
.topbar__date time { color: var(--gold-200); }
.topbar__sep { color: var(--ink-600); margin: 0 4px; }
.topbar__quote strong { color: #fff; margin: 0 4px; font-family: var(--font-num); }
.topbar__quote em { font-style: normal; color: var(--up); font-family: var(--font-num); }
.topbar__nav { display: flex; gap: 18px; }
.topbar__nav a { color: var(--ink-300); }
.topbar__nav a:hover { color: var(--gold-300); }

/* ---------- 4. 主导航 + 站头 ---------- */
.header { background: #fff; border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 20px; padding: 14px 0;
}
.header__brand img { display: block; }
.header__search {
  display: flex; max-width: 480px; width: 100%;
  border: 1.5px solid var(--ink-200); border-radius: var(--r-md);
  overflow: hidden; background: #fff; transition: border-color var(--t-fast);
}
.header__search:focus-within { border-color: var(--gold-400); }
.header__search input { flex: 1; padding: 9px 14px; background: transparent; border: 0; font-size: var(--fs-sm); }
.header__search input::placeholder { color: var(--ink-300); }
.header__search button {
  padding: 0 18px; background: var(--gold-400); color: #fff; font-weight: 600;
  transition: background var(--t-fast);
}
.header__search button:hover { background: var(--gold-500); }
.header__cta { display: flex; gap: 8px; }

/* 主导航 */
.nav { background: var(--ink-900); position: relative; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0;
}
.nav__list { display: flex; flex-wrap: wrap; font-size: var(--fs-md); font-weight: 500; flex: 1; }
.nav__link {
  display: block; padding: 12px 22px;
  color: var(--ink-200); position: relative; transition: color var(--t-fast);
}
.nav__link:hover { color: #fff; }
.nav__link--active { color: var(--gold-300); }
.nav__link--active::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0;
  height: 3px; background: var(--gold-400);
}

/* 汉堡按钮（PC 默认隐藏） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: rgba(255, 215, 106, .12);
  border: 1px solid rgba(255, 215, 106, .3);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--gold-200);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-sm);
  transition: all var(--t-fast); white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--lg { padding: 13px 26px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff; box-shadow: 0 4px 12px rgba(184, 134, 11, .25);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, .32);
}
.btn--ghost { color: var(--ink-700); border-color: var(--ink-200); background: #fff; }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-500); }
.btn--outline {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 215, 106, .6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 215, 106, .14); color: var(--gold-200); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: #fff;
  min-height: 480px; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10, 14, 26, .92) 0%, rgba(10, 14, 26, .7) 60%, rgba(10, 14, 26, .35) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0; width: 100%; }
.hero__copy { max-width: 760px; }
.hero__copy--center { margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-block; padding: 5px 14px; margin-bottom: 18px;
  background: rgba(255, 215, 106, .14);
  border: 1px solid rgba(255, 215, 106, .35);
  border-radius: 100px;
  color: var(--gold-200); font-size: var(--fs-sm); letter-spacing: .5px;
}
.hero__title {
  font-size: clamp(28px, 4.4vw, var(--fs-4xl));
  line-height: 1.18; margin: 0 0 18px;
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}
.hero__lead {
  font-size: var(--fs-md); color: rgba(255, 255, 255, .88);
  line-height: 1.7; margin-bottom: 28px; max-width: 600px;
}
.hero__copy--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__copy--center .hero__cta { justify-content: center; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__copy--center .hero__chips { justify-content: center; }
.hero__chips li a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 215, 106, .25);
  border-radius: 100px; color: rgba(255, 255, 255, .92); font-size: var(--fs-sm);
}
.hero__chips li a:hover { background: rgba(255, 215, 106, .18); color: var(--gold-200); }
.hero__chips strong { color: var(--gold-300); margin-right: 2px; font-weight: 700; }

/* ---------- 7. 通用 section ---------- */
.section { padding: 72px 0; }
.section--alt { background: #fff; }
.section__head { margin-bottom: 36px; }
.section__title {
  font-size: var(--fs-2xl);
  position: relative; padding-left: 16px;
}
.section__title::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
}
.section__sub { margin-top: 8px; color: var(--ink-500); font-size: var(--fs-sm); }
.section__more { margin-top: 32px; text-align: right; }
.section__more a { font-weight: 600; }

/* ---------- 8. 行情 / 快讯 ---------- */
.ticker {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: #fff; padding: 18px 0; overflow: hidden;
  border-bottom: 1px solid #000;
}
.ticker__label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin-right: 14px; border-radius: 100px;
  background: var(--up); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 1px; vertical-align: middle;
}
.ticker__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ticker__list {
  display: flex; gap: 32px; overflow: hidden;
  font-size: var(--fs-sm);
}
.ticker__list li { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.ticker__list time { color: var(--ink-300); font-family: var(--font-num); font-size: var(--fs-xs); }
.ticker__list .tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700;
  background: rgba(255, 255, 255, .08); color: var(--gold-200);
}

/* ---------- 9. 行情卡片 ---------- */
.quote-card {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 28px 32px;
  margin-bottom: 24px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.quote-card::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 215, 106, .25) 0%, transparent 70%);
  pointer-events: none;
}
.quote-card__row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: center; position: relative;
}
.quote-card__name { display: flex; align-items: center; gap: 14px; }
.quote-card__sym {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff; font-weight: 800; font-size: 18px; border-radius: 50%;
}
.quote-card__name strong { display: block; font-size: var(--fs-lg); }
.quote-card__name small { color: var(--ink-300); font-size: var(--fs-xs); }
.quote-card__price { text-align: right; }
.quote-card__price .v {
  display: block; font-size: var(--fs-3xl); font-weight: 800; color: #fff;
  font-family: var(--font-num); line-height: 1.1;
}
.quote-card__meta {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 18px; margin: 0; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  grid-column: 1 / -1;
}
.quote-card__meta dt { font-size: var(--fs-xs); color: var(--ink-300); margin-bottom: 4px; }
.quote-card__meta dd {
  margin: 0; font-family: var(--font-num); font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .92); font-weight: 600;
}

.quote-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.quote-tile {
  background: #fff; border-radius: var(--r-md); padding: 20px;
  border: 1px solid var(--ink-100); text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.quote-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quote-tile h3 { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 500; }
.quote-tile__big {
  font-family: var(--font-num); font-size: var(--fs-2xl); font-weight: 800;
  color: var(--ink-900); margin: 6px 0 0; line-height: 1.2;
}
.quote-tile__unit { color: var(--ink-400); font-size: var(--fs-xs); margin-bottom: 6px; }

.quote-charts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.chart-card {
  background: #fff; border-radius: var(--r-md); padding: 14px;
  border: 1px solid var(--ink-100); margin: 0;
}
.chart-card img { width: 100%; height: auto; }
.chart-card figcaption {
  margin-top: 8px; text-align: center; color: var(--ink-500);
  font-size: var(--fs-xs);
}

/* 涨跌色（国内习惯） */
.trend { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-num); font-size: var(--fs-sm); }
.trend::before { font-size: 10px; }
.trend--up { color: var(--up); }
.trend--up::before { content: "▲"; }
.trend--down { color: var(--down); }
.trend--down::before { content: "▼"; }
.trend--neutral { color: var(--neutral); }
.trend--neutral::before { content: "•"; }

/* ---------- 9.5 产品介绍卡（伦敦金 / 伦敦银） ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 26px 28px;
  position: relative; overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.product-card::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245, 215, 124, .22) 0%, transparent 70%);
  pointer-events: none;
}
.product-card:hover { border-color: var(--gold-200); box-shadow: var(--shadow-md); }

.product-card__head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink-100);
  position: relative;
}
.product-card__symbol {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff; font-weight: 800; font-size: 22px;
  border-radius: 50%; font-family: serif;
  box-shadow: 0 4px 12px rgba(184, 134, 11, .28);
}
.product-card__title { flex: 1; min-width: 0; }
.product-card__title h3 {
  margin: 0 0 2px; font-size: var(--fs-lg); color: var(--ink-900);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
}
.product-card__title h3 small {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-500);
}
.product-card__code {
  margin: 0; font-size: var(--fs-xs); color: var(--ink-400);
  font-family: var(--font-num); letter-spacing: .3px;
}
.product-card__badge {
  flex: 0 0 auto;
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  background: var(--up); color: #fff; font-weight: 700;
  white-space: nowrap;
}
.product-card__badge--silver { background: var(--gold-500); }

.product-card__desc {
  margin: 0; font-size: var(--fs-sm); color: var(--ink-600);
  line-height: 1.75;
}

.product-card__features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin: 0; padding: 0;
}
.product-card__features li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--ink-700);
  padding: 8px 12px;
  background: var(--gold-50); border-radius: var(--r-sm);
  border: 1px solid var(--gold-100);
}
.product-card__features li .i {
  font-size: 16px; line-height: 1;
}
.product-card__features li strong {
  color: var(--gold-600); font-weight: 700;
}

.product-card__meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0; padding: 14px 16px;
  background: var(--ink-50); border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.product-card__meta > div {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.product-card__meta dt {
  font-size: 11px; color: var(--ink-400); font-weight: 500;
}
.product-card__meta dd {
  margin: 0; color: var(--ink-900); font-weight: 600;
  font-family: var(--font-num); font-size: var(--fs-sm);
}

.product-card__adv,
.product-card__fit {
  font-size: var(--fs-sm);
}
.product-card__adv h4,
.product-card__fit h4 {
  margin: 0 0 6px; font-size: var(--fs-xs); color: var(--ink-500);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.product-card__adv p {
  margin: 0; color: var(--ink-700); line-height: 1.7;
}
.product-card__fit ul {
  display: grid; gap: 4px;
  margin: 0; padding-left: 18px;
  list-style: disc;
}
.product-card__fit li {
  color: var(--ink-700); line-height: 1.7;
}
.product-card__fit li::marker { color: var(--gold-500); }

.product-card__cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff; font-weight: 600; font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.product-card__cta:hover {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, .32);
}

/* ---------- 10. 知识卡片 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.info-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--ink-100); display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-card__media {
  display: block; aspect-ratio: 400 / 220; overflow: hidden;
  background: var(--gold-50);
}
.info-card__media img { width: 100%; height: 100%; object-fit: cover; }
.info-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.info-card__body h3 { font-size: var(--fs-lg); }
.info-card__body p { color: var(--ink-500); font-size: var(--fs-sm); line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  font-size: 12px; padding: 3px 10px; border-radius: 100px;
  background: var(--gold-50); color: var(--gold-600); font-weight: 500;
}
.info-card__more {
  margin-top: auto; font-weight: 600; font-size: var(--fs-sm);
  display: inline-flex; align-items: center; gap: 4px;
}
.info-card__more::after { content: "→"; transition: transform var(--t-fast); }
.info-card__more:hover::after { transform: translateX(3px); }

/* ---------- 11. 策略卡片 ---------- */
.strategy-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.strategy-card {
  display: grid; grid-template-columns: 80px 1fr; gap: 18px;
  padding: 24px; background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.strategy-card:hover { border-color: var(--gold-200); box-shadow: var(--shadow-md); }
.strategy-card > img { width: 80px; height: 80px; align-self: start; }
.strategy-card h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.strategy-card p { color: var(--ink-500); font-size: var(--fs-sm); margin-bottom: 14px; }
/* meta 改为左右两列等宽网格，两组 dt-dd 基线对齐 */
.strategy-card__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0; padding-top: 14px; border-top: 1px dashed var(--ink-100);
  font-size: var(--fs-sm);
}
.strategy-card__meta > div {
  display: grid; grid-template-columns: auto 1fr;
  gap: 4px 8px; align-items: baseline; min-width: 0;
}
.strategy-card__meta dt { color: var(--ink-400); white-space: nowrap; }
.strategy-card__meta dd { margin: 0; color: var(--ink-700); min-width: 0; word-break: break-word; }

/* ---------- 12. 平台分组 ---------- */
.platform-group { display: flex; flex-direction: column; gap: 18px; }
.platform-group__title {
  font-size: var(--fs-md); color: var(--ink-700); margin: 16px 0 0;
  display: flex; align-items: center; gap: 8px;
}
.platform-group__title::before {
  content: ""; width: 4px; height: 14px; background: var(--gold-400); border-radius: 2px;
}
.platform-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.platform-list li {
  background: #fff; border-radius: var(--r-md); padding: 12px;
  border: 1px solid var(--ink-100); text-align: center;
  transition: border-color var(--t-base);
}
.platform-list li:hover { border-color: var(--gold-300); }
.platform-list img { margin: 0 auto 8px; }
.platform-list span { display: block; font-size: var(--fs-xs); color: var(--ink-500); }

.risk-note {
  margin-top: 32px; padding: 18px 22px;
  background: linear-gradient(90deg, #fff5e0, #fffbf0);
  border-left: 4px solid var(--gold-400);
  border-radius: var(--r-sm); color: var(--ink-600); font-size: var(--fs-sm);
}
.risk-note strong { color: var(--gold-600); }

/* ---------- 13. 平台对比卡片（10Life 风格 · 横向长条） ---------- */
.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) auto minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.compare-card:hover { border-color: var(--gold-300); box-shadow: var(--shadow-md); }

/* 列 1：机构 + 产品 + 标签 + 简介 */
.compare-card__main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.compare-card__top {
  display: flex; align-items: center; gap: 12px;
}
.compare-card__brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.compare-card__logo {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #fff; font-weight: 800; font-size: 13px;
  border-radius: var(--r-md); letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, .25);
}
.compare-card__id { min-width: 0; }
.compare-card__insurer {
  margin: 0 0 2px; color: var(--ink-400); font-size: var(--fs-xs); font-weight: 500;
}
.compare-card__name {
  font-size: var(--fs-md); font-weight: 700; color: var(--ink-900);
  line-height: 1.3; margin: 0;
}
.compare-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-card__tag {
  font-size: 11px; padding: 3px 9px; border-radius: 4px;
  background: var(--ink-50); color: var(--ink-600);
  border: 1px solid var(--ink-100); font-weight: 500;
}
.compare-card__tag--gold {
  background: var(--gold-50); color: var(--gold-600); border-color: var(--gold-100);
  font-weight: 700;
}
.compare-card__desc {
  margin: 0; font-size: var(--fs-sm); color: var(--ink-600);
  line-height: 1.65;
  /* 简介在长条卡里只显示 2 行 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 列 2：评分 */
.compare-card__rating {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  min-width: 110px;
}
.compare-card__score {
  display: flex; align-items: baseline; gap: 4px;
}
.compare-card__score .v {
  font-family: var(--font-num); font-size: 28px; font-weight: 800;
  color: var(--gold-500); line-height: 1;
}
.compare-card__score .d {
  font-size: var(--fs-xs); color: var(--ink-500);
}
.compare-card__stars {
  font-size: 13px; color: var(--gold-400); letter-spacing: 1.5px;
}
.compare-card__notes {
  font-size: 11px; color: var(--ink-400); text-align: center;
  white-space: nowrap;
}

/* 列 3：meta 网格（3 × 2） */
.compare-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  font-size: var(--fs-sm);
}
.compare-card__meta > div {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.compare-card__meta dt {
  font-size: 11px; color: var(--ink-400); font-weight: 500;
}
.compare-card__meta dd {
  margin: 0; color: var(--ink-900); font-weight: 600;
  font-family: var(--font-num); font-size: var(--fs-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 列 4：CTA */
.compare-card__actions {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 130px;
}
.compare-card__cta {
  background: var(--down); color: #fff;
  padding: 8px 14px; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-align: center; transition: all var(--t-fast);
}
.compare-card__cta:hover { background: #0e7a55; color: #fff; }
.compare-card__cta--ghost {
  background: #fff; color: var(--ink-700); border: 1.5px solid var(--ink-200);
}
.compare-card__cta--ghost:hover { border-color: var(--gold-400); color: var(--gold-500); background: #fff; }

.compare-empty { padding: 24px; text-align: center; color: var(--ink-400); background: var(--ink-50); border-radius: var(--r-md); }

/* ---------- 14. 文章卡片（首页/归档） ---------- */
.article-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.article-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-200); }
.article-card__media { aspect-ratio: 16 / 9; background: var(--gold-50); overflow: hidden; display: block; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { padding: 18px 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-card__meta { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--ink-400); }
.article-card__cat {
  background: var(--gold-50); color: var(--gold-600);
  padding: 2px 10px; border-radius: 100px; font-weight: 600;
}
.article-card h3 { font-size: var(--fs-md); line-height: 1.4; }
.article-card h3 a { color: var(--ink-900); }
.article-card h3 a:hover { color: var(--gold-500); }
.article-card__excerpt { color: var(--ink-500); font-size: var(--fs-sm); line-height: 1.6; flex: 1; }
.article-card__more {
  font-size: var(--fs-sm); font-weight: 600; color: var(--gold-500);
  display: inline-flex; align-items: center; gap: 4px;
}
.article-card__more::after { content: "→"; }
.article-card__more:hover { color: var(--gold-400); }

/* ---------- 15. FAQ ---------- */
.faq-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px; align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border-radius: var(--r-md); border: 1px solid var(--ink-100);
  padding: 16px 22px; transition: border-color var(--t-base);
}
.faq-item:hover { border-color: var(--gold-300); }
.faq-item summary {
  font-weight: 600; color: var(--ink-800); cursor: pointer;
  display: flex; align-items: center; gap: 10px; list-style: none;
}
.faq-item summary::before {
  content: "+"; font-family: var(--font-num); font-weight: 700;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-500); border-radius: 50%;
  font-size: 16px; transition: transform var(--t-fast); flex-shrink: 0;
}
.faq-item[open] summary::before { transform: rotate(45deg); background: var(--gold-300); color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item > p {
  margin: 14px 0 0 32px; color: var(--ink-500); font-size: var(--fs-sm);
  padding-left: 14px; border-left: 2px solid var(--gold-200);
}
.faq-side {
  position: sticky; top: 100px;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff; border-radius: var(--r-lg); padding: 24px;
}
.faq-side h3 { color: var(--gold-200); font-size: var(--fs-md); margin-bottom: 14px; }
.tip-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tip-list li {
  font-size: var(--fs-sm); padding-left: 18px; position: relative;
  color: rgba(255, 255, 255, .85); line-height: 1.6;
}
.tip-list li::before { content: "•"; color: var(--gold-300); position: absolute; left: 0; }

/* ---------- 16. 长文 prose ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-700); font-size: var(--fs-md); line-height: 1.85; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: .6em; }
.prose h3 { font-size: var(--fs-lg); color: var(--ink-800); }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li { list-style: disc; margin-bottom: .35em; }
.prose ol li { list-style: decimal; margin-bottom: .35em; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--gold-500); border-bottom: 1px dashed var(--gold-300); }
.prose a:hover { border-bottom-style: solid; }

/* ---------- 17. 子页面通用 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 60%, var(--gold-700) 100%);
  color: #fff; padding: 56px 0 48px;
}
.page-hero__eyebrow {
  display: inline-block; padding: 4px 12px; margin-bottom: 12px;
  background: rgba(255, 215, 106, .14);
  border: 1px solid rgba(255, 215, 106, .35);
  border-radius: 100px;
  color: var(--gold-200); font-size: var(--fs-xs); letter-spacing: 1.5px;
}
.page-hero h1 {
  color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 12px;
}
.page-hero__lead { color: rgba(255, 255, 255, .8); font-size: var(--fs-md); max-width: 720px; }

.crumbs {
  background: #fff; border-bottom: 1px solid var(--ink-100);
  padding: 12px 0; font-size: var(--fs-sm);
}
.crumbs ol { display: flex; gap: 6px; color: var(--ink-500); flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-300); }
.crumbs li[aria-current] { color: var(--ink-800); font-weight: 500; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--gold-500); }

/* ---------- 18. 文章详情（single.php） ---------- */
.entry-header { padding: 48px 0 24px; }
.entry-header__meta { display: flex; gap: 12px; align-items: center; color: var(--ink-400); font-size: var(--fs-sm); margin-bottom: 12px; }
.entry-header__cat {
  background: var(--gold-50); color: var(--gold-600);
  padding: 3px 12px; border-radius: 100px; font-weight: 600;
}
.entry-title { font-size: clamp(24px, 3.4vw, 36px); color: var(--ink-900); margin-bottom: 16px; line-height: 1.3; }
.entry-excerpt { color: var(--ink-500); font-size: var(--fs-md); margin-bottom: 24px; }
.entry-thumb { margin-bottom: 24px; border-radius: var(--r-lg); overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; }
.entry-content { background: #fff; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--ink-100); margin-bottom: 32px; }
.entry-footer { padding: 18px 0; border-top: 1px solid var(--ink-100); color: var(--ink-400); font-size: var(--fs-sm); }

/* 归档页 */
.archive-header { padding: 48px 0 24px; }
.archive-title { font-size: var(--fs-2xl); margin-bottom: 8px; }
.archive-description { color: var(--ink-500); font-size: var(--fs-sm); }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--ink-100); border-radius: var(--r-sm);
  color: var(--ink-700); background: #fff;
}
.pagination a:hover { border-color: var(--gold-400); color: var(--gold-500); }
.pagination .current { background: var(--gold-400); color: #fff; border-color: var(--gold-400); }

/* ---------- 19. 页脚 ---------- */
.footer {
  background: linear-gradient(180deg, var(--ink-900), #000);
  color: var(--ink-300); margin-top: 80px; padding: 56px 0 0;
}
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid #1a1f2e;
}
.footer__brand img { display: block; margin-bottom: 14px; filter: brightness(1.1); }
.footer__brand p { font-size: var(--fs-sm); color: var(--ink-300); max-width: 320px; }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__nav h4 { color: var(--gold-200); font-size: var(--fs-sm); margin-bottom: 12px; }
.footer__nav li { margin-bottom: 8px; font-size: var(--fs-sm); }
.footer__nav a { color: var(--ink-300); }
.footer__nav a:hover { color: var(--gold-300); }
.footer__risk { font-size: 12px; color: var(--ink-400); line-height: 1.7; }
.footer__legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  padding: 18px 0; color: var(--ink-400); font-size: var(--fs-xs);
}
.footer__legal p { margin: 0; }

/* ---------- 20. WP 核心对齐 ---------- */
.alignwide { margin-left: calc(50% - 50vw + 8px); margin-right: calc(50% - 50vw + 8px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--ink-400); font-size: var(--fs-xs); text-align: center; }
.sticky { background: var(--gold-50); padding: 12px; border-radius: var(--r-md); border: 1px dashed var(--gold-300); }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto 1fr; }
  .header__cta { display: none; }

  /* 主导航：汉堡按钮 */
  .nav-toggle { display: flex; }
  .nav__inner { flex-wrap: wrap; padding: 8px 0; }
  .nav__list {
    flex-direction: column;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
  }
  .nav.is-open .nav__list { max-height: 600px; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { padding: 14px 20px; }
  .nav__link--active::after { display: none; }
  .nav__link--active { background: rgba(255, 215, 106, .08); border-left: 3px solid var(--gold-400); }

  .quote-card__row { grid-template-columns: 1fr; gap: 16px; }
  .quote-card__price { text-align: left; }
  .quote-card__meta { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-charts, .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }

  /* 产品卡：980 以下单列 */
  .product-grid { grid-template-columns: 1fr; }

  /* compare-card：980 以下横向改为纵向单列 */
  .compare-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 20px;
  }
  .compare-card__rating {
    flex-direction: row; gap: 16px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fffbf0, #fff7e0);
    border-radius: var(--r-md); border: 1px solid var(--gold-100);
    align-self: start;
  }
  .compare-card__notes { text-align: left; }
  .compare-card__actions { flex-direction: row; min-width: 0; }
  .compare-card__cta { flex: 1; }
  .compare-card__cta--ghost { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .topbar__inner { flex-direction: column; gap: 4px; }
  .nav__list { font-size: var(--fs-md); }
  .hero { min-height: auto; }
  .hero__inner { padding: 64px 0 48px; }
  .hero__copy--center .hero__cta { justify-content: center; flex-direction: column; align-items: stretch; }
  .section { padding: 48px 0; }
  .section__title { font-size: var(--fs-xl); }
  .quote-grid, .card-grid, .quote-charts, .platform-list { grid-template-columns: 1fr; }
  .platform-list { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 4px; text-align: center; }
  .strategy-card { grid-template-columns: 1fr; }
  .strategy-card > img { width: 56px; height: 56px; }
  .strategy-card__meta { grid-template-columns: 1fr; }
  .entry-content { padding: 22px; }

  /* 产品卡：640 进一步紧凑 */
  .product-card { padding: 22px 20px; }
  .product-card__features { grid-template-columns: 1fr; }
  .product-card__meta { grid-template-columns: 1fr; gap: 8px 0; }

  /* compare-card 移动端：评分横排更紧，CTA 上下排 */
  .compare-card { padding: 18px 18px; }
  .compare-card__score .v { font-size: 24px; }
  .compare-card__meta { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .compare-card__actions { flex-direction: column; }
  .compare-card__cta { width: 100%; }
  .compare-card__cta--ghost { width: 100%; }
}

/* ---------- 22. 动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}