/* 专业党政风格红色系设计 - 课程更新版 */
:root {
    --primary: #9A0000;
    --primary-dark: #7A0000;
    --primary-light: #FFF0F0;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-light: #F5F5F5;
    --border-color: #EEEEEE;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================== 头部与导航 ================== */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: #FFD700;
}

.tagline {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    display: block;
    padding: 14px 22px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
}

.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ================== 轮播图 ================== */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.slide-content {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.slide-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
}

.slide-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slide-btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ================== 内容通用样式 ================== */
main {
    padding: 30px 0;
}

.section {
    margin-bottom: 50px;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.section:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    text-align: center;
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 15px;
    color: var(--primary);
}

h2 {
    font-size: 28px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 25px;
    color: var(--primary);
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

ul {
    list-style: none;
    padding-left: 10px;
    margin-top: 15px;
}

ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 10px;
    top: 8px;
}

/* ================== 核心课程板块 ================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-card {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.course-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.course-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
}

/* ================== 联系方式与底部 ================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--primary-light);
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.contact-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}


.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* 页脚整体 */
.pro-footer {
    background-color: #2c3e50; /* 深蓝灰色背景，稳重 */
    color: #ecf0f1; /* 接近白色的浅灰字体，阅读舒适 */
    padding: 40px 20px;
    font-family: "Microsoft YaHei", sans-serif;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 信息区块间距 */
.footer-info p {
    margin: 5px 0;
}

/* 证照号码行处理 */
.license-info {
    margin-top: 10px;
    font-size: 13px;
    color: #bdc3c7; /* 稍微暗一点的灰色，区分层级 */
}

.divider {
    margin: 0 10px;
    color: #7f8c8d;
}

/* ICP 备案链接样式 */
.icp-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 淡淡的分割线 */
}

.icp-area a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-area a:hover {
    color: #fff; /* 鼠标悬停变亮白 */
    text-decoration: underline;
}

/* ================== 响应式设计 (H5 移动端优化) ================== */
@media (max-width: 992px) {
    .container { padding: 0 10px; }
    
    .online-offline-content { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .steps-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .slider-container { height: 350px; }
    .slide-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .slider-container { height: 300px; }
    .slide-content { padding: 20px; }
    .slide-title { font-size: 22px; }
    .slide-subtitle { font-size: 16px; }
    
    .section { padding: 25px; }
    h2 { font-size: 22px; }
    
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .logo { font-size: 18px; }
    .tagline { font-size: 12px; }
    .slider-container { height: 260px; }
    .slide-title { font-size: 20px; }
    .btn { padding: 10px 18px; font-size: 14px; }
    
    /* 移动端导航栏优化 */
    nav ul { justify-content: space-around; }
    nav a { padding: 12px 10px; font-size: 13px; }
}