/* 17c 主样式文件 - www.dz6nip2.cn */
:root {
  --primary: #e8003d;
  --primary-dark: #b5002e;
  --secondary: #1a1a2e;
  --accent: #ff6b6b;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

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

img { max-width: 100%; height: auto; display: block; }

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

/* ===== 头部导航 ===== */
.site-header {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}

.logo-text span { color: var(--primary); }

.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: -4px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

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

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--secondary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-form input {
  flex: 1;
  padding: 10px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
}

.search-form input::placeholder { color: rgba(255,255,255,0.4); }

.search-form button {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.search-form button:hover { background: var(--primary-dark); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== Banner ===== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
  padding: 60px 0;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/banner.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 .brand { color: var(--primary); }

.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.stat-item { text-align: center; }
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,0,61,0.4); }

.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.1); color: var(--white); border-color: var(--white); }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }

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

.section-tag {
  display: inline-block;
  background: rgba(232,0,61,0.08);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

/* ===== 功能卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card-body { padding: 20px; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,0,61,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.feature-card-body p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px;
  height: 56px;
  background: rgba(232,0,61,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(232,0,61,0.5);
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.video-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.video-info { padding: 14px; }

.video-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.video-meta span { display: flex; align-items: center; gap: 3px; }

/* ===== 场景区块 ===== */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.scene-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.scene-card:hover { border-color: var(--primary); transform: translateY(-4px); }

.scene-icon { font-size: 40px; margin-bottom: 14px; }

.scene-card h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.scene-card p { font-size: 13px; color: var(--text-light); }

/* ===== 教程步骤 ===== */
.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 4px solid var(--primary);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-light); }

/* ===== 更新日志 ===== */
.changelog-list { max-width: 800px; margin: 0 auto; }

.changelog-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-version {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.version-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.changelog-date { font-size: 12px; color: var(--text-light); }

.changelog-content h3 { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.changelog-content p { font-size: 14px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(232,0,61,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 18px;
}

.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== 用户评价 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.review-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.review-stars { color: #ffc107; font-size: 16px; margin-bottom: 12px; }

.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author { display: flex; align-items: center; gap: 10px; }

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 700; color: var(--secondary); }
.author-meta { font-size: 12px; color: var(--text-light); }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-light); }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 24px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom p { color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ===== 汉堡菜单 ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 内页样式 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), #0f3460);
  padding: 48px 0;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 15px; }

.content-section { padding: 48px 0; }

.article-body { max-width: 860px; margin: 0 auto; }
.article-body h2 { font-size: 22px; font-weight: 800; color: var(--secondary); margin: 28px 0 14px; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin: 20px 0 10px; }
.article-body p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.article-body ul { padding-left: 20px; margin-bottom: 14px; }
.article-body ul li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }

/* ===== 下载中心 ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.download-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.download-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.download-icon { font-size: 48px; margin-bottom: 14px; }
.download-card h3 { font-size: 17px; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.download-card p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.download-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.download-btn:hover { background: var(--primary-dark); color: var(--white); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner { position: relative; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

/* ===== 工具提示/标签 ===== */
.tag {
  display: inline-block;
  background: rgba(232,0,61,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
}

/* ===== 加载动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
