/* 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: #e0dced;
    background-color: transparent;
}

/* 背景动效层 */
#bg-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at right bottom, #1B0F33 0%, #07040F 100%);
}

#star-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.nebula-1 {
    width: 50vw; height: 50vw;
    background: rgba(167, 139, 250, 0.25); /* #A78BFA */
    top: -10vw; left: -10vw;
}

.nebula-2 {
    width: 60vw; height: 60vw;
    background: rgba(240, 171, 252, 0.15); /* #F0ABFC */
    top: 20vh; left: 20vw;
}

.planet {
    position: absolute;
    top: 16%;
    left: 74%;
    width: 11vw;
    height: 11vw;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #C4B5FD 0%, #7C5CE0 45%, #2E1A5E 100%);
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.6),
        0 0 30px rgba(124, 92, 224, 0.5),
        0 0 80px rgba(124, 92, 224, 0.3);
    z-index: 2;
    animation: floatPlanet 12s ease-in-out infinite;
}

@keyframes floatPlanet {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@media (prefers-reduced-motion: reduce) {
    .planet {
        animation: none;
    }
}

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

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(169, 112, 255, 0.3);
}

p {
    margin-bottom: 15px;
    color: #b3a7cc;
}

a {
    text-decoration: none;
    color: #a970ff;
}

/* Navbar */
.navbar {
    background-color: rgba(11, 5, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(169, 112, 255, 0.8);
}

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

.nav-links a {
    color: #e0dced;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: #c9a0ff;
    text-shadow: 0 0 10px rgba(201, 160, 255, 0.5);
}

.nav-btn {
    display: inline-block;
    background-color: #a970ff;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(169, 112, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background-color: #7b40f2;
    color: white;
    box-shadow: 0 0 25px rgba(123, 64, 242, 0.6);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: transparent;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(169, 112, 255, 0.6);
}

.hero .subtitle {
    color: #d1c8e1;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    background-color: #7b40f2;
    color: white;
    padding: 16px 36px;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(123, 64, 242, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-button:hover {
    background-color: #8c52ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(140, 82, 255, 0.8);
}

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

.cta-button.secondary-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #a970ff;
    color: #e0dced;
    box-shadow: none;
}

.cta-button.secondary-btn:hover {
    background-color: rgba(169, 112, 255, 0.15);
    color: #ffffff;
    border-color: #c9a0ff;
    box-shadow: 0 0 15px rgba(169, 112, 255, 0.4);
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 80px;
    position: relative;
    color: #ffffff;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #a970ff;
    margin: 15px auto 0;
    box-shadow: 0 0 10px rgba(169, 112, 255, 0.8);
}

/* Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
}

.card, .media-card, .review-card {
    background: rgba(20, 10, 35, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover, .media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(169, 112, 255, 0.2);
    border-color: rgba(169, 112, 255, 0.3);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: rgba(20, 10, 35, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid #a970ff;
    transform: scale(1.05);
    background: rgba(35, 15, 60, 0.6);
    box-shadow: 0 0 30px rgba(169, 112, 255, 0.15);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7b40f2, #a970ff);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(169, 112, 255, 0.4);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

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

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1c8e1;
    position: relative;
    padding-left: 25px;
}

.pricing-card ul li::before {
    content: '✓';
    color: #a970ff;
    position: absolute;
    left: 0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(169, 112, 255, 0.5);
}

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

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

.faq-item {
    background: rgba(20, 10, 35, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
}

.faq-item summary {
    color: #c9a0ff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.faq-item[open] summary {
    margin-bottom: 15px;
}

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

/* Accessibility & Focus */
:focus-visible {
    outline: 2px solid #c9a0ff;
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #a970ff;
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Scroll Offset for Fixed Header */
section[id], div[id] {
    scroll-margin-top: 90px;
}

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

.review-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.reviewer {
    font-weight: bold;
    color: #c9a0ff;
}

/* Footer */
footer {
    background: rgba(5, 2, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

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

.footer-links a {
    color: #998eb3;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

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

/* Content Pages (About, Terms, Privacy) */
.content-page {
    background: rgba(20, 10, 35, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin: 60px auto;
    max-width: 800px;
}

.content-page h1 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(169, 112, 255, 0.5);
}

.content-page h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    color: #c9a0ff;
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b3a7cc;
}

.content-page ul li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 10px;
    }

    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .cta-button {
        width: 100%;
        padding: 18px;
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .pricing-card.popular {
        transform: none;
    }

    .card-grid, .pricing-grid, .two-cols, .grid-3x3 {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-page {
        padding: 30px 20px;
        margin: 30px auto;
    }
}
