/* 全局样式 */
:root {
    --primary-color: #A78BFA; /* 星紫 */
    --primary-hover: #C4B5FD;
    --secondary-color: #F0ABFC; /* 樱紫 */
    --text-main: #F3EEFF;
    --text-light: rgba(243, 238, 255, 0.7);
    --bg-body: #150C2E;
    --bg-light: transparent;
    --border-color: rgba(167, 139, 250, 0.2); /* 紫色细描边 */
    --card-bg: rgba(255, 255, 255, 0.06); /* 6% 半透明白 */
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: linear-gradient(135deg, #150C2E 0%, #1D1140 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #150C2E;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #150C2E;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #150C2E;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 14px 0 rgba(167, 139, 250, 0.39);
}

.btn-large:hover {
    box-shadow: 0 6px 20px 0 rgba(240, 171, 252, 0.39);
    transform: translateY(-2px);
    color: #150C2E;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(21, 12, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a {
    color: var(--text-main);
    margin: 0 15px;
    font-weight: 500;
}

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

/* 主视觉区 */
.hero {
    background: transparent;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* 核心优势 */
.feature-card {
    text-align: center;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* 流媒体与AI */
.ai-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(240, 171, 252, 0.1));
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.ai-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.ai-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.support-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}
.support-list li strong {
    color: var(--secondary-color);
}

/* 套餐价格 */
.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    background: rgba(167, 139, 250, 0.1);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #150C2E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

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

.pricing-features li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* 用户评价 */
.review-card .stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.review-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* 常见问题 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background-color: rgba(21, 12, 46, 0.9);
    color: var(--text-light);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer-links a {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: rgba(243, 238, 255, 0.4);
}

/* =========================================
   星河中转风 背景装饰与动效 
   ========================================= */

.star-river-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* 强制垫底 */
    pointer-events: none; /* 不干扰点击交互 */
    overflow: hidden;
}

/* 虚线轨道环 */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vw;
    margin-top: -75vw;
    margin-left: -75vw;
    border: 2px dashed rgba(167, 139, 250, 0.15);
    border-radius: 50%;
    animation: spinOrbit 90s linear infinite;
}

@keyframes spinOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 紫色星云 */
.nebula-cloud {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1) 0%, rgba(21, 12, 46, 0) 70%);
    filter: blur(40px);
    animation: floatNebula 30s ease-in-out infinite;
}

@keyframes floatNebula {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
}

/* 闪烁星点 */
.star-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F3EEFF;
    border-radius: 50%;
    box-shadow: 0 0 10px #A78BFA;
    animation: twinkleStar 3.5s ease-in-out infinite alternate;
}

@keyframes twinkleStar {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.sp-1 { top: 15%; left: 20%; animation-delay: 0s; }
.sp-2 { top: 75%; left: 10%; animation-delay: 0.4s; }
.sp-3 { top: 25%; left: 80%; animation-delay: 0.8s; }
.sp-4 { top: 85%; left: 85%; animation-delay: 1.2s; }
.sp-5 { top: 45%; left: 15%; animation-delay: 1.6s; }
.sp-6 { top: 55%; left: 75%; animation-delay: 2.0s; }
.sp-7 { top: 10%; left: 50%; animation-delay: 2.4s; }
.sp-8 { top: 90%; left: 45%; animation-delay: 2.8s; }

/* 4个中转节点光点 */
.transit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #F0ABFC;
    border-radius: 50%;
    box-shadow: 0 0 15px #F0ABFC;
}

.tn-tl { top: 10%; left: 10%; }
.tn-tr { top: 10%; right: 10%; }
.tn-bl { bottom: 10%; left: 10%; }
.tn-br { bottom: 10%; right: 10%; }

/* 信号环扩散 */
.signal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 2px solid #F0ABFC;
    border-radius: 50%;
    opacity: 0;
    animation: emitSignal 3.2s ease-out infinite;
}

@keyframes emitSignal {
    0% { transform: scale(0.1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* 四点错峰 0.8s */
.tn-tl .signal-ring { animation-delay: 0s; }
.tn-tr .signal-ring { animation-delay: 0.8s; }
.tn-bl .signal-ring { animation-delay: 1.6s; }
.tn-br .signal-ring { animation-delay: 2.4s; }

/* 46%高度航线 */
.flight-route {
    position: absolute;
    top: 46%;
    left: 0;
    width: 100%;
    height: 2px;
}

.route-line {
    width: 100%;
    height: 100%;
    border-top: 1px dashed rgba(167, 139, 250, 0.4);
}

.route-endpoint {
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #A78BFA;
    border-radius: 50%;
    box-shadow: 0 0 10px #A78BFA;
}
.route-endpoint .signal-ring {
    border-color: #A78BFA;
}

.re-start { left: 5%; }
.re-end { right: 5%; }

/* 端点交替扩散，由于是交替，错开一半周期 (1.6s) */
.re-start .signal-ring { animation: emitSignal 3.2s ease-out infinite 0s; }
.re-end .signal-ring { animation: emitSignal 3.2s ease-out infinite 1.6s; }

/* 12s直达的星紫光点 */
.route-traveler {
    position: absolute;
    top: -2px;
    left: 5%;
    width: 6px;
    height: 6px;
    background: #A78BFA;
    border-radius: 50%;
    box-shadow: 0 0 15px #A78BFA;
    animation: travelRoute 12s linear infinite;
}

@keyframes travelRoute {
    0% { transform: translateX(0); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateX(calc(90vw)); opacity: 0; } /* 从 5% 到 95% 是 90vw */
}

/* 媒体查询 - 降级无障碍 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
    .orbit-ring, .nebula-cloud, .star-point, .signal-ring, .route-traveler {
        animation: none !important;
    }
}

/* 媒体查询 - 响应式适配 */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav-actions .btn {
        width: auto;
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .btn-large {
        padding: 16px 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
/* AI ӦÓÃÁ÷ýÌåͼ¿¨ */
.flex-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.flex-text {
    flex: 1 1 300px;
}
.ai-apps-grid {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}
.app-card:hover {
    background: rgba(167, 139, 250, 0.1);
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
}
.app-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Accessibility - Reduced Motion & Focus */
@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;
    }
}
summary:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 4px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
