/* dy-s.beauty — 影院式竖屏视频官网 · 移动端优先 */
:root {
  --bg-deep: #08080f;
  --bg-panel: #11111c;
  --bg-card: #181826;
  --bg-elevated: #1f1f30;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f2f2f6;
  --text-soft: #a8a8bc;
  --text-dim: #6e6e82;
  --crimson: #ff2d55;
  --crimson-soft: #ff4d6d;
  --gold: #ffcc00;
  --cyan: #00d4ff;
  --violet: #8b5cf6;
  --gradient-cta: linear-gradient(135deg, #ff2d55 0%, #ff6b35 55%, #ffcc00 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 85, 0.18), transparent 65%);
  --header-h: 52px;
  --fixed-h: 58px;
  --dock-h: 62px;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "STHeiti", "SimHei", var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.78;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

body.no-dock { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover { color: var(--gold); }

.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand img { height: 28px; width: auto; }

.brand span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover { color: #111; opacity: 0.92; }

.header-cta svg { width: 14px; height: 14px; }

/* ===== Fixed download strip ===== */
.download-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(12, 12, 20, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  padding: 6px 0;
}

.download-fixed.is-visible { transform: translateY(0); }
.download-fixed.is-hidden { display: none; }

.download-fixed-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px;
  max-width: 100%;
}

.download-fixed-inner::-webkit-scrollbar { display: none; }

.download-fixed-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  padding-right: 4px;
  border-right: 1px solid var(--line);
  margin-right: 2px;
  padding-right: 10px;
}

.download-fixed-inner > .ads-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.download-fixed-inner .ads-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: auto;
}

.download-fixed-inner img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.download-fixed-inner .caption {
  display: none;
}

/* ===== Ad zone ===== */
.ad-zone {
  padding: 14px 0 6px;
  background: var(--gradient-glow);
  border-bottom: 1px solid var(--line);
}

.ad-zone.is-hidden { display: none; }

.ad-zone-head {
  text-align: center;
  margin-bottom: 10px;
}

.ad-zone-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.ad-zone-head p {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

#ads a:hover img { transform: translateY(-3px) scale(1.04); }

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ===== Cinema hero ===== */
.cinema-hero {
  position: relative;
  padding: 28px 0 36px;
  overflow: hidden;
}

.cinema-hero::before,
.cinema-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background: #000;
  z-index: 2;
  pointer-events: none;
}

.cinema-hero::before { top: 0; }
.cinema-hero::after { bottom: 0; }

.cinema-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 45, 85, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.08), transparent 40%),
    var(--bg-deep);
}

.cinema-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  align-items: center;
}

.cinema-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 14px;
}

.cinema-copy h1 em {
  font-style: normal;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.cinema-lead {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: #111;
  font-weight: 700;
  font-size: 14px;
}

.btn-primary:hover { color: #111; opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover { border-color: var(--crimson); color: var(--text); }

.cinema-screen {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.cinema-screen::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(145deg, rgba(255, 45, 85, 0.5), rgba(0, 212, 255, 0.3));
  filter: blur(20px);
  opacity: 0.45;
  z-index: 0;
}

.screen-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.screen-frame img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.play-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-pulse::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* ===== Keyword ticker ===== */
.ticker-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 32px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Chapter layout ===== */
.page-body {
  display: grid;
  gap: 0;
}

.chapter-rail {
  display: none;
}

.main-flow { min-width: 0; }

.section-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.section-block:last-child { border-bottom: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--crimson);
  margin-bottom: 10px;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--crimson);
}

.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.35;
  margin-bottom: 18px;
}

.progress-bar {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 99px;
  margin-bottom: 22px;
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: var(--gradient-cta);
  border-radius: 99px;
}

/* 3:7 article rows */
.article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.article-row:last-child { margin-bottom: 0; }

.article-visual {
  position: relative;
}

.article-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-visual figcaption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.article-text p {
  margin-bottom: 14px;
  color: var(--text-soft);
  text-align: justify;
}

.article-text p strong { color: var(--text); font-weight: 600; }

.article-text h3 {
  font-size: 17px;
  margin: 18px 0 10px;
  color: var(--text);
}

.article-text ul {
  margin: 0 0 14px 18px;
  color: var(--text-soft);
}

.article-text li { margin-bottom: 6px; }

/* Feature bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.bento-card:hover {
  border-color: rgba(255, 45, 85, 0.35);
  transform: translateY(-2px);
}

.bento-card .icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.bento-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.bento-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* FAQ accordion */
.faq-list { margin-top: 20px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--crimson);
  font-size: 18px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-body {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-soft);
}

