/* ============================================================
   17c 娱乐热点社区 · 共享设计系统
   风格：现代 × 可爱 × 大气
   配色：紫罗兰 #7C5CFF / 珊瑚粉 #FF6B9D / 墨紫 #221A4A / 米白 #F7F5FF
   ============================================================ */

:root {
  /* 品牌色板 */
  --primary: #7C5CFF;
  --primary-deep: #5B3EE8;
  --pink: #FF6B9D;
  --pink-deep: #F43F87;
  --orange: #FF9A5C;
  --yellow: #FFD166;
  --teal: #3BD6C6;
  --ink: #221A4A;
  --ink-2: #4B4480;
  --text: #2A2356;
  --text-soft: #6E6A8F;
  --bg: #F7F5FF;
  --bg-2: #EFEAFF;
  --card: #FFFFFF;
  --line: #E7E1F7;

  /* 圆角与阴影 */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(60, 40, 140, 0.06);
  --shadow-md: 0 10px 30px rgba(60, 40, 140, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 40, 140, 0.16);

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Inter", "Segoe UI", var(--font);

  --header-h: 68px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 107, 157, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--text); }

/* 可访问性 */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

:focus-visible { outline: 3px solid rgba(124, 92, 255, 0.55); outline-offset: 2px; border-radius: 6px; }

