/* 特工17 (Agent 17) 官方门户级浅色工整排版系统 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color: #15803d;
  --secondary-color: #166534;
  --primary-soft: #f0fdf4;
  --primary-border: #bbf7d0;
  --bg-page: #f5f8f6;
  --bg-card: #ffffff;
  --bg-footer: #e9f0ec;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: outside; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== 顶部标准门户导航 ==================== */
.navbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 600;
  height: 68px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  display: block;
}

/* ==================== 通用按钮与标题栏 ==================== */
.btn-solid,
.download-btn-large,
.download-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-solid:hover,
.download-btn-large:hover,
.download-btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
}

.btn-ghost,
.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-secondary-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-soft);
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
  line-height: 1.25;
  margin: 0;
}

.section-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section-more:hover { text-decoration: underline; }

/* ==================== 首页大气双栏 Hero ==================== */
.portal-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.portal-hero-main {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.hero-app-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.hero-app-logo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  background: #ffffff;
}

.hero-app-meta h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
}

.hero-app-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.68;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-spec-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-spec-cell {
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.hero-spec-cell:last-child { border-right: none; }

.hero-spec-cell strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-spec-cell span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.portal-hero-side {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.side-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.side-card-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
}

.archive-table {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.archive-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.archive-table li span { color: var(--text-muted); }
.archive-table li strong { color: var(--text-main); font-weight: 600; }

.quick-code-strip {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quick-code-strip div span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quick-code-strip code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-color);
  background: transparent;
  padding: 0;
}

/* ==================== 首页通用模块间距 ==================== */
.portal-section { padding: 36px 0 0; }
.portal-section-last { padding: 36px 0 48px; }

/* 截图画廊 - 严格等宽对齐 */
.screenshots { padding: 36px 0 0; }
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.slider-wrapper { overflow: hidden; width: 100%; }
.slider-track { display: flex; transition: transform 0.45s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: 480px; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.94);
  color: var(--text-main); font-size: 22px; cursor: pointer; z-index: 10;
}
.slider-btn:hover { background: var(--primary-color); color: #ffffff; border-color: var(--primary-color); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.thumbnail-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.thumbnail {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.68;
  border: 2px solid var(--border-subtle);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border-color: var(--primary-color);
}

/* 剧情 + 2x2 亮点等高双栏 */
.story-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.story-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.story-panel p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.matrix-card span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.matrix-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.matrix-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==================== 子页面顶栏 ==================== */
.page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 0 26px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.back-link:hover { background: var(--primary-color); color: #ffffff; }

.guide-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== 攻略列表与卡片（严格等高对齐） ==================== */
.guides-content { padding: 32px 0 52px; }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.guide-image {
  width: 100%;
  height: 196px;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.guide-card:hover .guide-image img { transform: scale(1.03); }

.guide-info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.guide-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-date::after {
  content: "阅读详情 →";
  color: var(--primary-color);
  font-weight: 600;
}

/* ==================== 攻略详情页（规整双列配图） ==================== */
.guide-detail-content { padding: 32px 0 52px; }

.guide-article {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.guide-intro {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--primary-color);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.guide-intro p { margin: 0 !important; color: var(--text-main) !important; font-size: 0.93rem; }

.guide-block h2,
.guide-article h2 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-color);
}

.guide-block h2:first-child { margin-top: 0; }

.guide-article p,
.guide-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.guide-article ol,
.guide-article ul {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.guide-article li { margin-bottom: 8px; line-height: 1.75; }

.guide-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.guide-images img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

/* ==================== 礼包码中心（双栏整齐卡片矩阵） ==================== */
.giftcode-content { padding: 32px 0 52px; }

.giftcode-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.notice-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 2px;
}

.notice-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.notice-text p {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.giftcode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.giftcode-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.giftcode-card:first-child {
  grid-column: 1 / -1;
}

.giftcode-card:first-child .giftcode-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.giftcode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.giftcode-header h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.giftcode-status {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
}

.giftcode-status.valid {
  background: var(--primary-soft);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
}

.giftcode-status.expired {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.giftcode-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.giftcode-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.code-value {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: auto;
  cursor: pointer;
}

.copy-btn {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* ==================== 更新日志页（规整卡片流） ==================== */
.updates-content { padding: 32px 0 52px; }

.update-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.update-header h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
}

.update-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 3px 10px;
  border-radius: 4px;
}

.update-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 12px 0 8px;
}

.update-body h4:first-child { margin-top: 0; }

.update-body ul {
  padding-left: 20px;
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}

.update-body li { font-size: 0.91rem; line-height: 1.65; }
.update-body li p { margin: 0; display: inline; }

/* ==================== 下载页（严格双栏等高对齐） ==================== */
.download-content { padding: 32px 0 52px; }

.download-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
  border-right: 1px solid var(--border-subtle);
}

