/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b; background: #ffffff; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Container ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.3s ease; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: #1e293b; }
.nav-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.nav-logo-img {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
}
.phone-app-logo {
    width: 28px; height: 28px; border-radius: 6px; object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: #64748b; transition: color 0.2s; }
.nav-link:hover { color: #1e293b; }
.nav-link-secondary { color: #6366f1; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #1e293b; border-radius: 2px; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,0.08), transparent 70%);
}
.hero-content { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 6px 14px; border-radius: 20px;
    background: #eef2ff; color: #6366f1; font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-title { font-size: 52px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #0f172a; }
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 17px; color: #64748b; margin-top: 20px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat-num { font-size: 28px; font-weight: 700; color: #1e293b; display: block; }
.hero-stat-label { font-size: 13px; color: #94a3b8; }

/* ===== Phone Mockup ===== */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
    width: 300px; height: 600px; border-radius: 40px;
    background: #1e293b; padding: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
}
.phone-screen {
    width: 100%; height: 100%; border-radius: 30px; background: #f8fafc;
    overflow: hidden; padding: 20px 16px;
}
.phone-header { display: flex; justify-content: center; margin-bottom: 8px; }
.phone-time { font-size: 12px; font-weight: 600; color: #64748b; }
.phone-app-header { text-align: center; margin-bottom: 16px; }
.phone-app-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.phone-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.phone-stat-card {
    background: white; border-radius: 12px; padding: 10px 6px; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.phone-stat-num { font-size: 20px; font-weight: 700; color: #6366f1; }
.phone-stat-label { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.phone-section-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 10px; }
.phone-contact { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.phone-avatar {
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.phone-contact-info { flex: 1; min-width: 0; }
.phone-contact-name { font-size: 14px; font-weight: 500; color: #1e293b; }
.phone-contact-meta { font-size: 11px; color: #94a3b8; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 600;
    transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: #6366f1; color: white; }
.btn-primary:hover { background: #5457e5; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.btn-ghost { background: transparent; color: #6366f1; border: 1px solid #c7d2fe; }
.btn-ghost:hover { background: #eef2ff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-gray { background: #f8fafc; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block; padding: 4px 12px; border-radius: 16px;
    background: #eef2ff; color: #6366f1; font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.section-title { font-size: 36px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.section-subtitle { font-size: 16px; color: #64748b; margin-top: 12px; }

/* ===== Feature Grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px;
    transition: all 0.3s;
}
.feature-card:hover { border-color: #c7d2fe; box-shadow: 0 12px 32px rgba(99,102,241,0.08); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-title { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ===== Scenarios ===== */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.scenario-card {
    background: white; border-radius: 16px; padding: 32px 24px; text-align: center;
    transition: all 0.3s; border: 1px solid #e2e8f0;
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.scenario-emoji { font-size: 40px; margin-bottom: 16px; }
.scenario-title { font-size: 17px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.scenario-desc { font-size: 14px; color: #64748b; line-height: 1.6; }

/* ===== Download ===== */
.download-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.download-buttons { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.download-btn {
    display: flex; align-items: center; gap: 10px; padding: 12px 24px;
    border-radius: 14px; transition: all 0.2s; border: 1px solid #e2e8f0;
}
.download-ios { background: #0f172a; color: white; }
.download-ios:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,0.2); }
.download-android { background: white; color: #1e293b; }
.download-android:hover { background: #f1f5f9; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.download-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.download-btn-small { font-size: 11px; opacity: 0.7; }
.download-btn-big { font-size: 16px; font-weight: 600; }
.download-version { font-size: 13px; color: #94a3b8; margin-top: 20px; }
.download-qr { display: flex; justify-content: center; }
.qr-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px;
    text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.qr-placeholder { width: 140px; height: 140px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.qr-label { font-size: 14px; color: #64748b; margin-top: 12px; }

/* ===== CTA ===== */
.cta { padding: 80px 0; text-align: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cta-title { font-size: 32px; font-weight: 700; color: white; }
.cta-subtitle { font-size: 16px; color: rgba(255,255,255,0.8); margin-top: 12px; margin-bottom: 28px; }
.cta .btn-primary { background: white; color: #6366f1; }
.cta .btn-primary:hover { background: #f1f5f9; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ===== Footer ===== */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: white; margin-bottom: 8px; }
.footer-desc { font-size: 14px; }
.footer-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 16px; }
.footer-link { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 24px; text-align: center; font-size: 13px; }

/* ===== Help Center ===== */
.help-hero { padding: 120px 0 60px; text-align: center; background: linear-gradient(180deg, #eef2ff 0%, transparent 100%); }
.help-hero-title { font-size: 40px; font-weight: 700; color: #0f172a; }
.help-hero-subtitle { font-size: 16px; color: #64748b; margin-top: 12px; }
.help-search { max-width: 480px; margin: 28px auto 0; position: relative; }
.help-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.help-search-input {
    width: 100%; padding: 14px 16px 14px 48px; border: 1px solid #e2e8f0; border-radius: 12px;
    font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.help-search-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.section-sm { padding: 40px 0; }

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px;
    transition: all 0.3s; text-align: center;
}
.help-card:hover { border-color: #c7d2fe; box-shadow: 0 12px 32px rgba(99,102,241,0.08); transform: translateY(-2px); }
.help-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.help-card-title { font-size: 17px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.help-card-desc { font-size: 14px; color: #64748b; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: #c7d2fe; }
.faq-question {
    width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 500; color: #1e293b; text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: #6366f1; }
.faq-arrow { color: #94a3b8; 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.3s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 14px; color: #64748b; line-height: 1.7; }

/* Tutorial */
.tutorial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tutorial-step { text-align: center; }
.tutorial-num {
    width: 40px; height: 40px; border-radius: 50%; background: #6366f1; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
    margin: 0 auto 16px;
}
.tutorial-title { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.tutorial-desc { font-size: 14px; color: #64748b; line-height: 1.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px 24px; text-align: center;
    transition: all 0.3s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.contact-title { font-size: 17px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.contact-desc { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.contact-link { font-size: 14px; color: #6366f1; font-weight: 500; display: inline-block; }

.phone-app-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }

/* QR Code 容器 */
.qr-code { width: 140px; height: 140px; margin: 0 auto; }
.qr-code img, .qr-code canvas { border-radius: 8px; }

/* ===== Admin 右键菜单与弹窗 ===== */
.admin-context-menu {
    position: absolute; z-index: 1000; min-width: 160px;
    background: white; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 4px; overflow: hidden;
}
.admin-menu-item {
    padding: 10px 16px; font-size: 14px; color: #1e293b; cursor: pointer;
    border-radius: 6px; transition: background 0.15s;
}
.admin-menu-item:hover { background: #eef2ff; color: #6366f1; }

.admin-modal-overlay {
    position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,0.4);
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.admin-modal {
    background: white; border-radius: 16px; padding: 32px; width: 90%; max-width: 400px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
.admin-modal-title { font-size: 20px; font-weight: 600; color: #0f172a; margin-bottom: 8px; }
.admin-modal-desc { font-size: 14px; color: #64748b; margin-bottom: 20px; }
.admin-form-group { margin-bottom: 16px; }
.admin-label { display: block; font-size: 13px; font-weight: 500; color: #64748b; margin-bottom: 6px; }
.admin-input {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.admin-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.admin-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.admin-btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.admin-btn-cancel { background: #f1f5f9; color: #64748b; }
.admin-btn-cancel:hover { background: #e2e8f0; }
.admin-btn-confirm { background: #6366f1; color: white; }
.admin-btn-confirm:hover { background: #5457e5; }
.admin-error { font-size: 13px; color: #ef4444; margin-top: 8px; min-height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: white; padding: 20px; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 100px 0 60px; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .hero-visual { display: none; }
    .section { padding: 60px 0; }
    .section-title { font-size: 26px; }
    .feature-grid { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr 1fr; }
    .download-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .help-cards { grid-template-columns: 1fr; }
    .tutorial-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .help-hero-title { font-size: 30px; }
}
@media (max-width: 480px) {
    .scenario-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .download-buttons { flex-direction: column; }
    .download-btn { justify-content: center; }
    .tutorial-grid { grid-template-columns: 1fr; }
}
