/* Zen Moss Garden Minimalism - 绿树 (Green Tree) UI Theme */

:root {
    /* 暖瓷白与雪松苔绿配色系统 */
    --bg-color: #f8faf8;
    --bg-alt: #f1f4f1;
    --text-main: #0f291e;
    --text-muted: #4b5e55;
    --primary-color: #15803d;
    --primary-hover: #166534;
    --card-bg: #ffffff;
    --border-color: rgba(15, 41, 30, 0.12);
    --hairline: 0.5px solid var(--border-color);
    --nav-bg: rgba(248, 250, 248, 0.85);
    
    --shadow-subtle: 0 4px 20px rgba(15, 41, 30, 0.05);
    --shadow-hover: 0 12px 30px rgba(15, 41, 30, 0.08);
    --transition-speed: 0.4s;
    
    /* 组件特殊颜色 */
    --widget-bg: rgba(255, 255, 255, 0.8);
    --ripple-color: rgba(21, 128, 61, 0.2);
}

[data-theme="dark"] {
    /* 深林暗夜模式 */
    --bg-color: #0b140f;
    --bg-alt: #121f17;
    --text-main: #e2e8e4;
    --text-muted: #94a39b;
    --primary-color: #22c55e;
    --primary-hover: #4ade80;
    --card-bg: #121f17;
    --border-color: rgba(226, 232, 228, 0.12);
    --hairline: 0.5px solid var(--border-color);
    --nav-bg: rgba(11, 20, 15, 0.85);
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.6);
    
    --widget-bg: rgba(18, 31, 23, 0.8);
    --ripple-color: rgba(34, 197, 94, 0.2);
}

/* 基础排版与纹理 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 锚点过渡平滑动态效果 */
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Washi paper 极微弱纸张质感叠加 (伪元素) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    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)'/%3E%3C/svg%3E");
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: var(--hairline);
    border-bottom: var(--hairline);
}

/* 网格系统 */
.grid {
    display: grid;
    gap: 32px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--hairline);
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* 右上角精致物理拨动开关风格的主题按钮 */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}
.theme-toggle:hover { opacity: 1; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.5px;
}
.btn-large {
    padding: 14px 36px;
    font-size: 1.05rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.2);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: var(--hairline);
}
.btn-secondary:hover {
    background-color: rgba(15, 41, 30, 0.03);
}
[data-theme="dark"] .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.05); }

/* 主视觉区 Hero */
.hero {
    padding: 160px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.headline {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: 1px;
}
.text-highlight {
    color: var(--primary-color);
    font-weight: 500;
}
.subheadline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 20px;
}

/* 视觉中心卡片 (Parallax Widget) */
.parallax-perspective {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}
.widget-card {
    background: var(--widget-bg);
    border: var(--hairline);
    border-radius: 20px;
    padding: 32px;
    width: 340px;
    box-shadow: var(--shadow-subtle);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: var(--hairline);
    padding-bottom: 16px;
}
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.dot {
    width: 8px; height: 8px;
    background: var(--border-color);
    border-radius: 50%;
    transition: 0.3s;
}
.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}
.tactile-toggle {
    appearance: none;
    background: transparent;
    border: var(--hairline);
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    transition: all 0.3s;
    letter-spacing: 1px;
}
.tactile-toggle:hover {
    border-color: var(--text-muted);
}
.tactile-toggle.active {
    border-color: var(--primary-color);
    background: rgba(21, 128, 61, 0.05);
    color: var(--primary-color);
}
[data-theme="dark"] .tactile-toggle.active { background: rgba(34, 197, 94, 0.1); }
.ripple {
    position: absolute;
    background: var(--ripple-color);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* 通用模块标题 */
.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 1px;
}

/* 卡片系统 */
.card {
    background-color: var(--card-bg);
    border: var(--hairline);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-card .icon-wrapper {
    color: var(--primary-color);
    margin-bottom: 24px;
    opacity: 0.8;
}
.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 500;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 分隔线与标签 */
.hairline-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 12px;
    border: var(--hairline);
    border-radius: 20px;
}

/* 透明定价表 */
.pricing-table {
    background: var(--card-bg);
    border: var(--hairline);
    border-radius: 16px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}
.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: var(--hairline);
    transition: background 0.3s ease;
    position: relative;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row::before {
    content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
    background: var(--primary-color); transform: scaleY(0); transition: transform 0.3s ease;
}
.pricing-row:hover { background: rgba(21, 128, 61, 0.02); }
.pricing-row:hover::before { transform: scaleY(1); }
.pricing-info h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.pricing-info p { color: var(--text-muted); font-size: 0.9rem; }
.pricing-price { font-size: 2rem; font-weight: 400; color: var(--text-main); }
.pricing-price .period { font-size: 1rem; color: var(--text-muted); }
.pricing-action { display: flex; gap: 16px; }

/* 复制成功动画类 */
.btn-copy.success-morph {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

/* 用户评价 */
.review-text { font-style: normal; margin-bottom: 24px; color: var(--text-main); line-height: 1.8; }
.reviewer { display: flex; justify-content: flex-end; color: var(--text-muted); font-size: 0.9rem; }

/* FAQ 折叠面板 */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: var(--hairline);
    padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    color: var(--text-main);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-content { padding-top: 16px; color: var(--text-muted); font-size: 0.95rem; }

/* 页脚 */
.footer {
    padding: 60px 0;
    border-top: var(--hairline);
    background: var(--card-bg);
}
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }

/* Toast 通知提示 */
#toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-actions { justify-content: center; }
    .pricing-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .pricing-action { width: 100%; justify-content: space-between; }
    .nav-links { display: none; }
    .footer-container { flex-direction: column; gap: 24px; text-align: center; }
}
