/* ============================================================
   顶部固定区：site-top-bar（品牌线 + Ticker 的统一容器）
   ============================================================ */

/* 整体吸顶 wrapper */
.site-top-bar {
  position: sticky;
  top: 0;
  z-index: 201;
  background: transparent;
}

/* 品牌线：3px 蓝→天蓝渐变 */
.brand-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  display: block;
  flex-shrink: 0;
}

/* TradingView Ticker 容器：只显示滚动部分（46px），裁掉底部32px空白 */
.tradingview-widget-container {
  width: 100%;
  height: 46px;
  max-height: 46px;
  display: block;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.tradingview-widget-container__widget {
  display: block;
  height: 46px;
  max-height: 46px;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.tradingview-widget-container iframe {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
  border: 0 !important;
}

/* 隐藏版权水印 */
.tradingview-widget-copyright {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}


/* ============================================================
   FEDZX 视觉升级 v3.0 · 方案C：冷静灰蓝 + 电光蓝
   品牌定稿：FedZX · #1C2B3A + #2563EB + #38BDF8
   ============================================================ */

/* ============================================================
   设计令牌（CSS Variables）
   ============================================================ */
:root {
  /* 品牌主色 */
  --c-brand:        #1C2B3A;
  --c-brand-mid:    #243447;
  --c-brand-deep:   #111E2C;

  /* 点缀色：电光蓝 */
  --c-accent:       #2563EB;
  --c-accent-hover: #1D4ED8;
  --c-accent-light: rgba(37, 99, 235, 0.08);
  --c-accent-glow:  rgba(37, 99, 235, 0.25);

  /* 高亮色：天蓝 */
  --c-electric:     #38BDF8;

  /* 背景 */
  --c-bg:           #FFFFFF;
  --c-bg-alt:       #F1F5F9;
  --c-bg-subtle:    #F8FAFC;
  --c-bg-card:      #FFFFFF;

  /* 文字 */
  --c-text-h:       #1C2B3A;
  --c-text-body:    #374151;
  --c-text-mute:    #6B7280;
  --c-text-light:   #9CA3AF;

  /* 边框 & 阴影 */
  --c-border:       #E5E7EB;
  --shadow-xs:      0 1px 3px rgba(28, 43, 58, .05);
  --shadow-sm:      0 2px 8px rgba(28, 43, 58, .08);
  --shadow-md:      0 6px 20px rgba(28, 43, 58, .10);
  --shadow-hover:   0 12px 36px rgba(37, 99, 235, .12);

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* 过渡 */
  --t-fast: 0.18s ease;
  --t-mid:  0.28s ease;

  /* 排版 */
  --font-sans: 'PingFang SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ============================================================
   基础设置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   导航栏（顶部3px 蓝→天蓝渐变品牌线）
   ============================================================ */
.navbar-sticky, .site-header, header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: 200;
}

/* 品牌线已改为 border-top，见上方 header 规则 */

/* 导航链接 */
nav a {
  color: var(--c-text-mute);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  text-decoration: none;
}

nav a:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

/* Logo 文字（SVG 替换后此样式作为回退） */
.site-logo, .logo, .logo-text {
  color: var(--c-brand);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   CTA 按钮（电光蓝）
   ============================================================ */
.btn-primary, .nav-cta, .cta-button {
  background: var(--c-accent);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-primary:hover, .nav-cta:hover, .cta-button:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--c-accent-glow);
}

/* Ghost 按钮（Hero 区第二按钮） */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   Hero 区（深色渐变 + 电光蓝光晕）
   ============================================================ */
.hero, .hero-section {
  background: linear-gradient(140deg, #1C2B3A 0%, #1E3A5F 45%, #1C3461 100%);
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}

/* 右上角电光蓝光晕 */
.hero::after, .hero-section::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -60px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* 网格纹理 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero h1, .hero-title {
  color: #F0F6FF;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

/* ✅ Hero 关键词天蓝高亮 */
.hero h1 span, .hero-title span {
  color: var(--c-electric);
}

.hero p, .hero-sub, .hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.85;
}

/* ============================================================
   卡片（hover 蓝渐变左边框 + 上浮）
   ============================================================ */
.card, .article-card, .question-card, .card-base {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

/* 左侧装饰线（默认透明） */
.card::before, .article-card::before, .question-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--t-fast);
  border-radius: 3px 0 0 3px;
}

/* ✅ hover：蓝渐变左边框 + 上浮 + 蓝色阴影 */
.card:hover, .article-card:hover, .question-card:hover, .card-hover:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.15);
}

.card:hover::before, .article-card:hover::before, .question-card:hover::before {
  background: linear-gradient(180deg, var(--c-accent), var(--c-electric));
}

