:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --surface: #1e293b;
        --surface-alt: #334155;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --border: #334155;
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(var(--surface), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo {
    display: inline-block;
    height: 32px;
    width: 32px;
    background: var(--gradient-main);
    -webkit-mask-image: url('images/app_icon_logo.svg');
    mask-image: url('images/app_icon_logo.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link .material-icons {
    font-size: 1.25rem;
}

.nav-link:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.05);
}

.hero-subtitle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4);
}

.hero-subtitle .material-icons {
    font-size: 1.2rem;
    color: var(--secondary);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-badge-free {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: #059669;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(5, 150, 105, 0.3);
    margin-top: 1.5rem;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.hero-badge-free .material-icons {
    font-size: 1.1rem;
}

.hero-badge-free::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-download {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
}

.btn-download-alt {
    background: transparent;
    color: #059669;
    border: 2px solid #34d399;
    box-shadow: var(--shadow-sm);
}

.btn-download-alt:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

/* Features Component */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-size: 24px;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
}

.feature-highlight {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: var(--radius-sm);
}

/* Preface Section */
.preface-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.preface-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preface-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preface-content strong {
    color: var(--text-main);
}

.preface-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-main);
    background: rgba(79, 70, 229, 0.05);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Naming Philosophy Block */
.naming-philosophy {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.naming-philosophy::before {
    content: '⚓';
    position: absolute;
    top: -10px;
    right: 1.5rem;
    font-size: 5rem;
    opacity: 0.06;
    line-height: 1;
}

.naming-philosophy h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.naming-philosophy p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.naming-philosophy p:last-child {
    margin-bottom: 0;
}

.naming-philosophy strong {
    color: var(--text-main);
}

.naming-divider {
    border: none;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
    margin: 2rem 0;
}

.naming-cn .naming-philosophy h2,
.naming-en .naming-philosophy h2 {
    font-size: 1.4rem;
}

/* ===== Philosophy Page Dedicated Styles ===== */

/* Philosophy Hero */
.philosophy-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    margin-bottom: 0;
    position: relative;
}

.philosophy-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    margin-bottom: 1.5rem;
    animation: heroIconFloat 4s ease-in-out infinite;
}

.philosophy-hero-icon .material-icons {
    font-size: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes heroIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.philosophy-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* Philosophy Article */
.philosophy-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
}

.philosophy-article p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.philosophy-article strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Lead Paragraph — 引言第一段 */
.philosophy-article .lead-paragraph {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-main);
    opacity: 0.85;
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--primary);
}

/* Core Question */
.philosophy-article .core-question {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    padding: 1.5rem 0;
    position: relative;
}

.philosophy-article .core-question::before,
.philosophy-article .core-question::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

.philosophy-article .core-question::before {
    margin-bottom: 1.25rem;
}

.philosophy-article .core-question::after {
    margin-top: 1.25rem;
}

/* Highlight Quote Block */
.highlight-quote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(236, 72, 153, 0.06) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-main);
    font-weight: 500;
}

.highlight-quote-icon {
    position: absolute;
    top: -12px;
    left: 12px;
    font-size: 2rem !important;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.35;
}

.highlight-quote strong {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Philosophy Divider */
.philosophy-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.philosophy-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.philosophy-divider .material-icons {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    background: var(--bg-color);
    padding: 0 0.75rem;
    color: var(--primary);
    opacity: 0.6;
}

/* Call to Action Text */
.philosophy-article .call-to-action-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.8;
    padding: 1rem 1.5rem;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Naming Section — title icons */
.naming-icon {
    font-size: 1.3rem !important;
    vertical-align: middle;
    margin-right: 0.4rem;
    opacity: 0.8;
}

.naming-philosophy h2 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Philosophy Conclusion */
.philosophy-conclusion {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.15);
    position: relative;
    overflow: hidden;
}

.philosophy-conclusion::before {
    content: '⚓';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 6rem;
    opacity: 0.04;
    line-height: 1;
}

.conclusion-motto {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem !important;
    text-align: center;
}

.conclusion-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto !important;
    line-height: 1.8;
    text-align: center !important;
}

