:root {
  --primary: #2e7cff;
  --primary-dark: #1a5fd6;
  --text: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg: #f5f6f8;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --content-max: 880px;
  --divider-light: #f0f2f5;
  --footer-gap: 32px;
  /* 移动端底部固定下载栏占用高度（与 .fixed-download 一致） */
  --fixed-download-height: calc(64px + env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.page {
  min-height: 100vh;
  padding-bottom: 0;
  padding-top: 52px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 顶部导航 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.site-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #091b3d;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  border: none;
  outline: none;
  box-shadow: none;
}

.site-nav-brand-text {
  line-height: 1;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav-links::-webkit-scrollbar {
  display: none;
}

.site-nav-link {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--primary);
  background: rgba(46, 124, 255, 0.08);
}

.site-nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.site-nav-toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  border: none;
}

/* 分区面板 */
.tab-panel {
  display: none;
  padding-top: 16px;
}

.tab-panel.active {
  display: block;
}

.intro-hero-card {
  margin-bottom: 0;
}

/* 首页统一卡片 */
.home-main-card {
  margin-top: 0;
}

.home-main-card .intro-brief {
  margin-bottom: 20px;
}

.home-app-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.home-divider {
  height: 1px;
  background: var(--divider-light);
  margin: 16px 0;
}

.home-divider--section {
  margin-top: 20px;
  margin-bottom: 18px;
}

/* 快速了解 */
.home-quick-links {
  margin-top: 20px;
}

.quick-link-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-link-grid--2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-product-card {
  margin-top: 0;
  padding-top: 0;
  scroll-margin-top: 68px;
}

/* 产品展示 */
.home-product-section {
  padding-top: 4px;
}

.home-page-card .section-desc {
  margin-top: 0;
}

.sub-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.2;
}

.sub-section-title:first-of-type {
  margin-top: 8px;
}

.agreement-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: -8px 0 16px;
}

.home-quick-links .section-title--inline {
  margin-bottom: 12px;
}

.quick-link-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: -4px 0 12px;
  line-height: 1.6;
}

.quick-link-grid--nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-link-item {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.quick-link-item:hover {
  background: #eef4ff;
  border-color: #bfd6ff;
}

/* 联系信息 */
.contact-list {
  margin: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item dt {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.contact-item dd a {
  color: var(--primary);
}

/* 协议显示 */
.agreement-content .agreement-tip {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8f9fd;
  border-radius: 8px;
  color: var(--text-secondary);
}

.agreement-link {
  color: var(--primary);
  text-decoration: underline;
}

.agreement-link:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 顶部应用信息 */
.app-hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 20px;
}

.app-hero-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  object-fit: cover;
  border: none;
  outline: none;
  border: 1px solid #e8e8e8;
}

.app-meta {
  flex: 1;
  min-width: 0;
}

.app-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.app-tagline-item {
  white-space: nowrap;
  flex: 0 0 auto;
}

.app-tagline-item + .app-tagline-item::before {
  content: '·';
  margin: 0 6px;
}

.app-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.app-info-list span em {
  font-style: normal;
  color: var(--text-secondary);
}

.download-area {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 124, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 124, 255, 0.45);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-download .icon-android {
  width: 20px;
  height: 20px;
}

.platform-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.platform-tip .disabled {
  color: #ccc;
  text-decoration: line-through;
  margin-right: 8px;
}

/* 截图区 */
.section {
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
}

.section-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #091b3d;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}

.screenshots-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.screenshots-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.shot-item {
  flex: 0 0 auto;
  width: 140px;
  max-width: 100%;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s;
}

.shot-item:hover {
  transform: scale(1.02);
}

.shot-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* 简介 */
.intro-brief {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8f9fd;
  border-radius: 8px;
}

.intro-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.intro-detail h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 8px;
}

.intro-detail h3:first-child {
  margin-top: 0;
}

.intro-detail ul {
  padding-left: 1.2em;
  margin: 6px 0 0;
}

.intro-detail li {
  margin-bottom: 6px;
}

/* 套餐定价对比表 */
.plan-section-card {
  overflow: visible;
}

.plan-section-card .section-desc {
  margin-top: 0;
}

.plan-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 2px 4px 8px;
  border-radius: 8px;
}

.plan-table-caption {
  caption-side: top;
  padding: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #091b3d;
  text-align: center;
  line-height: 1.5;
}

.plan-table {
  width: 100%;
  min-width: 755px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  overflow: visible;
}

/* plan-table 四周边框 */
.plan-table > caption {
  border-top: 1px solid #dbe7ff;
  border-left: 1px solid #dbe7ff;
  border-right: 1px solid #dbe7ff;
}

.plan-table > thead > tr:first-child > th {
  border-top: 1px solid #dbe7ff;
}

.plan-table > tbody > tr:last-child > td {
  border-bottom: 1px solid #dbe7ff;
}

.plan-table tr > :first-child {
  border-left-color: #dbe7ff;
}

.plan-table tr > :last-child {
  border-right-color: #dbe7ff;
}

.plan-table th,
.plan-table td {
  border: 1px solid #e8eef5;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
  word-break: break-word;
  font-weight: 400;
}

.plan-table thead th {
  background: #f0f6ff;
  font-weight: 500;
  color: var(--primary);
}

.plan-table thead .plan-th-val {
  background: #fff;
  color: var(--text);
  font-weight: 400;
}