/* 卡片标题 */
.card h2, .card h3, .article-card h2, .question-card h3, .article-title {
  color: var(--c-text-h);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* 卡片摘要 */
.card p, .article-summary {
  color: var(--c-text-body);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ============================================================
   区块标题（左侧蓝→天蓝渐变竖线）
   ============================================================ */
.section-title, h2.block-title {
  color: var(--c-text-h);
  font-size: 1.25rem;
  font-weight: 800;
  position: relative;
  padding-left: 16px;
}

.section-title::before, h2.block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-electric));
  border-radius: 2px;
}

/* ============================================================
   结论高亮框（insight-box / answer-box / short-answer-card）
   ============================================================ */
.insight-box, .answer-box, .short-answer-card {
  border-left: 3px solid var(--c-accent);
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.answer-box-label, .insight-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* ============================================================
   分类标签
   ============================================================ */
.tag, .category-tag, .article-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: #F3F4F6;
  color: var(--c-text-mute);
  transition: all var(--t-fast);
}

.tag:hover { background: #E5E7EB; color: var(--c-brand); }

.tag-policy  { background: #EFF6FF; color: #1D4ED8; }
.tag-market  { background: #ECFDF5; color: #065F46; }
.tag-data    { background: #FFF7ED; color: #C2410C; }
.tag-invest  { background: #F5F3FF; color: #5B21B6; }
.tag-macro   { background: #F0F9FF; color: #0369A1; }
.tag-question{ background: #EFF6FF; color: #2563EB; }

.tag[data-category="政策分析"] { background: #EFF6FF; color: #1D4ED8; }
.tag[data-category="市场行情"] { background: #ECFDF5; color: #065F46; }
.tag[data-category="数据解读"] { background: #FFF7ED; color: #C2410C; }
.tag[data-category="投资分析"] { background: #F5F3FF; color: #5B21B6; }

/* ============================================================
   涨跌颜色（金融专用）
   ============================================================ */
.text-up   { color: #16C784; }
.text-down { color: #EA3943; }
.bg-up     { background-color: #16C784; }
.bg-down   { background-color: #EA3943; }

/* ============================================================
   主色辅助类（兼容旧代码）
   ============================================================ */
.text-primary     { color: var(--c-brand); }
.bg-primary       { background-color: var(--c-brand); }
.bg-primary-light { background-color: #E8EBF1; }

/* ============================================================
   分割线
   ============================================================ */
.section-divider {
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: 40px 0;
}

/* ============================================================
   元信息
   ============================================================ */
.meta-text {
  color: var(--c-text-mute);
  font-size: 0.85rem;
}

/* ============================================================
   分类链接
   ============================================================ */
.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}

.category-link:hover {
  border-color: var(--c-accent);
  background: var(--c-bg-subtle);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   文章正文
   ============================================================ */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text-body);
}

.article-body p {
  margin-top: 16px;
  white-space: pre-wrap;
}

.article-body p:first-child { margin-top: 0; }

.article-body h1,
.article-body h2,
.article-body h3 {
  margin-top: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text-h);
}

.article-body h1:first-child,
.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }

.article-body h1 { font-size: 30px; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }

.article-body ul, .article-body ol {
  margin-top: 16px;
  padding-left: 24px;
}

.article-body li { margin-top: 8px; }

.article-body blockquote {
  margin-top: 20px;
  border-left: 4px solid var(--c-accent);
  background: var(--c-bg-subtle);
  padding: 12px 16px;
  color: var(--c-text-mute);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.article-body pre {
  margin-top: 20px;
  overflow: auto;
  border-radius: var(--r-md);
  background: var(--c-brand);
  padding: 16px;
  color: #F9FAFB;
}

.article-body code {
  border-radius: 4px;
  background: #F3F4F6;
  padding: 2px 6px;
  font-size: 0.92em;
  color: var(--c-brand);
}

.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-body hr {
  margin-top: 24px;
  border: none;
  border-top: 1px solid var(--c-border);
}

.article-body .table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--c-border);
  background: #FFFFFF;
  border-radius: var(--r-md);
  overflow: hidden;
}

.article-body th, .article-body td {
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  vertical-align: top;
}

.article-body th {
  background: var(--c-bg-alt);
  font-weight: 700;
  color: var(--c-text-h);
}

/* ============================================================
   Footer
   ============================================================ */
footer, .site-footer {
  background: var(--c-brand-deep);
  color: rgba(255, 255, 255, 0.42);
}

footer a, .site-footer a {
  color: var(--c-electric);
  transition: color var(--t-fast);
}

footer a:hover, .site-footer a:hover {
  color: #FFFFFF;
}

/* ============================================================
   加载动画
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.loading-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .article-body h1 { font-size: 24px; }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 18px; }
  .hero h1, .hero-title { font-size: 1.9rem; }
}
