/* Reset and Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-hover: #004c99;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --light-bg: #fff;
    --border-radius: 12px;
    --spacing: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
}
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* Header */
header {
    background-color: var(--light-bg);
    padding: 15px var(--spacing);
    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: 100;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

header nav a {
    margin-left: 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Sections */
section {
    padding: 80px var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px var(--spacing);
    background: linear-gradient(135deg, #0052cc, #0099ff);
    color: #fff;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #ff9900;
    color: #fff;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}
.cta-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
    color: #fff;
}

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

.cta-button.blog-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    box-shadow: none;
}
.cta-button.blog-button:hover {
    background-color: #fff;
    color: #0052cc;
}

/* Cards Layout */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card, .review-card, .price-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    flex: 1 1 calc(33.333% - 60px);
    min-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Streaming & AI */
.streaming-ai .card {
    flex: 1 1 calc(50% - 30px);
}
.streaming-ai h3 {
    font-size: 1.5rem;
}

/* Pricing Table */
.price-card {
    text-align: center;
    position: relative;
    flex: 1 1 calc(33.333% - 30px);
    max-width: 380px;
}

.price-card.popular {
    border: 3px solid var(--primary-color);
    padding-top: 50px;
}
.price-card .badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 20px 0;
}
.price-card .price span {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
}

.price-card ul {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.price-card ul li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}
.price-card ul li::before {
    content: "鉁?";
    color: #00cc66;
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Reviews */
.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}
.review-card span {
    font-weight: bold;
    display: block;
    text-align: right;
    color: var(--primary-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--light-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: #1a1a1a;
}
.faq-item p {
    color: #555;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 60px var(--spacing);
    margin-top: 60px;
}
.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links a {
    color: #aaa;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: #fff;
}
footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Subpages Content */
.subpage-content {
    background: var(--light-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.subpage-content h2 {
    text-align: left;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.subpage-content h3 {
    margin-top: 35px;
    color: var(--primary-color);
}
.subpage-content p, .subpage-content ul {
    margin-bottom: 15px;
    color: #444;
}
.subpage-content ul {
    margin-left: 20px;
}
.subpage-content li {
    margin-bottom: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    header nav {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    header nav a {
        margin: 0;
    }
    section {
        padding: 50px 15px;
    }
    .hero {
        padding: 80px 15px;
        border-radius: 0 0 20px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .card, .review-card, .price-card, .streaming-ai .card {
        flex: 1 1 100%;
        min-width: unset;
        margin-bottom: 0;
    }
    .cta-button {
        width: 100%;
        padding: 18px; /* Touch friendly */
        text-align: center;
        box-sizing: border-box;
        display: block;
    }
    .subpage-content {
        padding: 30px 20px;
    }
}

/* =========================================================
   LIFT-OFF ENERGY THEME (Overriding previous styles)
   ========================================================= */
:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --accent-color: #FF9F45;
    --bg-color: #070D1F;
    --text-color: #EAF1FF;
    --light-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(148, 163, 184, 0.3);
}

body {
    background: linear-gradient(135deg, #070D1F, #0B1730);
    background-attachment: fixed;
    color: var(--text-color);
}

h1, h2, h3, h4, .faq-item h3, .subpage-content h2, .price-card .price {
    color: var(--text-color);
}

/* 标题蓝→暖金渐变文字 */
h1, h2 {
    background: linear-gradient(90deg, #3B82F6, #FFDF55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header {
    background-color: rgba(7, 13, 31, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero h1, .hero p {
    color: var(--text-color);
}
.hero h1 {
    -webkit-text-fill-color: transparent;
}

.cta-button {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 159, 69, 0.4);
}
.cta-button:hover {
    background-color: #FF8A22;
    box-shadow: 0 6px 20px rgba(255, 159, 69, 0.6);
}
.cta-button.blog-button {
    border-color: rgba(255,255,255,0.3);
}
.cta-button.blog-button:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color);
}

.card, .review-card, .price-card, .faq-item, .subpage-content {
    background-color: var(--light-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.price-card.popular {
    border: 2px solid var(--primary-color);
}
.price-card .badge {
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(255, 159, 69, 0.4);
}
.price-card ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #B4C6EA;
}
.price-card ul li::before {
    color: var(--accent-color);
}
.price-card .price span {
    color: #B4C6EA;
}

.review-card p, .faq-item p, .subpage-content p, .subpage-content ul, .card p {
    color: #B4C6EA;
}
.subpage-content h2 {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

footer {
    background-color: #03060E;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links a {
    color: #8C9FCA;
}
.footer-links a:hover {
    color: var(--text-color);
}

/* --- Ensure Content is above bg-fx --- */
header, section, footer {
    position: relative;
    z-index: 10;
}

/* --- Background Animation Effects --- */
.bg-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 1. Bottom Center Glow: Orange-blue tail flame glow, 5.5s breathing */
.bg-fx .glow-bottom-center {
    position: absolute;
    bottom: -20vh;
    left: 50%;
    width: 80vw;
    height: 60vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 159, 69, 0.25) 0%, rgba(59, 130, 246, 0.15) 40%, transparent 70%);
    animation: breatheBottom 5.5s ease-in-out infinite alternate;
}
@keyframes breatheBottom {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* 2. Top Left Glow: Blue glow, 9s breathing */
.bg-fx .glow-top-left {
    position: absolute;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation: breatheTopLeft 9s ease-in-out infinite alternate;
}
@keyframes breatheTopLeft {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.15); }
}

/* 3. Beams: 3 vertical thin light beams, 7s uniform upward, staggered */
.bg-fx .beam {
    position: absolute;
    bottom: -20vh;
    width: 2px;
    height: 40vh;
    background: linear-gradient(to top, transparent, rgba(255, 159, 69, 0.8), transparent);
    animation: beamRise 7s linear infinite;
    opacity: 0;
}
.bg-fx .beam.b1 { left: 25%; animation-delay: 0s; }
.bg-fx .beam.b2 { left: 50%; animation-delay: 2.4s; }
.bg-fx .beam.b3 { left: 75%; animation-delay: 4.8s; }
@keyframes beamRise {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-120vh); opacity: 0; }
}

/* 4. Particles: 4 warm gold particles, 22-30s staggered rising */
.bg-fx .particle {
    position: absolute;
    bottom: -10px;
    width: 5px;
    height: 5px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 215, 0, 0.7);
    opacity: 0;
}
.bg-fx .particle.p1 { left: 30%; animation: particleRise 22s linear infinite; animation-delay: 0s; }
.bg-fx .particle.p2 { left: 70%; animation: particleRise 26s linear infinite; animation-delay: 5s; }
.bg-fx .particle.p3 { left: 45%; animation: particleRise 28s linear infinite; animation-delay: 12s; }
.bg-fx .particle.p4 { left: 85%; animation: particleRise 30s linear infinite; animation-delay: 18s; }
@keyframes particleRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

/* Prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
    .bg-fx .glow-bottom-center,
    .bg-fx .glow-top-left,
    .bg-fx .beam,
    .bg-fx .particle {
        animation: none !important;
        opacity: 0.5;
    }
    .bg-fx .beam, .bg-fx .particle {
        display: none;
    }
}

/* Header Button Adjustments */
.header-btn {
    padding: 8px 24px !important;
    font-size: 1rem !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .header-action {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}

/* 限制页眉在宽屏下的最大宽度，使其与内容区对齐，防止 Logo 和按钮距离过远 */
header {
    padding-left: max(var(--spacing), calc(50vw - 600px)) !important;
    padding-right: max(var(--spacing), calc(50vw - 600px)) !important;
}

/* Article Card specific hover */
.article-card {
    cursor: pointer;
}
.article-card h3 {
    transition: color 0.3s;
}
.article-card:hover h3 {
    color: var(--primary-color) !important;
}

/* Sitemap specific hover */
.sitemap-card a:hover {
    background: rgba(255,255,255,0.1) !important;
    text-decoration: none;
}


/* A11y & Phase 2 Fixes */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
h1, h2, h3, h4, section {
    scroll-margin-top: 100px;
}
details.faq-item {
    background-color: var(--light-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}
details.faq-item summary {
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    outline: none;
}
details.faq-item summary:focus {
    color: #fff;
}
details.faq-item p {
    margin-top: 15px;
    color: #B4C6EA;
    line-height: 1.6;
}
