/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 全局变量 */
:root {
    --primary-color: #2563eb;
    --white-color: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.header {
    width: 100%;
    height: 80px;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white-color);
    font-size: 24px;
    font-weight: 600;
}

.logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(90deg, #fff 0%, #e0e7ff 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 60px;
}

.nav-list li a {
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-list li a:hover {
    opacity: 0.8;
}

.nav-list li a.active {
    opacity: 1;
    border-bottom: 2px solid var(--white-color);
}

/* 首屏Banner样式 */
.banner {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    width: 50%;
    z-index: 2;
}

.banner-content .sub-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 16px;
}

.banner-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.banner-content p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.banner-btn:hover {
    background-color: #1d4ed8;
}

.banner-image {
    width: 45%;
    height: 500px;
    background: url("/static/images/banner-bg.jpg") center/cover no-repeat;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

/* 平台介绍模块 */
.intro {
    padding: 100px 0;
    background-color: var(--white-color);
}

.intro h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.intro-content {
    background-color: var(--bg-light);
    padding: 60px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
}

.intro-content p {
    margin-bottom: 20px;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* APP下载模块 */
.download {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.download h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 80px;
    color: var(--text-dark);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.download-item {
    background-color: var(--white-color);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}

.qrcode-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-gray);
}

.download-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.download-item p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    width: 100%;
    background-color: var(--primary-color);
    padding: 60px 0 30px;
    color: var(--white-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-nav {
    display: flex;
    gap: 100px;
}

.footer-nav-item h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-nav-item ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-item ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-nav-item ul li a:hover {
    color: var(--white-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-copyright p {
    margin-bottom: 8px;
}

/* 产品页面样式 */
.page-banner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 600;
}

.product-detail {
    padding: 100px 0;
}

.product-detail h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 60px;
}

.product-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 新闻列表页面样式 */
.news-list {
    padding: 80px 0;
}

.news-item {
    padding: 40px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.news-item:hover h3 {
    color: var(--primary-color);
}

.news-time {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.news-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 新闻详情页面样式 */
.news-detail {
    padding: 80px 0;
}

.news-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.news-detail .news-time {
    text-align: center;
    margin-bottom: 60px;
}

.news-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
}

.back-btn {
    display: block;
    width: 120px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    margin: 60px auto 0;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #1d4ed8;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .nav-list {
        gap: 30px;
    }

    .banner .container {
        flex-direction: column;
        text-align: center;
    }

    .banner-content, .banner-image {
        width: 100%;
    }

    .banner-content {
        margin-bottom: 40px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 40px;
    }
}