:root {
    --bg-color: #F6F4ED; /* 宣纸白 */
    --surface-color: #FAFAF8; /* 透页白 */
    --text-primary: #1A1A1A; /* 浓墨 */
    --text-secondary: #4A4A4A; /* 淡墨 */
    --text-light: #8C8C8C; /* 银灰 */
    --accent-red: #B54434; /* 朱砂 */
    --accent-green: #5C7A6B; /* 竹青 */
    --accent-gold: #B89B72; /* 沉香 */
    --border-color: #E0DEC8; /* 纸纹 */
    
    --font-serif: "Noto Serif SC", "STSong", "SimSun", "Songti SC", serif;
    --font-kai: "KaiTi", "STKaiti", "Kaiti SC", "Zhi Mang Xing", serif;
    
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 15px; /* Restored elegant size */
    line-height: 2;
    overflow-x: hidden;
    transition: margin-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 0;
    /* Subtle paper texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}

a:hover {
    color: var(--accent-green);
}

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

/* Typography styles */
.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 8px;
}
.text-vertical-upright {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 8px;
}

.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-family: var(--font-kai);
    font-size: 14px;
    line-height: 1;
    text-align: center;
    border-radius: 4px; /* Slight rounding for carved look */
    margin-top: var(--space-md);
    padding: 4px;
    box-shadow: inset 0 0 0 1px rgba(181, 68, 52, 0.2);
}

/* Navigation - Hidden by Default, Hover to reveal */
.nav-trigger-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Trigger zone */
    z-index: 1001; 
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(246, 244, 237, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 222, 200, 0.5);
    border-bottom: 1px solid rgba(224, 222, 200, 0.5);
    transform: translateY(-100%); /* Hidden when scrolling down by default */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base logic: Visible when Hovered OR when at the Top (not scrolled) */
body:not(.is-scrolled) .navbar,
.nav-trigger-area:hover ~ .navbar,
.navbar:hover {
    transform: translateY(0); 
}

/* Push down effect logic for Hero */
body {
    transition: margin-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body:not(.is-scrolled),
body:has(.nav-trigger-area:hover),
body:has(.navbar:hover) {
    margin-top: 80px; 
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.nav-logo a {
    font-size: 24px;
    letter-spacing: 4px;
    font-family: var(--font-kai);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links li a {
    font-size: 15px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-green);
    transition: width 0.4s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-controls button:hover {
    color: var(--accent-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 160px 0 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(246, 244, 237, 0) 0%, rgba(246, 244, 237, 1) 100%),
                radial-gradient(circle at 70% 40%, rgba(92, 122, 107, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 30% 60%, rgba(26, 26, 26, 0.05) 0%, transparent 50%);
}

.hero-mountain {
    position: absolute;
    bottom: -10vh;
    left: 0;
    width: 100%;
    height: 60vh;
    background-image: 
        linear-gradient(rgba(246, 244, 237, 0.6), rgba(246, 244, 237, 1)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a1a1a' fill-opacity='0.1' d='M0,160L48,170.7C96,181,192,203,288,181.3C384,160,480,96,576,90.7C672,85,768,139,864,165.3C960,192,1056,192,1152,176C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    z-index: -1;
    opacity: 0.8;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    width: 100%;
}

.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.hero-title {
    font-size: 80px;
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin: 0;
}

.hero-subtitle-box {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections */
.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 32px;
    letter-spacing: 8px;
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-light), transparent);
}

/* Recommended Content */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--accent-green);
    transition: height 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(26, 26, 26, 0.05);
}

.card:hover::before {
    height: 100%;
}

.card-category {
    font-size: 12px;
    color: var(--accent-green);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    font-family: var(--font-kai);
}

.card-title {
    font-size: 20px;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.news-item {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md) 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color 0.4s ease;
}

.news-item:hover {
    background-color: var(--surface-color);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.news-date {
    font-family: var(--font-serif);
    color: var(--text-light);
    font-size: 14px;
    min-width: 100px;
}

.news-title {
    font-size: 16px;
    flex-grow: 1;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: var(--space-xxl);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    list-style: none;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-lg); }
.font-kai { font-family: var(--font-kai); }

/* Zhiguan AI Additions */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Zen-Code Layout Utilities */
/* Terminal / CLI Simulation Box */
.capsule-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    background: transparent;
    font-family: monospace;
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

.btn-cta {
    padding: 14px 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-kai);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    border: 1px solid var(--text-primary);
}
.btn-cta:hover {
    background: var(--text-primary);
    color: var(--surface-color);
}
.btn-cta.primary {
    background: var(--text-primary);
    color: var(--surface-color);
    border: 1px solid var(--text-primary);
}
.btn-cta.primary:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.1);
}

