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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: #222;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.cta-btn {
    background-color: #ff6b6b;
    color: white;
    font-size: 1.2rem;
    padding: 16px 32px;
    border-radius: 8px;
}

.cta-btn:hover {
    background-color: #ee5253;
}

/* Header */
header {
    background-color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.logo a {
    color: inherit;
}

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

nav a:not(.btn):hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f7ff, #e6f0fa);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #ccc;
    font-size: 1.2rem;
    padding: 14px 30px;
    border-radius: 8px;
}

.secondary-btn:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
}

/* Sections Common */
section {
    padding: 60px 5%;
}

/* Cards Grid */
.feature-cards, .support-cards, .review-cards, .pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Pricing Table */
.price-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
}

.price-card.popular {
    border: 2px solid #007bff;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #222;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #777;
    font-weight: normal;
}

.price-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.price-card ul li:last-child {
    border-bottom: none;
}

.buy-btn {
    background-color: #28a745;
    color: white;
    width: 100%;
}

.buy-btn:hover {
    background-color: #218838;
}

/* Reviews */
.reviews .card {
    text-align: left;
}

.reviews .user {
    font-weight: bold;
    color: #007bff;
    margin-top: 15px;
    text-align: right;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: #333;
}

.faq-item p {
    margin-bottom: 0;
    color: #666;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .price-card.popular {
        transform: scale(1);
    }
    
    .btn {
        padding: 14px 28px; /* Larger hit area for touch */
    }
}

/* ========================================================= */
/* 07 玉轮初升 · JADE MOON RISING - 视觉覆盖 (严格遵守排版约束) */
/* ========================================================= */

body {
    background-color: transparent !important;
    color: #1B2534 !important;
}

h1, h2, h3, h4 { color: #1B2534 !important; }
p { color: #3A4A63 !important; }

/* 基础配色组件 */
.primary-btn, .cta-btn, .buy-btn {
    background-color: #5B7BB8 !important;
    color: #FFFFFF !important;
}
.primary-btn:hover, .cta-btn:hover, .buy-btn:hover {
    background-color: #4A659A !important;
}
.secondary-btn {
    background-color: rgba(255, 255, 255, 0.6) !important;
    color: #1B2534 !important;
    border-color: #5B7BB8 !important;
}
.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: #4A659A !important;
}

.logo, nav a:not(.btn):hover, .reviews .user { color: #5B7BB8 !important; }
.badge { background: #5B7BB8 !important; }
.price { color: #1B2534 !important; }
.price span { color: #3A4A63 !important; }
.price-card.popular { border-color: #5B7BB8 !important; box-shadow: 0 8px 32px rgba(91, 123, 184, 0.25) !important; }
.price-card ul li { border-bottom-color: rgba(147, 197, 253, 0.3) !important; color: #3A4A63 !important; }

/* 玻璃拟态 (透视背景) */
.hero { background: transparent !important; }
header {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: none !important;
    /* 动态计算 padding，将内容限制在 1200px 宽度内，解决位置太开的问题 */
    padding: 15px max(5%, calc((100vw - 1200px) / 2)) !important;
}
.card, .price-card, .faq-item, .article-card, .article-container, .page-content {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(147, 197, 253, 0.15) !important;
}
.kb-header {
    background: transparent !important;
    padding: 60px 20px !important;
}
.kb-header p {
    color: #3A4A63 !important;
}
.read-more {
    color: #5B7BB8 !important;
}
.sitemap-list a {
    color: #5B7BB8 !important;
}
footer {
    background-color: #1B2534 !important;
}

/* ========================================================= */
/* 背景层动效实现 (仅影响 .jade-moon-bg 图层) */
/* ========================================================= */
.jade-moon-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -999; /* 置于所有内容之下 */
    pointer-events: none; /* 禁止交互影响 */
    overflow: hidden;
}

.sky-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #F7FAFD 0%, #D7E2F0 100%);
}

.blueprint-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(147, 197, 253, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.moon-container {
    position: absolute;
    bottom: -15vh; /* 只露出上半轮 */
    left: 50%;
    transform: translateX(-50%);
    width: 30vw; /* 约 30% 画幅 */
    height: 30vw;
    min-width: 300px;
    min-height: 300px;
    animation: moonFloat 20s ease-in-out infinite alternate;
}

.jade-moon {
    width: 100%; height: 100%;
    border-radius: 50%;
    /* 羊脂玉质感 */
    background: radial-gradient(circle at 35% 25%, #FFFFFF 0%, #F4F7FB 40%, #E2E8F0 80%, #D7E2F0 100%);
    box-shadow: 0 0 50px 10px rgba(255, 255, 255, 0.9), 0 0 120px 30px rgba(147, 197, 253, 0.3);
    animation: haloBreathe 8s ease-in-out infinite alternate;
}

.fog-bands {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 25vh;
    background: linear-gradient(to top, rgba(215, 226, 240, 1) 0%, rgba(215, 226, 240, 0.5) 50%, transparent 100%);
    filter: blur(15px);
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    filter: blur(12px);
}

.cloud-1 { top: 15%; width: 250px; height: 35px; animation: cloudMove1 60s linear infinite; }
.cloud-2 { top: 35%; width: 400px; height: 45px; animation: cloudMove2 75s linear infinite; }
.cloud-3 { top: 65%; width: 180px; height: 25px; animation: cloudMove3 65s linear infinite; }

/* 关键帧动效 (优先 opacity 和 transform 保证性能) */
@keyframes moonFloat {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, -30px); }
}

@keyframes haloBreathe {
    0% { box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.8), 0 0 100px 20px rgba(147, 197, 253, 0.2); }
    100% { box-shadow: 0 0 70px 20px rgba(255, 255, 255, 1), 0 0 150px 40px rgba(147, 197, 253, 0.5); }
}

@keyframes cloudMove1 { 0% { transform: translateX(-300px); } 100% { transform: translateX(100vw); } }
@keyframes cloudMove2 { 0% { transform: translateX(-500px); } 100% { transform: translateX(100vw); } }
@keyframes cloudMove3 { 0% { transform: translateX(-200px); } 100% { transform: translateX(100vw); } }

/* 减弱动效模式 */
@media (prefers-reduced-motion: reduce) {
    .moon-container, .jade-moon, .cloud-1, .cloud-2, .cloud-3 {
        animation: none !important;
    }
}
