/* 糖心Vlog官网 - 视频站风格 / 移动端优先 */
:root {
  --bg: #0b0708;
  --bg-elevated: #161012;
  --bg-soft: #1e1216;
  --surface: #24161b;
  --border: rgba(255, 214, 160, 0.16);
  --text: #f7f1ef;
  --muted: #c4b0b4;
  --primary: #c81e3a;
  --primary-deep: #7a1024;
  --gold: #e8b84a;
  --pink: #ff3d7a;
  --accent-grad: linear-gradient(135deg, #f0c14b 0%, #ff7a3d 45%, #ff2d6a 100%);
  --radius: 12px;
  --nav-h: 56px;
  --dl-h: 64px;
  --max: 1120px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--dl-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(200, 30, 58, 0.28), transparent 55%),
    radial-gradient(900px 420px at 10% 0%, rgba(232, 184, 74, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #ffd98a;
}

.container {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 7, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.05rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(18, 10, 12, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px 16px;
  flex-direction: column;
  gap: 4px;
}

.nav-menu.open { display: flex; }

.nav-menu a {
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.98rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(200, 30, 58, 0.2);
  color: #fff;
}

/* Sticky download strip under nav */
.download-strip {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: linear-gradient(180deg, #1a0c10 0%, #12080b 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.download-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  justify-content: flex-start;
}

.dl-item {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.dl-item:hover {
  border-color: rgba(232, 184, 74, 0.45);
  background: #2c1a20;
  color: #fff;
  transform: translateY(-1px);
}

.dl-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dl-item .dl-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.dl-item .dl-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-item .dl-tag {
  font-size: 0.68rem;
  color: var(--gold);
}

.dl-item.official {
  border-color: rgba(200, 30, 58, 0.45);
  background: linear-gradient(135deg, rgba(200, 30, 58, 0.25), rgba(232, 184, 74, 0.08));
}

/* ========== Hero ========== */
/* 移动端上图下文；PC 左文案右配图 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
  padding: 14px 0 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero-media {
  position: relative;
  order: -1;
  width: 100%;
  line-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #12080b;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 408;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-media::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0;
  width: 100%;
  margin: 0;
  background: transparent;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 5vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero .lead {
  margin: 0 0 16px;
  max-width: 36em;
  color: #f0e4e6;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-grad);
  color: #1a0a0c;
}

.btn-primary:hover { color: #1a0a0c; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ========== Sections ========== */
main {
  padding-bottom: 48px;
}

.section {
  padding: 36px 0 8px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ad-slot {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(200, 30, 58, 0.28), rgba(232, 184, 74, 0.12)),
    var(--bg-elevated);
  border: 1px solid rgba(232, 184, 74, 0.28);
  box-shadow: var(--shadow);
}

.ad-slot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.ad-copy h2,
.ad-copy h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.ad-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 图文 3:7 */
.ratio-block {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  align-items: start;
}

.ratio-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.ratio-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.ratio-text h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.ratio-text p {
  margin: 0 0 12px;
  color: #e8dde0;
}

.article-body p {
  margin: 0 0 14px;
  color: #ebe0e3;
}

.article-body h2,
.article-body h3 {
  margin: 28px 0 12px;
  line-height: 1.35;
}

.article-body ul,
.article-body ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: #ebe0e3;
}

.article-body li { margin-bottom: 8px; }

.keyword-links a {
  margin-right: 8px;
  white-space: nowrap;
}

/* Cards / grids - interaction collections */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.media-card {
  display: block;
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 184, 74, 0.4);
  color: #fff;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #12080b;
}

.media-card .card-body {
  padding: 10px 12px 14px;
}

.media-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card .meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.artist-card {
  display: block;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
}

.artist-card:hover {
  color: #fff;
  transform: translateY(-2px);
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(232, 184, 74, 0.35);
  margin-bottom: 8px;
}

.artist-card span {
  font-size: 0.82rem;
  font-weight: 600;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.drama-card img {
  aspect-ratio: 16 / 10;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--gold); }

.breadcrumb span { color: var(--text); }

.page-hero {
  padding: 18px 0 8px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-page .article-body {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #090607;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a { color: #e8d6da; }

.footer-links a:hover { color: var(--gold); }

.footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Feature list compact */
.feature-points {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.feature-points li {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.feature-points {
  padding: 0;
}

.highlight {
  color: var(--gold);
  font-weight: 700;
}

/* APP download page cards */
.app-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-download-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.app-download-card.featured {
  border-color: rgba(200, 30, 58, 0.5);
  background:
    linear-gradient(135deg, rgba(200, 30, 58, 0.22), rgba(232, 184, 74, 0.08)),
    var(--bg-elevated);
}

.app-download-card > img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-download-body {
  min-width: 0;
  flex: 1;
}

.app-download-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.app-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a0a0c;
  background: var(--accent-grad);
}

.app-download-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-download-body .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .app-download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .app-download-body .btn {
    width: auto;
  }
}

/* Desktop */
@media (min-width: 768px) {
  :root {
    --nav-h: 64px;
    --dl-h: 72px;
  }

  body { font-size: 16px; }

  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 2px;
  }

  .nav-menu a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .download-strip-inner {
    gap: 10px;
    padding: 10px 0;
  }

  .dl-item {
    flex: 1 1 calc(25% - 10px);
    max-width: calc(25% - 8px);
  }

  .ratio-block {
    grid-template-columns: 3fr 7fr;
    gap: 28px;
    margin: 28px 0;
  }

  .ratio-block.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .ratio-block.reverse .ratio-media { order: 2; }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .artist-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
  }

  .drama-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .legal-page .article-body {
    padding: 28px 32px;
  }

  .ad-slot { padding: 20px 24px; }

  /* PC：左文案，右配图 */
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    padding: 32px 0 40px;
  }

  .hero-media {
    order: 0;
  }

  .hero-content {
    padding: 8px 0;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  }
}

.download-strip.pulse {
  animation: dlPulse 1.1s ease;
}

@keyframes dlPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
  40% { box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.65), 0 8px 28px rgba(200, 30, 58, 0.45); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover,
  .dl-item:hover,
  .media-card:hover { transform: none; }
  .download-strip.pulse { animation: none; }
}