/* Zen Terminal (Claude Code aesthetic) */
.zen-terminal {
    background: #242424; /* Claude terminal dark */
    border-radius: 24px;
    color: #e0e0e0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    margin-top: var(--space-xxl);
    margin-bottom: 80px; /* Space for glass-card to hang out */
    font-family: monospace;
    text-align: left;
}

.zen-terminal-header {
    background: rgba(40, 40, 40, 0.9);
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px 24px 0 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4A4A4A;
}

.terminal-nav {
    display: flex;
    gap: 8px;
    margin-left: 24px;
}

.terminal-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-serif);
    font-size: 14px;
    color: #8C8C8C;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.terminal-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.terminal-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.zen-terminal-body {
    padding: 40px;
    min-height: 400px;
    position: relative;
    border-radius: 0 0 24px 24px;
}

.terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #a9b5ad;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.terminal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 6px rgba(92, 122, 107, 0.12);
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}

.terminal-line {
    font-size: 15px;
    line-height: 1.6;
    color: #d9d9d9;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-line-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.terminal-line-comment {
    color: #7b8b83;
}

.terminal-line-muted {
    color: #8c8c8c;
}

.terminal-line-success {
    color: #8ec2a9;
}

.terminal-line-error {
    color: #d49090;
}

.terminal-prompt {
    color: var(--accent-green);
    margin-right: 12px;
}

.terminal-comment {
    color: #6A4C41; /* 檀木褐用于注释 */
}

.terminal-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.terminal-shortcut {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #d0d0d0;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-shortcut:hover {
    border-color: rgba(92, 122, 107, 0.45);
    color: #ffffff;
    background: rgba(92, 122, 107, 0.12);
}

.terminal-form {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.terminal-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #f1f1f1;
    font-size: 15px;
    font-family: monospace;
}

.terminal-input::placeholder {
    color: #7e7e7e;
}

.terminal-submit {
    padding: 14px 20px;
    border: 1px solid rgba(92, 122, 107, 0.45);
    border-radius: 16px;
    background: rgba(92, 122, 107, 0.12);
    color: #f1f1f1;
    font-family: var(--font-kai);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-submit:hover {
    background: rgba(92, 122, 107, 0.22);
    transform: translateY(-1px);
}

.terminal-hint {
    margin-top: 14px;
    font-size: 13px;
    color: #7e7e7e;
}

/* Glassmorphic Floating News Card */
.glass-card {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(246, 244, 237, 0.85); /* 宣纸白透明 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 32px;
    width: 320px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    font-family: var(--font-serif);
    z-index: 1000;
}

.glass-card-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.glass-card-close:hover {
    color: var(--accent-gold);
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.glass-card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.glass-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bento Block Refinements */
.bento-card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.04);
}

.bento-icon {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--accent-green);
}

/* Value Props Comparison */
.value-box {
    padding: 48px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    height: 100%;
    border-radius: 24px;
}
.value-box ul {
    list-style: none;
    padding: 0;
}
.value-box li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}
.value-box.negative li::before {
    content: '✖';
    color: var(--text-light);
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 4px;
}
.value-box.positive li::before {
    content: '✔';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 4px;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}
.faq-q {
    font-family: var(--font-kai);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 0;
    padding: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.faq-q:hover {
    background: var(--bg-color);
}
.faq-a {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    padding: 0 24px 24px 24px;
    display: none;
}

@media (max-width: 968px) {
    /* Mobile specific overrides */
    .navbar {
        transform: translateY(0) !important;
    }
    body {
        margin-top: 80px !important;
    }
    
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .hero-content { flex-direction: column !important; align-items: center; }
    .hero-title-wrap { flex-direction: column; text-align: center; }
    .text-vertical, .text-vertical-upright { writing-mode: horizontal-tb; }
    .hero-intro { margin-top: var(--space-md); text-align: center; max-width: 100%; }
    .hero-ctas { flex-direction: column; }
    .zen-terminal-header,
    .terminal-form {
        flex-direction: column;
        align-items: stretch;
    }
    .terminal-nav {
        margin-left: 0;
        flex-wrap: wrap;
    }
    .zen-terminal-body {
        padding: 24px;
    }
    .terminal-submit {
        width: 100%;
    }
    
    .glass-card {
        bottom: 24px;
        right: 24px;
        width: calc(100% - 48px);
        padding: 24px;
        border-radius: 12px;
    }
}
