/* ============================================================
   M3U8Lab — Design System v3 "Clean Light"
   全站统一设计令牌与组件样式（2026 AdSense 审核版）
   明亮专业风 · 蓝青点缀 · 柔和阴影卡片 · 清晰可读
   v3 与 v2 Aurora Dark 视觉完全不同，保留所有旧类名
   ============================================================ */

:root {
  /* 品牌色（专业蓝 + 青点缀，与旧版翡翠绿完全区分） */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-hover: #1e40af;
  --accent: #0891b2;
  --accent-light: rgba(8, 145, 178, 0.1);
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #0891b2 100%);

  /* 中性色（亮色主题） */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;

  /* 背景 */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #fbfcfe;

  /* 边框与阴影 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.06);

  /* 功能色 */
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --warning: #f59e0b;
  --danger: #dc2626;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable Text", Inter, Roboto, "Helvetica Neue", Arial, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans KR", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  /* 尺寸 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4rem; }
::selection { background: rgba(37, 99, 235, 0.2); color: var(--primary-dark); }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-lang {
  height: 36px;
  padding: 0 28px 0 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 9px center, right 10px center;
  background-size: 14px, 11px;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.nav-lang:hover { border-color: var(--primary); }
.nav-right .btn { height: 36px; padding: 0 18px; font-size: 13px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
}

/* ============ Hero 区块 ============ */
.hero {
  position: relative;
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink-900);
}
.hero h1 span.acc {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink-500);
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 播放器卡片 ============ */
.player-card {
  max-width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: relative;
  z-index: 2;
}
.player-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.player-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ink-50);
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.player-form input::placeholder { color: var(--ink-400); font-weight: 400; }
.player-form input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.player-form button {
  height: 48px;
  padding: 0 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.player-form button:hover { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); }
/* 播放器固定 16:9 横向长方形 */
#player-container-id:not(.vjs-fullscreen) {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
#player-container-id .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* ============ 区块通用 ============ */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head h2,
.section-head h1 {
  font-size: 32px;
  color: var(--ink-900);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--ink-500);
  font-size: 15px;
}

/* ============ 功能卡片网格 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 6px;
  font-weight: 700;
}
.card p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ 步骤 ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.step h4 {
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 6px;
  font-weight: 700;
}
.step p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ============ 文章列表 ============ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}
.post-thumb {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(8, 145, 178, 0.06)),
    var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.post-body { padding: 16px 18px 20px; }
.post-body h3 {
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 6px;
  line-height: 1.45;
}
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--primary); }
.post-body p {
  font-size: 13px;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.post-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 500;
}

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item.open { border-color: rgba(37, 99, 235, 0.3); }
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
  font-weight: 400;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
  color: var(--ink-600);
}
.faq-item.open .faq-a {
  max-height: 420px;
  padding: 0 20px 16px;
}

/* ============ 文章详情页 ============ */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-wrap h1 {
  font-size: 30px;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.article-meta {
  display: inline-block;
  color: var(--ink-400);
  font-size: 13px;
  margin-bottom: 28px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}
.article-wrap h2 {
  font-size: 22px;
  color: var(--ink-900);
  margin: 32px 0 10px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.35;
}
.article-wrap h3 {
  font-size: 17px;
  color: var(--ink-900);
  margin: 24px 0 8px;
  font-weight: 700;
}
.article-wrap p { margin-bottom: 14px; color: var(--ink-700); }
.article-wrap ul, .article-wrap ol { margin: 10px 0 18px; }
.article-wrap li { margin-bottom: 7px; }
.article-wrap code {
  background: var(--ink-100);
  color: var(--ink-800);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border-light);
}
pre {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  color: #e2e8f0;
  padding: 40px 16px 14px;
  border-radius: var(--radius);
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.7;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  position: relative;
}
pre code { background: none; padding: 0; color: inherit; }
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.code-copy:hover { background: rgba(148, 163, 184, 0.28); color: #fff; }
.code-copy.ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.article-wrap blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  color: var(--ink-700);
}
.article-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.article-toc h4 { font-size: 14px; color: var(--ink-900); margin-bottom: 8px; font-weight: 700; }
.article-toc ol { margin: 0; }
.article-toc a { font-size: 13px; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--ink-500);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-500);
  margin-top: 10px;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--ink-900);
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-500); font-size: 13.5px; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--primary); }

