/* ============================================================
   区块层：站头导航 / Hero / 手机样机 / 下载区 / 步骤 / 页脚 等
   （组件级响应式覆盖紧跟在各自定义之后）
   ============================================================ */

/* ---------- 站头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.brand img { width: 42px; height: 42px; border-radius: 12px; }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); margin-inline: auto; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 700; }

.site-header .btn { padding: 11px 24px; font-size: 15px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-surface);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .site-header .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    box-shadow: 0 16px 32px -16px rgba(23, 35, 30, 0.18);
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding: 14px 12px; border-radius: 12px; font-size: 16px; }
  .site-nav a[aria-current="page"] { background: var(--brand-surface); }
}

/* 宽屏导航常驻：即使 JS 未执行也不该被 hidden 属性藏住（无 JS 兜底） */
@media (min-width: 861px) {
  .site-nav[hidden] { display: flex !important; }
}

/* ---------- Hero（左右结构） ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-8) var(--sp-9); }
.hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -420px;
  width: 1300px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 179, 134, 0.12), transparent 72%);
  pointer-events: none;
}
.hero .split { position: relative; }

.hero__body { align-items: flex-start; display: flex; flex-direction: column; }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: var(--sp-4);
}
.hero__title .grad {
  background: linear-gradient(120deg, var(--grad-text-a), var(--grad-text-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: var(--sp-5);
  max-width: 640px;
  font-size: var(--fs-lead);
  color: var(--text-body);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero__hint {
  flex-basis: 100%;
  margin-top: calc(-1 * var(--sp-2));
  font-size: var(--fs-meta);
  color: var(--text-body);
}
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-6); }

/* Hero 拼接截图（覆盖 .split__aside 的 flex: 0 0 auto，需同级优先级） */
.hero .split__aside {
  margin: 0;
  flex: 0 1 46%;
  min-width: 0;
}
.hero__shot img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

@media (max-width: 1100px) {
  .hero .split { flex-direction: column; align-items: center; text-align: center; }
  .hero__body { align-items: center; }
  .hero__shot { width: 100%; max-width: 640px; }
}

/* ---------- 板块（白底通用） ---------- */
.section-blocks .movie-grid { margin-top: var(--sp-6); }

/* 「更多片源」卡 */
.more-card {
  border-radius: var(--r-card);
  background: var(--brand-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 16px;
  min-height: 404px;
  text-align: center;
  transition: transform 0.15s ease;
}
.more-card:hover { transform: translateY(-4px); }
.more-card__plus {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand-mark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 下载区 ---------- */
.device-card {
  border-radius: var(--r-card);
  background: var(--brand-surface);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.device-card--hot { background: var(--brand-surface-2); }
.device-card__name { font-size: 19px; font-weight: 700; color: var(--text); }
.device-card__desc { font-size: var(--fs-meta); color: var(--text-body); flex: 1 1 auto; }
.device-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brand-ink);
}

/* Android 详情条 */
.tip-bar {
  margin-top: var(--sp-6);
  border-radius: var(--r-card);
  background: var(--brand-surface);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}
.tip-bar__tips { flex: 1 1 auto; min-width: 0; }
.tip-bar h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--sp-4); }
.tip-bar__tips li {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--text-body);
  padding-block: 6px;
}
.tip-bar__no { font-weight: 700; color: var(--brand-ink); font-size: 15px; }
.tip-bar__qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-meta);
  color: var(--text-body);
}

@media (max-width: 860px) {
  .tip-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- 特性 / 步骤 ---------- */
.step-card .step-no {
  font-size: 44px;
  font-weight: 700;
  color: var(--brand-mark);
  line-height: 1;
}
.step-card h3 { font-size: 20px; font-weight: 700; }
.step-card__tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 179, 134, 0.1);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 底部 CTA ---------- */
.cta-panel {
  border-radius: 32px;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(135deg, #075139, var(--panel-deep));
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  color: #fff;
}
.cta-panel h2 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 800; }
.cta-panel .sub { font-size: 17px; opacity: 0.85; }
.cta-panel .btn { margin-top: var(--sp-2); }
.cta-panel .note { font-size: var(--fs-meta); opacity: 0.7; }

/* ---------- 页头（子页通用） ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: var(--sp-8); text-align: center; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.2; }
.page-hero .sub { margin: var(--sp-3) auto 0; max-width: 640px; color: var(--text-body); font-size: var(--fs-body); }
.page-hero .search { margin: var(--sp-6) auto 0; }
.page-hero .chips { margin-top: var(--sp-5); justify-content: center; }
.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.page-hero--tint { background: var(--brand-surface); }
.page-hero--tint .search { background: #fff; }
.page-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -360px;
  width: 1000px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 179, 134, 0.1), transparent 72%);
  pointer-events: none;
}

/* ---------- 下载页 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.dl-panel {
  border-radius: 32px;
  background: var(--brand-surface);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dl-panel__body { min-width: 0; }
.dl-panel__head { display: flex; align-items: center; gap: var(--sp-4); }
.dl-panel__head h2 { font-size: 24px; font-weight: 700; }
.dl-panel__ver { font-size: var(--fs-meta); color: var(--text-body); margin-top: 2px; }
.dl-panel__desc { margin-top: var(--sp-4); font-size: var(--fs-small); line-height: 1.8; color: var(--text-body); }
.dl-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.dl-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 2px;
}
.dl-link:hover { border-bottom-color: var(--brand-ink); }
.dl-panel__safety { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-5); }

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

.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
.dl-step { background: #fff; border-radius: var(--r-card); padding: var(--sp-5); display: flex; gap: var(--sp-4); }
.dl-step .step-no { font-size: 26px; font-weight: 700; color: var(--brand-mark); line-height: 1.1; }
.dl-step h3 { font-size: 16px; font-weight: 600; }
.dl-step p { font-size: var(--fs-meta); color: var(--text-body); margin-top: 2px; }

@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-panel { padding: var(--sp-5); }
  .dl-steps { grid-template-columns: 1fr; }
}

/* ---------- 帮助页 ---------- */
.cat-card h2 { font-size: 18px; font-weight: 700; color: var(--text); }
.contact-panel {
  border-radius: 32px;
  background: var(--panel-deep);
  padding: var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  color: #fff;
}
.contact-panel h2 { font-size: 24px; font-weight: 700; }
.contact-panel .sub { margin-top: var(--sp-2); font-size: var(--fs-small); opacity: 0.65; }
.contact-panel .btn { flex: 0 0 auto; }
@media (max-width: 720px) {
  .contact-panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-surface); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-8); }
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}
.site-footer__brand p { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-body); max-width: 360px; }
.site-footer h3 { font-size: var(--fs-small); font-weight: 700; color: var(--text); margin-bottom: var(--sp-4); }
.site-footer__col a { display: block; padding-block: 5px; font-size: var(--fs-small); color: var(--text-body); }
.site-footer__col a:hover { color: var(--brand-ink); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: var(--fs-meta);
  color: var(--text-body);
}
.site-footer__bottom nav { display: flex; gap: var(--sp-4); }
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SEO 落地页新增组件
   ============================================================ */

