/*
 * stock_site_engine/css/stock_seo_global.css
 * 炒股站点 SEO 视觉模块库 — 通用 CSS
 *
 * 来源：基于 html_optimization/sites/shared-tools/seo_global.css 适配
 * 适配点：蓝色系 → 红黑金融色系（EasyClaw #c0392b）
 *        Hero 区 → 深色金融风，而非蓝色科技风
 *        新增：免责声明样式、风险提示样式、财经数据样式
 *
 * 配套规范：D:\zhishi\page_publish_sop.md
 *          D:\zhishi\规范\SEO集群页建站公共规范v2.md
 *
 * 使用方式：
 *   <link rel="stylesheet" href="css/stock_seo_global.css">
 *   页面特有样式在 <style> 中覆盖换肤变量
 */

/* ═══════════════════════════════════════════
   换肤变量层 — CSS 变量体系（骨架不动）
   ═══════════════════════════════════════════ */
:root {
  /* 基础色板 */
  --white:    #fff;
  --black:    #111827;
  --green:    #16a34a;
  --red:      #dc2626;
  --amber:    #f59e0b;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  /* 布局 */
  --radius:   8px;
  --shadow:   0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);

  /* ── 炒股站品牌换肤变量（按站点覆盖，骨架不动）── */
  --brand:         #c0392b;                            /* EasyClaw 红 */
  --brand-dk:      #a93226;                            /* hover 加深 */
  --brand-light:   #fde8e8;                            /* 极浅红背景 */
  --brand-shadow:  rgba(192, 57, 43, .25);             /* 主按钮投影 */
  --hero-bg:       linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); /* 深色金融 Hero */
  --hero-text:     #f0f0f0;                            /* Hero 文字色 */
  --cta-grad:      linear-gradient(135deg, #c0392b 0%, #8b0000 100%); /* 底部 CTA 红色系 */
  --bg-cream:      #faf8f4;                            /* 奶油底色（EasyClaw 风格） */
  --bg-beige:      #f5f0e8;                            /* 米色区块 */
  --text-sub:      #7a746e;                            /* 副文本色 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--bg-cream);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 容器 ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── 顶部导航（EasyClaw 风格）── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 900; color: var(--brand);
  text-decoration: none;
}
.logo span { color: #2d2926; font-weight: 700; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--brand-light); color: var(--brand); }
.nav a.active { background: var(--brand); color: #fff; }

/* ── 面包屑 ── */
.breadcrumb {
  padding: 12px 20px; font-size: 13px; color: var(--gray-600);
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; color: var(--gray-200); }

/* ── Hero 区（深色金融风）── */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 72px 0;
  text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.hero .hero-sub {
  font-size: 18px; opacity: .9;
  max-width: 600px; margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 按钮 ── */
.btn {
  display: inline-block; padding: 11px 28px;
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.btn-primary  { background: var(--brand);  color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); }

/* ── 通用 section ── */
.section { padding: 36px 0; }
.section-gray { background: var(--gray-50); }
.section-cream { background: var(--bg-cream); }
.section-beige { background: var(--bg-beige); }
.section-title {
  font-size: 28px; font-weight: 700; color: var(--gray-900);
  text-align: center; margin-bottom: 40px;
}

/* ── 卡片网格 ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  display: block; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 24px 20px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.card-icon { margin-bottom: 14px; width: 56px; height: 56px; }
.card-icon svg { width: 56px; height: 56px; display: block; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.card-link { font-size: 13px; color: var(--brand); font-weight: 600; }

/* ── 内容布局（正文+侧栏）── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 20px;
  align-items: start;
}
.main-content { min-width: 0; }
.main-content h1 {
  font-size: 32px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 16px; line-height: 1.3;
}
.main-content h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.main-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--gray-900); }
.main-content p  { margin-bottom: 14px; }
.main-content ul, .main-content ol { padding-left: 20px; margin-bottom: 14px; }
.main-content li { margin-bottom: 6px; }
.lead { font-size: 17px; color: var(--gray-600); margin-bottom: 28px !important; }

/* ── 侧栏 ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a { font-size: 14px; color: var(--gray-600); }
.sidebar-card a:hover { color: var(--brand); }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th {
  background: var(--gray-100); color: var(--gray-900);
  font-weight: 700; padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--gray-200);
}
.compare-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.compare-table tr:hover td { background: var(--gray-50); }

/* ── 精简版股票站：信息表格 ── */
.article-layout table:not(.compare-table) {
  width: 100%; min-width: 700px; border-collapse: collapse;
  margin: 8px 0 20px; font-size: 15px; line-height: 1.65;
  border-top: 1px solid #cbd5d0; border-bottom: 1px solid #cbd5d0;
}
.article-layout:has(table:not(.compare-table)) { overflow-x: auto; }
.article-layout table:not(.compare-table) th {
  padding: 13px 16px; text-align: left; font-weight: 700; color: var(--gray-900);
  background: #f1f4f2; border-bottom: 2px solid #cbd5d0;
}
.article-layout table:not(.compare-table) td {
  padding: 15px 16px; vertical-align: top; color: var(--gray-700);
  border-bottom: 1px solid #d9e0dc;
}
.article-layout table:not(.compare-table) tbody tr:last-child td { border-bottom: 0; }
.article-layout table:not(.compare-table) tbody tr:hover td { background: #fafbf9; }

/* ── 标签 ── */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.tag-green  { background: #dcfce7; color: #166534; }
.tag-yellow { background: #fef9c3; color: #854d0e; }
.tag-red    { background: #fee2e2; color: #991b1b; }
.tag-up     { background: #fee2e2; color: #dc2626; }     /* 涨红 */
.tag-down   { background: #dcfce7; color: #16a34a; }     /* 跌绿 */

/* ── 提示框 ── */
.tip-box {
  background: var(--brand-light); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; margin: 16px 0; font-size: 14px;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  background: var(--gray-50); padding: 14px 18px;
  font-weight: 700; font-size: 15px; color: var(--gray-900);
}
.faq-a { padding: 14px 18px; font-size: 14px; background: #fff; }

/* ── 页脚 ── */
.footer { background: var(--gray-900); color: #9ca3af; padding: 48px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 8px; }
.footer-col a   { font-size: 14px; color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; font-size: 13px; text-align: center; }

/* All stock Skills pages use the same EasyClaw brand footer. */
.brand-footer { padding: 28px 24px; border-top: 2px solid #e8e4df; background: #f5f3ee; color: #7a746e; font-size: 13px; text-align: center; }
.brand-footer__identity { margin-bottom: 10px; }
.brand-footer__identity img { height: 24px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.brand-footer__legal { margin-top: 8px; font-size: 11px; }

/* ═══════════════════════════════════════════
   炒股站点专属样式（EasyClaw 体系）
   ═══════════════════════════════════════════ */

/* ── 下载按钮（EasyClaw 埋点）── */
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 12px var(--brand-shadow);
  transition: background .15s, transform .15s, box-shadow .15s;
  min-height: 48px; box-sizing: border-box;
  white-space: nowrap;
}
.cta-primary:hover {
  background: var(--brand-dk); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--brand-shadow);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #fff; color: var(--brand);
  font-size: 16px; font-weight: 500;
  border: 1.5px solid #cbd5e1; border-radius: 8px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  min-height: 48px; box-sizing: border-box;
  white-space: nowrap;
}
.cta-secondary:hover { border-color: var(--brand); color: var(--brand-dk); }

/* ── 实体数据卡片（金融版）── */
.entity-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px 28px; margin: 32px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.entity-card h2 { margin: 0 0 16px; font-size: 18px; color: var(--black); }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.entity-grid > div { border-left: 3px solid var(--brand); padding-left: 12px; }
.entity-grid .entity-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.entity-grid .entity-value { font-size: 16px; font-weight: 600; color: var(--black); }

/* ── Hub 卡片网格（炒股集群站）── */
.hub-grid-v2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 40px; }
.hub-card-v2 {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; text-decoration: none; color: inherit; display: block;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hub-card-v2:hover {
  border-color: var(--brand); box-shadow: 0 8px 24px rgba(192, 57, 43, .12);
  transform: translateY(-2px); color: inherit;
}
.hub-card-v2 .card-icon {
  width: 44px; height: 44px; background: var(--brand-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--brand);
}
.hub-card-v2 .card-icon svg { width: 22px; height: 22px; }
.hub-card-v2 h3 { margin: 0 0 8px; font-size: 17px; color: var(--black); }
.hub-card-v2 p { margin: 0 0 12px; font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.hub-card-v2 .card-arrow { font-size: 13px; color: var(--brand); font-weight: 500; }

/* ── FAQ v2 ── */
.faq-v2 { background: var(--bg-beige); border-radius: 12px; padding: 32px; margin: 40px 0; }
.faq-v2 h2 { margin: 0 0 24px; font-size: 22px; color: var(--black); }
.faq-v2 .faq-item-v2 {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 20px 24px; margin-bottom: 12px;
}
.faq-v2 .faq-item-v2:last-child { margin-bottom: 0; }
.faq-v2 .faq-q {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--black);
  margin: 0 0 10px; line-height: 1.5;
}
.faq-v2 .faq-q::before {
  content: "Q"; display: inline-block; width: 22px; height: 22px;
  background: var(--brand); color: #fff; border-radius: 4px;
  text-align: center; font-size: 12px; font-weight: 700; line-height: 22px;
  flex-shrink: 0; margin-top: 1px;
}
.faq-v2 .faq-a { margin: 0; padding-left: 30px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }

/* ── 紧凑 FAQ：用于信息型落地页 ── */
.compact-faq { max-width: 980px; margin: 0 auto; }
.compact-faq h2 { margin: 0; padding-bottom: 18px; font-size: 24px; color: var(--black); border-bottom: 1px solid #d9e0dc; }
.compact-faq .faq-item { padding: 20px 0; border-bottom: 1px solid #d9e0dc; }
.compact-faq .faq-item:last-child { border-bottom: 0; }
.compact-faq h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--black); }
.compact-faq h3::before { content: "Q"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.compact-faq p { margin: 0 0 0 32px; color: var(--gray-600); font-size: 15px; line-height: 1.75; }

/* ── 底部 CTA 区 ── */
.cta-section-v2 {
  background: var(--cta-grad);
  border-radius: 12px; padding: 40px 32px; text-align: center;
  margin: 40px 0; color: #fff;
}
.cta-section-v2 h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.cta-section-v2 p { margin: 0 0 20px; font-size: 14px; color: rgba(255,255,255,.85); }
.cta-section-v2 .cta-primary {
  background: #fff; color: var(--brand); box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-section-v2 .cta-primary:hover { background: var(--brand-light); color: var(--brand-dk); }

/* ── 风险提示卡片（金融必加）── */
.risk-disclaimer {
  background: #fffbeb; border-left: 4px solid var(--amber);
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 24px 0; font-size: 13px; line-height: 1.7;
  color: #78350f;
}
.risk-disclaimer strong { color: #b45309; }

/* ── 财经数据行 ── */
.stock-data-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--gray-200);
}
.stock-data-item {
  display: flex; flex-direction: column;
}
.stock-data-item .label { font-size: 12px; color: var(--text-sub); }
.stock-data-item .value { font-size: 18px; font-weight: 700; color: var(--black); }
.stock-data-item .value.up { color: var(--red); }
.stock-data-item .value.down { color: var(--green); }

/* ── 步骤列表 ── */
.steps-v2 { list-style: none; padding: 0; margin: 16px 0 24px; counter-reset: step; }
.steps-v2 li {
  position: relative; padding: 16px 16px 16px 56px;
  margin-bottom: 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
  counter-increment: step;
}
.steps-v2 li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; background: var(--brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.steps-v2 li strong { color: var(--black); }

/* ═══════════════════════════════════════════
   响应式断点
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero .hero-sub { font-size: 15px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .section-title { font-size: 22px; }
  .main-content h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .nav { gap: 2px; }
  .nav a { padding: 5px 8px; font-size: 12px; }
  .hero { padding: 48px 0; }
}
