* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部标题区域 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 28px;
    color: #3498db;
    margin-right: 10px;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
    line-height: 1.2;
}

.site-tagline {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.user-actions button i {
    margin-right: 5px;
}

.user-actions button:hover {
    background: #2980b9;
}

/* 悬浮导航栏 */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-right: 5px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    background-color: #f8f9fa;
}

/* 主要内容布局 */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.content-left {
    flex: 2.7;
}

.content-right {
    flex: 1.3;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

/* 标题样式 */
.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.card-title-left {
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
    color: #3498db;
}

.more-link {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
}

.more-link:hover {
    text-decoration: underline;
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.slide-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    max-width: 70%;
    margin-left: 3%;
    transform: translateX(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.slide-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.active {
    background: white;
}

.promo-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 考试月历模块 - 还原图片样式 */
.exam-calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.calendar-title i {
    margin-right: 8px;
    color: #3498db;
}

.current-month {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    flex: 1;
}

.month-card {
    background: #eeeeee;
    border-radius: 6px;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 45px;
}

.month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: #e9ecef;
}

.month-card.active {
    border-color: #3498db;
    background-color: #3498db;
    color: white;
}

.month-card.past {
    opacity: 0.6;
}

.month-card .month-name {
    font-weight: bold;
}

.exam-details {
    padding-top: 3px;
    border-top: 1px solid #e1e4e8;
    max-height: 120px;
    overflow-y: auto;
    flex-shrink: 0;
}

.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-date {
    font-weight: bold;
    color: #e74c3c;
    min-width: 50px;
    text-align: right;
    font-size: 13px;
}

.exam-status {
    font-size: 12px;
    color: #3498db;
    min-width: 70px;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.exam-status:hover {
    text-decoration: underline;
    background: #e1f0fa;
}

.no-exams {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    font-size: 14px;
    padding: 15px 0;
}

/* 最新高考新闻栏目 */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 300px;
}

.main-news {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.news-promo {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.news-promo-content {
    flex: 1;
}

.news-promo h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-promo p {
    margin-bottom: 10px;
    font-size: 14px;
}

.qrcode-container {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.qrcode {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 8px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
}

.qrcode-text {
    font-size: 12px;
    opacity: 0.9;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #e1e4e8;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.news-item p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.news-date {
    font-size: 12px;
    color: #95a5a6;
}

/* 资讯列表 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item:last-child {
    border-bottom: none;
}

.info-date {
    font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 成考资讯栏目切换 */
.info-tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 15px;
}

.info-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.info-tab.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.info-tab-content {
    display: none;
}

.info-tab-content.active {
    display: block;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background: #3498db;
    color: white;
}

/* 工具箱 */
.toolbox {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.toolbox-header {
    background: #3498db;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbox-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.toolbox-btn {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.toolbox-btn:hover {
    background: #e1f0fa;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* 院校推荐 */
.school-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.school-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e1e4e8;
    text-decoration: none;
    color: #333;
    display: block;
}

.school-card:hover {
    background: #e1f0fa;
    transform: translateY(-3px);
    border-color: #3498db;
    color: #3498db;
}

/* 对齐布局调整 */
.top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.carousel-container {
    flex: 2.7;
}

.exam-container {
    flex: 1.3;
}

/* 底部轮播模块 */
.bottom-carousel {
    margin-top: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.bottom-carousel-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.bottom-carousel-title i {
    margin-right: 8px;
    color: #3498db;
}

/* 小图片轮播样式 */
.small-carousel {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.small-carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.small-carousel-slide {
    min-width: 33.33%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    position: relative;
}

.small-slide-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    width: 100%;
}

.small-slide-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.small-slide-content p {
    font-size: 12px;
    opacity: 0.8;
}

.small-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.small-carousel-prev {
    left: 10px;
}

.small-carousel-next {
    right: 10px;
}

.small-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.small-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.small-carousel-indicator.active {
    background: white;
}

/* 底部 */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0;
        flex: 1;
        text-align: center;
    }
    
    nav a {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .top-section {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .school-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 200px;
    }
    
    .exam-calendar {
        height: auto;
    }
    
    .slide-content {
        max-width: 80%;
        padding: 15px;
        margin-left: 5%;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .toolbox-buttons {
        grid-template-columns: 1fr;
    }
    
    .calendar-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .month-card {
        padding: 8px 4px;
        min-height: 35px;
    }
    
    .small-carousel-slide {
        min-width: 100%;
    }
}