/* =================================================================
   每日热料官网入口 · 设计系统 style.css
   设计理念：以「热度」为核心隐喻，珊瑚橙为主色，墨绿为专业底色，
   暖米白营造温暖质感，金黄点缀热榜氛围。
   ================================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色：热度橙 */
  --c-primary: #FF6B35;
  --c-primary-dark: #E8412E;
  --c-primary-light: #FF8C5A;
  --c-primary-soft: #FFE8DE;

  /* 辅助：墨绿（专业/深度） */
  --c-ink: #1A3A3A;
  --c-ink-soft: #2C5454;
  --c-ink-deep: #0F2626;

  /* 强调：珊瑚红 */
  --c-accent: #FF4757;
  --c-accent-dark: #E0394A;

  /* 点缀：金黄（热榜/热度值） */
  --c-gold: #FFD93D;
  --c-gold-soft: #FFF3B0;

  /* 中性：暖米白系 */
  --c-bg: #FAF6F0;
  --c-bg-alt: #F3ECE2;
  --c-surface: #FFFFFF;
  --c-text: #2A2118;
  --c-text-soft: #6B5D52;
  --c-text-muted: #9A8C80;
  --c-line: #E8DDCF;
  --c-line-soft: #F0E7DA;

  /* 语义 */
  --c-success: #2DBE7A;
  --c-info: #4A90D9;

  /* 字体 */
  --font-display: "ZCOOL KuaiLe", "Fraunces", "Noto Serif SC", serif;
  --font-serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: "Fraunces", Georgia, serif;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-full: 999px;

  /* 阴影 */
  --sh-sm: 0 2px 8px rgba(120, 70, 30, 0.06);
  --sh-md: 0 8px 24px rgba(120, 70, 30, 0.10);
  --sh-lg: 0 20px 48px rgba(120, 70, 30, 0.16);
  --sh-warm: 0 12px 32px rgba(255, 107, 53, 0.28);
  --sh-gold: 0 8px 20px rgba(255, 217, 61, 0.40);

  /* 间距 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* 布局 */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* 噪点纹理叠加层 —— 给暖底色增加质感 */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p { color: var(--c-text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  padding: 7px 16px; border-radius: var(--r-full);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.25);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,53,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,53,0.08); }
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--c-text-soft); line-height: 1.8; }

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.container.narrow { max-width: var(--container-narrow); }
section { position: relative; z-index: 2; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }
.section-head p { font-size: 1.05rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
  white-space: nowrap; border: 2px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--sh-warm); }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(232,65,46,0.38); }
.btn-ink { background: var(--c-ink); color: #fff; }
.btn-ink:hover { background: var(--c-ink-deep); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); transform: translateY(-3px); }
.btn-gold { background: var(--c-gold); color: var(--c-ink-deep); box-shadow: var(--sh-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,217,61,0.55); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line-soft);
  transition: box-shadow var(--dur);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(120,70,30,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.35rem; color: var(--c-ink-deep); }
.brand .logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand b { color: var(--c-primary-dark); }
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; color: var(--c-text-muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.95rem; color: var(--c-text);
  transition: all 0.25s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--c-primary-dark); background: var(--c-primary-soft); }
.nav-links a.active { color: var(--c-primary-dark); background: var(--c-primary-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: 0.3s; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--c-ink-deep); color: #C9D4D4; padding: 72px 0 32px; position: relative; z-index: 2; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -40%; right: -10%; width: 50%; height: 80%; background: radial-gradient(circle, rgba(255,107,53,0.18), transparent 60%); filter: blur(40px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; position: relative; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { color: #8FA3A3; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #A8B8B8; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: #6F8080; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--c-primary-light); }

/* ---------- 通用组件 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); background: var(--c-bg-alt); color: var(--c-text-soft); letter-spacing: 0.04em; }
.tag.hot { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.tag.new { background: var(--c-gold-soft); color: #8A6A00; }
.tag.live { background: #FFE5E8; color: var(--c-accent-dark); }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); animation: pulse-red 1.2s infinite; }
@keyframes pulse-red { 0%,100%{opacity:1} 50%{opacity:0.3} }

.card { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-md); border: 1px solid var(--c-line-soft); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--c-line), transparent); margin: 0 auto; max-width: 120px; }

/* 滚动揭示动画 */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--c-surface); padding: 16px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-lg);
  }
  .nav-links.open a { padding: 14px 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.1rem; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }
}
