/* 蒸汽波 / 迈阿密风云 80s Synthwave 极简重构 - 间距与排版优化版 */
:root {
    --primary-color: #ff00ff; /* 品红 Magenta */
    --primary-hover: #e000e0;
    --secondary-color: #00ffff; /* 青色 Cyan */
    --dark-bg: #0b021a; /* 深邃紫 */
    --light-bg: #14052e; /* 稍浅一点的紫 */
    --text-main: #f0f0f0;
    --text-muted: #a0f0ff;
    --white: #ffffff;
    --border-color: #ff00ff;
    --radius: 4px; /* 稍微柔和一点的硬边缘，避免文字撞线 */
    --font-arcade: 'Courier New', Courier, monospace;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 2; /* 增大全局行高，让文字彻底拉开间距 */
    font-size: 1.05rem;
    letter-spacing: 0.5px; /* 全局增加一点字间距 */
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

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

/* Typography & Neon FX */
h1, h2, h3 { text-transform: uppercase; letter-spacing: 3px; }

.section-title {
    text-align: center;
    font-size: 2.5rem; /* 放大版块标题 */
    margin-bottom: 6rem; /* 大幅增加标题与内容之间的间距 */
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--primary-color);
    font-family: var(--font-arcade);
    letter-spacing: 5px;
}

/* 80s Synthwave Background */
.synth-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -10; pointer-events: none; overflow: hidden;
    background: linear-gradient(to bottom, #070114 0%, #170329 50%, #20002b 100%);
}

.synth-sunset {
    position: absolute;
    top: 35%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; max-width: 500px; aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ffea00 0%, #ff00a0 50%, #000000 50%);
    box-shadow: 0 0 100px #ff00a0;
    mask-image: repeating-linear-gradient(to bottom, black 0%, black 15px, transparent 15px, transparent 20px);
    -webkit-mask-image: repeating-linear-gradient(to bottom, black 0%, black 15px, transparent 15px, transparent 20px);
}

.synth-grid {
    position: absolute;
    bottom: -20%; left: -50%; width: 200%; height: 80%;
    background-image:
        linear-gradient(to right, rgba(0, 255, 255, 0.6) 1px, transparent 1px),
        linear-gradient(to top, rgba(255, 0, 255, 0.8) 1px, transparent 1px);
    background-size: 80px 80px; /* 放大背景网格间距 */
    transform: perspective(600px) rotateX(75deg);
    animation: gridMove 1.5s infinite linear;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 80px; }
}

/* Origami SVG Duck Pulse */
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero p.hero-intro, .hero a { position: relative; z-index: 2; }
.hero h1 {
    font-size: 3.2rem; margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #ff00ff;
    line-height: 1.4;
}
.hero p.hero-intro { 
    text-shadow: 0 0 10px #000, 1px 1px 2px #ff00ff; 
    color: #fff; font-size: 1.2rem; margin-bottom: 3.5rem; 
    max-width: 800px; margin-left: auto; margin-right: auto;
    letter-spacing: 1px;
}

.hero-duck {
    position: absolute; right: -20px; top: -50px;
    width: 450px; height: 450px;
    z-index: 0; pointer-events: none; opacity: 0.9;
}

.duck-wireframe {
    stroke-dasharray: 600;
    animation: duckPulse 4s ease-in-out infinite alternate, duckDash 10s linear infinite;
}

