 /* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c7fb8;
    text-decoration: none;
}

.logo span {
    color: #4a90e2;
}

.header-contact {
    color: #666;
    font-size: 14px;
}

.header-contact span {
    margin-left: 15px;
}

.header-contact i {
    color: #4a90e2;
    margin-right: 5px;
}

/* 主导航栏 */
.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    display: flex; /* 新增：让li成为弹性容器 */
    align-items: center;
}

.nav-item.search-item {
    padding: 0 10px; /* 可选：调整左右间距，与其他导航项协调 */
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
}

.nav-item.active .nav-link {
    color: #4a90e2;
    border-bottom: 2px solid #4a90e2;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    /*margin-left: auto;*/
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.search-btn {
    padding: 8px 15px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #2c7fb8;
}

/**
面包屑导航
 */
.current-position {
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border-radius: 4px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.position-text {
    color: #333;
    margin-right: 5px;
}

.position-link {
    color: #999999;
    text-decoration: none;
    padding: 0 3px;
    transition: all 0.2s;
}

.position-link:hover {
    color: #1a5fd0;
    text-decoration: underline;
}

.position-separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.position-current {
    color: #333;
    font-weight: bold;
    padding: 0 3px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .current-position {
        font-size: 13px;
        padding: 8px 15px;
    }

    .position-separator {
        margin: 0 5px;
    }
}

/* 主内容区布局 */
.main-content {
    display: flex;
    gap: 30px;
}

.article-list {
    /*flex: 7;*/
    width: 820px;
}

.sidebar {
    /*flex: 2;*/
    max-width: 350px; /* 手动限制最大宽度（根据你的设计调整，比如300-350px） */
    width: 300px;
    box-sizing: border-box;
}

/* 文章列表样式 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c7fb8;
    padding: 10px 0 10px 20px;
    border-bottom: 2px solid #f0f5ff;
    background: #fff;
    border-radius: 8px;
}

.article-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #4a90e2;
}

.article-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2c7fb8;
    text-decoration: underline;
}

/* 分页样式 */
.tcdPageCode {
    padding: 15px 20px;
    text-align: center;
    margin-top: 30px;
}
.tcdPageCode span.disabled {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    margin: 0 2px;
    color: #9E9E9E;
    background: #eee;
    border: 1px solid #eee;
    border-radius: 4px;
    vertical-align: middle;
}
.tcdPageCode strong {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    margin: 0 2px;
    color: #fff;
    background-color: #4a90e2;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    vertical-align: middle;
}
.tcdPageCode a {
    color: #666;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    border: 1px solid #eee;
    margin: 0 2px;
    border-radius: 4px;
    vertical-align: middle;
    text-decoration: none;
}

/* 侧边栏样式 */
.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box; /* 确保自身 padding 不撑宽 */
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c7fb8;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f5ff;
}

/**
专家推荐轮播样式
 */
/* 轮播容器样式 */
.expert-carousel {
    position: relative;
    overflow: hidden; /* 关键：隐藏超出容器的内容 */
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

/* 轮播轨道 */
.expert-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0; /* 移除间距，避免轨道变宽 */
    width: 100%;
    box-sizing: border-box;
}

/* 专家卡片（保持原有样式，新增flex布局相关） */
.expert-card {
    text-align: center;
    flex: 0 0 100%; /* 每次只显示1张 */
    width: 100%;
    max-width: 100%; /* 强制不超过父容器 */
    padding: 0 15px; /* 放心加内边距，不会撑宽 */
    box-sizing: border-box;
}
.expert-name,
.expert-specialty,
.expert-desc {
    word-wrap: break-word; /* 长单词/文本自动换行 */
    white-space: normal; /* 取消强制不换行（如果有） */
}
.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid #f0f5ff;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.8);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 14px;
    padding: 0; /* 清除默认padding */
}

.carousel-btn:hover {
    background-color: #2c7fb8;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* 轮播指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: #4a90e2;
    width: 10px;
    border-radius: 5px; /* 激活状态变为长条 */
}

/* 响应式适配 */
@media (max-width: 768px) {
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
    .expert-avatar {
        width: 80px;
        height: 80px;
    }
}
/**
专家推荐轮播样式结束
 */

/* 快捷导航 */
.quick-nav {
    list-style: none;
}

.quick-nav li {
    margin-bottom: 10px;
}

.quick-nav a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    background-color: #f0f5ff;
    color: #4a90e2;
    padding-left: 15px;
}

.icon-wih{
    width: 20px;
}

/* 专家推荐 */
.expert-card {
    text-align: center;
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid #f0f5ff;
}

.expert-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.expert-specialty {
    color: #4a90e2;
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: 100%;
}

/* 热门文章推荐 */
.hot-article-list {
    list-style: none;
}

.hot-article-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.hot-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-article-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-item a:hover {
    color: #4a90e2;
}

/* 倒计时样式 */
.countdown {
    text-align: center;
    padding: 15px 0;
}

.countdown-title {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 600;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.countdown-item {
    background-color: #f0f5ff;
    color: #4a90e2;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-number {
    font-size: 18px;
    font-weight: bold;
}

.countdown-label {
    font-size: 12px;
}

.qrcode-box {
    text-align: center;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 5px;
}

.qrcode-desc {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* 免费试听课 */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
}

.video-iframe {
    width: 100%;
    height: 180px;
    border: none;
}

.video-title {
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
}

/* 底部栏样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    text-decoration: none;
}

.footer-logo span {
    color: #4a90e2;
}

.footer-desc {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #4a90e2;
}

.contact-info {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 2;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    width: 20px;
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #34495e;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #4a90e2;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 13px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-link {
        padding: 15px 12px;
        font-size: 14px;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-contact {
        margin-top: 10px;
    }

    .header-contact span {
        margin: 0 8px;
    }

    .main-nav {
        overflow-x: auto;
    }

    .nav-list {
        display: flex;
        list-style: none;
        align-items: center; /* 新增：让所有li垂直居中 */
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .video-iframe {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .search-input {
        width: 150px;
    }

    .countdown-item {
        width: 40px;
        height: 40px;
    }

    .countdown-number {
        font-size: 16px;
    }

    .qrcode-img {
        width: 120px;
        height: 120px;
    }
}
/* 蓝色日历摆件容器 - 小巧紧凑 */
.countdown-calendar {
    width:80px; /* 摆件尺寸 */
    height: 80px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(22, 93, 255, 0.4); /* 蓝色系阴影增强立体感 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 auto;
}

/* 倒计时数字 - 白色突出 */
.day-number {
    font-size: 40px;
    font-weight: bold;
    color: #fff; /* 白色数字对比蓝色背景 */
    line-height: 1;
}

/* 天数文字 - 浅蓝辅助 */
.day-text {
    font-size: 14px;
    color: #E0EBFF; /* 浅蓝文字，不抢焦点 */
    margin-top: 8px;
}

/* 倒计时结束样式 */
.end-text {
    font-size: 18px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}