/* ==========================================================================
   51吃瓜网 - 吃瓜第一站 / 全网最快最全的吃瓜平台
   全站共用样式表（响应式 / 深色潮流主题 / 西瓜红+瓜绿配色）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --c-bg: #0a0c11;
  --c-bg-soft: #10131b;
  --c-card: #161a24;
  --c-card-2: #1c2130;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-strong: rgba(255, 255, 255, 0.16);

  --c-primary: #ff3355;
  --c-primary-deep: #d61b3c;
  --c-primary-soft: #ff6b81;
  --c-secondary: #ff8a3d;
  --c-accent: #1fd8a4;
  --c-accent-deep: #0fa87c;

  --c-text: #e9ecf3;
  --c-text-sub: #a8b1c2;
  --c-text-mute: #737d8f;

  --grad-brand: linear-gradient(135deg, #ff3355 0%, #ff6b3d 55%, #ffb03d 100%);
  --grad-accent: linear-gradient(135deg, #1fd8a4 0%, #17b8d9 100%);
  --grad-dark: linear-gradient(180deg, #10131b 0%, #0a0c11 100%);

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 12px 36px rgba(255, 51, 85, 0.32);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(900px 480px at 12% -6%, rgba(255, 51, 85, 0.16), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(31, 216, 164, 0.12), transparent 60%),
    radial-gradient(700px 600px at 50% 108%, rgba(255, 138, 61, 0.1), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- 3. 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section--tight {
  padding: 60px 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--c-primary-soft);
  background: rgba(255, 51, 85, 0.1);
  border: 1px solid rgba(255, 51, 85, 0.28);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.section-title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--c-text-sub);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(255, 51, 85, 0.46);
}

.btn-ghost {
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary-soft);
  color: #fff;
  background: rgba(255, 51, 85, 0.14);
}

.btn-accent {
  background: var(--grad-accent);
  color: #06231b;
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(31, 216, 164, 0.36);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  background: rgba(10, 12, 17, 0.94);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.nav-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.nav-brand .brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--c-text-mute);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 9px 16px;
  font-size: 15px;
  color: var(--c-text-sub);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--c-line-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero 主视觉 ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 51, 85, 0.28), transparent 66%);
  filter: blur(20px);
  animation: floaty 9s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 216, 164, 0.2), transparent 66%);
  filter: blur(20px);
  animation: floaty 11s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--c-accent);
  background: rgba(31, 216, 164, 0.1);
  border: 1px solid rgba(31, 216, 164, 0.3);
  border-radius: var(--radius-pill);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(31, 216, 164, 0.7);
  animation: pulseDot 1.8s infinite;
}

.hero-title {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 1px;
}

.hero-title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 620px;
  font-size: 17px;
  color: var(--c-text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px dashed var(--c-line-strong);
}

.hero-stats .stat-num {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--c-text-mute);
}

.hero-media {
  position: relative;
}

.hero-media .pic-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  box-shadow: var(--shadow-md);
}

.hero-media .pic-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero-media:hover .pic-main img {
  transform: scale(1.05);
}

.hero-media .pic-float {
  position: absolute;
  left: -26px;
  bottom: -28px;
  width: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--c-bg-soft);
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}

.hero-media .pic-float img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-media .tag-float {
  position: absolute;
  top: 18px;
  right: -14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  animation: floaty 5s ease-in-out infinite reverse;
}

/* ---------- 7. 通用页面小 Hero（内页） ---------- */
.page-hero {
  position: relative;
  padding: 62px 0 50px;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(255, 51, 85, 0.06), transparent);
}

.page-hero .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-mute);
  margin-bottom: 16px;
}

.page-hero .crumb a:hover {
  color: var(--c-primary-soft);
}

.page-hero h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.3;
}

.page-hero p {
  margin-top: 14px;
  max-width: 720px;
  color: var(--c-text-sub);
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--c-card), var(--c-card-2));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(255, 51, 85, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 51, 85, 0.4);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.26);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--c-text-sub);
}

.card .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-soft);
  transition: gap 0.3s var(--ease);
}

.card:hover .link-more {
  gap: 12px;
}

/* ---------- 9. 资讯列表 ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 51, 85, 0.4);
  box-shadow: var(--shadow-md);
}

.news-card .thumb {
  position: relative;
  overflow: hidden;
}

.news-card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-card:hover .thumb img {
  transform: scale(1.08);
}

.news-card .cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 51, 85, 0.92);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.news-card .body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--c-text-mute);
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-card h3 a:hover {
  color: var(--c-primary-soft);
}

.news-card p {
  font-size: 14px;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-mute);
}

/* ---------- 10. 排行 / 侧栏列表 ---------- */
.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-line);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list .no {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-sub);
  background: rgba(255, 255, 255, 0.06);
}

