/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color-start: #0A1230;
    --bg-color-end: #0E1A3C;
    --text-primary: #F5EDD8;
    --primary-gold: #E3C069;
    --secondary-gold: #F0DCA0;
    --btn-text: #241A05;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(227, 192, 105, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-color-start), var(--bg-color-end));
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 无障碍：跳转到主要内容 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: var(--btn-text);
    padding: 8px 16px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* 无障碍：全局焦点样式 */
*:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

/* 锚点防遮挡 */
section[id], h2[id], div[id] {
    scroll-margin-top: 90px;
}

/* 屏幕阅读器专属隐藏 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* 语义化表格恢复卡片外观 */
.pricing-table-container {
    width: 100%;
    margin-top: 30px; /* 增加上边距防止与标题遮挡 */
}
table.pricing-table {
    display: block;
    width: 100%;
    border-collapse: collapse;
}
table.pricing-table tbody, table.pricing-table tr.card-grid-row {
    display: block;
    width: 100%;
}
table.pricing-table tr.card-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
table.pricing-table td {
    border: none;
    padding: 0;
    display: block;
}

/* FAQ 语义化 Details */
details.faq-item {
    padding: 25px 30px;
    margin-bottom: 20px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
}
summary.faq-summary {
    font-size: 1.15rem;
    color: var(--primary-gold);
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* 隐藏默认箭头 */
    outline: none;
}
summary.faq-summary::-webkit-details-marker {
    display: none;
}
details[open] summary.faq-summary {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(227, 192, 105, 0.2);
    padding-bottom: 8px;
}
.faq-content p {
    color: rgba(245, 237, 216, 0.8);
    line-height: 1.7;
    margin-top: 12px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(10, 18, 48, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 12px 12px;
    border-bottom: 1px solid var(--card-border);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary-gold), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

.navbar .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    color: var(--text-primary);
}

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

/* 标题渐变 */
h1, h2, .section-title {
    background: linear-gradient(90deg, var(--secondary-gold), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-gold);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--btn-text);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--secondary-gold);
    border-color: var(--secondary-gold);
    box-shadow: 0 4px 15px rgba(227, 192, 105, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--btn-text);
    box-shadow: 0 4px 15px rgba(227, 192, 105, 0.3);
}

/* 主视觉区 Hero */
.hero {
    text-align: center;
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

/* 栅格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 卡片样式 */
.card, .support-item, .price-card, .review-card, .faq-item, .page-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--text-primary);
}

.card:hover, .support-item:hover, .price-card:hover, .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 192, 105, 0.15);
    border-color: var(--primary-gold);
}

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

.page-content {
    padding: 40px;
    text-align: left;
}
.page-content h2, .page-content h1 {
    margin-bottom: 20px;
}
.page-content p, .page-content ul {
    margin-bottom: 15px;
    color: rgba(245, 237, 216, 0.9);
}

/* 流媒体与 AI 支持 */
.media-ai .support-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.support-item {
    padding: 40px 30px;
    border-top: 4px solid var(--primary-gold);
}

/* 套餐价格表卡片 */
.price-card {
    padding: 40px 30px;
    position: relative;
}

.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-gold);
}

.price-card .price {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.price-card .price span {
    font-size: 1rem;
    color: rgba(245, 237, 216, 0.7);
    font-weight: normal;
}

.price-card ul {
    margin-bottom: 30px;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
    color: rgba(245, 237, 216, 0.85);
}

.price-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.price-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 15px 30px rgba(227, 192, 105, 0.15);
    z-index: 1;
}

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

.price-card .badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    color: var(--btn-text);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 用户评价 */
.review-card {
    padding: 30px;
}

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

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: rgba(245, 237, 216, 0.85);
}

.review-card .reviewer {
    font-style: normal;
    font-weight: bold;
    text-align: right;
    color: var(--secondary-gold);
}

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

/* 知识科普特定样式 */
.knowledge-card { 
    margin-bottom: 30px; 
    padding: 25px; 
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary-gold); 
    border-radius: 0 14px 14px 0; 
}
.knowledge-card h3 { 
    color: var(--primary-gold); 
    margin-bottom: 12px; 
    font-size: 1.2rem; 
}

/* 网站地图卡片 */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sitemap-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.sitemap-card:hover {
    border-color: var(--primary-gold);
    background: rgba(227, 192, 105, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 192, 105, 0.12);
}

