/* WinRAR - 全局样式 */
:root {
  --primary: #3b5ba7;
  --primary-hover: #5b7bd5;
  --primary-dark: #1e3a6e;
  --bg: #f0f2f7;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-light: #888;
  --border: #e0e3ea;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ========== 顶部导航 ========== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(59,91,167,0.06);
}

/* ========== 主内容 ========== */
.main { flex: 1; }

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

/* ========== Hero 区域 ========== */
.hero {
  background: linear-gradient(135deg, #3b5ba7 0%, #1e3a6e 50%, #0f2247 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
}
.btn-primary:hover {
  background: #e8edf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-primary-solid {
  background: var(--primary);
  color: var(--white);
}
.btn-primary-solid:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ========== 区块 ========== */
.section {
  padding: 72px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
}

/* ========== 特性卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(59,91,167,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.feature-card .icon img {
  width: 36px;
  height: 36px;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== 截图展示 ========== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.screenshot-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.screenshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.screenshot-card .caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ========== 下载页 ========== */
.download-section {
  max-width: 1100px;
  margin: 0 auto;
}

.download-card-hero {
  background: linear-gradient(135deg, #3b5ba7 0%, #1e3a6e 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  box-shadow: 0 6px 32px rgba(59,91,167,0.3);
  text-align: center;
  margin-bottom: 40px;
}
.download-card-hero .version {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.download-card-hero .meta {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 28px;
}
.download-card-hero .btn {
  font-size: 18px;
  padding: 14px 48px;
}
.download-card-hero .btn-primary-solid {
  background: #fff;
  color: #3b5ba7;
}
.download-card-hero .btn-primary-solid:hover {
  background: #e8edf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.download-card-hero .download-info {
  margin-top: 32px;
}
.download-card-hero .info-item {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.download-card-hero .info-item .label {
  color: #3b5ba7;
  font-weight: 500;
}
.download-card-hero .info-item .value {
  color: #0a2a5e;
  font-weight: 700;
}

.download-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 32px;
}
.download-card .version {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.download-card .meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.download-card .btn {
  font-size: 18px;
  padding: 14px 48px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.download-grid .download-card {
  margin-bottom: 0;
  padding: 28px 24px;
}
.download-grid .download-card .version {
  font-size: 20px;
}
.download-grid .download-card .btn {
  font-size: 15px;
  padding: 10px 28px;
}

.download-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.download-info .info-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.info-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.info-item .value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

/* ========== 功能详情页 ========== */
.feature-detail {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.feature-detail.reverse {
  flex-direction: row-reverse;
}
.feature-detail .text {
  flex: 1;
  min-width: 280px;
}
.feature-detail .text h3 {
  font-size: 24px;
  margin-bottom: 14px;
}
.feature-detail .text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}
.feature-detail .image {
  flex: 1;
  min-width: 280px;
}
.feature-detail .image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== 使用指南页 ========== */
.guide-step {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.guide-step .step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-step .step-content {
  flex: 1;
}
.guide-step .step-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.guide-step .step-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 12px;
}
.guide-step .step-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-top: 8px;
}

/* ========== 关于页 ========== */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}
.about-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text);
}
.about-section p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 16px;
}
.about-section .meta-list {
  list-style: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.meta-list li {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.meta-list li .lbl {
  color: var(--text-light);
  width: 100px;
  flex-shrink: 0;
}
.meta-list li .val {
  color: var(--text);
}

/* ========== 奖项徽章 ========== */
.award-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
}
.award-badge img {
  width: 60px;
  height: auto;
}
.award-badge .award-text {
  font-size: 14px;
  color: #795548;
}

/* ========== 页脚 ========== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
  margin-top: auto;
}
.footer a {
  color: rgba(255,255,255,0.8);
}
.footer a:hover {
  color: var(--white);
}

/* ========== 二维码弹窗 ========== */
.qr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.qr-modal-overlay.active {
  display: flex;
}
.qr-modal {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  animation: modal-in 0.3s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.qr-modal-close:hover { color: var(--text); }
.qr-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 4px;
}
.qr-modal-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: left;
  margin: 14px 0 18px;
  padding: 0 4px;
}
.qr-modal-text li {
  margin-bottom: 4px;
  padding-left: 2px;
  list-style: none;
}
.qr-modal-btn {
  display: inline-block;
  padding: 10px 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
}
.qr-modal-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59,91,167,0.3);
  color: #fff;
}

/* 二维码呼吸边框动画 */
.qr-img-wrap {
  display: inline-block;
  padding: 3px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  animation: qr-pulse 1.8s ease-in-out infinite;
}
@keyframes qr-pulse {
  0%, 100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(59,91,167,0.35); }
  50% { border-color: #5b7bd5; box-shadow: 0 0 0 6px rgba(59,91,167,0); }
}
.qr-img-wrap img {
  display: block;
  border-radius: 8px;
}



/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 26px; }
  .nav-inner { flex-direction: column; height: auto; padding: 12px 24px; gap: 8px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .download-card { padding: 24px; }
  .download-card-hero { padding: 32px 24px; }
  .download-card-hero .version { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .about-section { padding: 24px; }
  .guide-step { flex-direction: column; }
}
