/* 抖阴官网 dy-s.mom - 视频播放型站点样式 */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --accent-cyan: #00e5ff;
  --accent-magenta: #ff0050;
  --accent-pink: #ff2d55;
  --border-color: #2a2a3a;
  --max-width: 1140px;
  --header-height: 60px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-magenta);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  gap: 16px;
}

.ads-bar {
  display: none;
}

/* Download ad - 内容顶部下载推荐 */
.download-ad {
  scroll-margin-top: calc(var(--header-height) + 8px);
  padding: 16px 0 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 80, 0.04) 0%, transparent 50%);
}

.download-ad-inner {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}

.download-ad-head {
  margin-bottom: 18px;
}

.download-ad-badge {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-magenta);
  background: rgba(255, 0, 80, 0.1);
  border: 1px solid rgba(255, 0, 80, 0.25);
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.download-ad-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-ad-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.download-ad-list,
.download-ad #ads,
.download-ad-fixed .download-ad-list,
.download-ad-fixed #ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
}

.download-ad-item,
.download-ad-list > div,
.download-ad #ads > div,
.download-ad-fixed #ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 calc(25% - 10px);
  max-width: calc(25% - 10px);
  min-width: 0;
  box-sizing: border-box;
}

.download-ad-list img,
.download-ad #ads img,
.download-ad-fixed #ads img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: 2px solid rgba(0, 229, 255, 0.15);
  background: #fff;
}

.download-ad-list a,
.download-ad #ads a,
.download-ad-fixed #ads a {
  display: inline-block;
  border-radius: 14px;
  line-height: 0;
}

.download-ad-list a:hover img,
.download-ad #ads a:hover img,
.download-ad-fixed #ads a:hover img {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.25);
  border-color: rgba(0, 229, 255, 0.45);
}

.download-ad-list .caption,
.download-ad #ads .caption,
.download-ad #ads figcaption,
.download-ad-fixed #ads .caption,
.download-ad-fixed #ads figcaption {
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.download-ad-list a:hover + .caption,
.download-ad #ads a:hover ~ .caption,
.download-ad-fixed #ads a:hover ~ .caption {
  color: var(--accent-cyan);
}

.download-ad-fixed {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 998;
  padding: 6px 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.download-ad-fixed.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.download-ad-fixed .download-ad-inner {
  padding: 6px 12px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.download-ad-fixed .download-ad-list img,
.download-ad-fixed #ads img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  justify-self: start;
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-link img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .logo-link img {
  height: 40px;
}

.site-footer .logo-link img {
  height: 32px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  justify-self: end;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
  color: #0a0a0f !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
  color: #0a0a0f !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-magenta), #cc0040);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.3);
  color: #fff !important;
}

/* Hero - 视频播放型首屏 */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(255, 0, 80, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(18, 18, 26, 0.5) 0%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan) !important;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hero-link:hover {
  color: var(--accent-magenta) !important;
  border-bottom-color: var(--accent-magenta);
}

.hero-link-alt {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

.hero-link-alt:hover {
  color: var(--accent-cyan) !important;
  border-bottom-color: var(--accent-cyan);
}

.hero-player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(0, 229, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 0, 80, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 255, 0.06);
  max-width: 300px;
  margin: 0 auto;
  background: #000;
}

.hero-player img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.hero-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 80, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 0, 80, 0.2);
  z-index: 2;
  pointer-events: none;
}

.play-overlay::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.player-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 2px;
}

.player-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* Download section */
.download-section {
  padding: 56px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.download-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
}

.download-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.download-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.stat-item {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-magenta);
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Video category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 9/16;
  max-height: 340px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.category-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

.category-item:hover img {
  transform: scale(1.03);
}

.category-item::before {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 44px;
  height: 44px;
  background: rgba(255, 0, 80, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
  padding-left: 3px;
}

.category-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  z-index: 1;
}

