/* ========================================
   蜂群·单词背记助手 - 官网样式
   ======================================== */

:root {
    --amber: #E8960A;
    --amber-dark: #C47D08;
    --amber-light: #F5D9A3;
    --amber-bg: #FFF8E7;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Text Colors */
.text-amber { color: var(--amber) !important; }
.bg-amber { background-color: var(--amber) !important; }

/* ========================================
   Navigation
   ======================================== */
#mainNav {
    padding: 0.8rem 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    z-index: 1030;
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 0.1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--amber);
    background: var(--amber-bg);
}

.navbar-nav .btn-primary {
    background: var(--amber);
    border-color: var(--amber);
}

.navbar-nav .btn-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, #fff 0%, var(--amber-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-btns .btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 4px 15px rgba(232,150,10,0.3);
}

.hero-btns .btn-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,150,10,0.4);
}

.hero-btns .btn-outline-dark:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats .stat-number {
    font-size: 1.75rem;
    color: var(--amber);
    display: block;
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
    display: inline-block;
}

.mockup-window {
    width: 380px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.mockup-dots span:nth-child(1) { background: #ff6b6b; }
.mockup-dots span:nth-child(2) { background: #feca57; }
.mockup-dots span:nth-child(3) { background: #1dd1a1; }

.mockup-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    min-height: 280px;
}

.mockup-card {
    text-align: center;
    padding: 20px;
    background: var(--amber-bg);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.mockup-word {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.mockup-phonetic {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mockup-meaning {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.mockup-sentence {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.mockup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mockup-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #f0f0f0;
    color: var(--text-muted);
    cursor: default;
}

.mockup-btn.active {
    background: var(--amber);
    color: #fff;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    color: var(--amber);
}

.floating-icon.icon-1 { top: -20px; right: -20px; }
.floating-icon.icon-2 { bottom: 60px; left: -30px; }
.floating-icon.icon-3 { bottom: -10px; right: 40px; }

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-shape svg {
    display: block;
    width: 100%;
}

/* ========================================
   Section Common
   ======================================== */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--amber-bg);
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background: var(--bg-light);
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--amber-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--amber);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   Highlights Section
   ======================================== */
.highlights-section {
    background: #fff;
}

.highlight-list li {
    font-size: 1rem;
}

.curve-visual {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--bg-light);
}

.cta-card {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    color: #fff;
}

.cta-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.cta-title {
    color: #fff;
}

.cta-desc {
    color: rgba(255,255,255,0.9);
}

.cta-btns .btn-light {
    color: var(--amber);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-btns .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.cta-meta {
    color: rgba(255,255,255,0.85);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--amber-bg) 0%, #fff 100%);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features Detail Page
   ======================================== */
.features-detail {
    background: #fff;
}

.feature-row {
    padding: 2rem 0;
}

.feature-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--amber-light);
    line-height: 1;
    margin-bottom: 1rem;
}

.feature-points li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.feature-mockup .mockup-window.small {
    width: 100%;
    max-width: 400px;
}

.review-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    height: 160px;
    padding: 0 1rem;
}

.review-bar {
    width: 30px;
    background: linear-gradient(to top, var(--amber), var(--amber-light));
    border-radius: 6px 6px 0 0;
    min-height: 20px;
}

.quiz-item {
    padding: 1rem;
}

.quiz-word {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-opt {
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: default;
}

.quiz-opt.correct {
    background: #d4edda;
    color: #155724;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: var(--amber-bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-box-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
}

.stat-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lib-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lib-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9rem;
}

.lib-item.active {
    background: var(--amber-bg);
    color: var(--amber);
    font-weight: 500;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fff5f5;
    border-radius: 8px;
    font-size: 0.9rem;
}

.error-times {
    color: #e53e3e;
    font-size: 0.8rem;
}

/* ========================================
   Download Page
   ======================================== */
.page-header-download {
    background: linear-gradient(135deg, var(--amber-bg) 0%, #fff 50%, var(--amber-bg) 100%);
}

.download-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.download-icon {
    width: 64px;
    height: 64px;
    background: var(--amber-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--amber);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.info-label {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-dark);
}

.install-guide,
.sys-requirements {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.install-step {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.install-step:last-child {
    border-bottom: none;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--amber);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1rem;
}

.step-content h6 {
    margin-bottom: 0.25rem;
}

.req-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* ========================================
   Privacy & About Pages
   ======================================== */
.privacy-section,
.about-section {
    background: #fff;
}

.privacy-content h5 {
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--amber-bg);
}

.privacy-content ol {
    padding-left: 1.5rem;
}

.privacy-content ol li {
    line-height: 1.8;
}

.about-block {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--amber-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--amber);
    flex-shrink: 0;
}

.version-item {
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--amber);
}

.email-link {
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

/* ========================================
   Scroll Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--amber);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(232,150,10,0.4);
    z-index: 1040;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--amber-dark);
    transform: translateY(-3px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .mockup-window {
        width: 100%;
        max-width: 340px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .floating-icon {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .download-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Animation
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-mockup {
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========================================
   Mini Program Section
   ======================================== */
.miniprogram-section {
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

.qrcode-wrapper {
    display: inline-block;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
}

.qrcode-badge {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #07C160;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-feature {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ========================================
   Products Page
   ======================================== */
.page-header-products {
    background: linear-gradient(135deg, var(--amber-bg) 0%, #fff 50%, #f0fff4 100%);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--amber-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--amber);
}

.product-name {
    margin-bottom: 0.25rem;
}

.product-desc {
    line-height: 1.7;
}

.product-features .feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.85rem;
}

.product-info .info-box {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.product-info .info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-info .info-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-qrcode {
    padding: 1rem;
    background: #f0fff4;
    border-radius: var(--radius);
}

.product-qrcode .qrcode-img {
    width: 160px;
    height: 160px;
}

.compare-section {
    margin-top: 3rem;
}

.compare-section table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.compare-section table td {
    font-size: 0.9rem;
}

.compare-section .text-success {
    color: #10b981 !important;
}

.compare-section .text-muted {
    color: #9ca3af !important;
}

.coming-soon-box {
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D4 100%);
    border-radius: var(--radius);
    border: 1px dashed var(--amber);
}

.coming-soon-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(232, 150, 10, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 0.25rem;
}

.coming-soon-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}
