/* 抖阴官网 - 视频播放型移动端优先样式 */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #1a1a1a;
  --bg-elevated: #222;
  --accent-red: #fe2c55;
  --accent-cyan: #25f4ee;
  --accent-magenta: #ff0050;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-muted: #666;
  --border: rgba(255, 255, 255, 0.08);
  --gradient-brand: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-red) 100%);
  --shadow-glow: 0 0 30px rgba(254, 44, 85, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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.7;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--accent-red); }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img { height: 32px; width: auto; }

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop { display: none; gap: 24px; }
.nav-desktop a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text-primary); }

.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-red);
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-download-header:hover { opacity: 0.9; color: #fff !important; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero - 品牌渐变型，无截图 */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 32px 0 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(254, 44, 85, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(37, 244, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(254, 44, 85, 0.06) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
}

.hero-icon-wrap::before,
.hero-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  opacity: 0.5;
}

.hero-icon-wrap::before {
  background: var(--accent-cyan);
  transform: translate(-3px, -2px);
  filter: blur(0);
  opacity: 0.35;
}

.hero-icon-wrap::after {
  background: var(--accent-red);
  transform: translate(3px, 2px);
  opacity: 0.35;
}

.hero-icon-wrap img {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0;
  background: none;
  margin-top: 0;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.25);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-red);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: clamp(14px, 3.5vw, 16px);
  margin-bottom: 28px;
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 520px;
}

.hero-highlight-item {
  flex: 1 1 calc(33% - 10px);
  min-width: 90px;
  text-align: center;
}

.hero-highlight-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-highlight-item span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent-red);
  color: #fff !important;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(254, 44, 85, 0.5); color: #fff !important; }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent-cyan); background: rgba(37, 244, 238, 0.05); color: var(--text-primary) !important; }

.platform-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.platform-tag {
  padding: 4px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
}

.stat-item {
  background: var(--bg-card);
  padding: 16px 8px;
  text-align: center;
}
.stat-num {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Content sections - 3:7 ratio layout */
.content-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 3:7 content row */
.content-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.content-row.reverse .content-media { order: -1; }

.content-media {
  flex: 0 0 auto;
  width: 100%;
}

.content-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.content-media figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.content-text {
  flex: 1;
}

.content-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  text-align: justify;
}

.content-text ul {
  list-style: none;
  margin: 12px 0;
}

.content-text li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.content-text li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(254, 44, 85, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Category pills */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.category-pill.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* Download section */
.download-section {
  background: linear-gradient(135deg, rgba(254,44,85,0.1) 0%, rgba(37,244,238,0.05) 100%);
  border: 1px solid rgba(254, 44, 85, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  margin: 40px 0;
}

.download-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-section > p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.download-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.2s;
}
.download-card:hover { border-color: var(--accent-red); }

.download-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.download-card-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; color: var(--text-primary); }
.download-card-info p { font-size: 12px; color: var(--text-muted); }

.download-steps {
  text-align: left;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.download-steps h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.download-steps ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}
.download-steps li { margin-bottom: 8px; }

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-red);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 16px calc(24px + var(--safe-bottom));
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto 32px;
}

.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 13px; }
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Legal pages */
.page-hero {
  padding: calc(var(--header-h) + 32px) 16px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p { color: var(--text-secondary); font-size: 14px; }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a { word-break: break-all; }

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-cyan); }

/* Error pages */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.error-code {
  font-size: clamp(80px, 20vw, 140px);
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 22px; margin: 16px 0 8px; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; font-size: 14px; }

/* Category showcase grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  border-color: rgba(254, 44, 85, 0.35);
  transform: translateY(-2px);
}

.category-card img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
}

.category-card-body {
  padding: 10px 12px 12px;
}

.category-card-body h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card-body p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Text-only channel list */
.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.channel-list-item {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.channel-list-item span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Pure SEO text modules */
.seo-text-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
}

.seo-text-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.seo-text-block p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  text-align: justify;
  line-height: 1.85;
}

.seo-text-block ul, .seo-text-block ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.seo-text-block li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.seo-columns {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.compare-table td { color: var(--text-secondary); }

.compare-table .highlight {
  color: var(--accent-red);
  font-weight: 600;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.inline-cta {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent-red) !important;
}
.inline-cta:hover { opacity: 0.85; }

/* 广告位 - 滚动时固定于导航栏下方 */
.ads-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 997;
  padding: 8px 0 10px;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  scroll-margin-top: var(--header-h);
  transition: padding 0.2s ease;
}

.has-header .page-with-ads {
  padding-top: var(--header-h);
}

.ads-banner--bare {
  top: 0;
  scroll-margin-top: 0;
}

.ads-banner.is-stuck {
  padding: 6px 0 8px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.ads-banner.is-stuck .ads-banner-label {
  display: none;
}

.ads-banner.ads-highlight {
  border-color: rgba(254, 44, 85, 0.5);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.35), 0 6px 28px rgba(254, 44, 85, 0.2);
}

.ads-banner-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.ads-banner-label::before,
.ads-banner-label::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.4;
}

#ads.ads-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 8px;
  background: transparent;
  min-height: 0;
}

#ads .ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads .ads-item a {
  display: block;
  border-radius: 16px;
  line-height: 0;
}

#ads .ads-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: var(--bg-card);
}

#ads .ads-item img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(254, 44, 85, 0.25);
  border-color: rgba(254, 44, 85, 0.35);
}

#ads .ads-caption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.ads-sticky-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
  visibility: hidden;
}

.content-section,
.page-hero {
  scroll-margin-top: calc(var(--header-h) + 100px);
}

.page-with-ads .hero {
  padding: 32px 0 56px;
}

.page-with-ads .page-hero {
  padding: 24px 16px 32px;
}

@media (min-width: 768px) {
  #ads.ads-grid { gap: 18px 14px; }
  #ads .ads-item { width: 80px; }
  #ads .ads-item img { width: 72px; height: 72px; }
  #ads .ads-caption { max-width: 80px; font-size: 12px; }
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .seo-columns { grid-template-columns: repeat(2, 1fr); }
  .seo-text-block { padding: 32px 28px; }
}

/* Floating download bar (mobile) */
.float-download {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.float-download.visible { transform: translateY(0); }
.float-download .btn-primary { flex: 1; padding: 12px; font-size: 14px; }

/* 移动端隐藏下载按钮 */
@media (max-width: 767px) {
  .btn-download-header { display: none !important; }
  .float-download { display: none !important; }
}

/* Tablet+ */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .hero { padding: 32px 0 72px; }
  .hero-icon-wrap { width: 100px; height: 100px; margin-bottom: 32px; }
  .hero-icon-wrap img { width: 100px; height: 100px; }
  .content-row { flex-direction: row; align-items: flex-start; }
  .content-media { width: 30%; flex: 0 0 30%; }
  .content-text { flex: 0 0 70%; width: 70%; padding-left: 24px; }
  .content-row.reverse .content-text { padding-left: 0; padding-right: 24px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .download-cards { flex-direction: row; max-width: 100%; }
  .download-card { flex: 1; }
  .float-download { display: none; }
}

@media (min-width: 960px) {
  .container { padding: 0 24px; }
}
