/* ==================== Reset & Base ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7; color: #333; background: #f5f7fa;
}
a { color: #1a73e8; text-decoration: none; transition: color .2s; }
a:hover { color: #0d47a1; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==================== Layout ==================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==================== Header / Nav ==================== */
.site-header {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 60%, #0d47a1 100%);
  color: #fff; padding: 0; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.35rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.logo span { font-size: 1.6rem; }
.nav a { color: rgba(255,255,255,.85); margin-left: 28px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active { border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ==================== Hero ==================== */
.hero {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #0288d1 100%);
  color: #fff; padding: 80px 0 70px; text-align: center;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero .subtitle { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px;
  border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .25s;
}
.btn-primary { background: #fff; color: #1565c0; }
.btn-primary:hover { background: #e3f2fd; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.version-badge {
  display: inline-block; background: rgba(255,255,255,.2); padding: 4px 14px;
  border-radius: 20px; font-size: .85rem; margin-bottom: 16px; font-weight: 500;
}

/* ==================== Section ==================== */
.section { padding: 70px 0; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; color: #1a237e; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 48px; font-size: .95rem; }
.section-alt { background: #fff; }

/* ==================== Features Grid ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: #fff; border-radius: 14px; padding: 32px 24px; text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.feature-icon { font-size: 2.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #1a237e; }
.feature-card p { font-size: .9rem; color: #666; line-height: 1.7; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ==================== Steps ==================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.step-card { text-align: center; padding: 20px; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #1565c0, #0288d1);
  color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 6px; color: #1a237e; }
.step-card p { font-size: .88rem; color: #666; }

/* ==================== Download Section ==================== */
.download-section {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.download-section h2 { font-size: 1.8rem; margin-bottom: 12px; }
.download-section p { opacity: .85; margin-bottom: 30px; font-size: .95rem; }
.download-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.download-links a {
  background: rgba(255,255,255,.15); color: #fff; padding: 12px 28px; border-radius: 50px;
  font-weight: 600; font-size: .95rem; border: 1px solid rgba(255,255,255,.25); transition: all .25s;
}
.download-links a:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ==================== Tutorial / Content Page ==================== */
.content-page { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.content-page h1 { font-size: 2rem; color: #1a237e; margin-bottom: 6px; }
.content-page .meta { color: #999; font-size: .85rem; margin-bottom: 30px; }
.content-page h2 { font-size: 1.3rem; color: #1a237e; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e3f2fd; }
.content-page h3 { font-size: 1.05rem; color: #333; margin: 24px 0 8px; }
.content-page p { margin-bottom: 14px; color: #555; }
.content-page ul, .content-page ol { margin: 0 0 16px 24px; color: #555; }
.content-page li { margin-bottom: 6px; list-style: disc; }
.content-page ol li { list-style: decimal; }
.content-page code {
  background: #f0f4f8; padding: 2px 8px; border-radius: 4px; font-size: .9em;
  font-family: "Fira Code", "Consolas", monospace; color: #c62828;
}
.content-page pre {
  background: #1e293b; color: #e2e8f0; padding: 20px; border-radius: 10px;
  overflow-x: auto; margin: 16px 0 24px; font-size: .88rem; line-height: 1.6;
}
.content-page pre code { background: none; color: inherit; padding: 0; border-radius: 0; }
.content-page .tip {
  background: #e3f2fd; border-left: 4px solid #1565c0; padding: 14px 20px;
  border-radius: 0 8px 8px 0; margin: 20px 0; font-size: .93rem;
}
.content-page .tip strong { color: #1565c0; }

/* ==================== Screenshot ==================== */
.screenshot { margin: 32px auto; text-align: center; max-width: 820px; }
.screenshot-wrapper {
  position: relative; display: inline-block; border-radius: 16px;
  padding: 6px; background: linear-gradient(135deg, #1565c0, #0288d1, #42a5f5, #1565c0);
  background-size: 300% 300%; animation: borderShift 6s ease infinite;
  box-shadow: 0 8px 40px rgba(21,101,192,.18);
}
@keyframes borderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.screenshot-wrapper img {
  border-radius: 12px; display: block; width: 100%; height: auto;
  position: relative; z-index: 1;
}
.screenshot .caption {
  font-size: .88rem; color: #999; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.screenshot .caption::before {
  content: ''; display: inline-block; width: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, #1565c0);
}
.screenshot .caption::after {
  content: ''; display: inline-block; width: 20px; height: 2px;
  background: linear-gradient(90deg, #1565c0, transparent);
}
.screenshot-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 28px;
  flex-wrap: wrap;
}
.screenshot-stats .stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.screenshot-stats .stat-num {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, #1565c0, #0288d1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.screenshot-stats .stat-label { font-size: .8rem; color: #999; }

/* ==================== Footer ==================== */
.site-footer {
  background: #1a1a2e; color: rgba(255,255,255,.6); padding: 40px 0 30px; font-size: .88rem;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: #fff; }
.footer-links a { margin-left: 20px; }

/* ==================== QR Code 弹窗 ==================== */
.qr-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9999; align-items: center; justify-content: center;
}
.qr-modal-overlay.active { display: flex; }
.qr-modal {
  background: #fff; border-radius: 18px; padding: 40px 36px 32px; max-width: 420px;
  width: 90%; text-align: center; position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.qr-modal-close {
  position: absolute; top: 14px; right: 18px; font-size: 1.4rem; color: #999;
  cursor: pointer; line-height: 1; background: none; border: none; padding: 4px 8px;
  border-radius: 50%; transition: background .2s;
}
.qr-modal-close:hover { background: #f0f0f0; color: #333; }
.qr-modal h3 { font-size: 1.15rem; color: #1a237e; margin-bottom: 6px; }
.qr-modal .qr-subtitle { font-size: .85rem; color: #999; margin-bottom: 20px; }
.qr-modal .qr-tip {
  font-size: .82rem; color: #e65100; background: #fff3e0; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 18px; line-height: 1.6;
}
.qr-modal .qr-tip strong { color: #bf360c; }
.qr-modal-img {
  display: inline-block; border-radius: 12px; margin-bottom: 16px;
  border: 3px solid; border-image: linear-gradient(135deg, #1565c0, #0288d1, #1565c0) 1;
  animation: qrGlow 2.5s ease-in-out infinite;
  padding: 4px; background: #fff;
}
@keyframes qrGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(21,101,192,.2); }
  50% { box-shadow: 0 0 18px rgba(21,101,192,.35); }
}
.qr-modal .qr-open-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 28px;
  border-radius: 50px; font-size: .92rem; font-weight: 600; cursor: pointer;
  border: 2px solid #1565c0; color: #1565c0; background: #fff;
  transition: all .25s;
}
.qr-modal .qr-open-btn:hover { background: #1565c0; color: #fff; }

/* ==================== 下载区域美化 ==================== */
.download-card {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border: 1px solid #d6e4f7; border-radius: 16px; padding: 32px 36px;
  margin: 28px 0; display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.download-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1565c0, #0288d1, #1565c0);
}
.download-card .dc-info { flex: 1; min-width: 200px; }
.download-card .dc-info h3 { font-size: 1.15rem; color: #1a237e; margin-bottom: 6px; }
.download-card .dc-info p { font-size: .9rem; color: #666; line-height: 1.7; }
.download-card .dc-info .dc-tag {
  display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 20px;
  font-weight: 600; margin-bottom: 8px;
}
.download-card .dc-info .dc-tag.quark { background: #e8f5e9; color: #2e7d32; }
.download-card .dc-info .dc-tag.baidu { background: #e3f2fd; color: #1565c0; }
.download-card .dc-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 180px;
}
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 180px; padding: 13px 24px; border-radius: 12px; font-size: .95rem;
  font-weight: 700; cursor: pointer; border: none; transition: all .3s;
  text-align: center; letter-spacing: .3px;
}
.dc-btn.quark {
  background: linear-gradient(135deg, #2e7d32, #43a047); color: #fff;
  box-shadow: 0 4px 16px rgba(46,125,50,.3);
}
.dc-btn.quark:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(46,125,50,.4);
}
.dc-btn.baidu {
  background: linear-gradient(135deg, #1565c0, #1976d2); color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.dc-btn.baidu:hover {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(21,101,192,.4);
}
.dc-btn.qr-btn {
  background: #fff; color: #555; border: 2px solid #ddd; font-size: .85rem;
  padding: 9px 24px; box-shadow: none; font-weight: 600;
}
.dc-btn.qr-btn:hover {
  border-color: #1565c0; color: #1565c0; transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(21,101,192,.15);
}

/* 下载页内嵌二维码 */
.qr-inline { margin: 12px 0 0; text-align: center; }
.qr-inline .qr-inline-img {
  display: inline-block; border-radius: 14px; margin-bottom: 10px;
  padding: 6px; background: #fff;
  box-shadow: 0 2px 12px rgba(21,101,192,.12), 0 0 0 2px #e3f2fd;
  animation: qrGlow 2.5s ease-in-out infinite;
  transition: transform .3s;
}
.qr-inline .qr-inline-img:hover { transform: scale(1.04); }
@keyframes qrGlow {
  0%, 100% { box-shadow: 0 2px 12px rgba(21,101,192,.12), 0 0 0 2px #e3f2fd; }
  50% { box-shadow: 0 4px 24px rgba(21,101,192,.25), 0 0 0 3px #bbdefb; }
}
.qr-inline .qr-inline-label { font-size: .85rem; color: #888; }
.qr-inline .qr-inline-label strong { color: #e65100; }

/* 弹窗内二维码美化 */
.qr-modal-img {
  display: inline-block; border-radius: 14px; margin-bottom: 16px;
  padding: 6px; background: #fff;
  box-shadow: 0 2px 12px rgba(21,101,192,.12), 0 0 0 2px #e3f2fd;
  animation: qrGlow 2.5s ease-in-out infinite;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 10px; }
  .nav a { margin-left: 16px; font-size: .88rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 50px 0; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .download-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .download-card .dc-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .dc-btn { width: auto; min-width: 150px; flex: 1; }
}