.category-label h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.category-label p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.category-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 12px 0 0;
  opacity: 0.7;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.category-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.category-tag:hover {
  color: var(--accent-cyan) !important;
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.category-intro,
.section-outro {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Media block - 图文交替 */
.media-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
}

.media-block:last-child {
  border-bottom: none;
}

.media-block-reverse {
  grid-template-columns: 1fr 240px;
}

.media-block-reverse .media-block-img {
  order: 2;
}

.media-block-reverse .media-block-body {
  order: 1;
}

.media-block-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: var(--bg-card);
}

.media-block-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.media-block-body h3 {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.media-block-body p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.media-block-body p:last-child {
  margin-bottom: 0;
}

/* Library grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.library-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.library-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
}

.library-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
}

.library-card-body {
  padding: 20px 22px 24px;
}

.library-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.library-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Account grid */
.account-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.account-card:hover {
  border-color: rgba(255, 0, 80, 0.3);
  transform: translateY(-3px);
}

.account-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.account-card h3 {
  font-size: 0.92rem;
  padding: 14px 12px 6px;
  color: var(--text-primary);
}

.account-card p {
  padding: 0 12px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guide */
.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.guide-toc h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.guide-toc ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 0;
  padding-left: 20px;
}

.guide-toc li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-toc a {
  color: var(--text-secondary);
}

.guide-toc a:hover {
  color: var(--accent-cyan);
}

.content-block {
  max-width: 820px;
  margin: 0 auto;
}

.content-block > h2 {
  font-size: 1.55rem;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-magenta);
  display: inline-block;
}

.content-block h3 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--accent-cyan);
  scroll-margin-top: 80px;
}

.content-block p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-block ul,
.content-block ol {
  margin: 10px 0 18px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-block li {
  margin-bottom: 6px;
}

.content-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.screenshot-item img {
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
}

.screenshot-item figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.screenshot-single {
  max-width: 300px;
  margin: 28px auto;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
}

.faq-answer {
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Sub pages */
.page-header {
  padding: 44px 0 28px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-content {
  padding: 44px 0 72px;
  max-width: 820px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--accent-cyan);
}

.page-content h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  margin: 10px 0 18px 22px;
}

.error-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
}

.error-page h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 44px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 10px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges,
  .hero-links {
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-block,
  .media-block-reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .media-block-reverse .media-block-img,
  .media-block-reverse .media-block-body {
    order: unset;
  }

  .media-block-img {
    max-width: 220px;
    margin: 0 auto;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .guide-toc ol {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
    justify-self: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero-content h1 {
    font-size: 1.65rem;
  }

  .section {
    padding: 52px 0;
  }

  .download-ad {
    padding: 10px 0 12px;
  }

  .download-ad-inner {
    padding: 14px 10px 10px;
  }

  .download-ad-head {
    margin-bottom: 12px;
  }

  .download-ad-title {
    font-size: 1rem;
  }

  .download-ad-desc {
    font-size: 0.82rem;
  }

  .download-ad-list,
  .download-ad #ads,
  .download-ad-fixed #ads {
    gap: 6px 8px;
  }

  .download-ad-list img,
  .download-ad #ads img,
  .download-ad-fixed #ads img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .download-ad-item,
  .download-ad-list > div,
  .download-ad #ads > div,
  .download-ad-fixed #ads > div {
    flex: 0 0 calc(25% - 8px);
    max-width: calc(25% - 8px);
  }

  .download-ad-list .caption,
  .download-ad #ads .caption,
  .download-ad #ads figcaption,
  .download-ad-fixed #ads .caption,
  .download-ad-fixed #ads figcaption {
    font-size: 0.62rem;
    margin-top: 4px;
  }

  .download-ad-fixed .download-ad-list img,
  .download-ad-fixed #ads img {
    width: 40px;
    height: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .category-scroll-hint {
    display: block;
  }

  .category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 12px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .category-item {
    flex: 0 0 38%;
    max-width: 38%;
    scroll-snap-align: start;
    max-height: 260px;
    aspect-ratio: 9/15;
  }

  .category-tags {
    margin-top: 16px;
    gap: 6px;
  }

  .category-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .media-block-img {
    max-width: 200px;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
