/* 基础样式与移动端优先 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* 按钮通用样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* 导航栏 (Navbar) */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}
.nav-links a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* 主视觉区 (Hero) */
.hero {
    background-color: var(--bg-white);
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}
.hero-content h1 span {
    color: var(--primary-color);
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

/* 动态图卡 (Pure CSS Animation) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.9);
}
.card-1 { top: 40px; left: 10%; animation-delay: 0s; z-index: 3; color: #3b82f6;}
.card-2 { top: 160px; right: 5%; animation-delay: -2s; z-index: 2; color: #10b981; transform: scale(1.1); }
.card-3 { bottom: 60px; left: 20%; animation-delay: -4s; z-index: 1; color: #8b5cf6;}

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

/* 核心优势 (Features) */
.features { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.card {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); }

/* 流媒体与AI (Streaming & AI) */
.streaming-ai {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.media-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.tag {
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 价格表 (Pricing) */
.pricing { padding: 80px 0; }
.pricing-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}
.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
    color: var(--text-main);
}
.price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: normal;
}
.pricing-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}
.pricing-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.pricing-list li::before {
    content: "✓";
    color: #10b981;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* FAQ */
.faq {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.faq-item {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.faq-item p { color: var(--text-muted); }

/* SEO 文章博客卡片 (Blog Cards) */
.blog { padding: 80px 0; background-color: var(--bg-light); }
.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-img {
    height: 160px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-size: cover;
}

/* --- 动态便当盒 (Bento Grid) 网格布局 --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.card-span-2x2 { grid-column: span 2; grid-row: span 2; }
.card-span-2x2 .blog-img { height: 280px; }
.card-span-2x2 h3 { font-size: 1.6rem; margin-top: 5px; }

.card-span-2x1 { grid-column: span 2; display: flex; flex-direction: row; align-items: stretch; }
.card-span-2x1 .blog-img { width: 45%; height: auto; }
.card-span-2x1 .blog-content { width: 55%; display: flex; flex-direction: column; justify-content: center; }

.card-span-3x1 { grid-column: span 3; display: flex; flex-direction: row; align-items: stretch; }
.card-span-3x1 .blog-img { width: 30%; height: auto; }
.card-span-3x1 .blog-content { width: 70%; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card-span-2x2, .card-span-2x1, .card-span-3x1 { grid-column: span 1; grid-row: span 1; }
    .card-span-2x1, .card-span-3x1 { flex-direction: column; }
    .card-span-2x1 .blog-img, .card-span-3x1 .blog-img { width: 100%; height: 160px; }
    .card-span-2x1 .blog-content, .card-span-3x1 .blog-content { width: 100%; }
    .card-span-2x2 .blog-img { height: 160px; }
    .card-span-2x2 h3 { font-size: 1.15rem; }
}

/* --- SEO 文章专属多模版 (Templates) --- */

/* 模板B：巨幕头图 (Hero Layout) */
.article-hero { background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%); color: white; padding: 80px 20px 100px; text-align: center; margin-bottom: -60px; }
.article-hero h1 { color: white; font-size: 2.5rem; max-width: 800px; margin: 0 auto; line-height: 1.4; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-content { max-width: 800px; margin: 0 auto 60px; padding: 50px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; z-index: 10; line-height: 1.8; color: var(--text-main); font-size: 1.05rem; }
.hero-content h2 { margin: 30px 0 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }

/* 模板C：左文右导侧边栏 (Sidebar Layout) */
.layout-sidebar { display: flex; max-width: 1100px; margin: 40px auto; gap: 30px; padding: 0 20px; align-items: flex-start; }
.layout-main { flex: 1; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.layout-side { width: 320px; position: sticky; top: 90px; }
.sidebar-widget { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary-color); }
.sidebar-widget h3 { margin-bottom: 15px; font-size: 1.15rem; color: var(--text-main); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.95rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text-muted); font-weight: normal; transition: color 0.2s; }
.sidebar-list a:hover { color: var(--primary-color); font-weight: bold; }
@media (max-width: 850px) { .layout-sidebar { flex-direction: column; } .layout-side { width: 100%; position: static; } }
/* 极简彩色渐变封面替代真实图片，保证秒开且不增加请求 */
.bg-1 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-2 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.bg-3 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.bg-4 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.bg-5 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.bg-6 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-7 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-8 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-9 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.blog-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.blog-content {
    padding: 25px 20px;
    flex-grow: 1;
}
.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.4;
}
.blog-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 用户评价 (Testimonials) */
.reviews { padding: 80px 0; }
.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    font-style: italic;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.review-author {
    margin-top: 20px;
    font-weight: 700;
    font-style: normal;
    color: var(--text-main);
    text-align: right;
}

/* 页脚 (Footer) */
.footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 50px 0 30px;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}
.footer-links a {
    color: #9ca3af;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer p { font-size: 0.9rem; color: #6b7280; }

/* 响应式设计 */
@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }
    .card-1 { left: 5%; }
    .card-2 { right: 5%; }
    .card-3 { left: 15%; }
    
    .nav-links {
        display: flex;
        gap: 10px;
    }
    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }
    .pricing-card.popular {
        transform: translateY(0);
    }
}

/* --- 彻底革新的双栏分割全局布局 (Modern Split Layout) --- */
body.modern-split-body { margin: 0; padding: 0; overflow: hidden; background: var(--bg-light); color: #1f2937; }
.split-layout { display: flex; width: 100vw; height: 100vh; }
.split-left { width: 42%; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: white; display: flex; flex-direction: column; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.split-right { width: 58%; height: 100vh; overflow-y: auto; padding: 0; scroll-behavior: smooth; background: white; }
.split-nav { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 20px 50px; display: flex; gap: 25px; z-index: 100; border-bottom: 1px solid var(--border-color); font-weight: bold; }
.split-nav a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
.split-nav a:hover { color: var(--primary-color); }
.right-inner-content { padding: 20px 50px; }

/* 调整右侧特供布局参数 */
.split-right .section-title { font-size: 2rem; margin-bottom: 40px; text-align: left; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Bento Grid 2 列特供适配 */
.bento-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-span-2 { grid-column: span 2; grid-row: span 2; }
.card-span-2 .blog-img { height: 260px; }
.card-span-2 h3 { font-size: 1.5rem; margin-top: 5px; }
.card-span-2-row { grid-column: span 2; display: flex; flex-direction: row; align-items: stretch; }
.card-span-2-row .blog-img { width: 40%; height: auto; }
.card-span-2-row .blog-content { width: 60%; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 1080px) {
    body.modern-split-body { overflow: auto; }
    .split-layout { flex-direction: column; height: auto; }
    .split-left { width: 100%; min-height: 85vh; padding: 40px 25px; }
    .split-right { width: 100%; height: auto; overflow-y: visible; }
    .split-nav { padding: 15px 25px; flex-wrap: wrap; justify-content: center; }
    .right-inner-content { padding: 20px 25px; }
    .grid-2 { grid-template-columns: 1fr; }
    .bento-grid-2 { grid-template-columns: 1fr; }
    .card-span-2, .card-span-2-row { grid-column: span 1; grid-row: span 1; }
    .card-span-2-row { flex-direction: column; }
    .card-span-2-row .blog-img { width: 100%; height: 160px; }
    .card-span-2-row .blog-content { width: 100%; }
}