/* ---------- 站内搜索 ---------- */
.search--lg {
  width: min(680px, 100%);
  margin-inline: auto;
  padding: 8px 8px 8px 24px;
  gap: var(--sp-3);
}
.search--lg input { font-size: 16px; }
.search--lg .btn { padding: 12px 28px; font-size: 15px; }

.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 120px;
}
.search-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--brand-surface);
  border-radius: 20px;
  transition: transform 0.15s ease;
}
.search-hit:hover { transform: translateX(4px); }
.search-hit__type {
  font-size: var(--fs-meta);
  color: var(--brand-ink);
  font-weight: 600;
}
.search-hit__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.search-hit__desc {
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: 1.7;
}
.search-hit mark {
  background: rgba(0, 179, 134, 0.22);
  color: var(--brand-ink);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}
.search-empty {
  padding: var(--sp-6) var(--sp-5);
  background: var(--brand-surface);
  border-radius: 20px;
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: 1.9;
}

/* ---------- 每日更新列表 ---------- */
.update-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.update-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3);
  background: var(--brand-surface);
  border-radius: var(--r-card);
  transition: transform 0.15s ease;
}
.update-item:hover { transform: translateX(4px); }
.update-item__poster {
  flex: 0 0 auto;
  width: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.update-item__poster img { width: 100%; height: auto; display: block; }
.update-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.update-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.update-item__meta { font-size: var(--fs-meta); color: var(--text-body); }
.update-item__note { font-size: var(--fs-meta); color: var(--brand-ink); font-weight: 500; }
.update-item__time {
  flex: 0 0 auto;
  font-size: var(--fs-meta);
  color: var(--text-body);
  white-space: nowrap;
  padding: 6px 14px;
  background: #fff;
  border-radius: var(--r-pill);
}
@media (max-width: 720px) {
  .update-item { gap: var(--sp-3); padding: var(--sp-3); }
  .update-item__poster { width: 48px; }
  .update-item__time { font-size: 12px; padding: 4px 10px; }
}

/* ---------- 影片详情页 ---------- */
.movie-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.movie-detail__poster {
  border-radius: var(--r-cover);
  overflow: hidden;
  background: var(--brand-surface);
}
.movie-detail__poster img {
  width: 100%;
  height: auto;
  display: block;
}
.movie-detail__info h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}
.movie-detail__desc {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: var(--sp-6);
}
.meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
}
.meta-list > div {
  display: flex;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--brand-surface);
  min-width: 0;
}
.meta-list dt {
  flex: 0 0 56px;
  color: var(--text-body);
  font-size: var(--fs-meta);
}
.meta-list dd {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}
@media (max-width: 860px) {
  .movie-detail { grid-template-columns: 1fr; gap: var(--sp-5); }
  .movie-detail__poster { max-width: 220px; }
  .meta-list { grid-template-columns: 1fr; }
}

/* ---------- 页头补充信息行 ---------- */
.page-hero__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-meta);
  color: var(--text-body);
  letter-spacing: 0.02em;
}

/* ---------- 能力对照表 ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-card);
  background: var(--brand-surface);
  padding: var(--sp-3);
  /* 关键：容器自身不能被内容撑宽，否则整页横向溢出 */
  max-width: 100%;
}
.cmp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-small);
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
}
.cmp-table th,
.cmp-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #e8edea;
}
.cmp-table thead th {
  background: var(--brand-surface);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.cmp-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cmp-table td {
  color: var(--brand-ink);
  font-weight: 500;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:nth-child(even) { background: #fafcfb; }

/* ---------- 卡片内嵌链接（落地页正文用） ---------- */
.card a,
.card h3 a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 120, 90, 0.35);
  text-underline-offset: 3px;
}
.card a:hover,
.card h3 a:hover { text-decoration-color: var(--brand-ink); }
.card h3 a { font-size: inherit; font-weight: 700; color: var(--text); text-decoration-color: rgba(0, 120, 90, 0.35); }
.card h3 a:hover { color: var(--brand-ink); }

/* ---------- CTA 面板内的链接 ---------- */
.cta-panel .note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.95;
}
.cta-panel .note a:hover { opacity: 1; }

/* ---------- 页脚列宽（链接列增至 5 列后重排） ---------- */
.site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
