/* WinRAR 网站全局样式 */
:root {
  --primary: #8B1A1A;
  --primary-dark: #6B0E0E;
  --primary-light: #C0392B;
  --accent: #E74C3C;
  --gold: #F39C12;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(139,26,26,0.2);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== 顶部通栏 ===== */
.top-bar {
  background: var(--dark);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--gold); }

/* ===== 导航栏 ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo img { height: 40px; }
.logo span { color: var(--primary); }

.nav-menu {
  display: flex;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-download-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 25px !important;
  font-weight: 600;
}
.nav-download-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139,26,26,0.4);
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero 区块 ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 40%, #0f3460 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,26,26,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--gold); }
.hero-text p {
  font-size: 18px;
  color: #bbb;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231,76,60,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.hero-img { flex: 0 0 400px; text-align: center; }
.hero-img img {
  width: 340px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== 统计栏 ===== */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 22px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}
.stat-item .label { font-size: 13px; opacity: 0.85; }

/* ===== 通用区块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.section-title .line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== 平台下载区块 ===== */
.platforms {
  padding: 70px 0;
  background: var(--white);
}
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.platform-card:hover::before { transform: scaleX(1); }
.platform-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.platform-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff5f5, #fff);
}
.platform-card.featured::before { transform: scaleX(1); }
.badge-featured {
  position: absolute;
  top: 16px;
  right: -26px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 4px 32px;
  transform: rotate(45deg);
  font-weight: 600;
}
.platform-card img { width: 80px; margin-bottom: 18px; }
.platform-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.platform-version {
  font-size: 12px;
  color: var(--primary);
  background: rgba(139,26,26,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}
.btn-download {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-download:hover { opacity: 0.9; transform: translateY(-2px); }

/* ===== 功能特性 ===== */
.features {
  padding: 70px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(139,26,26,0.1), rgba(231,76,60,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon img { width: 38px; height: 38px; object-fit: contain; }
.feature-icon span { font-size: 32px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== 截图展示 ===== */
.screenshots {
  padding: 70px 0;
  background: var(--dark);
}
.screenshots .section-title h2 { color: var(--white); }
.screenshots .section-title p { color: #aaa; }
.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #bbb;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,26,26,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: 28px; }

/* ===== 奖项荣誉 ===== */
.awards {
  padding: 60px 0;
  background: var(--white);
}
.awards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.award-item {
  text-align: center;
  opacity: 0.7;
  transition: var(--transition);
}
.award-item:hover { opacity: 1; transform: scale(1.1); }
.award-item img { max-height: 80px; }

/* ===== 新闻资讯 ===== */
.news {
  padding: 70px 0;
  background: var(--bg);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-body { padding: 20px; }
.news-tag {
  font-size: 11px;
  background: rgba(139,26,26,0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}
.news-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--dark);
}
.news-body h3 a:hover { color: var(--primary); }
.news-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 17px; opacity: 0.85; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 页脚 ===== */
footer {
  background: var(--dark);
  color: #aaa;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #888; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

/* ===== 页面内横幅 ===== */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0f3460 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-banner h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.page-banner p { font-size: 16px; opacity: 0.8; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
}
.breadcrumb a { color: #ccc; }
.breadcrumb a:hover { color: var(--gold); }

/* ===== 下载页特有 ===== */
.download-section { padding: 70px 0; background: var(--white); }
.version-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
}
.version-tab {
  padding: 10px 28px;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  transition: var(--transition);
}
.version-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.download-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.download-table thead {
  background: var(--primary);
  color: white;
}
.download-table th, .download-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}
.download-table tbody tr:nth-child(even) { background: #f9f9f9; }
.download-table tbody tr:hover { background: #fff5f5; }
.size-badge {
  background: rgba(139,26,26,0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.btn-dl {
  background: var(--primary);
  color: white;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-dl:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ===== 功能页 ===== */
.feature-detail {
  padding: 70px 0;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row-text { flex: 1; }
.feature-row-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; color: var(--dark); }
.feature-row-text p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.feature-list { margin-top: 10px; }
.feature-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.feature-row-img { flex: 0 0 460px; }
.feature-row-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== 教程页 ===== */
.tutorial-section { padding: 70px 0; }
.tutorial-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.cat-btn.active, .cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,26,26,0.05);
}
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tutorial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tutorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.tutorial-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.tutorial-body { padding: 18px; }
.tutorial-level {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.level-beginner { background: rgba(46,204,113,0.15); color: #27ae60; }
.level-intermediate { background: rgba(241,196,15,0.15); color: #f39c12; }
.level-advanced { background: rgba(231,76,60,0.15); color: var(--primary); }
.tutorial-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.tutorial-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.tutorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}
.read-more { color: var(--primary); font-weight: 600; }

/* ===== 关于页 ===== */
.about-intro { padding: 70px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.about-text p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.timeline { margin-top: 30px; position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.timeline-item { margin-bottom: 20px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(139,26,26,0.2);
}
.timeline-item .year { font-size: 12px; color: var(--primary); font-weight: 700; }
.timeline-item h4 { font-size: 15px; font-weight: 700; color: var(--dark); }
.timeline-item p { font-size: 13px; color: var(--text-light); }

/* ===== 团队成就 ===== */
.achievements {
  padding: 70px 0;
  background: var(--bg);
}
.achievement-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ach-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.ach-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.ach-card .icon { font-size: 40px; margin-bottom: 12px; }
.ach-card .number { font-size: 36px; font-weight: 800; color: var(--primary); }
.ach-card .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-img { flex: unset; }
  .platform-cards { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .achievement-cards { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { flex-direction: column; }
  .feature-row-img { flex: unset; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 32px; }
  .platform-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.6s ease forwards; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
