/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    padding-top: 76px;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    white-space: nowrap;
}

.navbar-nav {
    text-align: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* 轮播图 */
.carousel {
    margin-top: -76px;
}

.carousel-bg {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-image 0.5s ease;
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* 页面标题 */
.page-header {
    margin-top: -76px;
    padding-top: 120px !important;
}

/* 章节标题 */
.section-title {
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 关于我们图片占位 */
.about-image-placeholder {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image-placeholder:hover img {
    transform: scale(1.05);
}

/* 课程卡片 */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15) !important;
}

/* 教练卡片 */
.teacher-card {
    transition: transform 0.3s ease;
    border: none;
}

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

.teacher-avatar {
    margin: 0 auto;
}

.teacher-qualifications {
    margin-top: 15px;
}

/* 新闻卡片 */
.news-card {
    transition: transform 0.3s ease;
    border: none;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.9rem;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px currentColor;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.timeline-content h5 {
    color: #333;
    margin-bottom: 10px;
}

/* 联系表单 */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-icon {
    flex-shrink: 0;
}

.map-placeholder {
    height: 300px;
}

/* 页脚 */
footer {
    margin-top: 50px;
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

footer a.text-white-50:hover {
    color: white !important;
    transition: color 0.3s ease;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .carousel {
        margin-top: -56px;
    }
    
    .carousel-bg {
        height: 350px;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding-top: 80px !important;
        margin-top: -56px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-image-placeholder {
        height: 250px;
        margin-top: 2rem;
        max-width: 100%;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* 移动端文字居中 */
    .text-lg-start {
        text-align: center !important;
    }
    
    /* 关于我们部分移动端布局 */
    .row.align-items-center > [class*="col-"] {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .carousel-bg {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-caption .lead {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-image-placeholder {
        height: 200px;
    }
    
    .display-4 {
        font-size: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 移动端卡片和布局优化 */
@media (max-width: 768px) {
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 优势特色移动端居中 */
    .row.g-4 [class*="col-md-3"] {
        margin-bottom: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 按钮样式增强 */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* 卡片阴影增强 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card {
    border-radius: 10px;
    overflow: hidden;
}

/* 表单样式 */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 隐私政策页面样式 */
.privacy-content {
    line-height: 1.8;
}

.privacy-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

.privacy-content ul li {
    margin-bottom: 0.75rem;
}

.privacy-content strong {
    color: #333;
}

@media (max-width: 768px) {
    .privacy-content {
        font-size: 0.95rem;
    }
    
    .privacy-content h3 {
        font-size: 1.25rem;
    }
}

