/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary: #a855f7;
    --primary-light: #d8b4fe;
    --primary-dark: #7e22ce;
    --secondary: #ec4899;
    --bg-dark: #0a0a0a;
    --bg-purple: #1e1b4b;
    --bg-card: rgba(139, 92, 246, 0.15);
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --border-color: rgba(255,255,255,0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.btn-light {
    background: white;
    color: var(--bg-dark);
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-white);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(10,10,10,0.95);
    border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
    display: flex;
}

/* 面包屑 */
.breadcrumb {
    background: rgba(30, 27, 75, 0.2);
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
}

/* 英雄区 */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,1) 100%), url('/static/mb_7/images/xmzy-tpck.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 通用板块样式 */
.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
}

/* 引擎介绍板块 */
.engine-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.engine-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1);
}

.engine-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.engine-card-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.tag {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-gray);
}

.engine-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 12px;
    margin-bottom: 32px;
}

.progress-bar {
    position: relative;
}

.progress-line {
    height: 2px;
    background: rgba(255,255,255,0.1);
    width: 100px;
}

.progress-text {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 10px;
    color: var(--text-gray);
}

/* 场景应用板块 */
.scenario-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-purple));
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.link-more {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 14px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scenario-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.scenario-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.scenario-card-full {
    grid-column: span 3;
}

.scenario-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.scenario-icon.blue {
    background: #3b82f6;
}
.scenario-icon.purple {
    background: #a855f7;
}
.scenario-icon.orange {
    background: #f97316;
}
.scenario-icon.green {
    background: #22c55e;
}
.scenario-icon.purple-dark {
    background: #8b5cf6;
}
.scenario-icon.pink {
    background: #ec4899;
}
.scenario-icon.yellow {
    background: #eab308;
}

.scenario-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.scenario-card p {
    font-size: 11px;
    color: var(--text-gray);
}

/* 模型接入板块 */
.model-section {
    padding: 60px 0;
    background: var(--bg-purple);
}

.model-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.model-left .section-title {
    text-align: left;
    color: var(--primary-light);
}

.model-left .section-subtitle {
    text-align: left;
    margin-bottom: 24px;
}

.model-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.model-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.model-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.model-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.model-item h5 {
    font-size: 13px;
    margin-bottom: 2px;
}

.model-item p {
    font-size: 10px;
    color: var(--text-gray);
}

.model-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    color: var(--text-gray);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 10px;
}

/* 页脚 */
.footer {
    padding: 20px 0;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-gray);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .model-container {
        grid-template-columns: 1fr;
    }
    .model-left .section-title,
    .model-left .section-subtitle {
        text-align: center;
    }
    .model-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .scenario-grid {
        grid-template-columns: 1fr 1fr;
    }
    .scenario-card-full {
        grid-column: span 2;
    }
    .model-list {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    .scenario-card-full {
        grid-column: span 1;
    }
    .engine-card {
        padding: 24px;
    }
}




/* ============================
   新闻列表页样式 (追加)
============================ */
.news-list-section {
    padding: 60px 0;
    min-height: 60vh;
    background-color: var(--bg-dark);
}

.page-title {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-white);
}

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* 单条新闻 */
.news-item {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-2px);
}

/* 缩略图 */
.news-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

/* 新闻内容 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-light);
}

.news-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    font-size: 12px;
    color: var(--text-gray);
    opacity: 0.7;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-num:hover,
.page-btn:hover:not(.disabled) {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-light);
}

.page-num.active {
    background: var(--primary);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 16px;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-thumb {
        height: 160px;
    }
}




/* ============================
   内容详情页 content 样式
============================ */
.content-section {
    padding: 60px 0;
    min-height: 70vh;
    background-color: var(--bg-dark);
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.content-header {
    margin-bottom: 40px;
    text-align: center;
}

.content-title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-white);
}

.content-meta {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.8;
}

/* 正文排版 */
.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-white);
}

.content-body p {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.content-body h2 {
    font-size: 22px;
    margin: 36px 0 16px;
    color: var(--primary-light);
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 20px 0;
    display: block;
}

/* 推荐阅读 */
.content-recommend {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.content-recommend h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-white);
}

.content-recommend ul {
    list-style: none;
    padding: 0;
}

.content-recommend li {
    margin-bottom: 10px;
}

.content-recommend a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.content-recommend a:hover {
    color: var(--primary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-title {
        font-size: 24px;
    }
    .content-body {
        font-size: 15px;
    }
    .content-meta {
        flex-direction: column;
        gap: 6px;
    }
}


/* 详情页 推荐阅读 一排3个网格布局 */
.content-recommend {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.content-recommend h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-white);
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recommend-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.recommend-item a {
    display: block;
    text-decoration: none;
}

.recommend-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-4px);
}

.recommend-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-item:hover .recommend-thumb img {
    transform: scale(1.05);
}

.recommend-info {
    padding: 16px;
}

.recommend-title {
    font-size: 15px;
    color: var(--text-white);
    font-weight: 500;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommend-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.recommend-time {
    font-size: 12px;
    color: var(--text-gray);
    opacity: 0.7;
}

/* 响应式：平板2列、手机1列 */
@media (max-width: 992px) {
    .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .recommend-list {
        grid-template-columns: 1fr;
    }
    .recommend-thumb {
        height: 160px;
    }
}





/* 新闻展示区样式 */
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}






/* 翻页功能 */
.pagination-wrap {
    padding: 20px 10px;
    margin-top: 20px;
    border-radius: 8px;
}

.pagination-wrap .paging-cls {
    text-align: center;
}

.pagination-wrap .paging-cls li {
    display: inline-block;
    margin: 0 5px;
    list-style: none;
}

.pagination-wrap .paging-cls span,
.pagination-wrap .paging-cls a {
    display: inline-block;
    border: 1px solid #eef3f8;
    border-radius: 5px;
    height: 44px;
    line-height: 44px;
    width: 44px;
    margin: 0 3px;
    font-size: 14px;
    color: #000000;
    text-decoration: none;
}

.pagination-wrap .paging-cls span:hover,
.pagination-wrap .paging-cls a:hover {
    background: #F0B90B;
    color: #fff !important;
}

.pagination-wrap .paging-cls .current {
    background: #F0B90B;
    color: #fff;
    font-weight: bold;
}

.pagination-wrap .paging-cls .fa-angle-double-left::before {
    content: "<";
}

.pagination-wrap .paging-cls .fa-angle-double-right::before {
    content: ">";
}

.pagination-wrap .active a{
    background-color: #F0B90B !important;
    color: #fff !important;
    font-weight: bold;
}