.download-logo {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.download-info h2 { font-size: 1.45rem; font-weight: 800; color: var(--text-main); }
.download-info p { font-size: 0.92rem; color: var(--text-secondary); }

.download-tips {
  margin-top: 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.download-tips h4 { font-size: 0.94rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.download-tips ul { padding-left: 18px; color: var(--text-secondary); font-size: 0.89rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }

.system-requirements,
.download-faq {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.system-requirements h3,
.download-faq h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.requirement-item {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.requirement-item h4 { font-size: 0.98rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.requirement-item ul { padding-left: 18px; color: var(--text-secondary); font-size: 0.9rem; }
.requirement-item li { margin-bottom: 6px; }

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h4 { font-size: 0.96rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.faq-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ==================== 协议与关于页（修正全屏盒子问题） ==================== */
.legal-content { padding: 32px 0 52px; }

.legal-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 38px;
  box-shadow: var(--shadow-card);
}

.legal-box h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 26px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary-color);
}

.legal-box h2:first-child { margin-top: 0; }
.legal-box p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.8; margin-bottom: 12px; }
.legal-box ul, .legal-box ol { padding-left: 22px; color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 16px; }
.legal-box li { margin-bottom: 6px; line-height: 1.75; }
.effective-date { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-subtle); color: var(--text-muted) !important; font-size: 0.85rem !important; }

/* ==================== 弹窗 ==================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px;
}
.modal-overlay.active, .modal-overlay.show { display: flex; }
.modal-dialog {
  background: #ffffff; color: var(--text-main); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px; width: min(760px, 100%);
  position: relative; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 32px; height: 32px;
  background: var(--bg-page); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 18px; color: var(--text-main); cursor: pointer;
}
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-card { background: var(--bg-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; }
.platform-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; text-align: center; }
.download-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.download-links a {
  display: block; padding: 8px 12px; background: #ffffff; border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm); color: var(--primary-color); font-weight: 600; font-size: 0.88rem; text-align: center;
}
.download-links a:hover { background: var(--primary-color); color: #ffffff; }

/* ==================== 页脚 ==================== */
.footer {
  margin-top: auto;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.footer-links a { color: var(--text-secondary); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }
.footer-sep { color: var(--border-strong); }
.footer p { margin-top: 4px; }

/* ==================== 响应式对齐 ==================== */
@media (max-width: 980px) {
  .portal-hero-grid,
  .story-feature-grid,
  .download-box { grid-template-columns: 1fr; }
  .download-info { padding-right: 0; border-right: none; padding-bottom: 18px; border-bottom: 1px solid var(--border-subtle); }
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giftcode-list, .giftcode-card:first-child .giftcode-body ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #ffffff; flex-direction: column; align-items: stretch;
    padding: 12px 24px 18px; border-bottom: 1px solid var(--border-subtle); gap: 0;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { height: 44px; border-bottom: 1px solid var(--bg-page); }
  .nav-menu a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .hero-app-head { flex-direction: column; }
  .hero-spec-bar, .feature-matrix, .guides-grid, .requirements-grid, .download-grid, .guide-images, .update-body ul, .download-tips ul { grid-template-columns: 1fr; }
  .hero-spec-cell { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .thumbnail-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .thumbnail { height: 50px; }
  .slide img { height: 260px; }
  .guide-article, .legal-box { padding: 22px 18px; }
}
/* 统一直接下载模块（参考 agent17zh.im 标准样式） */
.direct-dl-hero {
  text-align: center;
  padding: 48px 28px 36px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.direct-dl-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
  margin-bottom: 14px;
}
.direct-dl-title {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}
.direct-dl-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 26px;
  line-height: 1.75;
}
.direct-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 52px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.direct-dl-btn:hover {
  background: var(--secondary-color);
  color: #ffffff;
}
.direct-dl-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.direct-dl-meta-item {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
}
.direct-dl-meta-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.direct-dl-meta-item span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}
.direct-dl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.direct-dl-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}
.direct-dl-card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.direct-dl-card ul {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}
.direct-dl-card li { margin-bottom: 6px; }
@media (max-width: 768px) {
  .direct-dl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direct-dl-cards { grid-template-columns: 1fr; }
}