/* 基础重置与变量 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--bg-main);
}

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

/* 布局与容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main);
}

.grid {
    display: grid;
    gap: 30px;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* 移动端默认隐藏目录菜单，留出按钮位置 */
.nav-links {
    display: none; 
}

/* 主视觉区 (Hero Layout & Animations) */
.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.hero-visual {
    flex: 1;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

/* 动态卡片设计 */
.server-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-main);
}

/* 脉冲呼吸点 */
.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 跳动的柱状图 */
.ping-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.ping-bars .bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.85;
    animation: bounce 1.5s ease-in-out infinite alternate;
}

.ping-bars .bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.ping-bars .bar:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.ping-bars .bar:nth-child(3) { height: 90%; animation-delay: 0.3s; }
.ping-bars .bar:nth-child(4) { height: 50%; animation-delay: 0.4s; }
.ping-bars .bar:nth-child(5) { height: 100%; animation-delay: 0.5s; }

@keyframes bounce {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1.1); }
}

.stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat strong {
    font-size: 1.25rem;
    color: var(--text-main);
}

.decorative-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, rgba(37,99,235,0) 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(20px);
}

/* 卡片通用 */
.card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

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

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

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 流媒体与AI */
.usecase-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.usecase-card p {
    color: var(--text-muted);
}

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

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

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

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

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

/* 用户评价 */
.testimonial-card {
    background: var(--bg-light);
    border: none;
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

/* 博客/SEO文章卡片 */
.blog-grid {
    grid-template-columns: 1fr;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

/* 页脚 */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 0;
    text-align: center;
}

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.9rem;
    color: #64748b;
}

/* 响应式设计 (PC端优先适配) */
@media (min-width: 768px) {
    /* 显示导航目录 */
    .nav-links {
        display: flex;
        gap: 30px;
    }
    
    .nav-links a {
        font-weight: 500;
        color: var(--text-muted);
        transition: var(--transition);
    }
    
    .nav-links a:hover {
        color: var(--primary-color);
    }

    /* 左右布局主视觉 */
    .hero {
        padding: 100px 0 80px;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero .subtitle {
        margin: 0 0 40px 0;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* 栅格布局调整 */
    .feature-grid, .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .usecase-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 文章底部 CTA 卡片 */
.cta-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}
.cta-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 800;
}
.cta-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}
/* 修复文章内部按钮的字体颜色冲突 */
.article-content a.btn, .cta-card a.btn {
    color: #ffffff !important;
    text-decoration: none !important;
}