/* ===== Reset & Base ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#f5f5f7;
  --surface:#ffffff;
  --surface-alt:#fafafa;
  --dark:#1a1a2e;
  --dark-2:#16213e;
  --text:#1d1d1f;
  --text-muted:#6e6e73;
  --text-light:#86868b;
  --border:#d2d2d7;
  --border-light:#e8e8ed;
  --accent:#5b6ee0;
  --accent-hover:#4756c4;
  --accent-light:#eef0fc;
  --orange:#e8743b;
  --green:#34c759;
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 3px rgba(0,0,0,.06),0 4px 12px rgba(0,0,0,.04);
  --shadow-lg:0 8px 30px rgba(0,0,0,.08);
  --max-width:1120px;
  --header-h:60px;
}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none;transition:color .2s}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:100;
  height:var(--header-h);
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--border-light);
}
.header-inner{
  max-width:var(--max-width);
  height:100%;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  display:flex;align-items:center;gap:10px;
  font-weight:700;font-size:18px;
  letter-spacing:-.02em;
}
.logo img{width:28px;height:28px}
.logo span{color:var(--text)}
.nav{display:flex;align-items:center;gap:28px}
.nav a{
  font-size:14px;font-weight:500;
  color:var(--text-muted);
  position:relative;
  padding:4px 0;
}
.nav a:hover{color:var(--text)}
.nav a.active{color:var(--accent)}
.nav a.active::after{
  content:'';position:absolute;bottom:-4px;left:0;right:0;
  height:2px;background:var(--accent);border-radius:2px;
}
.btn-download-small{
  padding:7px 18px;
  background:linear-gradient(135deg,#5b6ee0 0%,#7c8cf0 100%);
  color:#fff !important;
  border-radius:20px;
  font-size:13px;font-weight:600;
  box-shadow:0 2px 8px rgba(91,110,224,.25);
  transition:all .25s ease;
  position:relative;
  overflow:hidden;
}
.btn-download-small::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.15) 0%,transparent 50%);
  opacity:0;transition:opacity .25s;
}
.btn-download-small:hover{
  background:linear-gradient(135deg,#4756c4 0%,#6878d8 100%);
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(91,110,224,.35);
}
.btn-download-small:hover::before{opacity:1}
.btn-download-small:active{transform:translateY(0);box-shadow:0 1px 4px rgba(91,110,224,.3)}
.menu-toggle{display:none;font-size:22px;cursor:pointer;background:none;border:none;color:var(--text)}

/* ===== Hero ===== */
.hero{
  position:relative;
  background:var(--dark);
  color:#fff;
  padding:80px 24px 70px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:url('/assets/images/hero-background.jpg') center/cover no-repeat;
  opacity:.18;
}
.hero-bg::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,var(--dark) 0%,var(--dark-2) 100%);
  opacity:.7;
}
.hero-inner{
  position:relative;
  max-width:var(--max-width);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:50px;
  align-items:center;
}
.hero-text h1{
  font-size:42px;font-weight:800;
  line-height:1.15;
  letter-spacing:-.03em;
  margin-bottom:16px;
}
.hero-text h1 .accent{color:#7c8cf0}
.hero-text .subtitle{
  font-size:17px;
  color:rgba(255,255,255,.7);
  margin-bottom:28px;
  max-width:480px;
}
.hero-meta{
  display:flex;gap:20px;
  margin-bottom:28px;
  font-size:13px;
  color:rgba(255,255,255,.5);
}
.hero-meta span{display:flex;align-items:center;gap:5px}
.hero-meta svg{width:14px;height:14px;opacity:.7}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 32px;
  background:#fff;
  color:var(--dark) !important;
  border-radius:26px;
  font-size:15px;font-weight:700;
  transition:transform .15s,box-shadow .2s;
  box-shadow:0 4px 14px rgba(0,0,0,.15);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.2)}