.rank-list li:nth-child(1) .no,
.rank-list li:nth-child(2) .no,
.rank-list li:nth-child(3) .no {
  color: #fff;
  background: var(--grad-brand);
}

.rank-list .txt {
  flex: 1;
}

.rank-list .txt a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.rank-list .txt a:hover {
  color: var(--c-primary-soft);
}

.rank-list .txt small {
  color: var(--c-text-mute);
  font-size: 12.5px;
}

/* ---------- 11. FAQ ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(255, 51, 85, 0.45);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.faq-q .mark {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  color: var(--c-primary-soft);
  background: rgba(255, 51, 85, 0.14);
  transition: transform 0.35s var(--ease);
}

.faq-item.is-open .faq-q .mark {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.faq-a .inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--c-text-sub);
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
}

/* ---------- 12. CTA ---------- */
.cta {
  position: relative;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.2), rgba(255, 138, 61, 0.14) 48%, rgba(31, 216, 164, 0.16));
  border: 1px solid rgba(255, 51, 85, 0.32);
}

.cta::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 55%);
  animation: floaty 10s ease-in-out infinite;
  pointer-events: none;
}

.cta h2 {
  position: relative;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.3;
}

.cta p {
  position: relative;
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--c-text-sub);
}

.cta .cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- 13. 正文文章 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.article {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
}

.article-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13.5px;
  color: var(--c-text-mute);
}

.article-meta .pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--c-primary-soft);
  background: rgba(255, 51, 85, 0.12);
}

.article-figure {
  margin: 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-text-mute);
  background: var(--c-card-2);
}

.article-body h2 {
  margin: 32px 0 14px;
  font-size: 22px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid var(--c-primary);
}

.article-body h3 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary-soft);
}

.article-body p {
  margin-bottom: 16px;
  color: #cfd6e2;
  font-size: 16px;
}

.article-body ul {
  margin: 0 0 18px;
  padding-left: 4px;
}

.article-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--c-text-sub);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(31, 216, 164, 0.08);
  color: var(--c-text-sub);
  font-size: 15.5px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.article-tags a {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line-strong);
  color: var(--c-text-sub);
  transition: all 0.28s var(--ease);
}

.article-tags a:hover {
  color: #fff;
  border-color: var(--c-primary-soft);
  background: rgba(255, 51, 85, 0.16);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.widget {
  padding: 24px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.widget h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

/* ---------- 14. 服务 / 套餐 ---------- */
.plan {
  position: relative;
  padding: 32px 28px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.plan.is-hot {
  border-color: var(--c-primary);
  background: linear-gradient(180deg, rgba(255, 51, 85, 0.12), var(--c-card));
}

.plan .flag {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
}

.plan h3 {
  font-size: 20px;
  font-weight: 700;
}

.plan .price {
  margin: 16px 0 4px;
  font-size: 40px;
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-mute);
  -webkit-text-fill-color: var(--c-text-mute);
}

.plan .plan-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex: 1;
}

.plan ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-text-sub);
}

.plan ul li i {
  color: var(--c-accent);
  font-style: normal;
}

/* ---------- 15. 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  color: var(--c-text-sub);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-text-mute);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: rgba(255, 51, 85, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 51, 85, 0.14);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-text-mute);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 62px 0 26px;
  border-top: 1px solid var(--c-line);
  background: var(--grad-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-brand .nav-brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--c-text-sub);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--c-text-sub);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col ul a:hover {
  color: var(--c-primary-soft);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-mute);
}

.footer-bottom .tags span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
}

/* ---------- 16.5 阅读进度条 ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 0;
  height: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(255, 51, 85, 0.6);
  transition: width 0.1s linear;
}

/* ---------- 17. 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s var(--ease);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ---------- 18. 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ---------- 19. 关键帧 ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(31, 216, 164, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(31, 216, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 216, 164, 0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 51, 85, 0.3); }
  50% { box-shadow: 0 12px 34px rgba(255, 51, 85, 0.6); }
}

@keyframes marqueeX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 顶部滚动快讯 */
.ticker {
  border-bottom: 1px solid var(--c-line);
  background: rgba(255, 51, 85, 0.07);
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font-size: 13.5px;
}

.ticker .label {
  flex: 0 0 auto;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
}

.ticker .track {
  flex: 1;
  overflow: hidden;
}

.ticker .track-inner {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  animation: marqueeX 26s linear infinite;
}

.ticker .track-inner span {
  color: var(--c-text-sub);
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-media {
    max-width: 620px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 20px;
    background: rgba(10, 12, 17, 0.98);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .nav-links.is-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 26px 20px;
  }

  .cta {
    padding: 46px 22px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 50px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .hero-media .pic-float {
    width: 140px;
    left: -10px;
    bottom: -18px;
  }

  .hero-media .tag-float {
    right: 6px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta {
    gap: 10px;
  }

  .plan .price {
    font-size: 34px;
  }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