/* CTA band */
.cta-band {
  margin: 36px 0 0;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(139, 92, 246, 0.08)),
    var(--bg-card);
  border: 1px solid rgba(255, 45, 85, 0.2);
  text-align: center;
}

.cta-band h2 { font-size: 20px; margin-bottom: 8px; }

.cta-band p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* ===== Sub pages ===== */
.page-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  margin-bottom: 8px;
}

.page-hero p { color: var(--text-soft); font-size: 14px; }

.legal-doc {
  padding: 28px 0 48px;
}

.legal-doc h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-doc h2:first-child { margin-top: 0; }

.legal-doc p,
.legal-doc li {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 14px;
}

.legal-doc ul { margin-left: 20px; }

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h1 { font-size: 22px; margin: 12px 0 8px; }
.error-page p { color: var(--text-soft); margin-bottom: 20px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 32px 0 calc(24px + var(--dock-h));
}

body.no-dock .site-footer { padding-bottom: 24px; }

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand img { height: 32px; margin-bottom: 10px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 320px;
}

.footer-links h3 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Header nav & bottom dock ===== */
.header-nav {
  display: none;
}

.header-nav .dock-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav .dock-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
}

.header-nav .dock-inner a svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.header-nav .dock-inner a.active,
.header-nav .dock-inner a:hover {
  color: var(--crimson);
}

.header-nav .dock-inner a.active svg,
.header-nav .dock-inner a:hover svg {
  opacity: 1;
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}

.bottom-dock .dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--dock-h);
  max-width: 480px;
  margin: 0 auto;
}

.bottom-dock .dock-inner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-dim);
  padding: 4px 8px;
}

.bottom-dock .dock-inner a svg {
  width: 22px;
  height: 22px;
  opacity: 0.65;
}

.bottom-dock .dock-inner a.active,
.bottom-dock .dock-inner a:hover {
  color: var(--crimson);
}

.bottom-dock .dock-inner a.active svg,
.bottom-dock .dock-inner a:hover svg {
  opacity: 1;
}

.dock-toggle { display: none; }

.mobile-dock-panel { display: none; }

/* ===== Desktop ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 16px; }

  .cinema-inner { grid-template-columns: 1.1fr 0.9fr; }

  .cinema-screen { margin: 0; max-width: 300px; }

  .article-row {
    grid-template-columns: 3fr 7fr;
    gap: 28px;
    align-items: start;
  }

  .article-row.reverse { direction: rtl; }
  .article-row.reverse > * { direction: ltr; }

  .bento-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .site-footer { padding-bottom: 32px; }

  .header-nav {
    display: block;
  }

  .bottom-dock { display: none; }
}

@media (min-width: 1024px) {
  .page-body {
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: start;
  }

  .chapter-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 36px 0;
  }

  .chapter-rail nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .chapter-link {
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
  }

  .chapter-link:hover,
  .chapter-link.active {
    color: var(--text);
    border-left-color: var(--crimson);
    background: rgba(255, 45, 85, 0.06);
  }
}

@media (max-width: 767px) {
  .header-nav { display: none; }

  .header-cta { display: none; }

  .download-fixed {
    top: var(--header-h);
    z-index: 880;
  }

  .dock-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .mobile-dock-panel {
    display: block;
    position: fixed;
    bottom: var(--dock-h);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    transform: translateY(110%);
    transition: transform 0.25s;
    z-index: 799;
  }

  .mobile-dock-panel.is-open { transform: translateY(0); }

  .mobile-dock-panel a {
    display: block;
    padding: 10px 0;
    color: var(--text-soft);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .mobile-dock-panel a:last-child { border-bottom: none; }
}

@media (min-width: 768px) {
  body.has-fixed-dl .site-header {
    top: var(--fixed-h);
  }
}

body.has-fixed-dl { scroll-padding-top: calc(var(--header-h) + var(--fixed-h)); }

/* ===== Prose & gallery modules ===== */
.prose-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 28px 0;
}

.prose-block h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text);
}

.prose-block p {
  color: var(--text-soft);
  margin-bottom: 12px;
  text-align: justify;
}

.prose-block p:last-child { margin-bottom: 0; }

.prose-columns {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .prose-columns { grid-template-columns: 1fr 1fr; }
}

.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .thumb-gallery { grid-template-columns: repeat(3, 1fr); }
}

.thumb-gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.thumb-gallery img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.thumb-gallery figcaption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px 6px;
}

.text-only-section .article-text p { margin-bottom: 16px; }

#ads a { border-radius: 15px; display: inline-block; text-decoration: none; }