.plan-table thead tr:first-child .col-feature {
  background: #f0f6ff;
  color: var(--primary);
  font-weight: 500;
}

.plan-table thead .plan-head-row-price .col-feature {
  background: #fff;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-table .col-module-head,
.plan-table .col-category {
  width: 140px;
}

.plan-table .col-module-head,
.plan-table .col-category {
  font-weight: 500;
}

.plan-table .col-module-head {
  background: #f8fbff;
  color: #091b3d;
}

.plan-table .col-category {
  color: var(--text-secondary);
  background: #fafcff;
}

.plan-table .col-feature {
  width: 175px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
  background: #fff;
  color: var(--text-secondary);
}

.plan-table tbody td:not(.col-category):not(.col-feature) {
  background: #fff;
}

.plan-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

.plan-icon--yes {
  color: var(--primary);
}

.plan-icon--no {
  color: #e53935;
}

.plan-val--pro {
  color: #2e7cff;
  font-weight: 500;
}

.plan-val--flag {
  color: #18a058;
  font-weight: 500;
}

.plan-val-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.plan-cell-empty {
  color: #d0d5dd;
}

.plan-table-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-desc--desktop-only {
  display: inline;
}

/* 移动端套餐卡片 */
.plan-cards {
  display: none;
}

.plan-cards-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: #091b3d;
  text-align: center;
  line-height: 1.5;
}

.plan-card {
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(46, 124, 255, 0.06);
}

.plan-card + .plan-card {
  margin-top: 12px;
}

.plan-card-head {
  padding: 14px 16px;
  background: #f0f6ff;
  border-bottom: 1px solid #dbe7ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.plan-card-price {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  text-align: right;
  flex-shrink: 0;
}

/* 移动端套餐卡片-内容 */
.plan-card-body {
  padding: 0;
}

.plan-card-group + .plan-card-group {
  border-top: 1px solid #eef3fb;
}

.plan-card-group-title {
  margin: 0;
  padding: 10px 16px 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fafcff;
  line-height: 1.3;
}

.plan-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid #f0f4fc;
}

.plan-card-item:last-child {
  border-bottom: none;
}

.plan-card-feature {
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
}

.plan-card-val {
  flex-shrink: 0;
  text-align: right;
  color: var(--text);
}

/* 页脚：container 上下留白一致 */
.footer {
  margin-top: 0;
  margin-bottom: 0;
  padding: var(--footer-gap) 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer .container p {
  margin: 0;
  line-height: 1.6;
}

.footer .container p + p {
  margin-top: 4px;
}

/* 移动端底部固定下载 */
.fixed-download {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.fixed-download .btn-download {
  width: 100%;
  min-width: 0;
}

/* 微信提示 */
.wechat-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
}

.wechat-mask.show {
  display: block;
}

.wechat-tip {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  text-align: right;
  font-size: 15px;
  line-height: 1.6;
}

.wechat-tip::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 60px;
  height: 80px;
  border: 3px dashed #fff;
  border-left: none;
  border-bottom: none;
  border-radius: 0 12px 0 0;
}

/* 预览大图 */
.preview-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-mask.show {
  display: flex;
}

.preview-mask img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

/* PC 布局 */
@media (min-width: 768px) {
  .page {
    padding-bottom: 0;
  }

  .footer {
    padding-top: var(--footer-gap);
    padding-bottom: var(--footer-gap);
    margin-bottom: 0;
  }

  .app-hero {
    padding: 32px 0 28px;
  }

  .app-hero-inner {
    gap: 24px;
  }

  .app-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }

  .app-tagline {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .section-card {
    padding: 24px 28px;
  }

  .home-app-block {
    gap: 24px;
  }

  .quick-link-grid--3,
  .quick-link-grid--2,
  .quick-link-grid--nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
  }

  /* PC：截图网格平铺，避免横向撑破页面 */
  .screenshots-scroll {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    overflow-x: hidden;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .shot-item {
    width: auto;
    max-width: 100%;
  }

  .shot-item:hover {
    transform: none;
  }

  .plan-table {
    min-width: 100%;
    font-size: 13px;
  }

  /* PC 套餐表格：淡色斑马条纹 */
  .plan-section-card .plan-table tbody tr:nth-child(odd) td.col-feature,
  .plan-section-card .plan-table tbody tr:nth-child(odd) td:not(.col-category):not(.col-feature) {
    background: #f9fbfe;
  }

  .plan-section-card .plan-table tbody tr:nth-child(odd) td.col-category {
    background: #f3f7fc;
  }

  .container--wide {
    max-width: 1100px;
  }
}

@media (max-width: 767px) {
  .fixed-download {
    display: block;
  }

  .footer {
    padding-top: var(--footer-gap);
    padding-bottom: var(--footer-gap);
    margin-bottom: var(--fixed-download-height);
  }

  .app-hero .download-area .btn-download,
  .home-main-card .download-area .btn-download,
  .home-page-card .download-area .btn-download {
    display: none;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-link {
    border-radius: 8px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quick-link-grid--3,
  .quick-link-grid--2,
  .quick-link-grid--nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-table-wrap {
    display: none;
  }

  .plan-cards {
    display: block;
  }

  .plan-table-tip--desktop {
    display: none;
  }

  .section-desc--desktop-only {
    display: none;
  }
}
