/* 全局变量 */
:root {
    --primary: #0066cc;       /* 主色调-蓝色 */
    --secondary: #0099cc;     /* 辅助色-浅蓝 */
    --red: #e63946;           /* 警示色-红色 */
    --green: #2a9d8f;         /* 成功色-绿色 */
    --yellow: #ffc107;        /* 警告色-黄色 */
    --dark: #333333;          /* 深色文本 */
    --gray: #666666;          /* 灰色文本 */
    --gray-light: #f5f5f5;    /* 浅灰色背景 */
    --gray-dark: #999999;     /* 深灰色文本 */
    --white: #ffffff;         /* 白色 */
    --shadow: 0 2px 8px rgba(0,0,0,0.1); /* 通用阴影 */
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

body {
    color: var(--dark);
    background-color: #f8f9fa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

ul, li {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* 汉堡菜单按钮 - 基础样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 通用样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.w-100 {
    width: 100%;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

.text-2xl {
    font-size: 24px;
}

.text-primary {
    color: var(--primary);
}

.text-gray-dark {
    color: var(--gray-dark);
}

.font-medium {
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    text-align: center;
    border: none;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.btn:hover {
    background-color: var(--secondary);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 头部样式 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header-top {
    background-color: var(--gray-light);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-list a {
    color: var(--gray);
    margin-right: 15px;
}

.contact-info span {
    margin-right: 15px;
}

.contact-info a {
    color: var(--gray);
    margin-left: 10px;
}

.header-main {
    padding: 15px 0;
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.header-phone {
    color: var(--primary);
    font-weight: 500;
}

.header-wechat,
.header-weibo {
    color: var(--gray);
    font-size: 18px;
}

.header-wechat:hover,
.header-weibo:hover {
    color: var(--primary);
}

.header-search {
    flex-shrink: 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.header-search .search-input {
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    width: 180px;
    outline: none;
}

.header-search .search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}

.header-search .search-btn:hover {
    background: var(--secondary);
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right:8px;
}

.logo span {
    color: var(--secondary);
}

.nav {
    display: flex;
}

.nav-item {
    margin: 0 5px;
}

.nav-item a {
    color: var(--dark);
    font-size: 16px;
    padding: 8px 0;
}

.nav-item.active a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.icon-group a {
    color: var(--gray);
    font-size: 18px;
    margin-left: 15px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0 30px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 350px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev { 
    left: 20px; 
}

.carousel-btn.next { 
    right: 20px; 
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* 报考计算器样式 */
.calculator-card {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.calculator-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-result {
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 4px;
    display: block;
}

/* 倒计时卡片样式 */
.calculator-countdown {
    text-align: center;
    padding: 10px 0;
}

.calculator-countdown #countdown {
    font-size: 30px;
    color: var(--primary);
    font-weight: 500;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 153, 204, 0.08) 100%);
    display: inline-block;
    padding: 20px 30px;
    border-radius: 25px;
}

.calculator-title a:hover {
    color: var(--primary);
}

/* 搜索区域样式 */
.search-area {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-item {
    flex: 1;
    min-width: 150px;
}

.search-item select,
.search-item input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.search-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* 主要内容区 */
.main-content {
    display: flex;
    gap: 40px;
}

.content-left {
    flex: 7;
    margin-right: 20px;
}

.content-right {
    flex: 3;
}

/* 通用区块样式 */
.section {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-title {
    padding: 15px 20px;
    background-color: var(--gray-light);
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title > a:first-child {
    color: var(--dark);
    text-decoration: none;
}

.section-title > a:first-child:hover {
    color: var(--primary);
}

.section-more {
    font-size: 13px;
    color: var(--gray);
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.section-more:hover {
    color: var(--primary);
}

.section-content {
    padding: 20px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========== 热门岗位分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 分类卡片主链接区域 */
.category-main-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.category-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.category-info {
    text-align: center;
}

.category-info h3 {
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.category-desc {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.category-count {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.category-count span {
    font-size: 18px;
    font-weight: bold;
}

/* ========== 分类卡片广告区域 ========== */
.category-ads {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.category-ad {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-ad:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.category-ad-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-ad-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ========== 项目分类广告展示区（竖排） ========== */
.project-ads-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-ad-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin: 5px 0;
}

.project-ad-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-ad-header {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 12px;
    color: #fff;
}

.project-ad-card:nth-child(1) .project-ad-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.project-ad-card:nth-child(2) .project-ad-header { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.project-ad-card:nth-child(3) .project-ad-header { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.project-ad-card:nth-child(4) .project-ad-header { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.project-ad-card:nth-child(5) .project-ad-header { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.project-ad-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.project-ad-main {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    margin-top: 5px;
    width: 100%;
}

.project-ad-main:hover {
    background: rgba(255,255,255,0.4);
    color: #fff;
}

.project-ad-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 15px;
    overflow-x: auto;
}

.project-ad-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px dashed #eee;
    flex-shrink: 0;
}

.project-ad-row:first-child {
    padding-left: 0;
}

.project-ad-row:last-child {
    border-right: none;
    padding-right: 0;
}

.project-ad-tag {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.project-ad-card:nth-child(2) .project-ad-tag { background: #f5576c; }
.project-ad-card:nth-child(3) .project-ad-tag { background: #4facfe; }
.project-ad-card:nth-child(4) .project-ad-tag { background: #fa709a; }
.project-ad-card:nth-child(5) .project-ad-tag { background: #30cfd0; }

.project-ad-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-ad-link {
    color: #555;
    font-size: 12px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.2s;
    margin-left: 8px;
}

.project-ad-link:hover {
    color: var(--primary);
}

.project-ad-link:hover {
    color: var(--primary);
}



/* 响应式适配 */
@media (max-width: 768px) {
    .project-ad-card {
        flex-direction: column;
    }

    .project-ad-header {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
    }

    .project-ad-title {
        font-size: 15px;
        text-align: left;
        margin: 0;
    }

    .project-ad-body {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .project-ad-row {
        padding: 0 8px 0 0;
    }
}

@media (max-width: 480px) {
    .project-ad-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .project-ad-body {
        flex-direction: column;
        gap: 8px;
    }

    .project-ad-row {
        border-right: none;
        border-bottom: 1px dashed #eee;
        padding: 0 0 8px 0;
    }

    .project-ad-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 分类卡片结束 ========== */

.card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

/* 信息列表 */
.info-list {
    font-size: 14px;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-list li:last-child {
    border-bottom: none;
}

.new-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.tag-hot {
    background: #ffebee;
    color: #f44336;
}

.tag-new {
    background: #e3f2fd;
    color: #1976d2;
}

/* 课程卡片 */
.course-card {
    padding: 15px;
    text-align: center;
}

.course-card .price {
    color: var(--red);
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

/* 评分样式 */
.rating {
    color: var(--yellow);
    font-size: 16px;
}

/* 评价头部 */
.review-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* 动态日历样式 */
.dynamic-calendar {
    width: 100%;
    margin-bottom: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.calendar-nav-btn:hover {
    background: var(--secondary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    padding: 8px 0;
    background: var(--gray-light);
    border-radius: 4px 4px 0 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--gray-light);
}

.calendar-day.today {
    background: var(--primary);
    color: var(--white);
    font-weight: bold;
}

.calendar-day.has-event {
    background: var(--secondary);
    color: var(--white);
}

.calendar-day.other-month {
    color: var(--gray-dark);
    opacity: 0.5;
}

.calendar-day .event-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    display: none;
}

.calendar-day.has-event .event-dot {
    display: block;
}

.calendar-events {
    margin-top: 15px;
    padding: 10px;
    background: var(--gray-light);
    border-radius: 4px;
}

.calendar-event-item {
    padding: 5px 0;
    border-bottom: 1px dashed var(--gray);
    display: flex;
    justify-content: space-between;
}

.calendar-event-item:last-child {
    border-bottom: none;
}

/* 咨询网格 */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 44px;
    touch-action: manipulation;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* 底部快捷导航 */
.quick-nav {
    background: var(--gray-light);
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.quick-nav .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav a {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.quick-nav a:hover {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.05);
}

/* 底部样式 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 50px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00d4ff, var(--primary));
}

.footer-top {
    /*display: grid;*/
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

/* 品牌展示区域 */
.footer-brand {
    padding-right: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--white);
}

.logo-text span {
    color: var(--primary);
}

.brand-desc {
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-contact-info {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
}

.contact-item i {
    color: var(--primary);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* 列标题样式 */
.footer-col h3 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col h3 i {
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}

.footer-col ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.footer-col ul li a {
    color: #b0b0b0;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #888;
}

.footer-cert {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cert-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 12px;
}

.cert-item i {
    color: #2ecc71;
}

.footer-bottom p {
    margin: 5px 0;
}

/* 在线咨询悬浮窗 */
.chat-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    touch-action: manipulation;
}

.chat-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.chat-btn:active {
    transform: scale(0.95);
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
}

.chat-header {
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-item:last-child {
    border-bottom: none;
}

.chat-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
}

/* 移动端导航菜单样式 */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        max-width: 80vw;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-item a {
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item a:hover {
        background: var(--gray-light);
    }

    .nav-item.active a {
        border-bottom: 2px solid var(--primary);
    }

    .header-contact {
        display: none;
    }

    .header-search {
        display: none;
    }

    .header-search.active {
        display: block;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        max-width: 280px;
        padding: 10px 15px;
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 998;
    }
}

@media (max-width: 768px) {
    .nav {
        width: 100%;
        max-width: 100%;
        top: 56px;
        height: calc(100vh - 56px);
    }
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .container {
        width: 960px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    .main-content {
        flex-direction: column;
    }
    .content-left,
    .content-right {
        flex: 1;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 横幅适配 */

    /* 轮播图适配 */
    .carousel-item {
        height: 280px;
    }

    .carousel-caption {
        padding: 15px;
    }

    .carousel-caption h3 {
        font-size: 16px;
    }

    .carousel-caption p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 8px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .search-form {
        flex-direction: column;
    }
    .search-item {
        width: 100%;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .carousel-item {
        height: 220px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        min-width: 32px;
        min-height: 32px;
    }

    /* Header 适配 */
    .logo {
        font-size: 22px;
    }

    /* 优化可点击元素的触摸区域 */
    .nav-item a {
        min-height: 44px;
        line-height: 44px;
    }

    .info-list li {
        padding: 12px 0;
    }

    .calendar-day {
        min-height: 40px;
    }

    /* 横幅适配 */

    /* 日历适配 */
    .calendar-title {
        font-size: 16px;
    }

    .calendar-btn {
        padding: 2px 6px;
        font-size: 11px;
    }

    .calendar-week,
    .calendar-body {
        font-size: 11px;
    }

    .calendar-day {
        min-height: 35px;
    }

    /* 考试表格适配 */
    .exam-table {
        font-size: 10px;
    }

    .exam-table th,
    .exam-table td {
        padding: 4px 2px;
    }

    /* 咨询网格 */
    .consult-grid {
        grid-template-columns: 1fr;
    }

    /* 报考计算器 */
    .calculator-card {
        padding: 15px;
    }

    .calculator-title {
        font-size: 16px;
    }

    /* 悬浮窗适配 */
    .chat-float {
        bottom: 20px;
        right: 20px;
    }

    .chat-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chat-panel {
        width: 90vw;
        max-width: 320px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 5px;
    }

    .carousel-item {
        height: 180px;
    }

    .section-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .section-content {
        padding: 15px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card p {
        font-size: 13px;
    }

    /* 底部快捷导航 */
    .quick-nav .container {
        justify-content: center;
    }

    .quick-nav a {
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        text-align: center;
        padding-right: 0;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-cert {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cert-item {
        font-size: 12px;
    }

    .footer-col h3 {
        font-size: 16px;
        text-align: center;
        justify-content: center;
    }

    .footer-col ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .footer-col ul li {
        text-align: center;
        padding-left: 0;
    }

    .footer-col ul li::before {
        display: none;
    }

    .footer-col ul li a {
        display: block;
        padding: 6px 4px;
        font-size: 12px;
    }

    /* 增大移动端的可点击区域 */
    .card-grid .card a,
    .info-list a,
    .calendar-day,
    .quick-nav a {
        min-height: 44px;
    }

    /* 优化移动端滚动体验 */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* 防止移动端双击缩放 */
    button,
    a,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* 动态日历样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-prev, .calendar-next {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.calendar-week-item {
    padding: 8px;
    text-align: center;
    font-weight: 500;
    border-right: 1px solid #eee;
}

.calendar-week-item:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    position: relative;
}

.calendar-day.empty {
    background: #fafafa;
    border: none;
    cursor: default;
}

.calendar-day.today {
    background: #3498db;
    color: #fff;
    font-weight: bold;
}

.calendar-day.has-exam {
    background: #fef5e7;
}

.calendar-day.active {
    background: #2ecc71;
    color: #fff;
}

.exam-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-event-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.calendar-event-item:last-child {
    border-bottom: none;
}

.event-title {
    font-weight: 500;
    color: #3498db;
    display: block;
    margin-bottom: 5px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.event-info {
    font-size: 12px;
    color: #95a5a6;
}

/* ====================== 考试日历通用样式 ====================== */
.exam-calendar-box {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.exam-calendar-box .title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* 日历头部 */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-header h3 {
  font-size: 15px;
  margin: 0;
  color: #333;
}
.calendar-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.calendar-btn:hover {
  background: #0069d9;
}

/* 星期 */
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  background: #f8f9fa;
  padding: 8px 0;
  font-size: 12px;
  color: #666;
  border-radius: 4px 4px 0 0;
}

/* 日期格子 */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 8px 0;
}
.calendar-day {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.calendar-day:hover {
  background: #f0f0f0;
}
.calendar-day.today {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}
.calendar-day.active {
  border: 2px solid #007bff;
}
.calendar-day.has-exam::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #ff4d4f;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
}

/* 考试列表 */
.calendar-exam-list {
  margin-top: 15px;
  max-height: 220px;
  overflow-y: auto;
}
.calendar-exam-item {
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 13px;
}
.calendar-exam-item .name {
  font-weight: 500;
  color: #333;
}
.calendar-exam-item .info {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

/* 考试日历 */
.exam-calendar{width:100%;background:#fff;border-radius:8px;padding:15px 20px;box-shadow:0 1px 5px rgba(0,0,0,0.05);margin-bottom:20px}
.exam-calendar .calendar-title{font-size:16px;font-weight:600;color:#333;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f2f2f2}
.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.calendar-head h4{font-size:15px;margin:0}
.calendar-btn{background:#409eff;color:#fff;border:none;border-radius:4px;padding:3px 8px;font-size:12px;cursor:pointer}
.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;background:#f8f9fa;padding:6px 0;font-size:12px;color:#666}
.calendar-body{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;padding:8px 0}
.calendar-day{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;font-size:13px;border-radius:4px;cursor:pointer;position:relative}
.calendar-day:hover{background:#f5f5f5}
.calendar-day.today{background:#409eff;color:#fff}
.calendar-day.active{border:2px solid #409eff}
.calendar-day.has-exam::after{content:"";width:6px;height:6px;background:#ff4d4f;border-radius:50%;position:absolute;bottom:2px;right:2px}
.calendar-list{margin-top:15px;max-height:220px;overflow-y:auto}
.calendar-item{padding:8px;background:#f8f9fa;border-radius:4px;margin-bottom:6px;font-size:13px}
.calendar-item .name{font-weight:500;color:#333}
.calendar-item .info{font-size:12px;color:#666;margin-top:3px}

/* 考试表格样式 */
.exam-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 12px;
}
.exam-table th, .exam-table td {
    border: 1px solid #eee;
    padding: 6px 4px;
    text-align: center;
}
.exam-table th {
    background-color: var(--gray-light);
    font-weight: 500;
    font-size: 11px;
}
.exam-table td a {
    color: var(--primary);
}
.exam-table td a:hover {
    color: var(--secondary);
}

/* 右侧考试日历样式适配 */
.exam-calendar {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 15px;
    margin-bottom: 20px;
}
.calendar-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark);
}
.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}
.calendar-btn:hover {
    background: var(--secondary);
}
.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    padding: 5px 0;
    background: var(--gray-light);
    border-radius: 4px 4px 0 0;
    font-size: 12px;
}
.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 5px 0;
}
.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    font-size: 12px;
}
.calendar-day:hover {
    background: var(--gray-light);
}
.calendar-day.today {
    background: var(--primary);
    color: var(--white);
    font-weight: bold;
}
.calendar-day.has-event {
    background: var(--secondary);
    color: var(--white);
}
.calendar-day.other-month {
    color: var(--gray-dark);
    opacity: 0.5;
}




/* 倒计时响应式字体 */
@media (max-width: 768px) {
    .calculator-countdown #countdown {
    }
}

@media (max-width: 576px) {
    .calculator-countdown #countdown {
    }
}
