﻿/* 糖心Vlog官网 — Cinematic Noir Brand */
:root {
  --bg: #070709;
  --bg-elevated: #121218;
  --bg-soft: #1a1a22;
  --text: #f4f0ec;
  --text-muted: #a39e97;
  --line: rgba(255, 255, 255, 0.08);
  --brand-a: #ffb347;
  --brand-b: #ff4d8d;
  --brand-c: #c44dff;
  --grad: linear-gradient(120deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  --grad-soft: linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(255, 77, 141, 0.12), rgba(196, 77, 255, 0.1));
  --nav-h: 64px;
  --promo-h: 56px;
  --radius: 4px;
  --max: 1180px;
  --font-display: "Syne", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 77, 141, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 179, 71, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
  padding-top: calc(var(--nav-h) + var(--promo-h));
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-b);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* —— Sticky download promo —— */
.app-promo {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--promo-h);
  height: auto;
  background: linear-gradient(90deg, #141018, #1a1218 40%, #18141f);
  border-bottom: 1px solid rgba(255, 77, 141, 0.25);
  overflow: visible;
}

.app-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
}

.promo-track {
  min-height: var(--promo-h);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  position: relative;
  padding: 0.4rem 0;
  -webkit-overflow-scrolling: touch;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

.promo-item:hover {
  border-color: rgba(255, 77, 141, 0.45);
  transform: translateY(-1px);
  color: var(--text);
}

.promo-item img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.promo-item .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
}

.promo-item .name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-item .tag {
  font-size: 0.66rem;
  color: var(--brand-a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-item.primary {
  border-color: rgba(255, 77, 141, 0.5);
  background: rgba(255, 77, 141, 0.12);
}

.promo-cta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--grad);
  color: #12080e;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.promo-cta:hover {
  color: #12080e;
  filter: brightness(1.05);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 9, 0.35) 0%, rgba(7, 7, 9, 0.55) 40%, rgba(7, 7, 9, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.75), transparent 55%);
}

.hero-content {
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-a);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--grad);
  color: #140a10;
}

.btn-primary:hover {
  color: #140a10;
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 77, 141, 0.4);
}

/* —— Sections —— */
.section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-b);
  margin-bottom: 0.55rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* 3:7 split blocks */
.split {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.split.reverse {
  grid-template-columns: 7fr 3fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}

.split-media.landscape {
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.split-body p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.split-body p:last-child {
  margin-bottom: 0;
}

.split-body a.inline-seo {
  color: var(--brand-a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split-body a.inline-seo:hover {
  color: var(--brand-b);
}

/* Artists */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.artist-card {
  text-align: center;
}

.artist-card .avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--grad);
  padding: 2px;
  margin-bottom: 0.55rem;
  transition: transform 0.25s;
}

.artist-card:hover .avatar {
  transform: scale(1.04);
}

.artist-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.artist-card .name {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Covers */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cover-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.cover-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.cover-item:hover img {
  transform: scale(1.05);
}

.cover-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-size: 0.78rem;
  color: #fff;
}

/* Feature chips / download apps */
.app-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.app-download {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 100%;
}

.app-download.featured {
  border-color: rgba(255, 77, 141, 0.45);
  background:
    linear-gradient(160deg, rgba(255, 77, 141, 0.12), transparent 55%),
    var(--bg-elevated);
}

.app-download .top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-download .top img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.app-download h3 {
  margin: 0;
  font-size: 1.1rem;
}

.app-download .badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.15);
  color: var(--brand-a);
}

.app-download p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

/* SEO longform */
.seo-article {
  color: var(--text-muted);
}

.seo-article h2,
.seo-article h3 {
  color: var(--text);
  font-family: var(--font-display);
}

.seo-article h2 {
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
}

.seo-article h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.seo-article p {
  margin: 0 0 1rem;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.seo-article li {
  margin-bottom: 0.45rem;
}

.seo-article strong {
  color: var(--text);
  font-weight: 600;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-b);
}

.breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.legal-content {
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050507;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--brand-b);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: rise 0.9s ease both;
  }

  .split-media,
  .cover-item,
  .artist-card {
    animation: fade-up 0.7s ease both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .split-media,
  .split-media.landscape {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .artist-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 58px;
    --promo-h: 58px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + var(--promo-h));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .app-promo {
    overflow: visible;
  }

  .app-promo .container {
    width: 100%;
    max-width: none;
    padding-inline: 0.5rem;
    margin: 0;
  }

  .promo-track {
    gap: 0.35rem;
    padding: 0.45rem 0;
    overflow-x: visible;
  }

  .promo-item {
    flex: 1 1 0;
    min-width: 0;
    gap: 0.3rem;
    padding: 0.25rem 0.4rem 0.25rem 0.25rem;
  }

  .promo-item img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .promo-item .name {
    font-size: 0.68rem;
  }

  .promo-item .tag {
    font-size: 0.58rem;
  }

  .promo-cta {
    display: none;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 3rem 0 2.25rem;
  }

  .artist-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 420px) {
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
