/* AMC课程页面样式 - 使用蓝色主题，保持与网站风格统一 */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --light: #f0f9ff;
    --dark: #1e293b;
    --accent: #f59e0b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --font-family: "Noto Sans SC", "仿宋", "FangSong", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 导航栏样式 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* 章节样式 */
.section {
    padding: 3rem 0;
}

.section-title {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* 课程信息样式 */
.course-info {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary);
}

.course-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.course-info p {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.course-info strong {
    color: var(--primary);
    font-weight: 600;
}

.course-info ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.course-info li {
    margin-bottom: 0.8rem;
    color: var(--dark);
    line-height: 1.6;
}

/* 课程章节表格样式 */
.course-chapters h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.amc-course-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.5;
    border: 3px solid var(--gray);
}

.amc-course-table th, .amc-course-table td {
    border: 2px solid var(--gray);
    padding: 1.2rem;
    text-align: left;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1.5;
}

.amc-course-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    vertical-align: middle;
}

.amc-course-table td:first-child {
    background: var(--light);
    font-weight: 600;
    color: var(--primary);
    width: 20%;
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
}

.amc-course-table td:nth-child(2) {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    width: 10%;
    vertical-align: middle;
    font-size: 1rem;
    background: var(--light);
}

.amc-course-table td:last-child {
    width: 70%;
    text-align: left;
    vertical-align: middle;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 400;
    background: var(--light);
}

.amc-course-table tr:hover {
    background: var(--light);
}

/* 确保悬停时所有列都保持统一背景 */
.amc-course-table tr:hover td {
    background: var(--light) !important;
}

.amc-course-table tr:nth-child(even) {
    background: #fafbfc;
}

.amc-course-table tr:nth-child(even):hover {
    background: var(--light);
}

/* 确保偶数行悬停时所有列都保持统一背景 */
.amc-course-table tr:nth-child(even):hover td {
    background: var(--light) !important;
}

/* 确保第三列（内容列）在悬停时保持原有文字颜色 */
.amc-course-table tr:hover td:last-child {
    color: var(--dark) !important;
}

.amc-course-table tr:nth-child(even):hover td:last-child {
    color: var(--dark) !important;
}

/* 课程特色样式 */
.course-features {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.course-features h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 返回链接样式 */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.back-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.back-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .course-info {
        padding: 1.5rem;
    }
    
    .amc-course-table {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .amc-course-table th, .amc-course-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .amc-course-table td:first-child {
        font-size: 0.9rem;
        padding: 0.8rem 0.4rem;
    }
    
    .amc-course-table td:nth-child(2) {
        font-size: 0.9rem;
        padding: 0.8rem 0.3rem;
    }
    
    .amc-course-table td:last-child {
        font-size: 0.9rem;
        padding: 0.8rem 0.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .course-features {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .course-info {
        padding: 1rem;
    }
    
    .amc-course-table {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .amc-course-table th, .amc-course-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .amc-course-table td:first-child {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
    
    .amc-course-table td:nth-child(2) {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
    }
    
    .amc-course-table td:last-child {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

/* 确保所有列在所有情况下都保持统一的样式 */
.amc-course-table tr:hover td:nth-child(2) {
    color: var(--primary) !important;
    background: var(--light) !important;
}

.amc-course-table tr:nth-child(even):hover td:nth-child(2) {
    color: var(--primary) !important;
    background: var(--light) !important;
}

/* 更强的选择器确保第二列背景色统一 */
.amc-course-table.amc-course-table td:nth-child(2) {
    background: var(--light) !important;
}

.amc-course-table.amc-course-table tr:nth-child(even) td:nth-child(2) {
    background: var(--light) !important;
}

.amc-course-table.amc-course-table tr:nth-child(odd) td:nth-child(2) {
    background: var(--light) !important;
}

/* 更强的选择器确保第二列背景色统一 */
.amc-course-table.amc-course-table td:nth-child(2) {
    background: var(--light) !important;
}

.amc-course-table.amc-course-table tr:nth-child(even) td:nth-child(2) {
    background: var(--light) !important;
}

.amc-course-table.amc-course-table tr:nth-child(odd) td:nth-child(2) {
    background: var(--light) !important;
}

/* 确保表格边框在所有情况下都保持清晰 */
.amc-course-table td {
    border: 2px solid var(--gray) !important;
}

.amc-course-table th {
    border: 2px solid var(--primary-dark) !important;
}

/* 悬停状态下保持边框清晰 */
.amc-course-table tr:hover td {
    border: 2px solid var(--gray) !important;
}

.amc-course-table tr:nth-child(even):hover td {
    border: 2px solid var(--gray) !important;
}

/* 确保内容列（第三列）在悬停时没有任何动画效果 */
.amc-course-table td:last-child {
    transition: none !important;
}

.amc-course-table tr:hover td:last-child {
    transition: none !important;
}
