/* ============================================
   考编雷达 - 首页样式
   ============================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; color: #333; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
.c-red { color: #E53935 !important; }

/* ========== 地区筛选 ========== */
.region-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}
.region-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.region-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
}
.region-item {
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
}
.region-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.region-item .r-name {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    display: block;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.region-item .r-num {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.region-item .r-num b {
    color: #fbbf24;
    font-weight: 600;
}

/* ========== 考试类型 ========== */
.type-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.type-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}
.type-inner::-webkit-scrollbar { display: none; }
.type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 16px 8px;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.type-item:hover {
    border-bottom-color: #E53935;
    background: rgba(229,57,53,0.03);
}
.type-item.active {
    border-bottom-color: #E53935;
}
.type-item .t-name {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.type-item .t-count {
    font-size: 13px;
    color: #E53935;
    font-weight: 500;
}

/* ========== 主体内容 ========== */
.container {
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 0 30px;
}
.main-wrap {
    display: flex;
    gap: 24px;
}
.col-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.col-right {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 卡片通用 ========== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #33c3a6;
    padding-bottom: 14px;
    margin-bottom: 12px;
}
.card-head-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-head-title::before {
    display: none;
}
.card-head-more {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    padding: 6px 14px;
    border-radius: 8px;
}
.card-head-more:hover {
    color: #33c3a6;
    background: rgba(51,195,166,0.05);
}
.card-head-more span { margin-left: 2px; transition: transform 0.3s; }
.card-head-more:hover span { transform: translateX(3px); }

/* ========== 新考试资讯 ========== */
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
    border-radius: 10px;
    transition: all 0.3s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(229,57,53,0.03); }
.news-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.news-tag {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    font-weight: 400;
    background: none;
    padding: 0;
    border-radius: 0;
}
.news-title {
    font-size: 14px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.news-title:hover { color: #E53935; cursor: pointer; }
.news-time {
    font-size: 14px;
    color: #fa4628;
    flex-shrink: 0;
    font-weight: 400;
}
.news-time.hot {
    color: #fa4628;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* ========== 热门职位 ========== */
.job-item {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 10px;
    transition: all 0.3s;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: rgba(229,57,53,0.03); }
.job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.job-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.job-title:hover { color: #E53935; cursor: pointer; }
.job-hot {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.job-date {
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}
.job-from {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.job-from::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #d1d5db;
    border-radius: 50%;
}

/* ========== 右侧边栏 ========== */
/* 广告轮播 */
.ad-banner {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(30,60,114,0.25);
    height: 170px;
}
.ad-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.ad-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.ad-slide::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.ad-slide::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.ad-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}
.ad-icon i {
    color: #fff;
    font-size: 20px;
}
.ad-slide h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ad-slide p {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.ad-slide:hover {
    filter: brightness(1.1);
}
.ad-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 2;
}
.ad-dots i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.ad-dots i.on {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 侧边标题 */
.side-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #E53935;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.side-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #E53935, #f87171);
    border-radius: 2px;
}

/* 热点考试 */
.hot-exam-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(229,57,53,0.08);
    transition: all 0.3s;
}
.hot-exam-item:last-child { margin-bottom: 0; }
.hot-exam-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229,57,53,0.12);
    border-color: rgba(229,57,53,0.15);
}
.he-type {
    color: #E53935;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.he-title {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 600;
}
.he-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(239,68,68,0.25);
}
.he-info {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
}
.he-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.he-info div::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #E53935;
    border-radius: 50%;
}

/* 问答推荐 */
.qa-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 4px;
}
.qa-item:last-child { border-bottom: none; margin-bottom: 0; }
.qa-item:hover {
    color: #1e3c72;
    background: rgba(30,60,114,0.03);
}
.qa-type {
    color: #1e3c72;
    margin-right: 4px;
    font-weight: 600;
}

/* 合作平台 */
.coop-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.coop-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.coop-banner h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}
.coop-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* ========== 右侧悬浮 ========== */
.float-bar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}
.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.float-btn:hover {
    color: #E53935;
    box-shadow: 0 8px 24px rgba(229,57,53,0.2);
    transform: translateY(-3px);
}
.float-btn span {
    font-size: 10px;
    margin-top: 4px;
    font-weight: 500;
}
.float-btn svg {
    width: 22px;
    height: 22px;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .region-inner {
        grid-template-columns: repeat(6, 1fr);
    }
    .main-wrap {
        flex-direction: column;
    }
    .col-right {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .region-inner {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 16px;
    }
    .type-inner {
        padding: 0 16px;
    }
    .container {
        padding: 0 16px;
    }
    .float-bar {
        display: none;
    }
}
