/* ==========================================================================
   PDSync 官方网站样式表
   Pixel Dungeon Cross-Platform Save Sync Tool
   ========================================================================== */

:root {
  /* 品牌色系：地牢森林绿与空灵荧光蓝/青色 */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-active: #047857;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0284c7;
  --accent-cyan-light: #f0f9ff;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);

  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f5f3ff;
  --accent-rose: #f43f5e;
  --accent-rose-light: #fff1f2;

  /* 文字颜色体系 */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* 背景色体系 */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #071b11;
  --bg-dark-card: #0f2e1e;

  /* 边框与阴影 */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-primary: rgba(16, 185, 129, 0.35);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px -5px rgba(16, 185, 129, 0.35);
  --shadow-cyan-glow: 0 0 25px -5px rgba(56, 189, 248, 0.35);

  /* 圆角规格 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 字体规范 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  vertical-align: middle;
}

/* 布局辅助 */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  position: relative;
}

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

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid var(--border-primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 顶部导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-github-link:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

/* 按钮通用组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* 标签胶囊 Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.pill-green {
  background: var(--primary-light);
  color: #065f46;
  border: 1px solid var(--border-primary);
}

.pill-blue {
  background: var(--accent-cyan-light);
  color: #075985;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-amber {
  background: var(--accent-amber-light);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-outline {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Hero 首屏区域
   ========================================================================== */
.hero-section {
  padding: 72px 0 96px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
}

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

.version-tag {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-tips {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-tips svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Hero 右侧规格卡片 */
.hero-side-card {
  position: relative;
}

.dungeon-chest-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.dungeon-chest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -10px rgba(16, 185, 129, 0.2);
}

.chest-card-header {
  background: linear-gradient(135deg, #071b11 0%, #14462b 100%);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.chest-card-header::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.chest-icon-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.4);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chest-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chest-header-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.chest-header-text p {
  font-size: 0.85rem;
  color: #a7f3d0;
  line-height: 1.4;
}

.chest-spec-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chest-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spec-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.spec-icon-badge.green {
  background: var(--primary-light);
}

.spec-icon-badge.blue {
  background: var(--accent-cyan-light);
}

.spec-icon-badge.amber {
  background: var(--accent-amber-light);
}

.spec-icon-badge.purple {
  background: var(--accent-purple-light);
}

.spec-text-group {
  display: flex;
  flex-direction: column;
}

.spec-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.spec-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chest-card-footer {
  padding: 14px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #059669;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* ==========================================================================
   工作流条幅 (Workflow Banner)
   ========================================================================== */
.workflow-section {
  padding: 40px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.workflow-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.workflow-card:hover {
  background: #ffffff;
  border-color: var(--border-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workflow-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.workflow-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workflow-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   核心特性卡片网格
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon-box.green {
  background: var(--primary-light);
  color: #059669;
}

.feature-icon-box.blue {
  background: var(--accent-cyan-light);
  color: #0284c7;
}

.feature-icon-box.amber {
  background: var(--accent-amber-light);
  color: #d97706;
}

.feature-icon-box.purple {
  background: var(--accent-purple-light);
  color: #7c3aed;
}

.feature-icon-box.rose {
  background: var(--accent-rose-light);
  color: #e11d48;
}

.feature-icon-box.dark {
  background: #0f172a;
  color: #38bdf8;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-points {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-points li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-points li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   全平台下载专区 (Downloads Section)
   ========================================================================== */
.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.platform-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.platform-badge-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-primary);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-main);
  flex-shrink: 0;
}

.platform-icon.android {
  background: #ecfdf5;
  color: #10b981;
}

.platform-icon.windows {
  background: #eff6ff;
  color: #0284c7;
}

.platform-icon.mac {
  background: #f8fafc;
  color: #1e293b;
}

.platform-icon.linux {
  background: #fff7ed;
  color: #ea580c;
}

.platform-title-group h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
}

.platform-title-group span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.platform-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.platform-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.775rem;
  color: var(--text-light);
}

.mirror-link {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.mirror-link:hover {
  color: var(--primary);
}

/* 下载辅助信息栏 */
.download-footer-banner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.download-footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-footer-info svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Android 双接入方案对比 (Access Modes)
   ========================================================================== */
.modes-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.mode-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.25s ease;
}

.mode-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mode-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-title-wrap h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.mode-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mode-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mode-feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.mode-notice-box {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.mode-notice-box.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.mode-notice-box.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* ==========================================================================
   三步极速上手 (Quickstart Guide)
   ========================================================================== */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-number {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: #cbd5e1;
  line-height: 1;
}

.step-card:hover .step-number {
  color: var(--primary);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  font-size: 1.25rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   游戏理念与初心声明 (Philosophy Section)
   ========================================================================== */
.philosophy-card {
  background: linear-gradient(135deg, #071b11 0%, #0f2e1e 100%);
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(7, 27, 17, 0.5);
}

.philosophy-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.philosophy-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.philosophy-lead {
  font-size: 1.1rem;
  color: #a7f3d0;
  margin-bottom: 20px;
  line-height: 1.7;
}

.philosophy-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 24px;
}

.philosophy-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.philosophy-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.philosophy-item-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.philosophy-item-text p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   云端双轨方案与透明声明 (WebDAV Section)
   ========================================================================== */
.webdav-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.webdav-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.webdav-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.webdav-card-header h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-main);
}

.webdav-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.webdav-support-note {
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================================================
   常见问题 FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

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

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px dashed transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--border-color);
  padding-top: 16px;
}

.faq-answer strong {
  color: var(--text-main);
}

.faq-answer ul, .faq-answer ol {
  margin: 8px 0 8px 20px;
}

.faq-answer li {
  margin-bottom: 4px;
}

/* ==========================================================================
   页脚 Footer
   ========================================================================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 16px;
}

.footer-links-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   模态弹窗组件 (Modals)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.modal-pkg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-pkg-item:hover {
  background: #ffffff;
  border-color: var(--border-primary);
}

.modal-pkg-info {
  display: flex;
  flex-direction: column;
}

.modal-pkg-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-pkg-file {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.modal-pkg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   响应式断点适配 (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-side-card {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .download-platforms-grid {
    grid-template-columns: 1fr;
  }
  .modes-compare-grid {
    grid-template-columns: 1fr;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
  .webdav-compare-grid {
    grid-template-columns: 1fr;
  }
  .workflow-track {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
