:root {
    --primary: #0066b3;
    --secondary: #e60000;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --darker-gray: #1a1a1a;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--dark-gray);
    scroll-behavior: smooth;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

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

.text-secondary {
    color: var(--secondary) !important;
}

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

.btn-primary:hover {
    background-color: rgba(0, 102, 179, 0.9);
    border-color: rgba(0, 102, 179, 0.9);
}

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

.btn-secondary:hover {
    background-color: rgba(230, 0, 0, 0.9);
    border-color: rgba(230, 0, 0, 0.9);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), rgba(0, 102, 179, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.card-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.border-left-primary {
    border-left: 8px solid rgba(0, 102, 179, 0.8);
}

/* 轮播图样式 */
.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(0, 102, 179, 0.9);
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
    height: 60px;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

/* 导航下拉菜单 - 修复样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-top: 0; /* 移除默认的上边距 */
}

/* 确保下拉菜单在hover时显示 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 移动设备上的下拉菜单样式 */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }

    .dropdown-item {
        padding-left: 0;
        color: rgba(0, 0, 0, 0.5);
    }

    .dropdown-item:hover {
        color: rgba(0, 0, 0, 0.7);
        background-color: transparent;
    }
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 102, 179, 0.1);
    color: var(--primary);
}

/* 评估测试选项样式 */
.assessment-option {
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assessment-option:hover {
    background-color: var(--medium-gray);
}

.assessment-option input[type="radio"] {
    margin-right: 10px;
}

/* 了解更多链接 */
.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary);
    text-decoration: none;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 资讯列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.news-title {
    color: var(--dark-gray);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.news-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
}

.news-footer {
    margin-top: auto;
}

/* 报名条件样式 */
.requirement-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.requirement-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.requirement-item:nth-child(1):before {
    content: '1';
}

.requirement-item:nth-child(2):before {
    content: '2';
}

.requirement-item:nth-child(3):before {
    content: '3';
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 260px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 35px;
    }
}