/* Reset & Base */
:root {
    --primary: #4A90E2;
    --primary-hover: #357ABD;
    --bg-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}
* { 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-dark); background: var(--bg-color); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; }

/* Header & Hero */
header { background: var(--white); padding: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.logo a { color: var(--primary); }
.main-nav { display: flex; gap: 15px; align-items: center; font-weight: 500; }
.main-nav a { color: var(--text-dark); transition: color 0.3s ease; padding: 10px; margin: -10px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.main-nav a:hover { color: var(--primary); }
.hero { text-align: center; padding: 5rem 20px; background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; color: #222; }
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; }

/* Buttons & Accessibility */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px; z-index: 1000; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--primary); color: var(--white); padding: 15px 35px; border-radius: 30px; font-size: 1.1rem; font-weight: bold; transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease, color 0.3s ease; text-align: center; border: 2px solid var(--primary); min-width: 44px; min-height: 44px; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* Scroll Margin for Anchors */
section[id], h2[id], h3[id] { scroll-margin-top: 90px; }

/* Cards & Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 2rem 0; }
.card { background: var(--white); padding: 2.5rem 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 1rem; color: var(--text-dark); font-size: 1.4rem; }
.card p { color: var(--text-light); }

/* Streaming & AI */
.streaming-ai { background: #fff; padding: 5rem 20px; text-align: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }

/* Pricing */
.pricing { padding: 5rem 20px; }
table.grid { border-collapse: collapse; width: 100%; border: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 2rem 0; }
table.grid caption { display: none; }
table.grid thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
table.grid tbody { display: contents; }
table.grid tr { display: contents; }
table.grid td { display: flex; flex-direction: column; justify-content: space-between; }
.price-card { background: var(--white); padding: 3rem 2rem; border-radius: 12px; text-align: center; border: 1px solid #eee; display: flex; flex-direction: column; justify-content: space-between; }
.price-card.popular { border: 2px solid var(--primary); transform: scale(1.05); box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15); position: relative; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; }
.price { font-size: 2.5rem; font-weight: bold; margin: 1.5rem 0; color: var(--primary); }
.price-features { margin-bottom: 2rem; }
.price-features p { margin-bottom: 10px; color: var(--text-light); }

/* Reviews */
.reviews { background: var(--white); padding: 5rem 20px; border-top: 1px solid #eee; }
.review-card { font-style: italic; color: var(--text-light); padding: 2rem; background: #fdfdfd; border: 1px solid #f0f0f0; }
.review-author { font-weight: bold; margin-top: 1.5rem; font-style: normal; color: var(--text-dark); }

/* FAQ */
.faq { padding: 5rem 20px; max-width: 800px; margin: 0 auto; }
details.faq-item { background: var(--white); margin-bottom: 15px; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #eee; cursor: pointer; }
details.faq-item summary { margin-bottom: 8px; color: var(--text-dark); font-size: 1.1rem; font-weight: bold; outline: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { color: var(--text-light); margin-top: 10px; }

/* Footer */
footer { background: #1a1a1a; color: #fff; padding: 3rem 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #aaa; font-size: 1rem; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.footer-copyright { color: #666; font-size: 0.9rem; }

/* Subpage Styles (About, Terms, etc.) */
.subpage { padding: 4rem 20px; max-width: 800px; margin: 2rem auto; background: var(--white); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.subpage h1 { margin-bottom: 2rem; text-align: center; color: var(--primary); font-size: 2.2rem; }
.subpage h2 { margin: 2rem 0 1rem; color: #222; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.subpage p { margin-bottom: 1rem; color: var(--text-light); }
.subpage ul { margin-left: 20px; margin-bottom: 1rem; color: var(--text-light); }
.subpage li { margin-bottom: 10px; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    .price-card.popular { transform: scale(1); margin-top: 15px; margin-bottom: 15px; }
    /* Making CTA buttons more touch-friendly */
    .btn { width: 100%; padding: 18px 0; font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; }
}

/* =========================================
   MOONLIT SEA THEME OVERRIDES (VISUAL ONLY)
   ========================================= */

:root {
    --primary: #7DD3FC; 
    --primary-hover: #38bdf8;
    --bg-color: transparent;
    --text-dark: #E0E7FF;
    --text-light: rgba(224, 231, 255, 0.7);
    --white: rgba(255, 255, 255, 0.04);
}

body {
    background-color: transparent;
    color: var(--text-dark);
}

/* Base styles / Text shadows / Borders overrides */
h1, h2, h3, h4, .logo, .price { color: var(--text-dark) !important; }
.logo a { color: var(--text-dark) !important; }
.hero h1 { text-shadow: 0 0 20px rgba(224, 231, 255, 0.3); }
p { color: var(--text-light); }
.card-icon { text-shadow: 0 0 15px rgba(255,255,255,0.2); }

/* Buttons visually updated */
.btn { 
    background: var(--text-dark); 
    color: #0A102C; 
    border-color: var(--text-dark); 
    box-shadow: 0 4px 15px rgba(224, 231, 255, 0.2);
}
.btn:hover {
    background: #ffffff;
    border-color: #ffffff;
}
.btn-secondary {
    background: rgba(10, 16, 44, 0.5);
    color: var(--text-dark);
    border-color: var(--text-dark);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: var(--text-dark);
    color: #0A102C;
}

/* Header & Nav */
header { 
    background: rgba(10, 16, 44, 0.5) !important; 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(224, 231, 255, 0.05); 
    box-shadow: none !important;
}
.main-nav a { color: var(--text-dark); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); text-shadow: 0 0 8px rgba(125, 211, 252, 0.4); }

/* Sections / Cards / Glassmorphism */
.hero { background: transparent !important; }
.streaming-ai { background: rgba(10, 16, 44, 0.3) !important; border-top: 1px solid rgba(224, 231, 255, 0.05) !important; border-bottom: 1px solid rgba(224, 231, 255, 0.05) !important; }
.reviews { background: transparent !important; border-top: 1px solid rgba(224, 231, 255, 0.05) !important; }

.card, .price-card, .faq-item, .subpage { 
    background: var(--white) !important; 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(224, 231, 255, 0.08) !important; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.price-card.popular { 
    background: rgba(125, 211, 252, 0.05) !important; 
    border-color: var(--primary) !important; 
    box-shadow: 0 10px 40px rgba(125, 211, 252, 0.15) !important; 
}
.popular-badge { background: var(--primary) !important; color: #0A102C !important; }

.review-card { background: rgba(224, 231, 255, 0.02) !important; }

/* Footer */
footer { 
    background: rgba(5, 8, 20, 0.7) !important; 
    backdrop-filter: blur(10px); 
    border-top: 1px solid rgba(224, 231, 255, 0.05); 
}
.footer-links a { color: rgba(224, 231, 255, 0.5) !important; }
.footer-links a:hover { color: var(--primary) !important; }

/* Specific text color overrides */
.subpage h2 { border-bottom-color: rgba(224, 231, 255, 0.1) !important; }
.faq-item h4 { color: var(--text-dark) !important; }

/* 独立图层背景样式 */
#moonlit-sea-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9999;
    pointer-events: none;
}
