/* ========== 基础样式重置（消除浏览器默认差异） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #e63946;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

button, input, textarea {
    border: none;
    outline: none;
    font-family: inherit;
}

/* ========== 通用样式（所有页面共用） ========== */
/* 容器：限制最大宽度，居中显示 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #e63946;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    color: #e63946;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.nav-links li a:hover {
    color: #e63946;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero区域通用样式 */
.hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-position: center;
    background-size: cover;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e63946;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #d12f3b;
    color: #fff;
}

/* 页脚通用样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e63946;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #e63946;
}

.contact-us p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-form.mini-form {
    display: grid;
    gap: 10px;
}

.contact-form.mini-form input,
.contact-form.mini-form textarea {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #444;
    color: #fff;
}

.contact-form.mini-form .form-btn {
    background-color: #e63946;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form.mini-form .form-btn:hover {
    background-color: #d12f3b;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

.footer-bottom #domainText,
.footer-bottom #lastUpdateTime,
.footer-bottom #copyrightYear {
    color: #e63946;
    font-weight: 500;
}

/* ========== Index页面专属样式 ========== */
/* 轮播图 */
.carousel {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicators button.active {
    background-color: #e63946;
}

/* Index页面板块通用样式 */
.index-section {
    margin: 60px 0;
}

.index-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.index-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e63946;
}

/* 内容卡片 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card .card-content {
    padding: 20px;
}

.content-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.content-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.content-card .card-link {
    display: inline-block;
    font-size: 14px;
    color: #e63946;
    font-weight: 500;
}

.content-card .card-link:hover {
    text-decoration: underline;
}

/* 联系我们板块 */
.contact-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form .form-btn {
    background-color: #e63946;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .form-btn:hover {
    background-color: #d12f3b;
}

/* ========== About页面专属样式 ========== */
.about-page {
    background-color: #f8f9fa;
}

.about-section {
    margin-bottom: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-left: 4px solid #e63946;
    padding-left: 15px;
}

/* 平台简介 */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.highlight {
    color: #e63946;
    font-weight: 600;
}

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

/* 发展历程时间线 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background-color: #e63946;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    width: 100px;
    font-size: 18px;
    font-weight: 600;
    color: #e63946;
    text-align: right;
    padding-right: 20px;
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e63946;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
}

/* 核心团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.team-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    color: #e63946;
    font-weight: normal;
}

.team-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 核心价值观 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.value-card p {
    color: #666;
    line-height: 1.7;
}

/* ========== 移动端适配（768px以下） ========== */
@media (max-width: 768px) {
    /* 通用适配 */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Index页面适配 */
    .carousel {
        height: 300px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    /* About页面适配 */
    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        text-align: left;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .timeline-date::after {
        left: 0;
        right: auto;
    }

    .timeline-content {
        padding-left: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-card img {
        margin: 0 auto;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
} 