/* ============ 转换页专用 ============ */
.convert-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}
.convert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}
.convert-card h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink-900);
}
.convert-card .lead {
  text-align: center;
  color: var(--ink-500);
  margin-bottom: 24px;
  font-size: 14px;
}
.convert-status {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-700);
  min-height: 46px;
  line-height: 1.6;
}
.convert-progress {
  height: 8px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}
.convert-progress.show { display: block; }
.convert-progress-bar {
  height: 100%;
  background: var(--grad-brand);
  width: 0%;
  transition: width 0.3s;
  border-radius: 999px;
}

/* ============ 提示框 ============ */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.7;
}
.alert-info {
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--ink-700);
}

/* ============ Cookie 同意横幅 ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
  z-index: 9999;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  font-size: 13.5px;
  color: var(--ink-600);
  margin: 0;
  flex: 1;
  min-width: 260px;
  line-height: 1.6;
}
.cookie-banner a { color: var(--primary); font-weight: 500; }
.cookie-banner .cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
  background: var(--ink-50);
  color: var(--ink-700);
}
.cookie-banner button.accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-banner button.accept:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.cookie-banner button.decline:hover {
  background: var(--ink-100);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
  .section { padding: 44px 0; }
  .section-head h2, .section-head h1 { font-size: 24px; }
  .player-card { padding: 14px; }
  .player-form { flex-direction: column; gap: 10px; }
  .player-form input { height: 50px; font-size: 16px; padding: 0 14px; }
  .player-form button { height: 48px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    align-items: stretch;
  }
  .nav-links a { padding: 10px 14px; border-radius: 8px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .nav-right { gap: 8px; }
  .nav-lang {
    height: 34px;
    padding: 0 24px 0 26px;
    font-size: 12px;
    max-width: 108px;
    background-position: 8px center, right 8px center;
    background-size: 12px, 10px;
  }
  .convert-card { padding: 24px 16px; }
  pre { font-size: 12px; padding: 36px 10px 12px; }
  .cookie-banner { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-right .btn { display: none; }
}

/* ---- 移动端 TCPlayer 控制栏精简 ---- */
@media (max-width: 640px) {
  .video-js .vjs-control-bar > .vjs-control.vjs-button:not(.vjs-play-control):not(.vjs-playback-rate):not(.tcp-video-quality-switcher):not(.vjs-fullscreen-control) {
    display: none !important;
  }
  .video-js .vjs-control-bar .vjs-playback-rate {
    display: inline-block !important;
  }
  .video-js .vjs-control-bar > .vjs-time-control,
  .video-js .vjs-control-bar > .vjs-volume-panel {
    display: none !important;
  }
  .video-js .vjs-menu-button-popup .vjs-menu {
    max-width: calc(100vw - 16px);
  }
  .video-js .vjs-control-bar > .vjs-control {
    width: 3.4em;
  }
}

/* 广告位容器（由 js/site.js 统一注入，样式保留但暂无广告）*/
.ad-slot {
  margin: 24px auto;
  min-height: 60px;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius);
}

/* ============ 工具页说明文字（AdSense 合规：确保工具页有充足原创内容） ============ */
.tool-intro {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  line-height: 1.75;
  color: var(--ink-600);
  font-size: 14px;
}
.tool-intro h3 {
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 10px;
  font-weight: 700;
}
.tool-intro ul {
  margin: 10px 0;
  padding-left: 1.2rem;
}
.tool-intro li { margin-bottom: 6px; }

/* ============ 法律页面 ============ */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.legal-wrap h1 {
  font-size: 28px;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 800;
}
.legal-wrap .updated {
  color: var(--ink-400);
  font-size: 13px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.legal-wrap h2 {
  font-size: 19px;
  color: var(--ink-900);
  margin: 26px 0 10px;
  font-weight: 700;
}
.legal-wrap p {
  color: var(--ink-600);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal-wrap ul { margin: 10px 0 16px; color: var(--ink-600); }
.legal-wrap li { margin-bottom: 6px; }