@keyframes duckPulse {
    0% { filter: drop-shadow(0 0 5px #00ffff); }
    100% { filter: drop-shadow(0 0 25px #00ffff); }
}
@keyframes duckDash { to { stroke-dashoffset: 1200; } }

/* Buttons (CTA) Synthwave */
.btn {
    display: inline-block; padding: 15px 35px; border-radius: 0; font-weight: 600;
    text-decoration: none; text-align: center; transition: all 0.3s ease;
    text-transform: uppercase; font-family: var(--font-arcade);
    letter-spacing: 2px;
}

.btn-primary {
    background-color: transparent; border: 2px solid var(--primary-color);
    color: var(--white); text-shadow: 0 0 8px var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 10px rgba(255,0,255,0.5);
}
.btn-primary:hover {
    background-color: var(--primary-color); color: var(--white);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px #fff;
}
.btn-large {
    padding: 18px 45px; font-size: 1.3rem;
    background-color: rgba(255,0,255,0.2); border: 2px solid var(--primary-color);
    color: var(--white); text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    box-shadow: 0 0 20px rgba(255,0,255,0.6), inset 0 0 15px rgba(255,0,255,0.4);
}
.btn-large:hover {
    background-color: var(--primary-color); color: var(--white);
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 20px #fff; text-shadow: 0 0 10px #fff;
}
.btn-outline {
    border: 2px solid var(--secondary-color); color: var(--white); text-shadow: 0 0 8px var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), inset 0 0 10px rgba(0,255,255,0.3);
}
.btn-outline:hover { background-color: var(--secondary-color); color: var(--dark-bg); text-shadow: none; box-shadow: 0 0 20px var(--secondary-color); }

/* Header & Nav */
.header {
    background-color: rgba(11, 2, 26, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    position: sticky; top: 0; z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--white); text-shadow: 0 0 5px var(--primary-color); letter-spacing: 1px; }
.logo span { color: var(--secondary-color); text-shadow: 0 0 10px var(--secondary-color); }
.main-nav { display: flex; gap: 35px; } /* 增加导航链接间距 */
.main-nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-family: var(--font-arcade); text-transform: uppercase; font-size: 1rem; transition: color 0.3s, text-shadow 0.3s; letter-spacing: 1px; }
.main-nav a:hover { color: var(--secondary-color); text-shadow: 0 0 8px var(--secondary-color); }

/* Sections */
.hero { padding: 10rem 0 8rem; text-align: center; }
section { padding: 7rem 0; position: relative; z-index: 10; } /* 大幅增加板块上下间距 */

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; } /* 增加卡片横向间距 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }

/* Retro VHS Cards */
.card {
    background: rgba(20, 5, 46, 0.6);
    backdrop-filter: blur(8px);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    box-shadow: inset 0 0 10px rgba(255,0,255,0.2), 0 0 15px rgba(0,255,255,0.3);
    padding: 45px 35px; /* 增加卡片内部留白 */
    color: var(--text-main);
    text-shadow: 1px 1px 0 #ff00ff, -1px -1px 0 #00ffff;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: inset 0 0 20px rgba(255,0,255,0.5), 0 0 25px rgba(0,255,255,0.5); }
.card p { letter-spacing: 1px; } /* 增加卡片内段落字间距 */

/* Advantages & Streaming */
.advantages .icon { font-size: 3rem; margin-bottom: 25px; text-shadow: 0 0 10px var(--secondary-color); }
.advantages h3 { color: var(--secondary-color); margin-bottom: 20px; line-height: 1.4; }
.streaming-card, .ai-card { border-top: 4px solid var(--secondary-color); }
.streaming-ai h3 { margin-bottom: 25px; font-size: 1.6rem; color: var(--primary-color); line-height: 1.4;}

/* ======= 360° 3D Carousel (Pricing Section) ======= */
#pricing .pricing-grid {
    display: block;
    perspective: 1500px; /* 拉长透视距离，让3D更自然 */
    height: 700px; /* 增加容器高度，防止挤压 */
    position: relative;
    padding: 0;
    margin-top: 4rem; /* 强行拉开与标题距离 */
}
#pricing .pricing-card {
    position: absolute !important;
    width: 340px; /* 卡片加宽 */
    height: 560px; /* 卡片加高，容纳更大字体 */
    left: 50%; top: 20px;
    margin-left: -170px; 
    display: flex; flex-direction: column;
    text-align: center; background: rgba(10, 0, 30, 0.95);
    border: 3px solid var(--primary-color);
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
    padding: 50px 30px; /* 增加内部上下间距 */
}

.pricing-card:nth-child(1) { animation: orbit1 18s linear infinite; }
.pricing-card:nth-child(2) { animation: orbit2 18s linear infinite; }
.pricing-card:nth-child(3) { animation: orbit3 18s linear infinite; }

#pricing .pricing-grid:hover .pricing-card { animation-play-state: paused; }

@keyframes orbit1 {
    0% { transform: rotateY(0deg) translateZ(350px) rotateY(0deg); z-index: 3; filter: brightness(1); }
    25% { transform: rotateY(90deg) translateZ(350px) rotateY(-90deg); z-index: 2; filter: brightness(0.6); }
    50% { transform: rotateY(180deg) translateZ(350px) rotateY(-180deg); z-index: 1; filter: brightness(0.3); }
    75% { transform: rotateY(270deg) translateZ(350px) rotateY(-270deg); z-index: 2; filter: brightness(0.6); }
    100% { transform: rotateY(360deg) translateZ(350px) rotateY(-360deg); z-index: 3; filter: brightness(1); }
}
@keyframes orbit2 {
    0% { transform: rotateY(120deg) translateZ(350px) rotateY(-120deg); z-index: 2; filter: brightness(0.6); }
    25% { transform: rotateY(210deg) translateZ(350px) rotateY(-210deg); z-index: 1; filter: brightness(0.3); }
    50% { transform: rotateY(300deg) translateZ(350px) rotateY(-300deg); z-index: 2; filter: brightness(0.6); }
    75% { transform: rotateY(390deg) translateZ(350px) rotateY(-390deg); z-index: 3; filter: brightness(1); }
    100% { transform: rotateY(480deg) translateZ(350px) rotateY(-480deg); z-index: 2; filter: brightness(0.6); }
}
@keyframes orbit3 {
    0% { transform: rotateY(240deg) translateZ(350px) rotateY(-240deg); z-index: 1; filter: brightness(0.3); }
    25% { transform: rotateY(330deg) translateZ(350px) rotateY(-330deg); z-index: 2; filter: brightness(0.6); }
    50% { transform: rotateY(420deg) translateZ(350px) rotateY(-420deg); z-index: 3; filter: brightness(1); }
    75% { transform: rotateY(510deg) translateZ(350px) rotateY(-510deg); z-index: 2; filter: brightness(0.6); }
    100% { transform: rotateY(600deg) translateZ(350px) rotateY(-600deg); z-index: 1; filter: brightness(0.3); }
}

