:root {
    --color-primary: #2D5016;
    --color-primary-dark: #1f380f;
    --color-secondary: #5A8F4A;
    --color-accent: #E6C040;
    --color-bg: #f6f8f4;
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-border: #B8D4A8;
    --shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
    --radius: 8px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.brand-icon {
    color: var(--color-accent);
    font-size: 1.4rem;
}

.brand:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    text-decoration: none;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 1.05rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eaf3e4 0%, #f6f8f4 100%);
    padding: 90px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--color-primary);
    margin: 0 0 20px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.hero-badges i {
    margin-right: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.folder-demo {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    width: 320px;
    box-shadow: var(--shadow);
}

.folder-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    color: var(--color-text);
}

.folder-item i {
    margin-right: 8px;
    color: var(--color-accent);
}

.folder-root {
    background: var(--color-primary);
    color: #fff;
}

.folder-root i {
    color: var(--color-accent);
}

.folder-links {
    margin-top: 8px;
    margin-left: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.folder-links span {
    display: block;
    padding: 4px 0;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 1.9rem;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 16px;
}

.section-desc {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(90, 143, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.feature-card h3 {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.screenshot-card {
    margin: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.screenshot-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf3e4, #ddecd5);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.screenshot-placeholder.admin {
    background: linear-gradient(135deg, #e8f0e3, #d4e4cc);
}

.screenshot-placeholder.mobile {
    background: linear-gradient(135deg, #f0f5ec, #e2eedb);
}

.screenshot-card figcaption {
    padding: 14px 18px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Stack */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.stack-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Download */
.section-download {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}

.section-download .section-title {
    color: #fff;
}

.section-download .section-desc {
    color: rgba(255, 255, 255, 0.85);
}

.section-download .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.section-download .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.install-hint {
    margin-top: 24px;
}

.install-hint code {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 20px;
    border-radius: var(--radius);
    display: inline-block;
    color: #fff;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 16px 20px;
}

.faq-item summary {
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 12px;
}

.footer-links h4 {
    color: #fff;
    margin: 0 0 14px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, #eaf3e4 0%, #f6f8f4 100%);
    padding: 70px 0 50px;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin: 0 0 12px;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* Feature detail */
.feature-block {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.feature-block-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(90, 143, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-secondary);
}

.feature-block-content h3 {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.feature-block-content p {
    margin: 0 0 12px;
    color: var(--color-text-muted);
}

.feature-block-content ul {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text-muted);
}

.feature-block-content li {
    margin-bottom: 6px;
}

.section-cta-bottom {
    text-align: center;
    background: #eaf3e4;
}

/* Docs */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 84px;
}

.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.docs-toc li {
    border-bottom: 1px solid var(--color-border);
}

.docs-toc li:last-child {
    border-bottom: none;
}

.docs-toc a {
    display: block;
    padding: 12px 18px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.docs-toc a:hover {
    background: #f0f7ec;
    text-decoration: none;
}

.docs-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
}

.docs-content h2 {
    color: var(--color-primary);
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.docs-content h2:not(:first-child) {
    margin-top: 40px;
}

.docs-content ul,
.docs-content ol {
    color: var(--color-text-muted);
    padding-left: 22px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content code {
    background: #f0f5ec;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-primary);
    font-family: Consolas, Monaco, monospace;
}

.docs-content pre {
    background: #f4f8f1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
}

.docs-content pre code {
    background: transparent;
    padding: 0;
}

/* 微信二维码弹窗 */
.wx-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.wx-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.wx-modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 28px 32px 32px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    width: 320px;
    z-index: 1;
}

.wx-modal-content h3 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.wx-modal-content p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.wx-modal-content img {
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.wx-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

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

/* About */
.about-content {
    max-width: 840px;
}

.about-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.about-block h2 {
    color: var(--color-primary);
    margin-top: 0;
}

.about-block p,
.about-block ul {
    color: var(--color-text-muted);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list i {
    width: 24px;
    color: var(--color-secondary);
}

/* Mobile */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

    .wx-modal-content {
        width: 280px;
        padding: 24px;
    }

    .wx-modal-content img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-block-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}
