/* 风格参考 intro.satant.com：红白主色、企业官网版式 */
:root {
  --primary: #c8111b;
  --primary-dark: #a00e16;
  --primary-light: #e11b25;
  --text: #333333;
  --text-muted: #666666;
  --border: #ededed;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --header-h: 72px;
  --max-w: 1200px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .nav a {
  color: var(--text);
}

.site-header.scrolled .logo-white {
  display: none;
}

.site-header.scrolled .logo-red {
  display: block;
}

.site-header .logo-red {
  display: none;
}

.header-inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background 0.3s;
}

.site-header.scrolled .menu-toggle span {
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0b0b0c url("../assets/hero-bg.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 11, 12, 0.88) 0%, rgba(200, 17, 27, 0.45) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 17, 27, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-app {
  text-align: center;
}

.hero-app img {
  width: min(320px, 70vw);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.hero-app p {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Section ===== */
.section {
  padding: 88px 0;
}

/* 开户须知（醒目红色横幅） */
.section-account {
  padding: 40px 0 0;
}

.account-box {
  background: linear-gradient(135deg, #c8111b 0%, #a00e16 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  box-shadow: 0 12px 32px rgba(200, 17, 27, 0.25);
}

.account-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd7d9;
  margin-bottom: 10px;
}

.account-text h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
}

.account-text p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  line-height: 1.8;
}

.account-text strong {
  color: #ffd23f;
}

.account-qr {
  text-align: center;
  flex: 0 0 auto;
}

.account-qr img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  margin: 0 auto;
}

.account-qr p {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.section-alt {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== 下载卡片（三平台） ===== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* 卡片等高，最后一段内容贴底对齐，桌面端更整齐 */
.dl-card > :last-child {
  margin-top: auto;
}

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

.dl-card {
  position: relative;
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.dl-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(200, 17, 27, 0.18);
}

.dl-card.recommended::after {
  content: "本机推荐";
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 2px;
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dl-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 17, 27, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 4px;
}

.dl-icon svg {
  width: 28px;
  height: 28px;
}

.dl-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.dl-card .dl-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.dl-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #404040;
  line-height: 1.8;
}

/* 卡片内分区（APK 下载 / 应用市场下载） */
.dl-section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dl-block-divider {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dl-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

.dl-pill b {
  color: var(--text);
  font-weight: 600;
}

/* 历史版本 */
.dl-more {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.dl-more summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--primary);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dl-more summary::-webkit-details-marker {
  display: none;
}

.dl-more ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.dl-more li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.dl-more li:last-child {
  border-bottom: none;
}

.dl-more li .fname {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-more li .fmeta {
  color: var(--text-muted);
  flex: 0 0 auto;
  font-size: 12px;
}

.dl-more li a {
  color: var(--primary);
  font-weight: 600;
  flex: 0 0 auto;
}

.dl-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 36px;
}

/* 应用市场入口（安卓卡片） */
.dl-store {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.dl-store-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dl-store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-store:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

/* 统一链接（自动识别品牌） */
.dl-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 醒目警示框（鸿蒙版本限制等） */
.dl-warn {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fdf0f0;
  border: 1px solid #f0c4c4;
  border-left: 4px solid var(--primary);
  color: #8a2b2b;
  font-size: 13px;
  line-height: 1.8;
}

.dl-warn a {
  color: var(--primary);
  font-weight: 600;
}

.dl-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #221715;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  line-height: 1.7;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
  .account-box {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .account-text p {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 80px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 32px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav.open a {
    color: var(--text);
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, var(--max-w));
  }

  .section {
    padding: 64px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .footer-top {
    flex-direction: column;
  }
}
