/* 基础重置 */
:root {
    --primary-color: #10B981;
    --primary-hover: #059669;
    --text-main: #0E3D2A;
    --text-muted: #1A5C41;
    --bg-main: #EFFBF4;
    --bg-light: rgba(255, 255, 255, 0.4);
    --border-color: #A7F3D0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: linear-gradient(135deg, #EFFBF4 0%, #FAFFFC 100%);
    scroll-behavior: smooth;
    min-height: 100vh;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 按钮组件 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* 主视觉区 */
.hero {
    padding: 100px 0;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(to right, #0E3D2A, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

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

/* 通用区块设置 */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

/* 栅格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

/* 特性与媒体卡片 */
.feature-card, .media-card {
    text-align: center;
}

.feature-card .icon, .media-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3, .media-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p, .media-card p {
    color: var(--text-muted);
}

/* 价格卡片 */
.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.price span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* 用户评价 */
.review-card {
    display: flex;
    flex-direction: column;
}

.review-card .stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
    flex-grow: 1;
}

.reviewer {
    font-weight: 600;
    color: var(--text-muted);
}

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

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
}

/* 页脚 */
.footer {
    background: #0E3D2A;
    color: #A7F3D0;
    padding: 60px 0 30px;
    text-align: center;
}

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

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

.footer-links a:hover {
    color: #34D399;
}

/* 通用页面样式 (About/Terms/Privacy) */
.page-header {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    min-height: 40vh;
}

.page-content h2 {
    margin: 30px 0 15px;
    color: var(--text-main);
}

.page-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}
.page-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--text-muted);
}
.page-content li {
    margin-bottom: 8px;
}
.page-content a {
    color: var(--primary-color);
}
.page-content a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 移动端简化导航，只保留Logo和注册按钮 */
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 16px 24px; /* 增加手指点击区域 */
        font-size: 1.1rem;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   背景装饰图层 (动效)
   ========================================= */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.spot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #10B981 0%, transparent 70%);
    opacity: 0.25;
    filter: blur(25px);
}
.spot-1 { width: 60vw; height: 60vw; top: -10vw; left: -10vw; animation: floatSpot1 30s ease-in-out infinite alternate; }
.spot-2 { width: 50vw; height: 50vw; bottom: -5vw; right: -5vw; animation: floatSpot2 36s ease-in-out infinite alternate; }
.spot-3 { width: 40vw; height: 40vw; top: 40vh; left: 30vw; animation: floatSpot3 42s ease-in-out infinite alternate; }

@keyframes floatSpot1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10vw, 15vh) scale(1.1); } }
@keyframes floatSpot2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-15vw, -10vh) scale(0.9); } }
@keyframes floatSpot3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(12vw, -12vh) scale(1.05); } }

.firefly {
    position: absolute;
    bottom: -20px;
    width: 6px;
    height: 6px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px #10B981;
    opacity: 0;
}
.firefly-1 { left: 20vw; animation: riseFirefly1 24s ease-in-out infinite; }
.firefly-2 { left: 60vw; animation: riseFirefly2 28s ease-in-out infinite 5s; }
.firefly-3 { left: 85vw; animation: riseFirefly3 32s ease-in-out infinite 12s; }

@keyframes riseFirefly1 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { transform: translateY(-110vh) translateX(5vw); opacity: 0; }
}
@keyframes riseFirefly2 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-110vh) translateX(-6vw); opacity: 0; }
}
@keyframes riseFirefly3 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.85; }
    80% { opacity: 0.85; }
    100% { transform: translateY(-110vh) translateX(8vw); opacity: 0; }
}

.glow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 20vh;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.3), transparent);
    animation: breatheGlow 12s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .spot, .firefly, .glow-bottom {
        animation: none !important;
        opacity: 0.15;
    }
}

/* Accessibility & Focus */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
section, [id] {
    scroll-margin-top: 90px;
}

/* FAQ Details/Summary Styles */
details.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}
details.faq-item summary {
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: bold;
    list-style: none;
    outline: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary:after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    line-height: 1;
}
details.faq-item[open] summary:after {
    content: '-';
}
details.faq-item p {
    margin-top: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