/* ============ 通用区块标题 ============ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.sec-head .eyebrow { font-size: .82rem; letter-spacing: .14em; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; }
.sec-head .more { font-size: .92rem; color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.sec-head .more:hover { gap: 9px; }

.section { padding: 66px 0; }
.section--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(231, 225, 247, 0.8);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff; display: grid; place-items: center; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.35);
}
.logo b { color: var(--primary); }

.nav-links { display: flex; gap: 6px; margin-left: 18px; flex: 1; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: .95rem; font-weight: 600; color: var(--text-soft);
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, var(--primary), var(--pink-deep)); box-shadow: 0 6px 16px rgba(244, 63, 135, 0.28); }

.nav-cta {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .93rem; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, var(--pink), var(--primary));
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.32);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 92, 255, 0.42); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; margin-left: auto;
  background: var(--bg-2); color: var(--ink); font-size: 1.3rem;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 14px 4%;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.96);
}
.mobile-menu a { padding: 13px 16px; border-radius: 14px; font-weight: 600; color: var(--text); }
.mobile-menu a[aria-current="page"] { color: var(--primary); background: var(--bg-2); }
.mobile-menu .nav-cta { margin: 8px 0 4px; text-align: center; }
.mobile-menu.open { display: flex; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--pink-deep)); box-shadow: 0 10px 24px rgba(124, 92, 255, 0.34); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(124, 92, 255, 0.44); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, 0.75); border: 1.5px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.btn--light { color: var(--primary-deep); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.btn--light:hover { transform: translateY(-3px); }
.btn--sm { padding: 8px 16px; font-size: .86rem; }
.btn--block { width: 100%; }

/* ============ Hero（首页） ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(255, 107, 157, 0.55), transparent 55%),
    radial-gradient(700px 460px at 12% 82%, rgba(59, 214, 198, 0.28), transparent 50%),
    linear-gradient(135deg, #2A1C66 0%, #4A2BD9 46%, #7C5CFF 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; right: -140px; top: -160px; border: 60px solid rgba(255, 255, 255, 0.06); }
.hero::after { width: 320px; height: 320px; left: -120px; bottom: -140px; background: rgba(255, 255, 255, 0.05); }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 88px 0 96px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .6); } 50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, 0); } }

.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 900; line-height: 1.16; margin: 20px 0 18px; letter-spacing: -0.02em; }
.hero .gradient-text {
  background: linear-gradient(100deg, #FFD166, #FF6B9D, #3BD6C6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.06rem; color: rgba(255, 255, 255, 0.85); max-width: 560px; margin-bottom: 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hstat .num { font-family: var(--font-num); font-size: 1.7rem; font-weight: 800; color: var(--yellow); }
.hstat .lbl { font-size: .86rem; color: rgba(255, 255, 255, 0.75); }

/* 手机 mockup（纯 CSS 绘制） */
.hero-art { display: grid; place-items: center; position: relative; }
.phone {
  width: 232px; aspect-ratio: 9 / 18.6; border-radius: 38px; position: relative;
  background: linear-gradient(160deg, #FFFFFF, #F0EAFF);
  box-shadow: 0 40px 80px rgba(20, 10, 60, 0.45), inset 0 0 0 2px rgba(255,255,255,.7);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transform: rotate(-4deg);
}
.phone::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 16px; background: #221A4A; border-radius: 999px; z-index: 2;
}
.phone-screen { flex: 1; border-radius: 24px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 14px 8px; }
.phone-nav .ph-logo { font-weight: 900; color: var(--primary); font-size: .95rem; }
.phone-nav .ph-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--yellow)); }
.phone-tabs { display: flex; gap: 6px; padding: 4px 14px 8px; }
.phone-tabs span { font-size: .62rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--text-soft); font-weight: 700; }
.phone-tabs span.on { background: linear-gradient(135deg, var(--primary), var(--pink-deep)); color: #fff; }
.phone-cards { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-card { border-radius: 14px; background: var(--bg); display: flex; gap: 8px; padding: 8px; align-items: center; }
.ph-card .th { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--pink)); flex: none; }
.ph-card:nth-child(2) .th { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.ph-card:nth-child(3) .th { background: linear-gradient(135deg, var(--teal), var(--primary)); }
.ph-card .lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ph-card .lines i { height: 7px; border-radius: 4px; background: #DCD5F5; display: block; }
.ph-card .lines i:last-child { width: 62%; }
.phone-float {
  position: absolute; background: rgba(255, 255, 255, 0.92); border-radius: 18px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  font-size: .84rem; font-weight: 700; color: var(--ink); animation: floaty 4.5s ease-in-out infinite;
}
.phone-float .ico { font-size: 1.25rem; }
.phone-float--1 { top: 8%; right: 0; }
.phone-float--2 { bottom: 10%; left: -6%; animation-delay: 1.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============ 热榜 ticker ============ */
.ticker { background: var(--ink); color: #fff; padding: 13px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 22px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--orange)); white-space: nowrap;
}
.ticker-track { display: flex; gap: 46px; overflow: hidden; }
.ticker-track ul { display: flex; gap: 46px; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-track a { color: rgba(255, 255, 255, 0.85); font-size: .92rem; transition: color .2s; }
.ticker-track a:hover { color: var(--yellow); }
.ticker-track li::before { content: "✦"; color: var(--pink); margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 卡片通用 ============ */
.card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ============ 热榜预览（首页 TOP3） ============ */
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.top-card { padding: 26px; position: relative; overflow: hidden; }
.top-card .rank { font-family: var(--font-num); font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--primary); opacity: .9; }
.top-card:nth-child(2) .rank { color: var(--pink); }
.top-card:nth-child(3) .rank { color: var(--orange); }
.top-card .hot { font-size: .82rem; color: var(--pink-deep); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; margin: 10px 0 4px; }
.top-card h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 8px; line-height: 1.45; }
.top-card p { font-size: .88rem; color: var(--text-soft); margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-2); color: var(--ink-2); }
.chip--pink { background: rgba(255, 107, 157, .12); color: var(--pink-deep); }
.chip--teal { background: rgba(59, 214, 198, .14); color: #0E8F80; }

.rank-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.rank-item .rn { font-family: var(--font-num); font-weight: 900; font-size: 1.15rem; color: var(--text-soft); width: 26px; text-align: center; }
.rank-item:nth-child(-n+2) .rn { color: var(--pink-deep); }
.rank-item .txt { flex: 1; font-weight: 700; font-size: .93rem; line-height: 1.4; }
.rank-item .up { color: #E94F4F; font-size: .8rem; font-weight: 800; }

/* ============ 视频卡片 ============ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card { overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.07); }
.video-thumb .dur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(10, 8, 30, 0.78); color: #fff;
  font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px);
}
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--primary-deep); display: grid; place-items: center; font-size: 1.05rem;
  transform: scale(.86); opacity: 0; transition: transform .25s, opacity .25s;
}
.video-card:hover .play { transform: scale(1); opacity: 1; }
.video-body { padding: 14px 16px 16px; }
.video-body h3 { font-size: .98rem; font-weight: 800; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-soft); }
.video-meta .author { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink-2); }
.video-meta .author .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--pink)); display: inline-block; }
.video-meta .likes { font-weight: 700; }

/* ============ 频道入口 ============ */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.channel-card { overflow: hidden; padding: 0; }
.channel-card .cc-cover { position: relative; height: 132px; }
.channel-card .cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.channel-card .cc-cover .emoji { position: absolute; right: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 1.5rem; }
.channel-card .cc-body { padding: 26px 22px 22px; }
.channel-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.channel-card p { font-size: .86rem; color: var(--text-soft); margin-bottom: 14px; }
.channel-card .follow { font-size: .84rem; padding: 7px 16px; border-radius: 999px; background: var(--bg-2); color: var(--primary); font-weight: 800; transition: all .2s; }
.channel-card .follow.followed { background: linear-gradient(135deg, var(--primary), var(--pink-deep)); color: #fff; }

/* ============ App 下载 banner ============ */
.app-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: 54px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(120deg, #4A2BD9, #7C5CFF 45%, #FF6B9D); }
.app-banner::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.app-banner::after { content: ""; position: absolute; width: 180px; height: 180px; right: 90px; bottom: -110px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.app-banner .ab-text { position: relative; z-index: 1; }
.app-banner h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-bottom: 10px; }
.app-banner p { color: rgba(255, 255, 255, 0.85); font-size: .98rem; }
.app-banner .btn { position: relative; z-index: 1; }

/* ============ 页头（内页） ============ */
.page-hero { position: relative; color: #fff; padding: 74px 0 84px; overflow: hidden; background: linear-gradient(135deg, #2A1C66, #4A2BD9 55%, #7C5CFF); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, rgba(255, 107, 157, .5), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumb { font-size: .86rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.page-hero .crumb a:hover { color: var(--yellow); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 900; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em; }
.page-hero p { font-size: 1rem; color: rgba(255, 255, 255, 0.82); max-width: 640px; }

/* ============ Tab（热榜页） ============ */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tab-btn { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; background: #fff; border: 1.5px solid var(--line); color: var(--text-soft); transition: all .2s; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--pink-deep)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(124, 92, 255, 0.3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 榜单列表 */
.board { display: flex; flex-direction: column; gap: 14px; }
.board-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; }
.board-item .rank-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; font-size: 1.3rem; background: var(--bg-2); color: var(--ink-2); }
.board-item:nth-child(1) .rank-badge { background: linear-gradient(135deg, #FFD166, #FF9A5C); color: #fff; box-shadow: 0 8px 18px rgba(255, 154, 92, .4); }
.board-item:nth-child(2) .rank-badge { background: linear-gradient(135deg, #E9E9F5, #BFC4E8); color: #4B4480; }
.board-item:nth-child(3) .rank-badge { background: linear-gradient(135deg, #E09A6B, #C27A4A); color: #fff; }
.board-item .b-title { font-weight: 800; font-size: 1.02rem; line-height: 1.5; margin-bottom: 7px; }
.board-item .b-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--text-soft); }
.board-item .b-heat { font-family: var(--font-num); font-weight: 800; color: var(--pink-deep); font-size: .92rem; }
.board-item .b-trend { font-weight: 800; font-size: .84rem; }
.b-trend.up { color: #E94F4F; }
.b-trend.down { color: #2AA97F; }
.board-item .b-cta { font-size: .85rem; font-weight: 800; color: var(--primary); background: var(--bg-2); padding: 8px 16px; border-radius: 999px; transition: all .2s; }
.board-item .b-cta:hover { background: linear-gradient(135deg, var(--primary), var(--pink-deep)); color: #fff; }

/* 侧栏 */
.side-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.side-card { padding: 24px; }
.side-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.side-card li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.side-card li:last-child { border-bottom: none; }
.side-card li .n { font-family: var(--font-num); color: var(--primary); font-weight: 900; }
.side-card .tip { font-size: .84rem; color: var(--text-soft); line-height: 1.8; }
.side-card .tip b { color: var(--primary); }

/* ============ 短视频页（瀑布流） ============ */
.search-bar { display: flex; gap: 12px; max-width: 640px; margin-bottom: 28px; }
.search-bar input { flex: 1; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 92, 255, .12); }
.search-bar .btn { flex: none; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--text-soft); transition: all .2s; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.masonry { columns: 4 240px; column-gap: 20px; }
.masonry .video-card { break-inside: avoid; margin-bottom: 20px; }

/* ============ 频道页 ============ */
.feature-channel { display: grid; grid-template-columns: 420px 1fr; gap: 26px; padding: 0; overflow: hidden; }
.feature-channel.flip { grid-template-columns: 1fr 420px; }
.feature-channel.flip .fc-cover { order: 2; }
.feature-channel.flip .fc-body { order: 1; }
.feature-channel .fc-cover img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.feature-channel .fc-body { padding: 30px; display: flex; flex-direction: column; }
.feature-channel .fc-body h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.feature-channel .fc-body > p { color: var(--text-soft); font-size: .94rem; margin-bottom: 18px; }
.fc-items { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fc-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: var(--bg); transition: background .2s; }
.fc-item:hover { background: var(--bg-2); }
.fc-item .fc-th { width: 58px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--pink)); flex: none; }
.fc-item:nth-child(2) .fc-th { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.fc-item:nth-child(3) .fc-th { background: linear-gradient(135deg, var(--teal), var(--primary)); }
.fc-item .fc-txt { flex: 1; font-size: .9rem; font-weight: 700; line-height: 1.45; }
.fc-item .fc-hot { font-size: .76rem; color: var(--pink-deep); font-weight: 800; white-space: nowrap; }

.creator-cta { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; padding: 56px; text-align: center; background: linear-gradient(120deg, #221A4A, #4A2BD9 55%, #FF6B9D); }
.creator-cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; margin-bottom: 12px; }
.creator-cta p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 26px; }

/* ============ 关于页 ============ */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.story-grid h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-bottom: 16px; letter-spacing: -0.02em; }
.story-grid p { color: var(--text-soft); margin-bottom: 14px; line-height: 1.9; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 28px; text-align: center; }
.pillar .pi { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem; background: var(--bg-2); }
.pillar h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.pillar p { font-size: .88rem; color: var(--text-soft); }

/* 表单 */
.form-card { padding: 30px; max-width: 620px; }
.form-card label { display: block; font-weight: 700; font-size: .9rem; margin: 18px 0 8px; }
.form-card input, .form-card textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 255, .1); }
.form-card .btn { margin-top: 22px; width: 100%; }

/* FAQ */
.faq-item { padding: 0; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; text-align: left; font-weight: 800; font-size: 1rem; }
.faq-q .arrow { transition: transform .25s; color: var(--primary); font-weight: 900; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 24px 22px; color: var(--text-soft); font-size: .93rem; line-height: 1.85; }

/* 下载卡片 */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card { padding: 30px; text-align: center; }
.dl-card .di { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; background: var(--bg-2); }
.dl-card h3 { font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.dl-card p { font-size: .86rem; color: var(--text-soft); margin-bottom: 16px; }

/* ============ 弹窗 ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px;
  background: rgba(22, 14, 54, 0.55); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { width: min(460px, 100%); background: #fff; border-radius: var(--r-xl); padding: 34px 30px 30px; position: relative; box-shadow: var(--shadow-lg); transform: translateY(18px) scale(.97); transition: transform .25s; }
.modal-backdrop.open .modal { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; background: var(--bg-2); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; }
.modal h3 { font-size: 1.35rem; font-weight: 900; text-align: center; margin-bottom: 8px; }
.modal .m-sub { text-align: center; color: var(--text-soft); font-size: .9rem; margin-bottom: 24px; }
.qr-box { width: 168px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.qr-box i { aspect-ratio: 1; background: var(--ink); border-radius: 3px; }
.qr-box i.o { background: transparent; }
.modal .btn { margin-bottom: 10px; }
.modal .m-tip { text-align: center; font-size: .8rem; color: var(--text-soft); margin-top: 12px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: toastIn .3s ease; }
.toast.leaving { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============ Footer ============ */
.site-footer { background: #191233; color: rgba(255, 255, 255, 0.72); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: .96rem; font-weight: 800; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: .9rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--yellow); }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: .88rem; line-height: 1.8; margin-top: 14px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font-size: 1.05rem; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: .8rem; color: rgba(255, 255, 255, 0.5); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .channel-grid, .top-grid, .pillars, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .side-layout { grid-template-columns: 1fr; }
  .feature-channel { grid-template-columns: 1fr; }
  .feature-channel.flip { grid-template-columns: 1fr; }
  .feature-channel.flip .fc-cover, .feature-channel.flip .fc-body { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-inner .nav-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-art { order: -1; margin-bottom: 6px; }
  .phone { transform: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-list { grid-template-columns: 1fr; }
  .app-banner { flex-direction: column; text-align: center; padding: 42px 28px; }
  .board-item { grid-template-columns: 52px 1fr; gap: 14px; }
  .board-item .b-cta { grid-column: 1 / -1; justify-self: start; }
  .story-grid { grid-template-columns: 1fr; }
  .phone-float--1 { right: 4%; }
  .phone-float--2 { left: -2%; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .video-grid, .channel-grid, .top-grid, .pillars, .dl-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .ticker-track ul { gap: 32px; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .tabs .tab-btn { flex: 1; text-align: center; }
  .creator-cta, .app-banner { padding: 38px 22px; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