/* ===== Philosophy Mobile ===== */
@media (max-width: 768px) {
    .philosophy-hero {
        padding: 2.5rem 1rem 2rem;
    }

    .philosophy-hero-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .philosophy-hero-icon .material-icons {
        font-size: 1.5rem;
    }

    .philosophy-hero h1 {
        font-size: 1.75rem;
        letter-spacing: -0.02em;
    }

    .philosophy-hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .philosophy-article {
        font-size: 0.95rem;
        padding: 0 0.25rem 2rem;
        line-height: 1.9;
    }

    .philosophy-article p {
        margin-bottom: 1.25rem;
    }

    .philosophy-article .lead-paragraph {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .philosophy-article .core-question {
        font-size: 1.1rem;
        padding: 1rem 0;
    }

    .highlight-quote {
        margin: 1.5rem 0;
        padding: 1.25rem 1rem 1.25rem 1.25rem;
        font-size: 1rem;
    }

    .philosophy-divider {
        margin: 1.5rem 0;
    }

    .philosophy-article .call-to-action-text {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .naming-philosophy {
        padding: 1.25rem;
    }

    .naming-philosophy h2 {
        font-size: 1.2rem !important;
    }

    .philosophy-conclusion {
        margin-top: 2rem;
        padding: 1.5rem 1.25rem;
    }

    .conclusion-motto {
        font-size: 1.25rem;
        letter-spacing: 0.15em;
        text-align: center;
    }

    .conclusion-text {
        font-size: 0.95rem;
    }
}

/* Document Page Layout */
.doc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.doc-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-menu {
    list-style: none;
}

.doc-menu li {
    margin-bottom: 0.5rem;
}

.doc-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.doc-menu a:hover,
.doc-menu a.active {
    background: var(--surface-alt);
    color: var(--primary);
}

.doc-content {
    /* background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); */
}

.doc-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--surface-alt);
    padding-bottom: 1rem;
}

.doc-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary);
}

.doc-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.doc-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.doc-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.doc-content strong {
    color: var(--text-main);
}

.doc-content code {
    background: var(--surface-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--secondary);
}

.alert-box {
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2rem 0;
}

.alert-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-box p {
    margin: 0;
    color: var(--text-main);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        display: none;
        z-index: 99;
    }

    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(var(--border), 0.5);
    }

    .nav-link.active {
        box-shadow: none;
        background: rgba(79, 70, 229, 0.1);
        color: var(--primary);
    }

    .nav-toggle:checked~.nav-links {
        display: flex;
    }

    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: fixed;
        top: 25%;
        right: 0;
        transform: translateX(calc(100% - 36px));
        margin: 0;
        padding: 1.5rem 1rem 1.5rem 36px !important;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 105;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--surface);
        max-width: 80vw;
        max-height: 70vh;
        overflow-y: auto;
        border-right: none;
    }

    .doc-sidebar::before {
        content: "目 录";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 36px;
        padding-top: 2rem;
        writing-mode: vertical-rl;
        text-align: center;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--primary);
        background: var(--surface-alt);
        border-right: 1px solid var(--border);
        transition: background 0.3s, color 0.3s;
    }

    .doc-sidebar:hover,
    .doc-sidebar:active,
    .doc-sidebar:focus-within {
        transform: translateX(0);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .doc-sidebar:hover::before,
    .doc-sidebar:active::before,
    .doc-sidebar:focus-within::before {
        background: var(--primary);
        color: white;
    }

    .hero {
        padding: 1.5rem 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle .material-icons {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }

    .doc-content {
        /* padding: 1.5rem; */
    }

    .doc-content h1 {
        font-size: 1.5rem;
    }

    .doc-content h2 {
        font-size: 1.3rem;
    }

    .doc-content h3 {
        font-size: 1.1rem;
    }

    .doc-content p,
    .doc-content li {
        font-size: 0.95rem;
    }

    .preface-content {
        font-size: 0.95rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .doc-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .features-grid {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .preface-section {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .naming-philosophy {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }

    .doc-layout {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .alert-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* Homepage Gallery Carousel */
.home-gallery-section {
    margin: 4rem 0 2rem;
    text-align: center;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 左右渐变遮罩，提示可滚动 */
.gallery-container::before,
.gallery-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.gallery-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.gallery-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 2rem 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.gallery-img {
    width: 80%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    scroll-snap-align: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .gallery-scroll {
        padding: 1rem 2rem 2rem;
    }

    .gallery-img {
        width: auto;
        height: 500px;
        max-height: none;
        flex-shrink: 0;
    }

    .gallery-img:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
}

@media (min-width: 1024px) {
    .gallery-img {
        height: 600px;
    }
}

/* Screenshot Details Page Grid */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.screenshot-item {

    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.4);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.screenshot-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* WeChat QR Section */
.wechat-section {
    margin: 4rem 0 2rem;
    display: flex;
    justify-content: center;
}

.wechat-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    max-width: 560px;
    width: 100%;
}

.wechat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.wechat-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.wechat-icon {
    font-size: 2.5rem !important;
    color: #07c160;
    margin-bottom: 0.25rem;
}

.wechat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.wechat-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.wechat-qr {
    flex-shrink: 0;
}

.wechat-qr img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    background: white;
    padding: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.wechat-qr img:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .wechat-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .wechat-info {
        align-items: center;
    }

    .wechat-qr img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .home-gallery-section {
        margin: 2rem 0 1rem;
    }

    .screenshot-grid {
        gap: 1rem;
        margin-top: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}