.btn-secondary{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 28px;
  background:rgba(255,255,255,.1);
  color:#fff !important;
  border:1px solid rgba(255,255,255,.2);
  border-radius:26px;
  font-size:15px;font-weight:600;
  transition:background .2s;
}
.btn-secondary:hover{background:rgba(255,255,255,.15)}
.hero-visual{
  position:relative;
}
.hero-visual img{
  border-radius:var(--radius);
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.hero-badge{
  position:absolute;
  top:-12px;right:-12px;
  background:var(--orange);
  color:#fff;
  padding:6px 14px;
  border-radius:20px;
  font-size:12px;font-weight:700;
  box-shadow:0 4px 12px rgba(232,116,59,.4);
}

/* ===== Sections ===== */
.section{
  max-width:var(--max-width);
  margin:0 auto;
  padding:64px 24px;
}
.section-title{
  font-size:28px;font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:8px;
  text-align:center;
}
.section-desc{
  text-align:center;
  color:var(--text-muted);
  font-size:15px;
  margin-bottom:40px;
  max-width:560px;
  margin-left:auto;margin-right:auto;
}

/* ===== Features ===== */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.feature-card{
  background:var(--surface);
  border:1px solid var(--border-light);
  border-radius:var(--radius);
  padding:28px 24px;
  transition:transform .2s,box-shadow .2s;
}
.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}
.feature-icon{
  width:44px;height:44px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
  font-size:22px;
}
.feature-card h3{
  font-size:16px;font-weight:700;
  margin-bottom:8px;
}
.feature-card p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.55;
}

/* ===== Screenshot Showcase ===== */
.showcase{
  background:var(--surface);
  border-top:1px solid var(--border-light);
  border-bottom:1px solid var(--border-light);
}
.showcase-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:32px;
}
.showcase-item{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:var(--surface);
}
.showcase-item img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  transition:transform .4s;
}
.showcase-item:hover img{transform:scale(1.03)}
.showcase-item .caption{
  padding:16px 20px;
}
.showcase-item .caption h4{
  font-size:15px;font-weight:600;
  margin-bottom:4px;
}
.showcase-item .caption p{
  font-size:13px;
  color:var(--text-muted);
}

/* ===== Stats Bar ===== */
.stats-bar{
  background:var(--dark);
  color:#fff;
  padding:40px 24px;
}
.stats-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  text-align:center;
}
.stat-item .num{
  font-size:32px;font-weight:800;
  letter-spacing:-.02em;
}
.stat-item .label{
  font-size:13px;
  color:rgba(255,255,255,.5);
  margin-top:4px;
}

/* ===== Download Section ===== */
.download-section{
  background:var(--surface-alt);
}
.download-cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-top:32px;
}
.dl-card{
  background:var(--surface);
  border:1px solid var(--border-light);
  border-radius:var(--radius);
  padding:28px;
  transition:box-shadow .2s;
}
.dl-card:hover{box-shadow:var(--shadow-lg)}
.dl-card-head{
  display:flex;align-items:center;gap:14px;
  margin-bottom:16px;
}
.dl-card-icon{
  width:48px;height:48px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
}
.dl-card h3{font-size:17px;font-weight:700}
.dl-card .ver{font-size:12px;color:var(--text-light)}
.dl-card .info{
  font-size:13px;color:var(--text-muted);
  margin-bottom:16px;
  line-height:1.5;
}
.dl-card .specs{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-bottom:18px;
}
.dl-card .spec-tag{
  font-size:11px;
  padding:3px 10px;
  border-radius:12px;
  background:var(--accent-light);
  color:var(--accent);
  font-weight:500;
}
.btn-dl{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 24px;
  background:var(--accent);
  color:#fff !important;
  border-radius:22px;
  font-size:14px;font-weight:600;
  transition:background .2s,transform .15s;
}
.btn-dl:hover{background:var(--accent-hover);transform:translateY(-1px)}

/* ===== Tutorial / Guide ===== */
.guide-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
.guide-card{
  background:var(--surface);
  border:1px solid var(--border-light);
  border-radius:var(--radius);
  overflow:hidden;
  transition:box-shadow .2s,transform .15s;
}
.guide-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.guide-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.guide-card .body{padding:20px 22px}
.guide-card h3{font-size:16px;font-weight:700;margin-bottom:6px}
.guide-card p{font-size:13px;color:var(--text-muted);margin-bottom:10px}
.guide-card .read-more{
  font-size:13px;color:var(--accent);font-weight:600;
}

