/* ============ reel 子域名样式 ============
 * 外层资讯站视觉移植自主域（Wandervit_Drifterscenic）。
 * 外层页面：Header + 首页/分类/内容/法律/联系页 + Footer + BackToTop。
 * 广告交付页（article/1、2）：.ad-stage 全屏覆盖 + .ad-end-mask 结束遮罩。
 * 兼容性：Chromium 49+（平铺 CSS，无高级特性；SCSS 嵌套已手工展开）。
 */

/* ============ 全局变量（对齐主域 main.scss）============ */
:root {
  --primary-color: #44403c;
  --secondary-color: #57534e;
  --accent-color: #4ade80;
  --text-color: #1c1917;
  --text-muted: #78716c;
  --text-light: #d6d3d1;
  --bg-color: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e7e5e4;
  --border-light: #f5f5f4;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --heading-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --article-max-width: 720px;
  --line-height: 1.7;
  /* 兼容旧引用 */
  --bg: var(--bg-color);
  --muted: var(--text-muted);
  --line: var(--border-color);
}

/* ============ 基础 reset ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: var(--line-height);
  -webkit-text-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ============ 容器 ============ */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.container-wide {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.main-content { display: block; }
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .container-wide { padding-left: 1rem; padding-right: 1rem; }
}
@media (min-width: 768px) {
  .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ============ Badge（分类色）============ */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}
