/* ============================================================
   星诚供需平台 · 设计优化覆盖层 v1.0 (2026-08-01)
   基于 frontend-design-pro + web-design 规范
   安全策略：只覆盖、不删除原规则；如需回滚删除本文件引用即可
   ============================================================ */

/* ---------- 1. 字体系统：标题衬线+正文无衬线，建立层级 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@600;700;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* 色彩升级：模板蓝 → 深藏青商务蓝 */
  --primary: #1e4e8c;
  --primary-dark: #163a66;
  --primary-light: #e8f0fa;
  --accent: #c9a227;
  --accent-dark: #a8861e;
  --text: #1c2b3a;
  --text-muted: #5b6b7b;
  --text-light: #8a99a8;
  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --border: #e3e9f0;
  /* 精致阴影：多层次 */
  --shadow-sm: 0 1px 3px rgba(16,32,56,.05), 0 1px 2px rgba(16,32,56,.04);
  --shadow: 0 2px 8px rgba(16,32,56,.06), 0 8px 24px rgba(16,32,56,.06);
  --shadow-lg: 0 4px 12px rgba(16,32,56,.08), 0 16px 40px rgba(16,32,56,.1);
  /* 统一动效曲线（快入慢出，高级感） */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. 正文与标题字体 ---------- */
body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: .01em;
}

h1, h2, h3, .logo, .section-header .title h2,
.hero h1, .report-card .rc-title, .article-card .ac-title,
.rec-ent-card .rc-name, .rc-title {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  letter-spacing: .01em;
}

/* ---------- 3. 导航栏：加层次与品牌感 ---------- */
.navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227,233,240,.8);
  box-shadow: 0 1px 0 rgba(16,32,56,.02);
}
.navbar-content { height: 60px; }
.logo { font-size: 19px; letter-spacing: .02em; }
.nav-menu li a {
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 8px;
  transition: color .2s var(--ease-out-expo), background .2s var(--ease-out-expo);
}
.nav-menu li a:hover { background: #f0f4f9; }
.nav-actions .btn { border-radius: 24px; padding: 8px 20px; transition: all .25s var(--ease-out-expo); }
.nav-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(30,78,140,.25);
}
.nav-actions .btn-primary:hover { box-shadow: 0 4px 14px rgba(30,78,140,.35); transform: translateY(-1px); }

/* ---------- 4. Hero：高端商务渐变 + 精致光效 ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(56,120,200,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(201,162,39,.08) 0%, transparent 55%),
    linear-gradient(140deg, #0c1a2e 0%, #12294a 45%, #1b3a68 100%);
}
.hero::before {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(90,150,230,.14) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(201,162,39,.07) 0%, transparent 50%);
}
.hero h1 {
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #ffffff 0%, #dce8f8 55%, #c9a227 130%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .subtitle { color: rgba(255,255,255,.62); letter-spacing: 2px; font-size: 12.5px; }
.hero .search-bar input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  transition: all .25s var(--ease-out-expo);
}
.hero .search-bar input:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.hero .search-bar button {
  background: linear-gradient(135deg, #d4a92e 0%, var(--accent) 100%);
  box-shadow: 0 4px 16px rgba(201,162,39,.3);
  transition: all .25s var(--ease-out-expo);
}
.hero .search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.4);
}
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  transition: all .3s var(--ease-out-expo);
}
.hero-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

/* ---------- 5. 板块：统一间距 + 呼吸感 ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid rgba(227,233,240,.7); }
.section-header { margin-bottom: 22px; }
.section-header .title h2 { font-size: 21px; font-weight: 700; }
.section-header .title .sub { font-size: 12.5px; letter-spacing: .02em; }
.section-header .more {
  font-weight: 600;
  transition: all .2s var(--ease-out-expo);
}

/* ---------- 6. 卡片：精致阴影 + 细腻边框 ---------- */
.report-card, .article-card, .news-item-card,
.rec-ent-card, .recommendations-section .recommendation-card {
  border: 1px solid rgba(227,233,240,.9);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease-out-expo);
}
.report-card:hover, .article-card:hover, .rec-ent-card:hover,
.recommendations-section .recommendation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,78,140,.25);
  box-shadow: var(--shadow);
}
.news-item-card { border-left: 3px solid var(--primary); }
.news-item-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- 7. 筛选标签：精致胶囊 ---------- */
.filters .tab {
  padding: 6px 16px;
  border-radius: 22px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  transition: all .25s var(--ease-out-expo);
}
.filters .tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30,78,140,.22);
}

/* ---------- 8. 推荐企业标签 ---------- */
.rec-ent-card .rc-tag {
  background: #e8f0fa;
  color: #1e4e8c;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 5px;
}

/* ---------- 9. 三步引导卡片（首页内联区） ---------- */
/* 通过属性选择器覆盖内联样式的卡片 */
section .container [style*="flex:1"][style*="max-width:280px"] {
  border-radius: 16px;
  border: 1px solid #e3e9f0;
  transition: all .3s var(--ease-out-expo);
}

/* ---------- 10. Footer 精致化 ---------- */
.footer {
  background: linear-gradient(160deg, #0c1a2e 0%, #12294a 100%);
  padding: 44px 0 24px;
}
.footer h4 { font-family: "Noto Serif SC", serif; font-size: 15px; letter-spacing: .03em; }
.footer-bottom { color: rgba(255,255,255,.45); }

/* ---------- 11. 按钮统一 ---------- */
.btn { transition: all .25s var(--ease-out-expo); }
.btn-block.btn-primary, .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(30,78,140,.28);
}
.btn-block.btn-primary:hover, .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(30,78,140,.38);
  transform: translateY(-1px);
}

/* ---------- 12. 滚动条精致化（Webkit） ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(30,78,140,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(30,78,140,.4); }

/* ---------- 13. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 14. 移动端适配 ---------- */
@media (max-width: 640px) {
  .section { padding: 32px 0; }
  .section-header .title h2 { font-size: 18px; }
}
