/* dy-s.rest — 竖屏流媒体播放器官网 · 移动端优先 */
:root {
  --bg: #0b0b10;
  --bg-soft: #12121a;
  --bg-card: #181822;
  --bg-glass: rgba(18, 18, 28, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-soft: #a0a0b8;
  --text-dim: #686880;
  --pink: #ff2050;
  --pink-soft: #ff4d73;
  --cyan: #00d4ff;
  --cyan-soft: #33ddff;
  --gold: #ffc940;
  --grad-brand: linear-gradient(120deg, var(--cyan) 0%, var(--pink) 100%);
  --grad-card: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(255, 32, 80, 0.08));
  --shadow-glow: 0 0 40px rgba(255, 32, 80, 0.15);
  --header-h: 54px;
  --fixed-h: 0px;
  --max: 1100px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::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);
  color: var(--text);
  line-height: 1.82;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

body.has-fixed-dl { padding-top: var(--fixed-h); }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 32, 80, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 212, 255, 0.06), transparent);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--pink-soft); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ===== Fixed download bar ===== */
.dys-fixed-dl {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.dys-fixed-dl.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dys-fixed-dl-inner {
  padding: 8px 16px;
}

.dys-fixed-dl .dys-ad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  width: 100%;
  margin: 0;
  justify-items: center;
}

.dys-hidden { display: none !important; }

/* ===== Ads — 一排四个，超出换行 ===== */
#ads,
.dys-ad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  background: transparent;
  margin: 0;
  width: 100%;
  justify-items: center;
}

#ads > div,
.dys-ad-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 80px;
  box-sizing: border-box;
}

#ads img,
.dys-ad-row 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, box-shadow 0.18s ease;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

#ads a,
.dys-ad-row a {
  display: inline-block;
  border-radius: 18px;
}

#ads img:hover,
.dys-ad-row img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 32, 80, 0.25);
}

#ads figcaption,
#ads .caption,
.dys-ad-row .dys-ad-cap {
  height: 15px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ===== Header ===== */
.dys-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.dys-header.is-lit {
  background: rgba(11, 11, 16, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.dys-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.dys-logo img { height: 36px; width: auto; }

.dys-nav {
  display: none;
  gap: 4px;
}

.dys-nav a {
  color: var(--text-soft);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.dys-nav a:hover,
.dys-nav a.is-on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dys-nav a.is-on { color: var(--cyan); }

.dys-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 32, 80, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dys-btn-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 32, 80, 0.45);
  color: #fff !important;
}

.dys-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.dys-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.dys-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dys-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.dys-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dys-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px;
  z-index: 99;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dys-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dys-drawer a {
  color: var(--text-soft);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.dys-drawer a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }

/* ===== Ad stage ===== */
.dys-ad-stage {
  padding: 20px 0 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.dys-ad-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

.dys-ad-stage-head {
  text-align: center;
  margin-bottom: 16px;
}

.dys-ad-stage-head h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dys-ad-stage-head p {
  font-size: 13px;
  color: var(--text-soft);
}

/* ===== Hero player chrome ===== */
.dys-hero {
  padding: 28px 0 36px;
  position: relative;
}

.dys-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 32, 80, 0.12);
  border: 1px solid rgba(255, 32, 80, 0.25);
  font-size: 12px;
  color: var(--pink-soft);
  margin-bottom: 14px;
}

.dys-hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: dys-pulse 1.5s ease infinite;
}

@keyframes dys-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.dys-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.dys-hero-lead {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 640px;
}

.dys-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.dys-player-bar .play-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dys-player-bar .play-dot svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }

.dys-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dys-progress-fill {
  height: 100%;
  width: 38%;
  background: var(--grad-brand);
  border-radius: 4px;
}