.badge--purple { background-color: #f3e8ff; color: #6b21a8; border-color: #d8b4fe; }
.badge--red { background-color: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.badge--blue { background-color: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.badge--green { background-color: #dcfce7; color: #166534; border-color: #86efac; }

/* ============ 行截断 ============ */
.line-clamp-2, .line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to right, #57534e, #44403c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  position: relative;
}
.logo-link { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text-wrap { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.logo-text { font-family: var(--heading-font); font-size: 1.125rem; font-weight: 700; color: #fff; }
.logo-tagline { font-size: 0.625rem; color: #d6d3d1; margin-top: -1px; }
.header-right { display: flex; align-items: center; flex-grow: 1; justify-content: flex-end; gap: 0.25rem; }
.desktop-nav { display: none; align-items: center; gap: 0.25rem; margin-right: 0.5rem; }
.nav-link { padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; color: #fff; }
.nav-link.active, .nav-link:hover { background: #57534e; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: transparent; border: none; color: #fff; cursor: pointer;
}
.icon-btn:hover { background: #57534e; }
.icon-btn svg { width: 1rem; height: 1rem; }
.mobile-menu-btn { display: flex; }
/* 移动抽屉 */
.mobile-menu-backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.5); z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 80%; z-index: 1000;
  background: #292524; padding: 1rem;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: #fff;
}
.mobile-nav-link.active { background: rgba(255, 255, 255, 0.15); }
@media (min-width: 768px) {
  .header-inner { height: 4rem; }
  .logo-text { font-size: 1.25rem; }
  .logo-tagline { font-size: 0.75rem; }
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(to right, #44403c, #292524);
  color: #fff;
  margin-top: 1.5rem;
  padding: 1.75rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--heading-font); font-size: 1.125rem; font-weight: 700;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-logo svg { width: 1.75rem; height: 1.75rem; }
.footer-desc { font-size: 0.8125rem; color: #a8a29e; line-height: 1.6; margin-bottom: 0.75rem; }
.footer-heading {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: #d6d3d1; margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.8125rem; color: #a8a29e; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-copyright {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center;
}
.footer-copyright p { font-size: 0.75rem; color: #a8a29e; }
@media (min-width: 768px) {
  .site-footer { margin-top: 2rem; padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-copyright { margin-top: 2rem; padding-top: 1.5rem; text-align: left; }
}

/* ============ BackToTop ============ */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--secondary-color); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all 0.3s ease;
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-color); transform: translateY(-2px); }
.back-to-top svg { width: 1.25rem; height: 1.25rem; }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #a8a29e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #78716c; }

/* ============ 首页 ============ */
.home-page { padding-bottom: 2rem; }
.hero-section { padding-top: 0.75rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.section-gap { margin-top: 0.75rem; }
.panel {
  background: var(--bg-white); border-radius: 0.75rem;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.625rem; border-bottom: 1px solid var(--border-light);
}
.panel-header h2 { font-size: 0.9375rem; font-weight: 700; color: var(--text-color); }
.article-list { display: flex; flex-direction: column; overflow: hidden; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.cat-card {
  position: relative; border-radius: 0.625rem; overflow: hidden;
  height: 7rem; display: block;
}
.cat-img { width: 100%; height: 100%; object-fit: cover; }
.cat-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 60%, transparent);
}
.cat-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.625rem; display: flex; flex-direction: column; gap: 0.125rem;
}
.cat-desc { font-size: 0.625rem; color: rgba(255, 255, 255, 0.85); line-height: 1.35; display: none; }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: 0.75rem; }
@media (min-width: 640px) {
  .home-page { padding-bottom: 3rem; }
  .hero-section { padding-top: 1rem; }
  .hero-grid { gap: 1rem; }
  .section-gap { margin-top: 1rem; }
  .panel-header { padding: 0.5rem 0.75rem; }
  .panel-header h2 { font-size: 1.0625rem; }
  .category-grid { gap: 0.75rem; }
  .cat-card { height: 8.5rem; border-radius: 0.75rem; }
  .cat-body { padding: 0.75rem; }
  .cat-desc { font-size: 0.6875rem; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; }
}
@media (min-width: 768px) {
  .cat-desc { display: block; }
  .cat-card { height: 9rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ 首页轮播 ============ */
.home-carousel { position: relative; height: 220px; overflow: hidden; }
.carousel-slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block;
  transition: opacity 0.8s ease-in-out; opacity: 0; z-index: 1;
}
.carousel-slide.active { opacity: 1; z-index: 6; }
.slide-inner { padding: 0.625rem; height: 100%; }
.slide-img-wrap { position: relative; height: 100%; border-radius: 0.5rem; overflow: hidden; }
.slide-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s ease; opacity: 0; }
.slide-img.loaded { opacity: 1; }
.carousel-slide:hover .slide-img { transform: scale(1.04); }
.slide-gradient {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  border-radius: 0.5rem;
}
.slide-badge-wrap { position: absolute; top: 0.5rem; left: 0.5rem; }
.slide-body { position: absolute; bottom: 0.5rem; left: 0.5rem; right: 0.5rem; color: #fff; }
.slide-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; line-height: 1.3; }
.slide-summary {
  font-size: 0.6875rem; color: rgba(255, 255, 255, 0.87); margin-bottom: 0.25rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-meta { display: flex; align-items: center; gap: 0.25rem; font-size: 0.6875rem; color: rgba(255, 255, 255, 0.78); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border: none; border-radius: 9999px;
  background: rgba(28, 25, 23, 0.6); color: #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center; z-index: 10;
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-btn svg { width: 0.875rem; height: 0.875rem; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: all 0.3s ease;
  border: none; padding: 0;
}
.carousel-dot.active, .carousel-dot:hover { background: rgba(255, 255, 255, 0.9); transform: scale(1.2); }
.carousel-dots {
  position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%);
  display: flex; gap: 0.375rem; z-index: 10;
}
@media (min-width: 640px) {
  .home-carousel { height: 320px; }
  .slide-inner { padding: 0.75rem; }
  .slide-body { bottom: 0.75rem; left: 0.75rem; right: 0.75rem; }
  .slide-title { font-size: 0.9375rem; margin-bottom: 0.375rem; }
  .slide-summary { font-size: 0.75rem; margin-bottom: 0.375rem; }
  .slide-meta { font-size: 0.75rem; }
  .carousel-btn { display: flex; }
  .carousel-btn.prev { left: 1rem; }
  .carousel-btn.next { right: 1rem; }
}
@media (min-width: 768px) {
  .home-carousel { height: 400px; }
  .slide-title { font-size: 1.0625rem; }
}
@media (min-width: 1024px) {
  .home-carousel { height: 450px; }
  .slide-badge-wrap { top: 0.75rem; left: 0.75rem; }
  .slide-body { bottom: 0.875rem; left: 0.875rem; right: 0.875rem; }
  .carousel-btn { width: 2rem; height: 2rem; }
  .carousel-btn svg { width: 1rem; height: 1rem; }
  .carousel-dots { bottom: 1rem; gap: 0.5rem; }
}

/* ============ 文章卡片（默认网格版 + list 列表版）============ */
.article-card {
  display: block; border-radius: 0.75rem; overflow: hidden;
  border: 1px solid var(--border-light); background: var(--bg-white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.article-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transform: translateY(-2px); }
.article-card.list {
  display: flex; gap: 0.625rem; padding: 0.625rem;
  border-radius: 0; border: none; border-bottom: 1px solid var(--border-light); background: transparent;
}
.article-card.list:hover { background: #fafaf9; box-shadow: none; transform: none; }
.card-img-wrap { position: relative; overflow: hidden; height: 9.5rem; }
.article-card.list .card-img-wrap { width: 4.5rem; height: 3.75rem; flex-shrink: 0; border-radius: 0.375rem; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 1; }
.article-card:hover .card-img { transform: scale(1.05); }
.card-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent); }
.card-badge-wrap { position: absolute; top: 0.5rem; left: 0.5rem; }
.article-card.list .card-badge-wrap { display: none; }
.card-body { padding: 0.625rem; }
.article-card.list .card-body { padding: 0; flex: 1; min-width: 0; }
.list-category {
  display: inline-block; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.125rem 0.375rem; border-radius: 9999px; margin-bottom: 0.25rem;
}
.list-category.badge--purple { background: #f5f3ff; color: #7c3aed; }
.list-category.badge--red { background: #fff1f2; color: #dc2626; }
.list-category.badge--blue { background: #eff6ff; color: #2563eb; }
.list-category.badge--green { background: #f0fdf4; color: #16a34a; }
.card-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.375rem; line-height: 1.4; }
.card-summary { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 0.375rem; line-height: 1.45; }
.card-meta { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; font-size: 0.6875rem; color: #78716c; }
.card-meta .sep { margin: 0 0.125rem; }
@media (min-width: 640px) {
  .card-img-wrap { height: 12rem; }
  .article-card.list .card-img-wrap { width: 5.5rem; height: 4.5rem; border-radius: 0.5rem; }
  .article-card.list { gap: 0.75rem; padding: 0.75rem; }
  .card-body { padding: 0.75rem; }
  .card-title { font-size: 0.875rem; margin-bottom: 0.5rem; }
  .card-summary { font-size: 0.75rem; margin-bottom: 0.5rem; line-height: 1.5; }
  .card-meta { font-size: 0.75rem; }
}

/* ============ 分类页（cover hero + 网格）============ */
.category-page { padding-top: 1rem; padding-bottom: 2rem; }
.cat-header { border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.cat-cover-wrap { position: relative; height: 200px; }
.cat-cover-img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 60%, transparent);
}
.cat-cover-body { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; color: #fff; }
.cat-cover-body h1 { font-size: 1.375rem; font-weight: 700; margin-top: 0.375rem; margin-bottom: 0.25rem; }
.cat-cover-body p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); max-width: 42rem; }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) {
  .category-page { padding-top: 1.5rem; padding-bottom: 3rem; }
  .cat-header { margin-bottom: 1.5rem; }
  .cat-cover-wrap { height: 380px; }
  .cat-cover-body h1 { font-size: 1.75rem; margin-top: 0.5rem; margin-bottom: 0.375rem; }
  .cat-cover-body p { font-size: 0.875rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ 文章详情页 ============ */
.article-page { min-height: 100vh; }
.article-shell { background: var(--bg-white); min-height: 100vh; }
.article-header { padding: 30px 30px 20px; max-width: 860px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.page-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.page-intro { font-size: 16px; color: var(--text-muted); margin: 0 0 16px; }
.meta-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

/* 内容页正文 + 封面 */
.article-shell--content { padding-bottom: 60px; }
.article-cover { max-width: var(--article-max-width); margin: 0 auto 24px; padding: 0 30px; }
.article-cover img { width: 100%; height: auto; border-radius: 8px; }
.article-body { max-width: var(--article-max-width); margin: 0 auto; padding: 0 30px; font-size: 1rem; line-height: var(--line-height); color: var(--text-color); }
.prose .prose-p { font-size: 17px; line-height: 1.8; color: var(--text-color); margin: 0 0 20px; }
.prose .prose-h { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--text-color); margin: 32px 0 16px; border-left: 3px solid var(--secondary-color); padding-left: 12px; }
.prose .prose-h:first-child { margin-top: 0; }
/* 相关文章 */
.related-section { max-width: var(--article-max-width); margin: 40px auto 0; padding: 0 30px; }
.related-header {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem;
}
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.related-item {
  display: block; padding: 0.75rem; border: 1px solid var(--border-color);
  border-radius: 0.5rem; background: var(--bg-white); transition: box-shadow 0.2s;
}
.related-item:hover { box-shadow: var(--shadow-md); }
.related-item strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.25rem; }
.related-item span { display: block; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .article-body { padding: 0 20px; }
  .article-header { padding: 24px 20px 16px; }
  .article-cover { padding: 0 20px; }
  .related-section { padding: 0 20px; }
  .prose .prose-p { font-size: 16px; }
}

/* ============ About 页 ============ */
.about-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.about-wrap { max-width: 800px; margin: 0 auto; }
.about-page .page-header { text-align: center; margin-bottom: 1.5rem; }
.about-page .page-header h1 { font-size: 2rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.5rem; }
.about-content {
  background: var(--bg-white); border: 1px solid var(--border-color);
  border-radius: 0.75rem; margin-top: 1.25rem; padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.about-section { margin-bottom: 2rem; }
.about-section:last-child { margin-bottom: 0; }
.about-section.intro-section { margin-bottom: 2.5rem; }
.about-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.75rem; }
.about-section p { font-size: 0.9375rem; color: #57534e; line-height: 1.75; }

/* ============ 静态法律页（Privacy / Terms）============ */
.static-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.static-wrap {
  max-width: 720px; margin: 0 auto; background: var(--bg-white);
  border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.static-wrap h1 { font-size: 1.5rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.75rem; }
.static-wrap .intro { margin-bottom: 1.5rem; font-size: 0.875rem; line-height: 1.75; color: #57534e; }
.static-wrap section { margin-bottom: 1.5rem; }
.static-wrap section:last-child { margin-bottom: 0; }
.static-wrap h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.static-wrap p { font-size: 0.875rem; line-height: 1.75; color: #57534e; margin-bottom: 0.625rem; }
@media (min-width: 640px) {
  .static-wrap { padding: 2rem; }
  .static-wrap h2 { font-size: 1.125rem; margin-bottom: 0.625rem; }
  .static-wrap p { font-size: 0.9375rem; margin-bottom: 0.75rem; }
  .static-wrap .intro { font-size: 0.9375rem; margin-bottom: 2rem; }
}

/* ============ Contact 页 ============ */
.contact-page { padding-top: 1.5rem; padding-bottom: 3rem; max-width: 1100px; margin: 0 auto; }
.contact-header { margin-bottom: 1.5rem; }
.contact-header h1 { font-size: 2rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.5rem; }
.contact-header .intro { font-size: 0.9375rem; color: #57534e; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-form {
  background: var(--bg-white); border: 1px solid var(--border-color);
  border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-color); margin-bottom: 0.375rem;
}
.form-field .req { color: #dc2626; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.625rem 0.75rem; font-size: 0.875rem;
  font-family: var(--body-font); color: var(--text-color);
  background: var(--bg-color); border: 1px solid var(--border-color);
  border-radius: 0.5rem; outline: 0; transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--secondary-color); }
.form-field textarea { resize: vertical; min-height: 100px; }
.contact-submit {
  display: inline-block; padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--primary-color); border: none; border-radius: 0.5rem;
  cursor: pointer; transition: background 0.2s;
}
.contact-submit:hover { background: var(--secondary-color); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  background: var(--bg-white); border: 1px solid var(--border-color);
  border-radius: 0.75rem; padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.5rem; }
.info-card p { font-size: 0.8125rem; line-height: 1.7; color: #57534e; margin-bottom: 0.5rem; }
.info-card p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 3fr 2fr; }
}

/* ============ 满屏 CTV 广告覆盖层（广告交付页，chrome=false 不套外壳）============
 * 固定铺满整个 WebView 视口，盖住正文。z-index 高于一切。
 */
.ad-stage {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50;
  width: 100vw; height: 100vh; background: #000; overflow: hidden;
}
.ad-end-mask {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.92);
}
/* VideoAdPlayer（IMA SDK 注入容器）*/
.video-ad { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.video-ad__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-ad video, .video-ad iframe { width: 100%; height: 100%; }

/* 起播遮罩：广告 src 挂上后 poster 即被顶掉，部分盒子 WebView 在待播窗口自绘
   巨大播放占位图标（2026-10-10 客户复发）；黑遮罩盖住，video 出帧（playing/
   timeupdate）后由内联脚本移除。pointer-events:none 不拦截 IMA 点击层。 */
.video-ad__preload-mask {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #000; z-index: 2; pointer-events: none;
}

/* ============ 2026-10-22 自线上 20261017c 血统合并移植：/demo/ 模拟播放 + /lp/ 落地页样式 ============ */
/* （原仓库 CSS 无此段——演示页特性在另一交付线开发未回流；起播遮罩样式仓库独有已保留在前） */
/* 兼容性注：.lp-* 页面用了 clamp()/flex gap（Chromium 79/84+），78 老内核回退降级布局， */
/* 仅影响 lp 落地页观感；广告页关键的 .sim-*/.ad-play-hint 均为 78 安全写法（四边定位、固定 px） */
/* ============ /demo/ 广告落地页（lp）============ */
/* 品牌方落地页，chrome:false 独立成页。主题色由页面内联 --lp-* 变量驱动 */
.lp { --lp-primary:#0e7c7b; --lp-accent:#ff9d4d; --lp-dark:#0b2e2e; --lp-bg:#f7fbfb;
  min-height:100vh; background:var(--lp-bg); color:#1a2b2b; font-family:-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; }
.lp *, .lp *::before, .lp *::after { box-sizing:border-box; }
.lp-hero { position:relative; height:88vh; min-height:480px; overflow:hidden; background:#000; }
.lp-hero__video { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.lp-hero__overlay { position:absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.62) 100%); }
.lp-hero__content { position:relative; z-index:2; height:100%; max-width:1100px; margin:0 auto; padding:0 24px;
  display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; padding-bottom:64px; color:#fff; }
.lp-brand { display:inline-block; font-size:13px; letter-spacing:.32em; text-transform:uppercase; font-weight:700;
  color:#fff; border:1px solid rgba(255,255,255,.55); padding:8px 14px; margin-bottom:18px; backdrop-filter:blur(2px); background:rgba(0,0,0,.18); }
.lp-hero h1 { margin:0 0 14px; font-size:clamp(34px,6vw,64px); line-height:1.06; font-weight:800; text-shadow:0 2px 18px rgba(0,0,0,.45); }
.lp-sub { margin:0 0 26px; font-size:clamp(15px,2.2vw,19px); max-width:560px; color:rgba(255,255,255,.92); text-shadow:0 1px 8px rgba(0,0,0,.5); }
.lp-cta { display:inline-block; background:var(--lp-accent); color:#101414; font-weight:700; font-size:17px;
  padding:15px 34px; border-radius:6px; text-decoration:none; box-shadow:0 8px 22px rgba(0,0,0,.35); transition:transform .15s ease; }
.lp-cta:hover { transform:translateY(-2px); }
.lp-cta:active { transform:translateY(0); }
.lp-ribbon { position:absolute; top:22px; right:22px; z-index:3; background:var(--lp-accent); color:#101414;
  font-weight:700; font-size:13px; padding:9px 16px; border-radius:999px; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.lp-section { max-width:1100px; margin:0 auto; padding:58px 24px; }
.lp-section__title { font-size:clamp(22px,3.4vw,30px); font-weight:800; color:var(--lp-dark); margin:0 0 8px; }
.lp-section__intro { margin:0 0 30px; color:#4c5f5f; font-size:16px; max-width:640px; }
.lp-cards { display:flex; gap:18px; flex-wrap:wrap; }
.lp-card { flex:1 1 240px; background:#fff; border-radius:12px; padding:26px 22px;
  border:1px solid rgba(0,0,0,.07); box-shadow:0 6px 20px rgba(15,45,45,.07); }
.lp-card__ico { width:44px; height:44px; border-radius:10px; background:var(--lp-primary); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:14px; }
.lp-card h3 { margin:0 0 8px; font-size:18px; color:var(--lp-dark); }
.lp-card p { margin:0; font-size:14.5px; line-height:1.55; color:#4c5f5f; }
.lp-deal { background:var(--lp-dark); color:#fff; }
.lp-deal .lp-section__title, .lp-deal .lp-price-row__label { color:#fff; }
.lp-deal-wrap { display:flex; gap:40px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.lp-deal-left { flex:1 1 320px; }
.lp-deal-badge { display:inline-block; background:var(--lp-accent); color:#101414; font-weight:700; font-size:13px;
  padding:6px 12px; border-radius:5px; margin-bottom:14px; letter-spacing:.04em; }
.lp-deal-headline { font-size:clamp(24px,3.6vw,34px); font-weight:800; margin:0 0 18px; line-height:1.2; }
.lp-price-rows { flex:1 1 320px; }
.lp-price-row { display:flex; justify-content:space-between; align-items:baseline; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.lp-price-row__label { font-size:15.5px; color:rgba(255,255,255,.88); }
.lp-price-row__note { display:block; font-size:12.5px; color:rgba(255,255,255,.55); margin-top:2px; }
.lp-price-row__value { font-size:22px; font-weight:800; color:var(--lp-accent); white-space:nowrap; }
.lp-fineprint { margin:16px 0 0; font-size:12px; color:rgba(255,255,255,.5); }
.lp-form { background:#fff; border-top:1px solid rgba(0,0,0,.06); }
.lp-form-grid { display:flex; gap:12px; flex-wrap:wrap; max-width:640px; }
.lp-input { flex:1 1 260px; padding:15px 16px; font-size:16px; border:1.5px solid #ccd7d7; border-radius:6px; outline:none; }
.lp-input:focus { border-color:var(--lp-primary); }
.lp-btn { background:var(--lp-primary); color:#fff; border:none; padding:15px 30px; font-size:16px; font-weight:700;
  border-radius:6px; cursor:pointer; }
.lp-btn:hover { opacity:.92; }
.lp-success { display:none; background:#e9f7ef; border:1px solid #bfe8d0; color:#1c6b3f; border-radius:8px;
  padding:18px 20px; font-size:15.5px; max-width:640px; line-height:1.55; }
.lp-success.is-visible { display:block; }
.lp-footer { background:#0c1515; color:rgba(255,255,255,.55); }
.lp-footer__inner { max-width:1100px; margin:0 auto; padding:26px 24px; display:flex; gap:18px; flex-wrap:wrap;
  align-items:center; justify-content:space-between; font-size:13px; }
.lp-footer a { color:rgba(255,255,255,.75); text-decoration:none; margin-left:16px; }
.lp-footer a:hover { color:#fff; }
@media (max-width:640px){ .lp-hero{height:74vh} .lp-hero__content{padding-bottom:44px} }

/* /demo/ 手势兜底提示（老 WebView 拦截自动播放时显示） */
.ad-play-hint { position:absolute; left:50%; bottom:8%; transform:translateX(-50%); z-index:20;
  background:rgba(0,0,0,.72); color:#fff; font-size:16px; padding:10px 22px; border-radius:999px;
  border:1px solid rgba(255,255,255,.4); pointer-events:none; }

/* /demo/ 模拟播放的 IMA 风格 UI（进度条/倒计时/Ad 标识/Skip/点击层） */
.sim-ui { position:absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events:none; z-index:10; }
.sim-click { position:absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events:auto; cursor:pointer; }
.sim-progress { position:absolute; left:0; bottom:0; height:4px; width:0%; background:#3ea6ff; }
.sim-countdown { position:absolute; top:14px; right:16px; color:#fff; font-size:15px; font-weight:600;
  text-shadow:0 1px 4px rgba(0,0,0,.85); font-family:Arial,Helvetica,sans-serif; }
.sim-attribution { position:absolute; left:14px; bottom:14px; pointer-events:auto; cursor:pointer;
  background:rgba(20,20,20,.75); color:#fff; font-size:12.5px; font-weight:600;
  padding:7px 12px; border-radius:3px; font-family:Arial,Helvetica,sans-serif; }
.sim-attribution:hover { background:rgba(20,20,20,.92); }
.sim-skip { position:absolute; right:14px; bottom:14px; pointer-events:auto; cursor:pointer; display:none;
  background:rgba(20,20,20,.78); color:#fff; font-size:14px; font-weight:700;
  padding:9px 16px; border-radius:3px; border:1px solid rgba(255,255,255,.35);
  font-family:Arial,Helvetica,sans-serif; }
.sim-skip.is-visible { display:block; }
