/* 基础重置 & 清新果昔玻璃拟物主题 (Glassmorphism & Pastel) */
:root {
    --primary-color: #ff4d6d; /* 活力草莓粉 */
    --primary-hover: #ff3355;
    --text-color: #2b2d42; /* 深岩灰，阅读舒适 */
    --text-light: #6c757d;
    --bg-color: #fcfcfd; /* 极浅的奶油灰白 */
    --bg-light: #f4f5f9; /* 浅灰色区块 */
    --card-bg: #ffffff;
    --border-color: #edf2f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* 页面全局动态背景 */
    background: linear-gradient(-45deg, #ffd1ff, #ffe4d6, #dcf0ff, #fce2ce);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: milkyWave 8s ease-in-out infinite;
    position: relative;
    min-height: 100vh;
}

/* 全局固定悬浮的粉色光球 */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.25) 0%, rgba(255, 77, 109, 0) 70%);
    top: -150px;
    left: -150px;
    filter: blur(40px);
    animation: floatBubble 12s infinite alternate ease-in-out;
    z-index: -1;
    pointer-events: none;
}

/* 全局固定悬浮的冰蓝色光球 */
body::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 210, 255, 0.25) 0%, rgba(118, 210, 255, 0) 70%);
    bottom: -200px;
    right: -150px;
    filter: blur(40px);
    animation: floatBubble2 15s infinite alternate-reverse ease-in-out;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 - 胶囊形态 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px; /* 强烈的圆角，形似胶囊 */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.25);
    border-color: transparent;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.25);
}

.btn-large:hover {
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    transform: translateY(-2px);
}

.btn-large-outline {
    padding: 16px 36px;
    font-size: 1.15rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

.btn-large-outline:hover {
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    border-color: transparent;
    transform: translateY(-2px);
}

/* 导航栏 - 毛玻璃效果 (Glassmorphism) */
.navbar {
    background: rgba(252, 252, 253, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄区域 (Hero) */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* 背景渐变移动动画 */
@keyframes milkyWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 悬浮气泡移动动画 1 */
@keyframes floatBubble {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(200px, 150px) scale(1.3); }
}

/* 悬浮气泡移动动画 2 */
@keyframes floatBubble2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-250px, -100px) scale(1.2); }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a24;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #4a4a5a;
    max-width: 750px;
    margin: 0 auto 40px;
}

/* 通用区块样式 */
section {
    padding: 90px 0;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.3); /* 半透明让底部波浪透出 */
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-color);
}

/* 卡片网格 */
.card-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 所有卡片通用半透明毛玻璃效果 */
.card, .pricing-card, .review-card, .faq-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.card {
    flex: 1 1 300px;
    padding: 40px 30px;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.08);
    border-color: rgba(255, 77, 109, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
}

/* 定价表 */
.pricing-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center; /* 让中间的高一点点 */
}

.pricing-card {
    flex: 1 1 300px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.08);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.1);
    transform: scale(1.03); /* 中间卡片稍微放大 */
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: normal;
}

.features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 500;
}

.features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.pricing-card .btn {
    width: 100%;
}

/* 用户评价 */
.review-card {
    flex: 1 1 300px;
    padding: 40px 30px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color);
}

.reviewer {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    padding: 25px 30px;
    text-align: left;
}

.faq-item h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 页脚 */
footer {
    background: #ffffff;
    color: var(--text-light);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy {
    color: #a0aec0;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    margin-top: 10px;
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .card-grid, .pricing-grid {
        flex-direction: column;
    }
    
    .pricing-card.popular {
        transform: scale(1); /* 手机端取消放大，避免超出屏幕 */
        margin-top: 15px;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .btn {
        display: block;
        width: 100%;
        padding: 16px; 
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


/* Stage 2 Accessibility & Layout Fixes */
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--primary-color);
    color: white; padding: 8px; z-index: 1000; transition: top 0.3s;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
section[id], div[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
details summary { cursor: pointer; font-weight: bold; list-style: none; font-size: 1.1rem; color: var(--text-color); margin-bottom: 10px; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--primary-color); }
