/* ============================================================
   看料官网 · 设计系统 styles.css
   配色：珊瑚橙红 + 墨蓝 + 奶油暖白
   风格：现代 · 可爱大气 · 专业
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：珊瑚橙红（热度 / 活力） */
  --c-coral: #FF5A36;
  --c-coral-deep: #E8412A;
  --c-coral-light: #FF8A6B;
  --c-coral-soft: #FFE9E3;

  /* 辅色：墨蓝（专业 / 信任） */
  --c-ink: #16223E;
  --c-ink-soft: #2A3B5C;
  --c-ink-muted: #6B7A99;

  /* 中性色：奶油暖白系 */
  --c-bg: #FFFBF6;
  --c-bg-alt: #F6F0E8;
  --c-card: #FFFFFF;
  --c-line: #EADFC9;
  --c-text: #1A2540;
  --c-text-soft: #5C6B8A;
  --c-white: #FFFFFF;

  /* 强调：明黄 */
  --c-accent: #FFC83D;

  /* 功能色 */
  --c-success: #2DBA7E;
  --c-warn: #FF9500;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(22, 34, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 34, 62, 0.10);
  --shadow-lg: 0 20px 50px rgba(22, 34, 62, 0.14);
  --shadow-coral: 0 10px 30px rgba(255, 90, 54, 0.28);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* 间距 */
  --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;

  /* 字体 */
  --ff-display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --ff-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ff-num: "DIN Alternate", "Helvetica Neue", "Arial", sans-serif;

  /* 过渡 */
  --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
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; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 960px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 246, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--c-ink);
  letter-spacing: 0.5px;
}
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c-coral) 0%, var(--c-coral-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px; font-weight: 900;
  box-shadow: var(--shadow-coral);
  transform: rotate(-4deg);
  transition: var(--t-base);
}
.nav__brand:hover .nav__logo { transform: rotate(4deg) scale(1.05); }
.nav__brand span { color: var(--c-coral); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: var(--t-fast);
  position: relative;
}
.nav__link:hover { color: var(--c-coral); background: var(--c-coral-soft); }
.nav__link.is-active { color: var(--c-coral); background: var(--c-coral-soft); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  transition: var(--t-base);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-coral) 0%, var(--c-coral-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 90, 54, 0.4); }
.btn--ghost {
  background: var(--c-white);
  color: var(--c-ink);
  border: 1.5px solid var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-coral); color: var(--c-coral); transform: translateY(-2px); }
.btn--dark {
  background: var(--c-ink);
  color: #fff;
}
.btn--dark:hover { background: var(--c-ink-soft); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding: 48px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-coral);
  background: var(--c-coral-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.section__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-coral);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.section__title em { color: var(--c-coral); font-style: normal; }
.section__subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--c-text-soft);
  max-width: 560px;
}
.section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--c-coral);
  font-size: 15px;
  transition: var(--t-fast);
  flex-shrink: 0;
}
.section__more:hover { gap: 12px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--t-base);
  border: 1px solid rgba(234, 223, 201, 0.5);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.3px;
}
.tag--coral { color: var(--c-coral); background: var(--c-coral-soft); }
.tag--ink { color: #fff; background: var(--c-ink); }
.tag--accent { color: #8a6a00; background: rgba(255, 200, 61, 0.25); }
.tag--ghost { color: var(--c-ink-soft); background: var(--c-bg-alt); }
.tag--live {
  color: #fff; background: var(--c-coral);
  position: relative; padding-left: 18px;
}
.tag--live::before {
  content: "";
  position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: pulse 1.5s infinite;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand .nav__brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer__col h4 {
  color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; transition: var(--t-fast); }
.footer__col a:hover { color: var(--c-coral-light); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: var(--t-fast);
}
.footer__social:hover { background: var(--c-coral); color: #fff; transform: translateY(-2px); }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ---------- 通用工具 ---------- */
.text-coral { color: var(--c-coral); }
.text-ink { color: var(--c-ink); }
.text-soft { color: var(--c-text-soft); }
.bg-alt { background: var(--c-bg-alt); }
.flex { display: flex; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; }
.center { text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav__inner { height: 60px; }
  .nav__links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: var(--t-base);
    border-bottom: 1px solid var(--c-line);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 16px; }
  .nav__burger {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--c-bg-alt);
  }
  .nav__burger span {
    display: block; width: 20px; height: 2px;
    background: var(--c-ink); border-radius: 2px;
    position: relative;
    transition: var(--t-fast);
  }
  .nav__burger span::before, .nav__burger span::after {
    content: ""; position: absolute; left: 0;
    width: 20px; height: 2px; background: var(--c-ink);
    border-radius: 2px; transition: var(--t-fast);
  }
  .nav__burger span::before { top: -6px; }
  .nav__burger span::after { top: 6px; }
  .nav__burger.is-open span { background: transparent; }
  .nav__burger.is-open span::before { top: 0; transform: rotate(45deg); }
  .nav__burger.is-open span::after { top: 0; transform: rotate(-45deg); }
  .section { padding: 56px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--c-coral-light); border-radius: 10px; border: 2px solid var(--c-bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--c-coral); }
