/* CSS变量定义 */
:root {
    /* 主色调 */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-lighter: #93c5fd;
    --primary-darkest: #1e3a8a;
    
    /* 辅助色 */
    --secondary: #f97316;
    --secondary-light: #fb923c;
    --secondary-dark: #ea580c;
    --accent: #10b981;
    
    /* 中性色 */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    
    /* 文字颜色 */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-gradient: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 过渡动画 */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* 页脚样式 */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* 响应式页脚 */
@media (min-width: 576px) {
    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-links {
        align-items: flex-start;
        min-width: 150px;
    }
    
    .footer-links h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links ul {
        gap: 0.8rem;
    }
    
    .footer-description {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .footer-content {
        gap: 2rem;
    }
    
    .footer-main {
        gap: 2rem;
    }
    
    .footer-links {
        min-width: 180px;
    }
    
    .footer-social {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .footer-main {
        justify-content: space-between;
    }
}

/* 移动端菜单样式 */
.nav-links.mobile-menu-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 12px 12px;
    z-index: 1000;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-container {
    background: var(--gradient-dark);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-lighter);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-lighter);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主横幅区域 */
.hero-section {
    background: var(--gradient-dark);
    padding: 8rem 0 4rem;
    margin-top: 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.7;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.download-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 特性展示区域 */
.features-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    height: auto;
    min-height: 140px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 多彩卡片样式 */
/* 移除旧的卡片类样式，使用nth-child选择器 */

/* 游戏直播 - 红色卡片 */
.features-grid > div:nth-child(1) {
    background: #ef4444;
    color: var(--white);
    border: none;
}

/* 娱乐直播 - 蓝色卡片 */
.features-grid > div:nth-child(2) {
    background: var(--primary);
    color: var(--white);
    border: none;
}

/* 无人直播 - 白色卡片 */
.features-grid > div:nth-child(3) {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
}

/* 物理直播 - 青色卡片 */
.features-grid > div:nth-child(4) {
    background: #06b6d4;
    color: var(--white);
    border: none;
}

/* 确保白色卡片的文字颜色正确 */
.features-grid > div:nth-child(3) .feature-title,
.features-grid > div:nth-child(3) .feature-description {
    color: var(--text-primary);
}

/* 彩色卡片的文字颜色 */
.features-grid > div:nth-child(1) .feature-title,
.features-grid > div:nth-child(1) .feature-description,
.features-grid > div:nth-child(2) .feature-title,
.features-grid > div:nth-child(2) .feature-description,
.features-grid > div:nth-child(4) .feature-title,
.features-grid > div:nth-child(4) .feature-description {
    color: var(--white);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

/* 游戏直播 - 绿色图标 */
.features-grid > div:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--accent);
}

/* 娱乐直播 - 蓝色图标 */
.features-grid > div:nth-child(2) .feature-icon {
    background: var(--white);
    color: var(--primary);
}

/* 无人直播 - 黄色图标 */
.features-grid > div:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

/* 物理直播 - 青色图标 */
.features-grid > div:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #06b6d4;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-secondary);
}

/* 蓝色卡片文字调整 */
.feature-card-blue .feature-title,
.feature-card-blue .feature-description {
    color: var(--white);
}

/* 直播案例区域 */
.cases-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    color: var(--white);
}

.cases-section .section-title {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cases-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.case-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--white);
}

.case-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    aspect-ratio: 9/16;
}

.case-card img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform var(--transition-slow);
    object-fit: cover;
}

.case-card:hover img {
    transform: scale(1.08);
}

/* 价格套餐区域 */
.pricing-section {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 2px solid var(--gray-200);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--secondary);
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured::before {
    content: "推荐购买";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.pricing-price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.pricing-button {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pricing-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured .pricing-button {
    background: var(--gradient-secondary);
}

.pricing-card.featured .pricing-button:hover {
    background: var(--secondary-dark);
}

/* 支持平台区域 */
.platforms-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

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

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

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

.platform-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.platform-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

.platform-item .count {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* 页脚区域 */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    max-width: 150px;
}

.footer-description {
    max-width: 800px;
    color: #ccc;
    margin: 0 auto;
    line-height: 1.6;
}

.copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 导航栏 */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 主横幅 */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* 特性和案例 */
    .features-grid,
    .cases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    /* 主横幅 */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* 区域标题 */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 按钮 */
    .download-btn,
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* 主横幅 */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    /* 区域内边距 */
    .features-section,
    .cases-section,
    .pricing-section,
    .platforms-section {
        padding: 3rem 0;
    }
    
    /* 卡片内边距 */
    .feature-card,
    .case-card,
    .pricing-card,
    .platform-item {
        padding: 1.5rem 1rem;
    }
}