/* ===== Version Timeline ===== */
.timeline{
  position:relative;
  padding-left:28px;
}
.timeline::before{
  content:'';position:absolute;
  left:8px;top:8px;bottom:0;
  width:2px;background:var(--border-light);
}
.tl-item{
  position:relative;
  padding-bottom:28px;
}
.tl-item::before{
  content:'';position:absolute;
  left:-28px;top:4px;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--accent);
  border:3px solid var(--surface);
  box-shadow:0 0 0 2px var(--accent-light);
}
.tl-item .date{font-size:12px;color:var(--text-light);margin-bottom:2px}
.tl-item h4{font-size:15px;font-weight:600;margin-bottom:4px}
.tl-item p{font-size:13px;color:var(--text-muted)}

/* ===== FAQ ===== */
.faq-list{max-width:720px;margin:0 auto}
.faq-item{
  border:1px solid var(--border-light);
  border-radius:var(--radius-sm);
  margin-bottom:12px;
  overflow:hidden;
  background:var(--surface);
}
.faq-q{
  padding:16px 20px;
  font-size:15px;font-weight:600;
  cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;
  user-select:none;
}
.faq-q .arrow{transition:transform .2s;font-size:12px;color:var(--text-light)}
.faq-item.open .arrow{transform:rotate(180deg)}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}
.faq-item.open .faq-a{max-height:300px}
.faq-a-inner{
  padding:0 20px 16px;
  font-size:14px;color:var(--text-muted);
  line-height:1.6;
}

/* ===== Related Tools ===== */
.related-tools{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}
.tool-badge{
  display:flex;align-items:center;gap:10px;
  padding:12px 20px;
  background:var(--surface);
  border:1px solid var(--border-light);
  border-radius:var(--radius);
  transition:box-shadow .2s;
}
.tool-badge:hover{box-shadow:var(--shadow)}
.tool-badge img{width:28px;height:28px}
.tool-badge span{font-size:14px;font-weight:600}

/* ===== Page Header (subpages) ===== */
.page-header{
  background:var(--dark);
  color:#fff;
  padding:60px 24px 50px;
  position:relative;
  overflow:hidden;
}
.page-header-bg{
  position:absolute;inset:0;
  opacity:.1;
  background-size:cover;
  background-position:center;
}
.page-header-inner{
  position:relative;
  max-width:var(--max-width);
  margin:0 auto;
}
.breadcrumb{
  font-size:13px;
  color:rgba(255,255,255,.4);
  margin-bottom:12px;
}
.breadcrumb a{color:rgba(255,255,255,.6)}
.breadcrumb a:hover{color:#fff}
.page-header h1{
  font-size:34px;font-weight:800;
  letter-spacing:-.02em;
  margin-bottom:8px;
}
.page-header .desc{
  font-size:15px;
  color:rgba(255,255,255,.6);
  max-width:600px;
}

/* ===== Content Layout ===== */
.content-section{
  max-width:var(--max-width);
  margin:0 auto;
  padding:48px 24px;
}
.content-block{margin-bottom:40px}
.content-block h2{
  font-size:22px;font-weight:700;
  margin-bottom:12px;
  letter-spacing:-.01em;
}
.content-block h3{
  font-size:17px;font-weight:600;
  margin:20px 0 8px;
}
.content-block p{
  font-size:15px;
  color:var(--text);
  line-height:1.75;
  margin-bottom:12px;
}
.content-block ul{padding-left:20px;margin-bottom:12px}
.content-block ul li{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.8;
}
.content-block ul li strong{color:var(--text)}

.info-table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0;
  font-size:14px;
}
.info-table th,.info-table td{
  padding:12px 16px;
  text-align:left;
  border-bottom:1px solid var(--border-light);
}
.info-table th{
  font-weight:600;
  color:var(--text-muted);
  background:var(--surface-alt);
  font-size:13px;
}
.info-table td{color:var(--text)}