.pricing-card h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 30px; font-family: var(--font-arcade); letter-spacing: 2px;}
.pricing-card .price { font-size: 3.5rem; font-weight: 800; color: var(--white); margin-bottom: 40px; text-shadow: 0 0 15px var(--primary-color); line-height: 1;}
.pricing-card .price span { font-size: 1.2rem; font-weight: normal; }
.pricing-card ul { list-style: none; margin-bottom: 40px; flex-grow: 1; padding: 0 20px; }
.pricing-card ul li { padding: 15px 0; border-bottom: 1px dashed var(--primary-color); color: var(--text-main); font-size: 1.1rem;}
.badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--secondary-color); color: var(--dark-bg); padding: 8px 20px; font-family: var(--font-arcade); font-size: 1rem; font-weight: bold; border: 1px solid var(--primary-color); box-shadow: 0 0 10px var(--secondary-color); }


/* ======= Marquee Ticker (Reviews Section) ======= */
.reviews .grid-3 {
    display: block; 
    height: 450px; /* 加高跑马灯视窗 */
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.7);
    border: 3px solid var(--secondary-color);
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.3);
    padding: 20px;
    margin-top: 3rem;
}
.reviews .review-card {
    position: absolute; width: 100%; left: 0;
    padding: 40px 50px; border: none; border-bottom: 2px dashed var(--primary-color);
    box-shadow: none; background: transparent;
    color: var(--secondary-color);
    font-family: var(--font-arcade);
    text-shadow: 0 0 5px var(--secondary-color);
    text-align: center;
    font-size: 1.1rem;
    line-height: 2.2;
}
.review-card .user { margin-top: 25px; color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); font-size: 1.2rem;}

.reviews .review-card:nth-child(1) { animation: scrollMarquee 18s linear infinite; animation-delay: 0s; top: 100%; }
.reviews .review-card:nth-child(2) { animation: scrollMarquee 18s linear infinite; animation-delay: 6s; top: 100%; }
.reviews .review-card:nth-child(3) { animation: scrollMarquee 18s linear infinite; animation-delay: 12s; top: 100%; }

@keyframes scrollMarquee {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-500px); opacity: 0; }
}


/* FAQ (Terminal Look) */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
    background: rgba(0,0,0,0.8); margin-bottom: 25px; /* 增加每个FAQ间距 */
    border: 1px solid var(--primary-color); box-shadow: 0 0 10px rgba(255,0,255,0.2);
    font-family: var(--font-arcade);
}
.faq-item summary {
    padding: 25px 30px; font-weight: bold; cursor: pointer; font-size: 1.1rem;
    list-style: none; position: relative; color: var(--secondary-color);
    text-transform: uppercase; letter-spacing: 1px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--primary-color); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 30px 30px; color: #fff; border-top: 1px dashed var(--primary-color); margin-top: 15px; padding-top: 25px; text-shadow: 1px 1px 0 #000; line-height: 2.2;}

/* Footer */
.footer {
    background-color: #05000a;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -5px 15px rgba(255,0,255,0.3);
    padding: 5rem 0; text-align: center; position: relative; z-index: 10;
}
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 3rem; }
.footer-links a { color: var(--secondary-color); text-decoration: none; text-transform: uppercase; font-family: var(--font-arcade); font-size: 1rem; transition: color 0.3s; letter-spacing: 2px;}
.footer-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-color); }
.copyright { color: var(--primary-color); font-size: 0.9rem; font-family: var(--font-arcade); letter-spacing: 1px;}

/* Responsive (Media Queries) */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero-duck { width: 300px; height: 300px; opacity: 0.4; right: -50px; }
}

@media (max-width: 768px) {
    .hero { padding: 6rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p.hero-intro { font-size: 1.1rem; padding: 0 10px; }
    .hero-duck { display: none; }
    
    .grid-3 { grid-template-columns: 1fr; gap: 30px;}
    .footer-links { flex-direction: column; gap: 20px; }
    
    .nav-container { flex-wrap: wrap; height: auto; padding: 15px 20px; }
    .logo { font-size: 1.4rem; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--primary-color); font-size: 0.9rem; }
    
    .btn { display: block; width: 100%; padding: 16px 20px; font-size: 1.1rem; }
    .nav-container .btn { width: auto; padding: 10px 16px; font-size: 0.9rem; }
    
    /* Mobile 3D Carousel Adjustment */
    #pricing .pricing-grid { transform: scale(0.85); height: 500px; margin-top: 2rem;}
    section { padding: 6rem 0; } /* 移动端适当减小段落间距 */
    .section-title { margin-bottom: 4rem; font-size: 2rem; }
}

/* A11y & Scroll Margin fixes */
section, [id] {
    scroll-margin-top: 90px;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 100000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px dashed var(--secondary-color);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
