/* Dark Web3 / SaaS Theme Reset & Variables */
:root {
    --primary-color: #FF004F; /* 红莓红 */
    --primary-hover: #FF4D85;
    --text-main: #f8f9fa;
    --text-light: #ffb3c6;
    --bg-dark: #1A0008;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 0, 79, 0.08);
    --glass-border: rgba(255, 179, 198, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(255, 0, 79, 0.2);
}

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

body.dark-ruby-theme, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #2A000D 0%, #1A0008 100%);
}

a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
ul { list-style: none; }

.container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 10;
}

h1, h2, h3, h4 { color: #ffffff; margin-bottom: 1rem; font-weight: 700; }
.text-center { text-align: center; }

/* Marquee Board */
.marquee-board {
    background: linear-gradient(90deg, #FF004F, #99002F, #FF004F);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 15px rgba(255,0,79,0.5);
    position: relative;
    z-index: 101;
}
.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
    font-weight: bold;
    letter-spacing: 2px;
}
.marquee-content span { padding: 0 20px; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Header */
.glass-header {
    background: rgba(26, 0, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #fff; text-shadow: 0 0 10px rgba(255,0,79,0.8); }
.logo a { color: #fff; text-decoration: none; }
nav.desktop-nav a { color: var(--text-main); margin: 0 15px; font-weight: 500; transition: var(--transition); }
nav.desktop-nav a:hover { color: var(--primary-color); text-shadow: 0 0 8px rgba(255,0,79,0.6); }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 30px;
    font-weight: 600; text-align: center; cursor: pointer; transition: var(--transition);
    border: 1px solid transparent;
}
.glow-btn {
    background: linear-gradient(45deg, #FF004F, #FF4D85);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 79, 0.4), inset 0 2px 4px rgba(255,255,255,0.3);
}
.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.6), inset 0 2px 4px rgba(255,255,255,0.4);
    color: white;
}
.glow-btn-outline {
    background: rgba(255,0,79,0.1);
    border: 1px solid var(--primary-color);
    color: #fff;
}
.glow-btn-outline:hover {
    background: var(--primary-color); box-shadow: 0 4px 15px rgba(255, 0, 79, 0.4);
}
.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Hero Section */
.hero { padding: 100px 0; }
.two-col { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; text-shadow: 0 0 20px rgba(255,0,79,0.3); }
.hero .highlight { color: var(--primary-color); background: -webkit-linear-gradient(#FFB3C6, #FF004F); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; max-width: 600px; }
.ruby-berry { width: 100%; max-width: 400px; filter: drop-shadow(0 20px 30px rgba(255,0,79,0.4)); }
.levitate { animation: levitate 4s ease-in-out infinite; transform-origin: center; }
@keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.3);
    border-left: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(255, 0, 79, 0.4);
    border-color: rgba(255, 179, 198, 0.4);
}

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; text-shadow: 0 0 15px rgba(255,0,79,0.5); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.align-center { align-items: center; }

/* Features */
.features .glow-icon { font-size: 3.5rem; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(255,0,79,0.8)); }
.features p { color: var(--text-light); }

/* Streaming */
.feature-list li { margin-bottom: 15px; padding-left: 15px; border-left: 3px solid var(--primary-color); color: var(--text-light); }
.feature-list strong { color: #fff; }
.media-box { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.glow-tag {
    padding: 10px 20px; border-radius: 30px; font-weight: 600; font-size: 1.1rem; color: white;
    background: rgba(255,0,79,0.2); border: 1px solid rgba(255,0,79,0.5);
    box-shadow: 0 0 15px rgba(255,0,79,0.2);
}

/* Pricing - 3D Carousel Simulation */
.carousel-stage {
    perspective: 1600px;
    padding: 80px 0 60px;
    margin-top: 20px;
}
.carousel-3d {
    transform-style: preserve-3d;
    animation: carousel-spin 25s infinite linear;
    display: flex;
    justify-content: center;
    position: relative;
    height: 450px;
}
.carousel-3d:hover { animation-play-state: paused; }
@keyframes carousel-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

.carousel-3d .pricing-card {
    position: absolute;
    width: 320px;
    height: 100%;
    left: 50%;
    margin-left: -160px;
    backface-visibility: hidden;
}
.carousel-3d .pricing-card:nth-child(1) { transform: rotateY(0deg) translateZ(300px); }
.carousel-3d .pricing-card:nth-child(2) { transform: rotateY(120deg) translateZ(300px); }
.carousel-3d .pricing-card:nth-child(3) { transform: rotateY(240deg) translateZ(300px); }

.pricing-card { text-align: center; display: flex; flex-direction: column; }
.pricing-card h3 { font-size: 1.8rem; color: #fff; }
.pricing-card .price { font-size: 2rem; font-weight: bold; color: var(--primary-color); margin: 20px 0; text-shadow: 0 0 10px rgba(255,0,79,0.5); }
.price-features { text-align: left; margin: 20px 0 30px; flex-grow: 1; }
.price-features li { margin-bottom: 12px; color: var(--text-light); }

.glow-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(45deg, #FF004F, #FF4D85);
    color: white; padding: 6px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: bold;
    box-shadow: 0 0 15px rgba(255,0,79,0.8);
}

/* Reviews Marquee */
.reviews-marquee-wrapper { overflow: hidden; width: 100%; padding: 20px 0; position: relative; }
.reviews-marquee-wrapper::before, .reviews-marquee-wrapper::after {
    content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none;
}
.reviews-marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.reviews-marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.reviews-marquee {
    display: flex; gap: 30px; width: max-content;
    animation: review-scroll 30s linear infinite;
}
.reviews-marquee:hover { animation-play-state: paused; }
@keyframes review-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.review-card { width: 350px; flex-shrink: 0; }
.review-card .stars { color: #FF004F; font-size: 1.4rem; margin-bottom: 15px; text-shadow: 0 0 5px rgba(255,0,79,0.5); }
.review-card p { font-style: italic; margin-bottom: 20px; color: var(--text-main); }
.review-card .author { font-weight: 600; color: var(--text-light); text-align: right; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 25px; }
.faq-item h4 { font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.faq-item p { color: var(--text-light); }

/* Footer */
.glass-footer { border-top: 1px solid var(--glass-border); padding: 40px 0 20px; margin-top: 50px; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-links { display: flex; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-light); transition: var(--transition); }
.footer-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,0,79,0.5); }
.copyright { color: #666; font-size: 0.9rem; text-align: center; }

/* Sub-pages layout support */
.page-header {
    background: linear-gradient(135deg, #2A000D 0%, #1A0008 100%);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0; text-align: center;
}
.page-content {
    max-width: 800px; margin: 60px auto; padding: 0 20px;
}
.page-content h2 { margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 0, 79, 0.3); color: var(--primary-color); text-shadow: 0 0 10px rgba(255,0,79,0.4); }
.page-content p, .page-content li { color: var(--text-light); margin-bottom: 15px; }
.page-content ul { padding-left: 20px; list-style-type: disc; }

/* Responsive tweaks */
@media (max-width: 992px) {
    .two-col { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-visual { order: 1; max-width: 300px; margin: 0 auto 30px; }
    
    .carousel-stage { padding: 0; }
    .carousel-3d { transform: none !important; animation: none; display: grid; grid-template-columns: repeat(2, 1fr); height: auto; gap: 30px; }
    .carousel-3d .pricing-card { position: relative; left: auto; margin-left: 0; width: 100%; transform: none !important; margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .carousel-3d { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; }
}

/* Accessibility & SEO Fixes */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--primary-color); color: #fff; padding: 10px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }
details > summary { list-style: none; cursor: pointer; outline: none; }
details > summary::-webkit-details-marker { display: none; }
details .faq-item summary h4 { margin-bottom: 0; }
details[open] summary h4 { margin-bottom: 10px; }

/* Scroll Margin for fixed header anchor targets */
section[id], div[id] { scroll-margin-top: 100px; }

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-play-state: paused !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
