/* ============================================
   M3U8 Player - Stylesheet
   ============================================ */

/* ============================================
   1. CSS Variables
   ============================================ */
:root {
  --bg: #fff;
  --bg-secondary: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --card: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
}

[data-theme="dark"] {
  --bg: #000;
  --bg-secondary: #1d1d1f;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #2997ff;
  --accent-hover: #4da3ff;
  --border: #424245;
  --card: #1d1d1f;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.5);
}

/* ============================================
   2. Reset Styles
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================
   3. Base Typography
   ============================================ */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================
   4. Header Component
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

[data-theme="dark"] .header {
  background: rgba(29,29,31,0.72);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  opacity: 0.8;
  transition: var(--transition);
}

.nav-links a:hover { opacity: 1; }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
}

.theme-toggle:hover { background: var(--bg-secondary); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ============================================
   5. Main and Hero Section
   ============================================ */
.main {
  margin-top: 52px;
  padding: 48px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  font-size: 21px;
  color: var(--text-secondary);
}

/* ============================================
   6. Input Section and Player
   ============================================ */
.input-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 32px;
  transition: var(--transition);
}

.input-section:hover { box-shadow: var(--shadow-hover); }

.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.url-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 17px;
  background: var(--bg-secondary);
  color: var(--text);
  transition: var(--transition);
  font-family: var(--font);
}

.url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}

.url-input::placeholder { color: var(--text-secondary); }

.play-btn {
  height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.input-hint {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Content Layout */
.content-layout {
  display: flex;
  justify-content: center;
  gap: 24px;
}

@media (max-width: 1024px) {
  .content-layout { flex-direction: column; }
}

/* Player */
.player-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1;
  max-width: 900px;
}

.video-container {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  gap: 16px;
}

.video-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* ============================================
   7. Ad Components
   ============================================ */

/* --- 7.1 Preroll Ad (贴片广告) --- */
.preroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  display: none;
}

.preroll-overlay.active { display: flex; }

.preroll-timer {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #fff;
}

.preroll-skip {
  margin-top: 24px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 980px;
  cursor: pointer;
  opacity: 0.5;
  pointer-events: none;
  transition: var(--transition);
  font-size: 14px;
  font-family: var(--font);
}

.preroll-skip.enabled {
  opacity: 1;
  pointer-events: auto;
}

.preroll-skip.enabled:hover {
  background: #fff;
  color: #000;
}

/* 移动端贴片广告优化 */
@media (max-width: 640px) {
  .preroll-overlay {
    padding: 16px;
  }
  .preroll-timer {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .preroll-skip {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  .preroll-overlay .ad-placeholder {
    min-height: 120px !important;
    padding: 16px;
  }
  .preroll-overlay .ad-label {
    font-size: 10px;
  }
}

/* --- 7.2 Pause Ad (暂停广告) --- */
.pause-ad-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  display: none;
}

.pause-ad-overlay.active { display: flex; }

.pause-ad-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pause-ad-close:hover {
  background: rgba(255,255,255,0.3);
}

/* --- 7.3 Midroll Ad (中插广告) --- */
.midroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  display: none;
}

.midroll-overlay.active { display: flex; }

.midroll-timer {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #fff;
}

.midroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  transition: width 0.1s linear;
}

