/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: #2c3e50; background: #f5f7fa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header / Nav ========== */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: #1a73e8; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: #555; transition: color 0.2s; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: #1a73e8; border-bottom-color: #1a73e8; }

/* ========== Hero ========== */
.hero { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); color: #fff; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero .subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 10px; }
.hero .version-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 16px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 24px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.25s; }
.btn-primary { background: #fff; color: #1a73e8; }
.btn-primary:hover { background: #e8f0fe; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ========== Section Common ========== */
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.section-desc { text-align: center; color: #777; margin-bottom: 36px; font-size: 0.95rem; }
.section-bg-white { background: #fff; }

/* ========== Features ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card { background: #fff; padding: 28px 24px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.25s, box-shadow 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.feature-icon.blue { background: #e8f0fe; color: #1a73e8; }
.feature-icon.green { background: #e6f4ea; color: #34a853; }
.feature-icon.orange { background: #fef7e0; color: #f9ab00; }
.feature-icon.purple { background: #f3e8fd; color: #9334e6; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #1a1a1a; }
.feature-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* ========== Screenshots ========== */
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.screenshot-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.screenshot-item img { width: 100%; height: auto; object-fit: cover; }
.screenshot-item .caption { padding: 12px 16px; font-size: 0.9rem; color: #555; text-align: center; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1a1a1a; }
.faq-a { padding: 0 20px 16px; font-size: 0.9rem; color: #666; line-height: 1.7; display: block; }
.faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ========== Download Page ========== */
.dl-hero { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); color: #fff; padding: 48px 0; text-align: center; }
.dl-hero h1 { font-size: 2rem; font-weight: 700; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.dl-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; transition: transform 0.25s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.dl-card.recommend { border: 2px solid #1a73e8; position: relative; }
.dl-card.recommend::before { content: "推荐"; position: absolute; top: 12px; right: 12px; background: #1a73e8; color: #fff; padding: 3px 12px; border-radius: 12px; font-size: 0.78rem; }
.dl-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.dl-card .dl-version { color: #999; font-size: 0.85rem; margin-bottom: 6px; }
.dl-card .dl-size { color: #999; font-size: 0.85rem; margin-bottom: 16px; }
.dl-card .dl-btn { display: inline-block; padding: 10px 32px; background: #1a73e8; color: #fff; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.dl-card .dl-btn:hover { background: #1557b0; }

.dl-table-wrap { overflow-x: auto; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dl-table th, .dl-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
.dl-table th { background: #f8f9fa; font-weight: 600; color: #333; }
.dl-table tr:hover td { background: #fafbfc; }

/* ========== Plugins Page ========== */
.plugins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.plugin-card { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; gap: 16px; transition: transform 0.25s; }
.plugin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.plugin-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.plugin-info h4 { font-size: 1rem; margin-bottom: 4px; }
.plugin-info p { font-size: 0.85rem; color: #888; line-height: 1.5; }
.plugin-info .plugin-link { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: #1a73e8; font-weight: 500; }

/* ========== About Page ========== */
.about-content { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.about-content h2 { font-size: 1.3rem; margin: 28px 0 12px; color: #1a1a1a; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 0.95rem; color: #555; line-height: 1.8; margin-bottom: 12px; }
.about-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.about-meta-item { background: #f8f9fa; border-radius: 8px; padding: 16px; text-align: center; }
.about-meta-item .meta-label { font-size: 0.8rem; color: #999; margin-bottom: 4px; }
.about-meta-item .meta-value { font-size: 1.05rem; font-weight: 600; color: #1a1a1a; }

/* ========== Footer ========== */
.footer { background: #1a1a2e; color: #aaa; padding: 32px 0 20px; font-size: 0.85rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1200px; margin: 0 auto 24px; padding: 0 20px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a { display: block; color: #888; padding: 4px 0; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #1a73e8; }
.footer-bottom { border-top: 1px solid #2a2a3e; padding-top: 16px; text-align: center; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 36px 16px; }
  .section { padding: 36px 0; }
  .screenshots { grid-template-columns: 1fr; }
  .dl-cards { grid-template-columns: 1fr; }
}

/* ========== QR Modal ========== */
.qr-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; align-items: center; justify-content: center; }
.qr-modal.active { display: flex; }
.qr-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); }
.qr-modal-content { position: relative; background: #fff; border-radius: 16px; padding: 32px 28px 24px; max-width: 360px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalIn 0.3s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.qr-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; color: #999; cursor: pointer; line-height: 1; padding: 0; width: 32px; height: 32px; border-radius: 50%; transition: all 0.2s; }
.qr-modal-close:hover { background: #f0f0f0; color: #333; }
.qr-modal-content h3 { font-size: 1.15rem; color: #1a1a1a; margin-bottom: 16px; }
.qr-modal-content p { font-size: 0.85rem; color: #888; margin: 8px 0; line-height: 1.5; }

/* ========== QR Code Wrapper (呼吸边框) ========== */
.qr-code-wrapper { display: inline-block; padding: 8px; border-radius: 12px; border: 3px solid rgba(77,168,255,0.45); animation: qrGlow 2.5s ease-in-out infinite; }
.qr-code-wrapper img { display: block; border-radius: 6px; }
@keyframes qrGlow {
  0%, 100% { border-color: rgba(77,168,255,0.45); box-shadow: 0 0 10px rgba(77,168,255,0.12); }
  50% { border-color: rgba(60,210,140,0.45); box-shadow: 0 0 12px rgba(60,210,140,0.15); }
}

/* ========== DL Btn as Button fallback ========== */
button.dl-btn { font-family: inherit; }
