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

/* 核心配色（体育线上教学：活力蓝+橙，专业且有活力） */
:root {
    --primary: #165DFF;    /* 主色-活力蓝（专业、科技感） */
    --accent: #FF7D00;     /* 强调色-活力橙（运动、热情） */
    --bg: #F5F7FA;         /* 背景色-浅灰（清爽） */
    --text: #333333;       /* 正文色 */
    --light-text: #666666; /* 浅文本色 */
    --white: #FFFFFF;      /* 白色 */
    --border: #E5E7EB;     /* 边框色 */
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

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

.nav-menu li a {
    font-size: 16px;
    color: var(--text);
}

.nav-menu li a:hover {
    color: var(--accent);
}

/* 横幅区域 */
.banner {
    background: linear-gradient(rgba(22, 93, 255, 0.85), rgba(22, 93, 255, 0.85)), url("./images/banner.jpg") center/cover no-repeat;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

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

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

/* 核心内容区通用样式 */
.main-content {
    padding: 60px 0;
    background-color: var(--white);
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.section-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}

/* 首页内容布局 */
.home-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.text-box {
    flex: 1;
    min-width: 300px;
}

.text-box p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 16px;
}

.img-box {
    flex: 1;
    min-width: 300px;
}

.img-box img {
    width: 100%;
    border-radius: 8px;
}

/* 产品/课程展示 */
.product-section {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

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

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

.product-card .card-info {
    padding: 20px;
}

.product-card .card-info h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card .card-info p {
    color: var(--light-text);
    font-size: 14px;
}

/* 案例展示 */
.case-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.case-card {
    flex: 1;
    min-width: 45%;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

.case-card .case-info {
    padding: 20px;
}

.case-card .case-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.case-card .case-info p {
    color: var(--light-text);
}

/* 联系我们 */
.contact-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info .info-item {
    margin-bottom: 20px;
}

.contact-info .info-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-info .info-item p {
    color: var(--light-text);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    color: var(--text);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form button {
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #0E4BD8;
}

/* 新闻资讯 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

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

.news-item .news-title {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.news-item .news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-item .news-desc {
    color: var(--light-text);
}

/* 底部样式 */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 20px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .case-card {
        min-width: 100%;
    }
}