/* ========================================
   基础样式和变量
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a0e9;
    --accent-color: #00d0ff;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-color: #ffffff;
    --light-bg: #f5f9ff;
    --border-color: rgba(0, 102, 204, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   通用组件样式
   ======================================== */

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
}

/* ========================================
   导航栏样式
   ======================================== */

.nav-link {
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   轮播图样式
   ======================================== */

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* 常用高度设置 */
    min-height: 300px;
    height: 400px;
}

/* 小屏幕设备 */
@media (min-width: 576px) {
    .carousel {
        height: 450px;
    }
}

/* 平板设备 */
@media (min-width: 768px) {
    .carousel {
        height: 500px;
    }
}

/* 桌面设备 */
@media (min-width: 1024px) {
    .carousel {
        height: 550px;
    }
}

/* 大屏幕设备 */
@media (min-width: 1280px) {
    .carousel {
        height: 600px;
    }
}

/* 2K显示器 */
@media (min-width: 1440px) {
    .carousel {
        height: 650px;
    }
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    /* 渐变背景 - 蓝色系 */
    background: linear-gradient(135deg, #0066cc 0%, #00a0e9 100%);
}

/* 不同轮播项的渐变色 - 蓝色系 */
.carousel-item:nth-child(1) {
    background: linear-gradient(135deg, #0066cc 0%, #00a0e9 100%);
}

.carousel-item:nth-child(2) {
    background: linear-gradient(135deg, #0052a3 0%, #0088cc 100%);
}

.carousel-item:nth-child(3) {
    background: linear-gradient(135deg, #0077e6 0%, #00d0ff 100%);
}

/* 添加装饰性背景元素 */
.carousel-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.carousel-item::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.carousel-image {
    display: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* ========================================
   流程图样式
   ======================================== */

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

/* ========================================
   滚动动画样式
   ======================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   表单样式
   ======================================== */

.form-input {
    transition: all var(--transition-normal);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ========================================
   FAQ手风琴样式
   ======================================== */

.faq-container,
.instruction-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.faq-item {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.02) 0%, transparent 100%);
}

.faq-item.active {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 160, 233, 0.02) 100%);
}

.faq-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 2px 2px 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    transition: all var(--transition-normal);
    font-weight: 500;
    color: var(--text-color);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 16px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.faq-item.active .faq-question-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    margin: 0;
}

/* ========================================
   考务须知样式
   ======================================== */

.instruction-item {
    position: relative;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.instruction-item:last-child {
    border-bottom: none;
}

.instruction-item:hover {
    background: rgba(0, 102, 204, 0.03);
    transform: translateX(4px);
}

.instruction-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 2px 2px 0;
}

.instruction-item h4 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.instruction-item h4::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

.instruction-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    padding-left: 20px;
}

/* ========================================
   报考指南卡片样式
   ======================================== */

.guide-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.12);
}

.guide-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 160, 233, 0.04) 100%);
    border-bottom: 1px solid var(--border-color);
}

.guide-card-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.guide-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.guide-card-body {
    padding: 24px;
}

/* ========================================
   条件列表样式
   ======================================== */

.condition-item {
    position: relative;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(0, 102, 204, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.condition-item:hover {
    background: rgba(0, 102, 204, 0.06);
    transform: translateX(4px);
}

.condition-item:last-child {
    margin-bottom: 0;
}

.condition-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.condition-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.condition-list {
    margin: 0;
    padding-left: 20px;
}

.condition-list li {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.condition-list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   时间线样式
   ======================================== */

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

.timeline-item:nth-child(1)::before { content: '3'; }
.timeline-item:nth-child(2)::before { content: '5'; }
.timeline-item:nth-child(3)::before { content: '6'; }

.timeline-item::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 32px;
    width: 2px;
    height: calc(100% - 24px);
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.3) 0%, rgba(0, 160, 233, 0.1) 100%);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 15px;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-exam {
    color: var(--text-lighter);
    font-size: 13px;
}

/* ========================================
   步骤样式
   ======================================== */

.step-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0, 102, 204, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all var(--transition-normal);
}

.step-item:hover {
    background: rgba(0, 102, 204, 0.06);
    transform: translateX(8px);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 15px;
}

.step-desc {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================
   文档列表样式
   ======================================== */

.document-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.04) 0%, rgba(0, 160, 233, 0.02) 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.document-item:hover {
    background: rgba(0, 102, 204, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 160, 233, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 16px;
}

.document-content {
    flex: 1;
}

.document-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 15px;
}

.document-desc {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================
   提示框样式
   ======================================== */

.note-box {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 160, 233, 0.04) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid var(--accent-color);
    margin-top: 12px;
}

.note-box p {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}

.note-box i {
    margin-right: 8px;
}

/* ========================================
   水平滚动样式
   ======================================== */

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 16px 0;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 200px;
}

.mobile-horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 16px 0;
}

.mobile-horizontal::-webkit-scrollbar {
    display: none;
}

.mobile-scroll-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: calc(85vw - 16px);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .guide-card {
        border-radius: 16px;
    }
    
    .process-container {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .process-step {
        flex-shrink: 0;
        width: 140px;
    }
    
    .faq-container .faq-question,
    .instruction-card .faq-question {
        padding: 16px;
    }
    
    .faq-answer p {
        padding: 12px 24px;
    }
}