/* 糖心Vlog官网 - 品牌主题 */
:root {
  --bg: #080608;
  --bg-elevated: #121014;
  --bg-soft: #1a1518;
  --surface: #1e171c;
  --pink: #ff4d8d;
  --pink-soft: #ff7aa8;
  --pink-deep: #c9185a;
  --magenta: #e91e8c;
  --orange: #ff8a3d;
  --yellow: #ffc93c;
  --grad: linear-gradient(135deg, #ffc93c 0%, #ff8a3d 40%, #ff4d8d 100%);
  --text: #f7f2f4;
  --muted: #a89aa1;
  --line: rgba(255, 77, 141, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --nav-h: 64px;
  --ad-h: 72px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 138, 61, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--yellow);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 6, 8, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  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.35rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 77, 141, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* myads 广告位：内容顶部，下滑固定在导航下方 */
.site-ads-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: linear-gradient(180deg, #160e14 0%, #100b10 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.15rem 4% 0.35rem;
  min-height: 0;
}

.site-ads-wrap.is-empty,
.site-ads-wrap:empty {
  display: none;
}

.site-ads-wrap .applist-title {
  color: var(--pink-soft);
}

.site-ads-wrap #ads figcaption,
.site-ads-wrap #ads .caption {
  color: var(--muted);
}

.site-ads-wrap #ads {
  gap: 10px 16px;
}

@media (max-width: 720px) {
  .site-ads-wrap {
    padding: 0.1rem 2% 0.25rem;
  }

  .site-ads-wrap #ads {
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 4px 6px;
  }

  .site-ads-wrap #ads > div {
    width: auto;
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }

  .site-ads-wrap #ads img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto;
  }

  .site-ads-wrap #ads figcaption,
  .site-ads-wrap #ads .caption {
    max-width: 100%;
    font-size: 10px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 8, 0.25) 0%, rgba(8, 6, 8, 0.55) 45%, rgba(8, 6, 8, 0.95) 100%),
    linear-gradient(90deg, rgba(8, 6, 8, 0.65) 0%, transparent 45%);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.8rem;
  max-width: 640px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
  max-width: 34em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #1a0a10;
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
}

.btn-primary:hover {
  color: #1a0a10;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

/* Layout: 3:7 image-text sections */
.section {
  padding: 3.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--muted);
  max-width: 46em;
}

.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2rem;
}

.ratio-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.ratio-37.reverse .media-col {
  order: 2;
}

.ratio-37 .media-col img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ratio-37 .text-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: var(--pink-soft);
}

.ratio-37 .text-col p,
.seo-block p {
  color: #d9ced3;
  margin-bottom: 0.95rem;
  text-align: justify;
}

.seo-block h2,
.seo-block h3 {
  margin: 1.4rem 0 0.7rem;
}

.seo-block h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.seo-block h3 {
  font-size: 1.15rem;
  color: var(--pink-soft);
}

.seo-block ul,
.seo-block ol {
  margin: 0.6rem 0 1rem 1.2rem;
  color: #d9ced3;
}

.seo-block li {
  margin-bottom: 0.4rem;
}

/* Cards / grids */
.grid-videos,
.grid-artists,
.grid-dramas,
.grid-features {
  display: grid;
  gap: 1rem;
}

.grid-videos {
  grid-template-columns: repeat(4, 1fr);
}

.grid-artists {
  grid-template-columns: repeat(4, 1fr);
}

.grid-dramas {
  grid-template-columns: repeat(5, 1fr);
}

.grid-features {
  grid-template-columns: repeat(4, 1fr);
}

.thumb-card {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.thumb-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0a0a0a;
}

/* 最新视频封面为 16:9，完整展示不裁切 */
.grid-videos .thumb-card img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.thumb-card .cap {
  padding: 0.7rem 0.75rem 0.9rem;
}

.thumb-card .cap strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.thumb-card .cap span {
  font-size: 0.78rem;
  color: var(--muted);
}

.feature-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.feature-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.feature-shot figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #6a5a62;
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 48em;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #060406;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  color: var(--pink-soft);
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.footer-brand img {
  height: 36px;
}

.copyright {
  font-size: 0.82rem;
  color: #6f5f67;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Error pages */
.error-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.error-wrap .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 960px) {
  .ratio-37,
  .ratio-37.reverse {
    grid-template-columns: 1fr;
  }

  .ratio-37.reverse .media-col {
    order: 0;
  }

  .ratio-37 .media-col img {
    aspect-ratio: 16 / 10;
    max-height: 320px;
    width: 100%;
    object-fit: cover;
  }

  .grid-videos,
  .grid-artists {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-dramas,
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    background: rgba(10, 8, 10, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 4%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
  }

  /* 移动端 Hero：完整展示图片，文案置于图片下方，避免遮挡 */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    flex-shrink: 0;
    background: #0a0a0a;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    animation: none;
  }

  .hero-media::after {
    background: linear-gradient(180deg, transparent 70%, rgba(8, 6, 8, 0.55) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 1;
    padding: 1.35rem 0 1.6rem;
    max-width: none;
    background: var(--bg);
  }

  .hero-brand {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 1.05rem;
  }

  .hero-lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 2.2rem 0;
  }
}

@media (max-width: 420px) {
  .grid-videos,
  .grid-artists,
  .grid-dramas,
  .grid-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}
