/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 颜色变量定义 */
:root {
    --red: #C8102E;        /* 中国红 */
    --blue: #87CEEB;       /* 天空蓝 */
    --red-hover: #A00820;  /* 红色hover */
    --blue-hover: #70B8D8; /* 蓝色hover */
    --gray: #f5f5f5;       /* 背景灰 */
    --dark: #333;          /* 文字深灰 */
}

/* 通用样式 */
body {
    color: var(--dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-red {
    background-color: var(--red);
    color: #fff;
}

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

.btn-blue {
    background-color: var(--blue);
    color: #333;
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--red);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
}

.nav a:hover {
    color: var(--red);
}

.nav .active {
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 5px;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 产品介绍样式 */
.product-intro {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--red);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--blue);
    margin: 20px auto 0;
}

.intro-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.intro-item {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--red);
}

.intro-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--red);
}

.intro-item p {
    color: #666;
    line-height: 1.8;
}

/* 产品展示样式 */
.product-show {
    padding: 80px 0;
    background-color: var(--gray);
}

.product-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-img {
    flex: 1;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-desc {
    flex: 1;
}

.product-desc h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--red);
}

.product-desc p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

/* 下载按钮样式 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 12px 30px;
}

.download-btn i {
    font-size: 20px;
}

/* 版本更新样式 */
.version-update {
    padding: 80px 0;
}

.update-list {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.update-item {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-item:last-child {
    border-bottom: none;
}

.update-version {
    font-weight: bold;
    color: var(--red);
    font-size: 18px;
}

.update-date {
    color: #999;
}

.update-desc {
    flex: 1;
    margin: 0 20px;
}

/* 短文章样式 */
.article-list {
    padding: 80px 0;
    background-color: var(--gray);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--red);
}

.article-item p {
    font-size: 14px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

/* 404页面样式 */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 120px;
    color: var(--red);
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.error-page p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .intro-list {
        grid-template-columns: 1fr;
    }
    
    .product-content {
        flex-direction: column;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}