/* ========================================
   邯郸技师学院 - 公用样式
   所有页面复用此文件
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1e3a5f;
    line-height: 1.5;
}

/* 专业深蓝主色调 */
:root {
    --primary-dark: #0a3d62;
    --primary: #1e6f9f;
    --primary-light: #eef3fc;
    --accent-gold: #c9a03d;
    --border-light: #e2edf2;
    --text-dark: #1e3a5f;
    --text-soft: #4a6f8a;
    --gray-bg: #f8fafc;
    --white: #ffffff;
    --footer-dark: #052e42;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   头部导航
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 66px;
    height: 66px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(30, 111, 159, 0.2);
}

.logo-icon img{ width: 100%; height: 100% }
.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6e8eaa;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 500;
    color: #2c4e6e;
    transition: 0.2s;
    font-size: 0.95rem;
    border-radius: 5px;
}

.nav-item > a:hover,
.nav-item.active > a {
    background: var(--primary-light);
    color: var(--primary);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 10;
    border: 1px solid var(--border-light);
    border-top: none;
    overflow: hidden;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* ========================================
   按钮样式
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 111, 159, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 111, 159, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   页面主体通用样式
   ======================================== */
.page-main {
    min-height: 60vh;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.page-header h2:before,
.page-header h2:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: var(--primary-dark);
    opacity: 0.5;
}

.page-header h2:before {
    left: -70px;
}

.page-header h2:after {
    right: -70px;
}

.page-header .subtitle {
    text-align: center;
    color: var(--text-soft);
    max-width: 700px;
    margin: 16px auto 0;
    font-size: 1rem;
}

/* 分类标签 */
.cate-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cate-tab {
    padding: 8px 24px;
    border-radius: 40px;
    background: var(--gray-bg);
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid transparent;
}

.cate-tab.active,
.cate-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   列表卡片样式
   ======================================== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.list-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
}

.list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 32px -12px rgba(30, 111, 159, 0.15);
}

.list-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.list-card-content {
    padding: 20px;
    flex: 1;
}

.list-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.list-card-desc {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-date {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 16px;
}

/* 专业卡片特殊样式 */
.salary-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    margin-top: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    transition: 0.2s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   详情页样式
   ======================================== */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    padding: 48px;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.08);
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.detail-img {
    /*width: 100%;*/
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 28px;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.detail-content p {
    margin-bottom: 1.2em;
}

.detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.back-link {
    display: inline-block;
    margin-top: 32px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========================================
   单页样式（学院概况、招生计划）
   ======================================== */
.single-page {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    padding: 48px;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.08);
}

.single-page h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 32px 0 16px;
    font-weight: 700;
}

.single-page h3:first-of-type {
    margin-top: 0;
}

.single-page h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 24px 0 12px;
}

.single-page p {
    line-height: 1.7;
    margin-bottom: 1em;
    color: var(--text-dark);
}

.single-page ul {
    margin: 16px 0 16px 24px;
}

.single-page li {
    margin: 8px 0;
    line-height: 1.6;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
    text-align: center;
}

.stat-item {
    background: var(--primary-light);
    padding: 24px;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* 招生卡片 */
.enroll-cards {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.enroll-card {
    flex: 1;
    background: var(--primary-light);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.enroll-card h4 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.enroll-card .tag {
    background: white;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    margin-top: 16px;
    font-size: 0.8rem;
}

/* ========================================
   底部样式
   ======================================== */
.footer-dark {
    background: var(--footer-dark);
    color: #cddde9;
    padding: 60px 0 32px;
    border-top: 1px solid #1f4c66;
}

.footer-dark .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-dark .footer-address i {
    width: 28px;
    color: #7eaec9;
}

.footer-dark .footer-bottom {
    text-align: center;
    border-top: 1px solid #2c5a74;
    padding-top: 28px;
    font-size: 0.8rem;
}

.footer-dark h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-dark a {
    color: #cddde9;
    text-decoration: none;
}

.footer-dark a:hover {
    color: white;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 24px;
}

.social-icons a {
    color: #cddde9;
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ========================================
   响应式样式
   ======================================== */
@media (max-width: 950px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 20px 0;
        gap: 12px;
        border-radius: 10px;
        margin-top: 12px;
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: var(--gray-bg);
        margin-top: 8px;
        border-radius: 10px;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }

    .page-header h2:before,
    .page-header h2:after {
        display: none;
    }

    .detail-container,
    .single-page {
        padding: 24px;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .enroll-cards {
        flex-direction: column;
    }
}


@media (max-width: 600px) {
    .detail-title {
        font-size: 1.4rem;
    }
}