.sitemap-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.sitemap-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-gold);
    margin-bottom: 4px;
}

.sitemap-desc {
    font-size: 0.82rem;
    color: rgba(245, 237, 216, 0.55);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sitemap-grid { grid-template-columns: 1fr; }
}

/* 页脚 */
footer {
    background: rgba(10, 18, 48, 0.9);
    border-top: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(245, 237, 216, 0.6);
    margin: 0 20px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

footer p {
    color: rgba(245, 237, 216, 0.5);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .card-grid, table.pricing-table tr.card-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .price-card.popular {
        transform: none;
    }
    .price-card.popular:hover {
        transform: translateY(-5px);
    }
    .navbar .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .navbar .nav-links {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .navbar .nav-btn {
        width: 100%;
        margin-top: 10px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .card-grid, table.pricing-table tr.card-grid-row, .media-ai .support-content {
        grid-template-columns: 1fr;
    }
    .card, .support-item, .price-card, .review-card, details.faq-item {
        margin-bottom: 20px;
    }
    .btn {
        display: block;
        width: 100%;
        padding: 16px 0;
        font-size: 1.2rem;
    }
    .hero-actions .btn {
        margin-bottom: 15px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
    }
    .footer-links a {
        display: block;
        margin: 12px 0;
        padding: 10px 0;
    }
}

/* =========================================================================
   背景动效层 (暗夜鎏金)
   ========================================================================= */
.bg-decorations {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1; /* 位于主体内容 (z-index: 10) 下方 */
    overflow: hidden;
}

/* 呼吸光晕 - 限制文字下方透明度 <= 25% */
.halo {
    position: absolute;
    top: 20%; left: 50%;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(227,192,105,0.25) 0%, transparent 60%);
    animation: breathe 10s ease-in-out infinite;
    transform: translate(-50%, -50%);
    transform-origin: left top;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.07); opacity: 1; }
}

/* 闪烁星点 */
.star {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--secondary-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary-gold), 0 0 15px var(--primary-gold);
    animation: twinkle 3.5s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

/* 上升微尘 */
.dust {
    position: absolute;
    bottom: -5%;
    width: 2px; height: 2px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-gold);
    animation: rise linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

/* 云梯攀升 */
.ladder-container {
    position: absolute;
    right: 5%;
    top: 20vh;
    width: 50px;
    height: 60vh;
    opacity: 0.8;
}

.ladder {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to top, rgba(227,192,105,0.05), rgba(227,192,105,0.4), rgba(227,192,105,0.05));
    transform: translateX(-50%);
}

.ladder-step {
    position: absolute;
    left: 15%; right: 15%;
    height: 1px;
    background: rgba(227,192,105,0.2);
    animation: step-glow 12s infinite;
}

@keyframes step-glow {
    0% { opacity: 0.2; }
    2% { opacity: 1; box-shadow: 0 0 10px var(--primary-gold); transform: scaleX(1.5); }
    8% { opacity: 0.2; box-shadow: none; transform: scaleX(1); }
    100% { opacity: 0.2; }
}

.ladder-light {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 6px; height: 6px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-gold), 0 0 25px var(--secondary-gold);
    animation: climb 12s infinite;
}

@keyframes climb {
    0%, 19.99% { transform: translate(-50%, 0); opacity: 0; }
    2%, 18% { opacity: 1; }
    20%, 39.99% { transform: translate(-50%, -12vh); opacity: 0; }
    22%, 38% { opacity: 1; }
    40%, 59.99% { transform: translate(-50%, -24vh); opacity: 0; }
    42%, 58% { opacity: 1; }
    60%, 79.99% { transform: translate(-50%, -36vh); opacity: 0; }
    62%, 78% { opacity: 1; }
    80%, 99.99% { transform: translate(-50%, -48vh); opacity: 0; }
    82%, 95% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -48vh); }
}

/* prefers-reduced-motion 降级处理 */
@media (prefers-reduced-motion: reduce) {
    .halo, .star, .dust, .ladder-step, .ladder-light {
        animation: none !important;
    }
    .halo { opacity: 0.5 !important; }
    .star { opacity: 0.3 !important; }
    .dust { display: none !important; }
    .ladder-step { opacity: 0.3 !important; }
    .ladder-light { opacity: 1 !important; transform: translate(-50%, -24vh) !important; }
}
