/* 基础重置与禅意极简变量 */
:root {
    --bg-color: #f8f8f6; /* 瓷白 (Porcelain white) */
    --text-color: #111827; /* 墨黑 (Sumi-ink black) */
    --text-muted: #6b7280;
    --primary-color: #111827;
    --accent-red: #e11d48; /* 朱砂红 (Cinnabar red) */
    --card-bg: #ffffff;
    --border-color: rgba(17, 24, 39, 0.08); /* 极细发丝线 (Hairline border) */
    --nav-bg: rgba(248, 248, 246, 0.85);
    
    /* 开关变量 */
    --switch-bg: #e5e7eb;
    --switch-shadow: rgba(0, 0, 0, 0.05);
    --switch-thumb: #ffffff;
    --icon-sun: 1;
    --icon-moon: 0.2;
}

[data-theme="dark"] {
    --bg-color: #0f1115; /* 深夜墨色 */
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --primary-color: #f9fafb;
    --accent-red: #fb7185; 
    --card-bg: #181b21;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 17, 21, 0.85);

    --switch-bg: #374151;
    --switch-shadow: rgba(0, 0, 0, 0.4);
    --switch-thumb: #111827;
    --icon-sun: 0.2;
    --icon-moon: 1;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 700;
}

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

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

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

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

.logo {
    font-size: 1.4rem;
    font-family: "Noto Serif SC", serif;
    font-weight: 900;
    letter-spacing: 2px;
}

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

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

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

/* 导航底边动效 */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

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

/* 开关样式保持 */
.theme-switch {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
}
.theme-switch-track {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 30px;
    background: var(--switch-bg);
    box-shadow: inset 0 1px 4px var(--switch-shadow);
    transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-sizing: border-box;
}
.switch-icon {
    font-size: 12px;
    z-index: 1;
    transition: all 0.4s ease;
}
.switch-icon.sun { opacity: var(--icon-sun); }
.switch-icon.moon { opacity: var(--icon-moon); }
.switch-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--switch-thumb);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
[data-theme="dark"] .switch-thumb {
    transform: translateX(28px);
}

/* 极简按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px; /* 极简风格少用大圆角 */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color) !important;
    border: 1px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

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

/* Hero 区域 (左右分割) */
.hero {
    padding: 160px 0 100px;
    overflow: hidden;
}
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.hero-text h2 {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 30px;
}
.hero-text .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}
.cta-group {
    display: flex;
    gap: 16px;
}

/* 视差互动卡片 (Ceramic iOS Widget) */
.hero-visual {
    flex: 1;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}
.ios-widget {
    background: var(--card-bg);
    width: 300px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), inset 0 0 0 1px var(--border-color);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* JavaScript 驱动微动 */
    position: relative;
    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>'); /* 宣纸纹理 */
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: monospace;
}
.widget-body {
    text-align: center;
}
.ping-status {
    font-size: 2rem;
    font-family: -apple-system, sans-serif;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.connect-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.connect-btn:hover {
    border-color: var(--text-color);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.4s;
}
.status-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* 墨水晕染连接动画 */
.connect-btn.connecting::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ink-wash 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes ink-wash {
    to { width: 300px; height: 300px; opacity: 0; }
}

/* 核心优势 Grid */
section {
    padding: 100px 0;
}
.section-title {
    font-size: 1.8rem;
    margin-bottom: 60px;
    text-align: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.03);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.4s ease;
}
.feature-card:hover::before {
    width: 100%;
}
.card-icon-clean {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: monospace;
    color: var(--text-muted);
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 套餐表格 (透明行结构) */
.pricing-list {
    border-top: 1px solid var(--border-color);
}
.pricing-row {
    display: grid;
    grid-template-columns: 1fr 150px 130px;
    align-items: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.4s, padding-left 0.4s;
    position: relative;
}
.pricing-row:hover {
    background: rgba(17, 24, 39, 0.02); /* Translucent grey wash */
    padding-left: 30px;
}
[data-theme="dark"] .pricing-row:hover {
    background: rgba(255, 255, 255, 0.02);
}
.pricing-row::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red); /* Cinnabar indicator point */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-row:hover::before {
    transform: translateY(-50%) scale(1);
}

.plan-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.plan-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.plan-price {
    font-family: "Noto Serif SC", serif;
    font-size: 1.5rem;
    font-weight: 700;
}
.plan-action {
    min-width: 120px;
    text-align: right;
}

/* FAQ 极简 */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 40px;
}
.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.faq-item h4::before {
    content: 'Q.';
    font-family: serif;
    color: var(--accent-red);
    margin-right: 10px;
}
.faq-item p {
    color: var(--text-muted);
    padding-left: 28px;
}

/* 评价与底栏 */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
    font-size: 0.9rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
}
.footer-links a {
    margin-left: 24px;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-split { flex-direction: column; text-align: center; }
    .hero { padding: 120px 0 60px; }
    .hero-text .subtitle { margin: 0 auto 30px; }
    .cta-group { justify-content: center; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .pricing-row { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
    .plan-action { width: 100%; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