/* ===== Download Page Specific ===== */
.dl-options{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-bottom:32px;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}
.dl-option{
  background:var(--surface);
  border:2px solid var(--border-light);
  border-radius:var(--radius);
  padding:24px;
  text-align:center;
  transition:border-color .2s,box-shadow .2s;
}
.dl-option:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.dl-option.featured{
  border-color:var(--accent);
  position:relative;
}
.dl-option.featured::after{
  content:'推荐';
  position:absolute;
  top:-10px;left:50%;transform:translateX(-50%);
  background:var(--accent);
  color:#fff;
  font-size:11px;font-weight:700;
  padding:3px 12px;
  border-radius:12px;
}
.dl-option .icon{font-size:32px;margin-bottom:12px}
.dl-option h3{font-size:16px;font-weight:700;margin-bottom:4px}
.dl-option .size{font-size:12px;color:var(--text-light);margin-bottom:14px}
.dl-option .btn-dl{width:100%;justify-content:center}

/* ===== Footer ===== */
.site-footer{
  background:var(--dark);
  color:rgba(255,255,255,.6);
  padding:48px 24px 24px;
}
.footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
}
.footer-top{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:32px;
  margin-bottom:32px;
}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.footer-brand img{width:28px;height:28px}
.footer-brand span{color:#fff;font-weight:700;font-size:16px}
.footer-top p{font-size:13px;line-height:1.6}
.footer-col h4{
  color:#fff;
  font-size:14px;font-weight:600;
  margin-bottom:12px;
}
.footer-col a{
  display:block;
  font-size:13px;
  color:rgba(255,255,255,.5);
  margin-bottom:8px;
  transition:color .2s;
}
.footer-col a:hover{color:#fff}
.footer-disclaimer{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:20px;
  margin-top:20px;
  text-align:center;
}
.footer-disclaimer p{
  font-size:12px;
  color:rgba(255,255,255,.35);
  line-height:1.6;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:16px;
  margin-top:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:rgba(255,255,255,.3);
}

/* ===== Responsive ===== */
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr;gap:30px}
  .hero-text h1{font-size:32px}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .showcase-grid{grid-template-columns:1fr}
  .stats-inner{grid-template-columns:repeat(2,1fr);gap:24px}
  .download-cards{grid-template-columns:1fr}
  .guide-grid{grid-template-columns:1fr}
  .dl-options{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr;gap:24px}
  .nav{display:none}
  .menu-toggle{display:block}
  .nav.open{
    display:flex;
    position:absolute;
    top:var(--header-h);left:0;right:0;
    flex-direction:column;
    background:#fff;
    padding:20px 24px;
    gap:16px;
    border-bottom:1px solid var(--border-light);
    box-shadow:var(--shadow-lg);
  }
}
@media(max-width:600px){
  .hero{padding:50px 20px 40px}
  .hero-text h1{font-size:26px}
  .section{padding:40px 20px}
  .features-grid{grid-template-columns:1fr}
  .stats-inner{grid-template-columns:1fr 1fr}
  .footer-top{grid-template-columns:1fr}
  .page-header h1{font-size:26px}
  .content-block h2{font-size:19px}
}

/* ===== QR Code Breathing Effect ===== */
@keyframes qrBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 110, 224, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(91, 110, 224, 0.15); }
}

.qrcode-img {
  display: inline-block;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--accent-light);
  animation: qrBreath 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.qrcode-img:hover {
  transform: scale(1.05);
}

/* ===== Download Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-header {
  padding: 20px 24px 0;
  position: relative;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-right: 30px;
}

.modal-header .modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.modal-info ul {
  list-style: none;
  padding: 0;
}

.modal-info li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.modal-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.modal-qr {
  text-align: center;
}

.modal-qr .qrcode-img {
  margin: 0 auto 12px;
}

.modal-qr .qr-tip {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-qr .qr-tip strong {
  color: var(--text);
}

.modal-footer {
  padding: 16px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.modal-footer .expiry-notice {
  font-size: 12px;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-qr {
    order: -1;
  }
}
