/* ===== 17C 官网主样式 ===== */
:root {
  --primary: #6c3de8;
  --primary-dark: #4e2ab5;
  --secondary: #ff6b35;
  --accent: #00d4ff;
  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-section: #0f0f22;
  --text-main: #e8e8f0;
  --text-muted: #9090b0;
  --border: rgba(108,61,232,0.25);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,61,232,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
}

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

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

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

/* ===== 顶部导航 ===== */
#header {
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.header-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 600;
}

/* ===== 搜索框 ===== */
.search-bar-wrap {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.search-bar-inner input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 20px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar-inner input:focus { border-color: var(--primary); }

.search-bar-inner button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.search-bar-inner button:hover { opacity: 0.85; }

/* ===== Banner ===== */
.banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: blur(1px);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,26,0.85) 0%, rgba(108,61,232,0.3) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.banner-tag {
  display: inline-block;
  background: rgba(108,61,232,0.35);
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 18px;
}

.banner h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #fff;
}

.banner h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner p {
  font-size: 1.05rem;
  color: rgba(232,232,240,0.85);
  margin-bottom: 28px;
  max-width: 540px;
}

.banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 13px 32px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(108,61,232,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,61,232,0.5);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 11px 28px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.banner-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-item { text-align: left; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== 通用Section ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-section); }

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

.section-tag {
  display: inline-block;
  background: rgba(108,61,232,0.18);
  border: 1px solid rgba(108,61,232,0.4);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  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(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}

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

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

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

.feature-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 16px;
}

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

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(108,61,232,0.25);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s;
}

.video-card:hover .video-play-btn { opacity: 1; }

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(108,61,232,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transform: scale(0.85);
  transition: transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.video-card:hover .play-icon { transform: scale(1); }

.video-info { padding: 16px; }

.video-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

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

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

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

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s;
}

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

.scenario-icon { font-size: 2.2rem; margin-bottom: 12px; }

.scenario-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.scenario-card p { font-size: 13px; color: var(--text-muted); }

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

.tutorial-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}

.tutorial-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(108,61,232,0.2);
  line-height: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.tutorial-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.tutorial-step p { font-size: 13px; color: var(--text-muted); }

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

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

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

.log-version {
  flex-shrink: 0;
  min-width: 80px;
}

.version-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.log-date { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.log-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.log-content p { font-size: 14px; color: var(--text-muted); }

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

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

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover { background: rgba(108,61,232,0.1); }

.faq-arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

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

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s;
}

.review-card:hover { transform: translateY(-4px); }

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

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

.review-name { font-weight: 700; color: #fff; font-size: 14px; }

.review-stars { color: #ffd700; font-size: 13px; margin-top: 2px; }

.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}

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

.contact-icon { font-size: 2rem; margin-bottom: 12px; }

.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact-card p { font-size: 13px; color: var(--text-muted); }

/* ===== 页脚 ===== */
#footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

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

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }

.footer-links a { font-size: 12px; color: var(--text-muted); }

.footer-links a:hover { color: var(--accent); }

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

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ===== 内页Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-section) 0%, rgba(108,61,232,0.15) 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.page-hero p { color: var(--text-muted); font-size: 15px; }

/* ===== 通用列表 ===== */
.content-list { max-width: 860px; margin: 0 auto; }

.content-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.content-item:hover { border-color: var(--primary); }

.content-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.content-item p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.content-item .item-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}

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

.download-icon { font-size: 2.8rem; margin-bottom: 14px; }

.download-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.download-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.download-btn:hover { opacity: 0.85; color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 600px) {
  .banner { min-height: 380px; }
  .banner h1 { font-size: 1.8rem; }
  .footer-top { grid-template-columns: 1fr; }
  .banner-stats { gap: 20px; }
  .header-cta { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.mobile-nav a:last-child { border-bottom: none; }

/* 标签 */
.tag {
  display: inline-block;
  background: rgba(108,61,232,0.15);
  border: 1px solid rgba(108,61,232,0.3);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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