/* 糖心短视频竞赛与每日挑战平台：静态模板核心样式 */
:root {
  --primary: #FF6B35;
  --secondary: #004E89;
  --bg: #0A1628;
  --card: #1A2744;
  --accent: #FFD700;
  --text: #E8E8E8;
  --muted: #A9B6D3;
  --line: rgba(255,255,255,.12);
  --glow: 0 0 28px rgba(255,107,53,.35);
  --gold-glow: 0 0 28px rgba(255,215,0,.42);
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255,107,53,.20), transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(0,78,137,.36), transparent 33%),
    linear-gradient(180deg, #071225 0%, var(--bg) 48%, #060d18 100%);
  line-height: 1.75;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,22,40,.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .5px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #071225; font-weight: 900;
  box-shadow: var(--glow);
}
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 700; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; }

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 900; letter-spacing: 2px; text-transform: none; margin-bottom: 14px; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 950; letter-spacing: -1.8px; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 950; }
h3 { font-size: 23px; font-weight: 900; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 19px; color: #D8E2F5; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 900; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #ff8b3d); color: #fff; box-shadow: var(--glow); }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-gold { background: linear-gradient(135deg, var(--accent), #ffb000); color: #071225; box-shadow: var(--gold-glow); }

.panel, .card, .content-box, .contest-card, .judge-card, .prize-card, .rank-board, .upload-zone, .faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 24px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.50); }
.live-badge { position: absolute; left: 22px; top: 22px; background: rgba(255,107,53,.94); color: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 900; box-shadow: var(--glow); }
.pool-badge { position: absolute; right: 22px; bottom: 22px; background: rgba(255,215,0,.95); color: #071225; border-radius: 16px; padding: 12px 16px; font-weight: 950; box-shadow: var(--gold-glow); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.flip-unit {
  position: relative; background: linear-gradient(180deg, #243454, #0f1d34);
  border: 1px solid rgba(255,107,53,.36); border-radius: 14px;
  padding: 18px 8px; text-align: center; overflow: hidden;
}
.flip-unit::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.16); }
.flip-number { display: block; font-family: var(--mono); font-size: clamp(26px, 5vw, 48px); font-weight: 900; color: var(--accent); animation: flipPulse 1.4s infinite; }
.flip-label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
@keyframes flipPulse { 0%,100%{ transform: translateY(0); text-shadow: none;} 50%{ transform: translateY(-2px); text-shadow: 0 0 18px rgba(255,215,0,.45);} }
@keyframes glowPulse { 0%,100%{ filter: drop-shadow(0 0 0 rgba(255,215,0,.1)); } 50%{ filter: drop-shadow(0 0 18px rgba(255,215,0,.8)); } }
@keyframes progressMove { 0%{ background-position: 0 0; } 100%{ background-position: 44px 0; } }
@keyframes numberRise { from{ transform: translateY(8px); opacity: .55;} to{ transform: translateY(0); opacity: 1;} }

.section { padding: 78px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-head p { max-width: 650px; }
.grid { display: grid; gap: 22px; }
.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)); }
.card { padding: 20px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .9; }
.card img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 16px; background: #14223c; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 12px 0; }
.tag { display: inline-flex; align-items: center; border: 1px solid rgba(255,107,53,.30); color: var(--accent); background: rgba(255,107,53,.08); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }

.rank-board { overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 54px 1fr 90px 90px 110px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); animation: numberRise .55s ease both; }
.rank-row:last-child { border-bottom: none; }
.rank-num { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-family: var(--mono); font-weight: 900; }
.rank-row:nth-child(1) .rank-num, .rank-row:nth-child(2) .rank-num, .rank-row:nth-child(3) .rank-num { background: linear-gradient(135deg, var(--accent), #ff9f1c); color: #071225; animation: glowPulse 1.8s infinite; }
.rank-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,215,0,.6); }
.score { font-family: var(--mono); color: var(--accent); font-weight: 900; }
.up { color: #66ff99; font-weight: 900; }
.down { color: #ff8b8b; font-weight: 900; }

.upload-zone { padding: 32px; border-style: dashed; border-width: 2px; text-align: center; position: relative; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.upload-zone:hover, .upload-zone.is-active { border-color: var(--primary); background: rgba(255,107,53,.08); transform: translateY(-2px); }
.upload-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,107,53,.22), rgba(255,215,0,.18)); display: grid; place-items: center; color: var(--accent); font-size: 36px; }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 18px 0 8px; }
.progress span { display: block; height: 100%; width: 72%; background: repeating-linear-gradient(45deg, var(--primary) 0 12px, #ff9f1c 12px 24px); background-size: 44px 44px; animation: progressMove 1s linear infinite; }

.judge-card img, .prize-card img { aspect-ratio: 4/3; object-fit: cover; }
.judge-score { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 38px; border-radius: 999px; color: #071225; background: var(--accent); font-family: var(--mono); font-weight: 950; }
.price { color: var(--accent); font-family: var(--mono); font-size: 24px; font-weight: 950; }
.sponsor-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sponsor { min-height: 86px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.045); display: grid; place-items: center; color: #DCE7FF; font-weight: 950; text-align: center; }

.page-hero { padding: 68px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,107,53,.08), transparent); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.content-box { padding: 28px; }
.content-box h2 { margin-top: 28px; }
.content-box h2:first-child { margin-top: 0; }
.content-box ul, .content-box ol { color: var(--muted); padding-left: 22px; }
.content-box li { margin-bottom: 10px; }
.side-nav { position: sticky; top: 96px; padding: 20px; }
.side-nav a { display: block; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-nav a:hover { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: left; color: var(--muted); }
th { color: var(--text); background: rgba(255,107,53,.10); }
blockquote { margin: 20px 0; padding: 18px 20px; border-left: 4px solid var(--primary); background: rgba(255,107,53,.08); color: #F2F6FF; border-radius: 0 var(--radius) var(--radius) 0; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h3 { font-size: 18px; color: #fff; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 22px 0; }
.search-form input { width: 100%; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.07); padding: 13px 18px; outline: none; }
.search-form input:focus { border-color: var(--primary); box-shadow: var(--glow); }
.search-result { border-bottom: 1px solid var(--line); padding: 16px 0; }
.search-result mark { background: rgba(255,215,0,.28); color: #fff; }

.app-shot { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.footer { margin-top: 80px; padding: 44px 0 28px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.footer a { color: var(--muted); display: block; margin: 8px 0; }
.footer a:hover { color: var(--accent); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.back-home { display: inline-flex; margin-top: 18px; color: var(--accent); font-weight: 900; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; padding: 18px; border-radius: var(--radius); background: rgba(10,22,40,.98); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .article-layout, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sponsor-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .side-nav { position: static; }
  .rank-row { grid-template-columns: 42px 1fr 70px; }
  .rank-row .hide-sm { display: none; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero { min-height: auto; padding: 48px 0; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .search-form { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 38px 1fr; }
  .rank-row .score { justify-self: end; grid-column: 2; }
  .rank-row .hide-xs { display: none; }
  h1 { letter-spacing: -1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print { body { background: #fff; color: #000; } .site-header, .footer, .btn { display: none; } }
