:root {
    /* Japanese Zen Light Theme */
    --bg-color: #F7F6F2;
    --bg-surface: #ffffff;
    --bg-beige: #E8E5DD;
    --text-main: #1C1D1F;
    --text-muted: #5e5f5c;
    --primary: #4A6B5D; /* Moss Green */
    --primary-hover: #3a5448;
    --border-color: #E8E5DD;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.08);
    
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --bg-color: #1a1a19;
    --bg-surface: #242422;
    --bg-beige: #2a2a28;
    --text-main: #e0ded8;
    --text-muted: #9ba098;
    --primary: #5c8573;
    --primary-hover: #75a38e;
    --border-color: #383836;
    --card-bg: #242422;
    --shadow: 0 4px 20px rgba(0,0,0,0.2);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.015"/></svg>');
}

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

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

.section { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(247, 246, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.4s ease;
    border: none;
}
[data-theme="dark"] .navbar {
    background-color: rgba(26, 26, 25, 0.85);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo a { font-size: 1.4rem; font-weight: 500; color: var(--text-main); letter-spacing: 1px; }
.status-dot {
    width: 8px; height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(74, 107, 93, 0.1);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 107, 93, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 107, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 107, 93, 0); }
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 50%;
    width: 0; height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Zen Toggle (Physical switch) */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-beige);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: var(--text-main);
    transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); border-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); background-color: #F7F6F2; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: #F7F6F2 !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 93, 0.2);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #F7F6F2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 93, 0.2);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* Hero */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: 2px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* Ink Ripple Meter */
.latency-meter {
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.ink-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--bg-beige);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.ink-btn:hover { transform: scale(1.05); }
.ink-btn::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
}
.ink-btn.rippling::after {
    animation: inkRipple 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes inkRipple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(20); opacity: 0; }
}
.stats-display {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    gap: 20px;
}
.stats-display.visible {
    opacity: 1;
    transform: translateY(0);
}
.stats-display span { display: flex; align-items: center; gap: 8px; }
.stats-display span::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Grid System */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Bento Cards (Core, AI, Streaming) */
.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card-icon {
    width: 40px; height: 40px;
    margin-bottom: 24px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}
.card-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Pricing with Slider */
.pricing-controls {
    max-width: 400px;
    margin: 0 auto 50px;
    text-align: center;
}
.pricing-controls label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
/* Custom physical toggle slider for devices */
.device-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-beige);
    outline: none;
    position: relative;
}
.device-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.device-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}
.device-val {
    margin-top: 15px;
    font-weight: 500;
    color: var(--primary);
    font-family: monospace;
    font-size: 1.1rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(74, 107, 93, 0.1);
}
.pricing-card.popular::before {
    content: '推荐';
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 4px 16px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.price {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 20px 0 30px;
    color: var(--text-main);
}
.price span { font-size: 1rem; color: var(--text-muted); }
.pricing-features {
    list-style: none; margin-bottom: 40px; flex-grow: 1;
}
.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
    content: '';
    display: block; width: 6px; height: 6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
}
.pricing-action { margin-top: auto; }

/* Review */
.review-card {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}
.review-text {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 300;
}
.review-author { font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}
.faq-question {
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background-color: var(--bg-surface);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 60px;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 16px; letter-spacing: 1px;}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; font-weight: 300; }
.footer-links h4 { font-weight: 500; margin-bottom: 20px; font-size: 0.95rem; }
.footer-links a {
    display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 0.9rem; font-weight: 300;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center; border-top: 1px solid var(--border-color); padding-top: 30px;
    color: var(--text-muted); font-size: 0.85rem;
}

/* Utils */
.center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 40px;}
    .hero { padding: 140px 0 80px; }
    .hero-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