.midroll-hint {
  position: absolute;
  bottom: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* --- 7.4 Corner Ad (角标广告) --- */
.corner-ad {
  position: absolute;
  right: 16px;
  bottom: 80px;
  width: 180px;
  background: rgba(0,0,0,0.85);
  border-radius: 12px;
  padding: 12px;
  z-index: 15;
  display: none;
  animation: slideInRight 0.3s ease-out;
}

.corner-ad.active { display: block; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.corner-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.corner-ad-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.corner-ad-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.corner-ad-close:hover {
  background: rgba(255,255,255,0.3);
}

.corner-ad-content {
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* --- 7.5 Marquee Ad (滚动字幕广告) --- */
.marquee-ad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  background: rgba(0,0,0,0.75);
  padding: 8px 0;
  z-index: 12;
  overflow: hidden;
  display: none;
}

.marquee-ad.active { display: block; }

.marquee-ad-inner {
  display: flex;
  animation: marqueeScroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.marquee-ad-item {
  color: #fff;
  font-size: 14px;
  padding: 0 50px;
}

.marquee-ad-item a {
  color: var(--accent);
  text-decoration: none;
}

.marquee-ad-item a:hover {
  text-decoration: underline;
}

/* --- 7.6 Floating Ad (悬浮广告) --- */
.floating-ad {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 16px;
  z-index: 18;
  display: none;
  animation: floatIn 0.4s ease-out;
}

.floating-ad.active { display: block; }

.floating-ad.hiding {
  animation: floatOut 0.3s ease-in forwards;
}

@keyframes floatIn {
  from { transform: translateY(-50%) translateX(100%); opacity: 0; }
  to { transform: translateY(-50%) translateX(0); opacity: 1; }
}

@keyframes floatOut {
  from { transform: translateY(-50%) translateX(0); opacity: 1; }
  to { transform: translateY(-50%) translateX(100%); opacity: 0; }
}

.floating-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.floating-ad-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.floating-ad-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.floating-ad-close:hover {
  background: var(--border);
}

.floating-ad-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.floating-ad-cta {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.floating-ad-cta:hover {
  background: var(--accent-hover);
}

.floating-ad-timer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* --- 7.7 Bottom Banner (底部横幅广告) --- */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.bottom-banner.visible { transform: translateY(0); }

.bottom-banner-close {
  position: absolute;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Ad Placeholder (通用广告占位) --- */
.ad-placeholder {
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}

.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 8px;
}

.sidebar-ad {
  min-height: 250px;
}

/* ============================================
   8. Sidebar
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  width: 300px;
}

@media (max-width: 1024px) {
  .sidebar { display: none; }
}

.sidebar-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ============================================
   9. SEO Sections (Tutorial, FAQ, Features)
   ============================================ */
.seo-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.seo-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

/* Tutorial */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .tutorial-grid { grid-template-columns: 1fr; }
}

.tutorial-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: var(--transition);
}

.tutorial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.tutorial-step {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tutorial-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tutorial-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
}

.faq-question:hover { background: var(--bg-secondary); }

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   10. Footer
   ============================================ */
.footer {
  margin-top: 80px;
  padding: 48px 24px;
  background: var(--bg-secondary);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   11. Privacy Policy & Contact Pages
   ============================================ */
.page-content {
  margin-top: 52px;
  padding: 64px 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.2;
}

.page-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  text-align: center;
}

/* Policy Section */
.policy-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.policy-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-section ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.policy-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.policy-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

.policy-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.policy-section a:hover {
  border-bottom-color: var(--accent);
}

.policy-section strong {
  color: var(--text);
  font-weight: 500;
}

/* Legacy support for .page-section */
.page-section {
  margin-bottom: 32px;
}

.page-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.page-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-section ul {
  margin-left: 0;
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.page-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.page-section a {
  color: var(--accent);
  text-decoration: none;
}

.page-section a:hover {
  text-decoration: underline;
}

/* Contact Page Styles */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-note {
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.contact-note p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .contact-info {
    gap: 12px;
  }
  .contact-item {
    padding: 16px 20px;
  }
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--bg-secondary);
  color: var(--text);
  transition: var(--transition);
  font-family: var(--font);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-btn {
  width: 100%;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.form-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* ============================================
   12. Responsive Media Queries
   ============================================ */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .main { padding: 32px 16px; }
  .input-row { flex-direction: column; }
  .play-btn { width: 100%; justify-content: center; }
  .seo-section-title { font-size: 28px; }
  .page-title { font-size: 32px; }
  .page-content { padding: 40px 20px; }
  .policy-section { margin-bottom: 32px; padding-bottom: 24px; }
  .policy-section h2 { font-size: 18px; }

  /* 角标广告移动端适配 */
  .corner-ad {
    right: 8px;
    bottom: 70px;
    width: 140px;
    padding: 10px;
  }
  .corner-ad-label { font-size: 9px; }
  .corner-ad-content { font-size: 11px; }

  /* 悬浮广告移动端适配 */
  .floating-ad {
    right: 10px;
    width: 180px;
    padding: 12px;
  }
  .floating-ad-title { font-size: 14px; }
  .floating-ad-body { font-size: 12px; }

  /* 滚动字幕广告移动端适配 */
  .marquee-ad { bottom: 50px; }
  .marquee-ad-item { font-size: 12px; padding: 0 30px; }

  /* 底部横幅广告移动端适配 */
  .bottom-banner { padding: 10px 16px; }
  .bottom-banner-close { right: 10px; width: 24px; height: 24px; }
  .bottom-banner .ad-placeholder { min-height: 50px !important; padding: 10px; }
}

@media (max-width: 640px) {
  /* 贴片广告移动端适配 */
  .preroll-overlay { padding: 16px; }
  .preroll-timer {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .preroll-skip {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  .preroll-overlay .ad-placeholder { min-height: 120px !important; padding: 16px; }
  .preroll-overlay .ad-label { font-size: 10px; }

  /* 暂停广告移动端适配 */
  .pause-ad-overlay { padding: 16px; }
  .pause-ad-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
  .pause-ad-overlay .ad-placeholder { min-height: 120px !important; padding: 16px; }

  /* 中插广告移动端适配 */
  .midroll-overlay { padding: 16px; }
  .midroll-timer {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .midroll-hint { font-size: 12px; bottom: 16px; }
  .midroll-overlay .ad-placeholder { min-height: 150px !important; padding: 16px; }

  /* 角标广告移动端进一步适配 */
  .corner-ad {
    width: 120px;
    padding: 8px;
    bottom: 60px;
  }
  .corner-ad-header { margin-bottom: 6px; }
  .corner-ad-close { width: 16px; height: 16px; font-size: 10px; }
  .corner-ad-content { font-size: 10px; }

  /* 悬浮广告移动端进一步适配 */
  .floating-ad {
    width: 160px;
    right: 8px;
    padding: 10px;
  }
  .floating-ad-header { margin-bottom: 8px; }
  .floating-ad-close { width: 20px; height: 20px; }
  .floating-ad-body { font-size: 11px; margin-bottom: 8px; }
  .floating-ad-cta { padding: 8px; font-size: 12px; }
  .floating-ad-timer { font-size: 10px; }

  /* 滚动字幕广告移动端进一步适配 */
  .marquee-ad { padding: 6px 0; bottom: 45px; }
  .marquee-ad-item { font-size: 11px; padding: 0 20px; }

  /* 底部横幅广告移动端进一步适配 */
  .bottom-banner { padding: 8px 12px; }
  .bottom-banner .ad-placeholder { font-size: 12px; min-height: 44px !important; }
}
