/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #00f0ff; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 颜色变量 ===== */
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --primary: #00f0ff;
  --primary-dark: #00b8c4;
  --accent: #ff4655;
  --accent-yellow: #f7ff00;
  --text: #e8e8e8;
  --text-dim: #888;
  --border: #2a2a2a;
  --cut: 12px;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background .2s, backdrop-filter .2s;
}
.navbar.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: #ccc; font-size: 15px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--primary); color: #000 !important;
  padding: 10px 24px !important; font-weight: 700 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #fff !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: all .3s;
}

/* ===== Hero 首屏 ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,240,255,.08) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255,70,85,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,240,255,.12) 0%, transparent 60%);
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-block;
  background: rgba(0,240,255,.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 18px; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: -1px;
}
.hero h1 .highlight {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(0,240,255,.4);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #aaa; max-width: 600px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #000;
  padding: 16px 36px; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .5s;
}
.btn-primary:hover { background: #fff; transform: translateY(-3px); }
.btn-primary:hover::after { left: 100%; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #fff;
  padding: 16px 36px; font-size: 16px; font-weight: 600;
  border: 2px solid var(--border); cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.hero-platforms {
  display: flex; gap: 24px; margin-top: 32px; align-items: center;
}
.platform-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 14px;
}
.platform-item .icon {
  width: 32px; height: 32px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border-radius: 4px;
}
.platform-item.active .icon { border-color: var(--primary); color: var(--primary); }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim); font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 通用区块 ===== */
.section { padding: 100px 32px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; color: var(--primary); font-size: 13px;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.section-desc { color: var(--text-dim); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== 功能特色 - Bento布局 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px; position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: all .3s; cursor: default;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 0; background: var(--primary);
  transition: height .3s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: rgba(0,240,255,.3); transform: translateY(-4px); }
.feature-card:hover::before { height: 100%; }
.feature-card.large { grid-column: span 2; grid-row: span 2; }
.feature-card.wide { grid-column: span 2; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary); margin-bottom: 16px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.feature-card h3 { font-size: 20px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.feature-card.large h3 { font-size: 28px; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.feature-card.large p { font-size: 16px; }
.feature-stats {
  position: absolute; bottom: 28px; left: 28px; right: 28px;
  display: flex; gap: 24px;
}
.stat-item .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ===== 截图展示 ===== */
.screenshots {
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f0f 50%, var(--bg) 100%);
}
.screenshot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.screenshot-item {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  cursor: pointer;
}
.screenshot-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.screenshot-item:hover img { transform: scale(1.08); }
.screenshot-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.screenshot-item:hover .screenshot-overlay { opacity: 1; }
.screenshot-overlay span { color: #fff; font-weight: 600; font-size: 15px; }

/* ===== 数据统计 ===== */
.stats-bar {
  background: linear-gradient(90deg, rgba(0,240,255,.05), rgba(255,70,85,.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 32px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  text-align: center;
}
.big-stat .num {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900;
  color: var(--primary); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.big-stat .label { color: var(--text-dim); font-size: 14px; margin-top: 8px; letter-spacing: 1px; }

/* ===== 更新日志预览 ===== */
.updates-list { max-width: 800px; margin: 0 auto; }
.update-item {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 24px 28px; margin-bottom: 16px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  display: flex; gap: 24px; align-items: flex-start;
  transition: border-color .2s;
}
.update-item:hover { border-color: rgba(0,240,255,.3); }
.update-version {
  background: rgba(0,240,255,.1); color: var(--primary);
  padding: 8px 14px; font-size: 14px; font-weight: 700;
  white-space: nowrap; font-family: 'Consolas', monospace;
}
.update-info { flex: 1; }
.update-info h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.update-info p { color: var(--text-dim); font-size: 14px; }
.update-date { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 12px; background: var(--bg-card);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: #fff; font-size: 15px;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .arrow { transition: transform .3s; font-size: 12px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s;
  padding: 0 24px; color: var(--text-dim); font-size: 14px; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ===== CTA下载区 ===== */
.cta-section {
  padding: 100px 32px; text-align: center;
  background: linear-gradient(135deg, rgba(0,240,255,.08) 0%, rgba(255,70,85,.05) 100%);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; margin-bottom: 16px; font-weight: 800; }
.cta-section p { color: var(--text-dim); font-size: 18px; margin-bottom: 36px; }

/* ===== 页脚 ===== */
.footer {
  background: #060606; border-top: 1px solid var(--border);
  padding: 60px 32px 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* ===== 内页通用 ===== */
.page-hero {
  padding: 160px 32px 80px;
  background: linear-gradient(135deg, rgba(0,240,255,.06) 0%, transparent 60%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,240,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.03) 1px, transparent 1px);
  background-size: 60px 60px; z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); color: #fff; font-weight: 900; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); font-size: 18px; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  max-width: 1200px; margin: 0 auto 30px;
  padding: 0 32px; color: var(--text-dim); font-size: 13px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== 购买页 ===== */
.purchase-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px 80px; }
.purchase-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 48px; text-align: center;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  margin-bottom: 32px;
}
.purchase-card h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.purchase-price { font-size: 56px; font-weight: 900; color: var(--primary); margin: 20px 0; }
.purchase-price span { font-size: 20px; color: var(--text-dim); font-weight: 400; }
.purchase-features {
  text-align: left; max-width: 400px; margin: 24px auto;
}
.purchase-features li {
  padding: 10px 0; color: #ccc; font-size: 15px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #222;
}
.purchase-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ===== 更新日志页 ===== */
.changelog-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px 80px; }
.changelog-entry {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px; margin-bottom: 24px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.changelog-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #222;
}
.changelog-header h3 { color: #fff; font-size: 22px; }
.changelog-header .date { color: var(--text-dim); font-size: 14px; font-family: 'Consolas', monospace; }
.changelog-tag {
  display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600;
  margin-right: 8px; margin-bottom: 8px; border-radius: 3px;
}
.tag-new { background: rgba(0,240,255,.15); color: var(--primary); }
.tag-fix { background: rgba(247,255,0,.1); color: var(--accent-yellow); }
.tag-improve { background: rgba(255,70,85,.1); color: var(--accent); }
.changelog-entry ul { margin-top: 12px; }
.changelog-entry li {
  padding: 6px 0; color: #bbb; font-size: 14px; padding-left: 20px; position: relative;
}
.changelog-entry li::before {
  content: '▸'; position: absolute; left: 0; color: var(--primary);
}

/* ===== 教程页 ===== */
.tutorial-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px 80px; }
.tutorial-step {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px; margin-bottom: 20px; display: flex; gap: 24px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.step-num {
  width: 56px; height: 56px; min-width: 56px;
  background: var(--primary); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.step-content h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.step-content p { color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.step-content .warn {
  background: rgba(255,70,85,.08); border-left: 3px solid var(--accent);
  padding: 12px 16px; margin-top: 12px; color: #ddd; font-size: 14px;
}
.step-content .tip {
  background: rgba(0,240,255,.06); border-left: 3px solid var(--primary);
  padding: 12px 16px; margin-top: 12px; color: #ddd; font-size: 14px;
}

/* ===== 功能介绍页 ===== */
.features-detail-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px 80px; }
.feature-detail-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 80px;
}
.feature-detail-block:nth-child(even) { direction: rtl; }
.feature-detail-block:nth-child(even) > * { direction: ltr; }
.feature-detail-text h2 {
  font-size: 32px; color: #fff; font-weight: 800; margin-bottom: 16px;
}
.feature-detail-text p { color: var(--text-dim); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.feature-detail-text ul { margin-top: 16px; }
.feature-detail-text li {
  padding: 8px 0; color: #ccc; padding-left: 24px; position: relative;
}
.feature-detail-text li::before {
  content: '◆'; position: absolute; left: 0; color: var(--primary); font-size: 10px; top: 12px;
}
.feature-detail-img {
  aspect-ratio: 16/10; border: 1px solid var(--border); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.feature-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .feature-card.large, .feature-card.wide { grid-column: span 2; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-detail-block { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 70px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.large, .feature-card.wide { grid-column: span 1; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .update-item { flex-direction: column; gap: 8px; }
  .purchase-card { padding: 28px 20px; }
  .tutorial-step { flex-direction: column; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