.dys-player-time {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dys-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.dys-hero-actions .dys-btn-dl { padding: 12px 24px; font-size: 15px; }

.dys-hero-actions .dys-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.dys-hero-actions .dys-btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== 3:7 split blocks ===== */
.dys-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.dys-section-head {
  margin-bottom: 24px;
}

.dys-section-head h2 {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.dys-section-head p {
  color: var(--text-soft);
  font-size: 14px;
}

.dys-split {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 20px 28px;
  align-items: start;
}

.dys-split-reverse { direction: rtl; }
.dys-split-reverse > * { direction: ltr; }

.dys-prose {
  font-size: 14.5px;
  color: var(--text-soft);
}

.dys-prose p { margin-bottom: 14px; }
.dys-prose p:last-child { margin-bottom: 0; }

.dys-prose h3 {
  font-size: 16px;
  color: var(--text);
  margin: 18px 0 10px;
  font-weight: 700;
}

.dys-prose ul {
  margin: 10px 0 14px 18px;
  color: var(--text-soft);
}

.dys-prose li { margin-bottom: 6px; }

.dys-prose strong { color: var(--text); font-weight: 600; }

.dys-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
}

.dys-shot img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top center;
}

.dys-shot-cap {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--line);
}

.dys-shot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: dys-pulse 2s ease infinite;
}

/* ===== Category chips ===== */
.dys-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.dys-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.dys-chip.is-hot {
  border-color: rgba(255, 32, 80, 0.4);
  color: var(--pink-soft);
  background: rgba(255, 32, 80, 0.08);
}

/* ===== Feature grid ===== */
.dys-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dys-feat-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  border: 1px solid var(--line);
}

.dys-feat-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--cyan);
}

.dys-feat-card p {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.dys-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.dys-faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dys-faq-item summary::-webkit-details-marker { display: none; }

.dys-faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 18px;
  font-weight: 400;
}

.dys-faq-item[open] summary::after { content: "−"; }

.dys-faq-body {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===== Text panel (pure copy) ===== */
.dys-text-panel {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.dys-text-panel h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.dys-text-panel p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.dys-text-panel p:last-child { margin-bottom: 0; }

/* ===== Internal links ===== */
.dys-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 20px 0;
  font-size: 13px;
}

.dys-links-bar a {
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
}

.dys-links-bar a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ===== Footer ===== */
.dys-footer {
  padding: 32px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.dys-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dys-footer-brand img { height: 32px; margin-bottom: 10px; }

.dys-footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 320px;
}

.dys-footer-nav h4 {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
  font-weight: 700;
}

.dys-footer-nav a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}

.dys-footer-nav a:hover { color: var(--cyan); }

.dys-footer-copy {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Subpages ===== */
.dys-page-title {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.dys-page-title h1 {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.dys-page-title p { color: var(--text-soft); font-size: 14px; }

.dys-legal {
  padding-bottom: 48px;
}

.dys-legal h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.dys-legal h2:first-child { margin-top: 0; }

.dys-legal p,
.dys-legal li {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.dys-legal ul { margin-left: 20px; margin-bottom: 14px; }

/* ===== Error pages ===== */
.dys-error {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.dys-error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.dys-error h1 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.dys-error p {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .dys-nav { display: flex; }
  .dys-menu-btn { display: none; }
  .dys-drawer { display: none !important; }
  .dys-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .dys-feat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .dys-split,
  .dys-split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .dys-prose { order: 1; }
  .dys-shot { order: 2; }

  .dys-header .dys-btn-dl { display: none; }

  /* 移动端漂浮下载栏：紧贴导航栏下方 */
  .dys-fixed-dl {
    top: var(--header-h);
    z-index: 98;
  }

  .dys-fixed-dl.is-show {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

/* ===== Gallery & extra content ===== */
.dys-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.dys-gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.dys-gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top center;
}

.dys-gallery-item figcaption {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--line);
}

.dys-copy-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.dys-copy-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.dys-copy-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.dys-copy-block p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.dys-copy-block ul {
  margin: 8px 0 14px 20px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.dys-copy-block li { margin-bottom: 6px; }

@media (min-width: 768px) {
  .dys-gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
