/* =========================================
   明亮科技风界面 - 增强动态效果版本
   ========================================= */

/* =========================================
   1. 变量与基础设置
   ========================================= */
:root {
    /* 明亮科技感配色方案 */
    --primary-color: #0066FF;          /* 明亮蓝 - 主色调 */
    --primary-dark: #0052CC;           /* 深蓝 */
    --primary-light: #E6F2FF;          /* 浅蓝背景 */
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #00AAFF 100%);
    --accent-color: #00D4AA;           /* 科技青 - 辅助色 */
    --accent-light: #E6FFF5;

    /* 背景系统 */
    --bg-main: #F5F8FC;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* 文字系统 */
    --text-main: #1A2B4A;
    --text-sub: #5A6B8A;
    --text-muted: #8A9BBA;

    /* 边框 */
    --border-color: #D6E4F0;
    --border-light: #E6F2FF;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 102, 255, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 102, 255, 0.1);
    --shadow-hover: 0 8px 32px rgba(0, 102, 255, 0.2);
}

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* 动态背景光效 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(0, 170, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.loading-state, .empty-state {
    padding: 80px 24px;
    text-align: center;
    color: var(--text-sub);
    font-size: 14px;
}


/* =========================================
   2. 全局头部 - 科技感导航栏 (优化版)
   ========================================= */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

/* 导航栏顶部渐变光条 */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* 导航栏底部动态光带 */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 0.6; transform: scaleX(1); }
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-img {
    height: 36px;
    width: auto;
    transition: transform 0.3s, filter 0.3s;
}

.header-brand:hover .header-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.3));
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    position: relative;
}

/* 标题下方光效 */
.header-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.header-brand:hover .header-title::after {
    transform: scaleX(1);
}

/* 导航链接 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.header-nav-item svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

/* 导航项背景光效 */
.header-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s;
    z-index: -1;
}

.header-nav-item:hover::before {
    width: 150%;
    height: 150%;
}

.header-nav-item:hover {
    color: var(--primary-color);
}

.header-nav-item:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

.header-nav-item.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.header-tagline {
    font-size: 12px;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 标签闪光效果 */
.header-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: taglineShine 3s ease-in-out infinite;
}

@keyframes taglineShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}


/* =========================================
   3. 首页 Hero 区域
   ========================================= */

/* 搜索框样式 */
.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box form {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 4px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.search-box form:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-main);
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.hero-header {
    text-align: center;
    padding: 60px 24px 50px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-main) 100%);
    position: relative;
}

.hero-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.5;
    animation: heroLine 4s ease-in-out infinite;
}

@keyframes heroLine {
    0%, 100% { width: 60%; opacity: 0.5; }
    50% { width: 80%; opacity: 0.8; }
}

.hero-header .header-logo {
    max-width: 220px;
    height: auto;
    display: inline-block;
    margin-bottom: 24px;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-header .main-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    letter-spacing: 2px;
}

.hero-header .sub-title {
    font-size: 14px;
    color: var(--primary-color);
    background: var(--primary-light);
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 3px;
    border: 1px solid rgba(0, 102, 255, 0.15);
    position: relative;
    animation: subPulse 2s ease-in-out infinite;
}

@keyframes subPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 102, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.15); }
}


/* =========================================
   4. 面包屑导航
   ========================================= */
.breadcrumb-nav {
    padding: 14px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a {
    color: var(--text-sub);
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.breadcrumb-item.current {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 10px;
}

.breadcrumb-list meta { display: none !important; }


/* =========================================
   5. 学校网格卡片 - 增强动态效果
   ========================================= */
.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 50px;
}

.school-card {
    background: var(--bg-white);
    padding: 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* 卡片顶部渐变光条 */
.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

/* 卡片内部扫描光效 */
.school-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.08), transparent);
    transition: left 0.8s;
}

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

.school-card:hover::after {
    left: 150%;
}

.school-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 102, 255, 0.15);
}

.school-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-light);
    border: 2px solid var(--border-light);
    transition: all 0.4s;
}

.school-card:hover .school-logo {
    border-color: var(--primary-color);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

.school-info {
    flex: 1;
    min-width: 0;
    margin-left: 18px;
}

.school-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.school-card:hover .school-name {
    color: var(--primary-color);
}

.stat-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.school-card:hover .stat-tag {
    background: var(--primary-gradient);
    color: #fff;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-left: 16px;
    transition: all 0.4s;
}

.school-card:hover .card-arrow {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateX(6px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}


/* =========================================
   6. 列表页样式
   ========================================= */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.back-link {
    color: var(--text-sub);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-light);
    transition: width 0.3s;
    z-index: -1;
}

.back-link:hover::before {
    width: 100%;
}

.back-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.back-link svg {
    transition: transform 0.3s;
}

.list-card {
    min-height: 80vh;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.sticky-header-group {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    border-radius: 20px 20px 0 0;
}

.sticky-header-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3); }
}

.library-header {
    padding: 24px 30px 20px;
}

.library-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.library-title svg {
    color: var(--primary-color);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.article-count-info {
    font-size: 14px;
    color: var(--text-sub);
}

.article-count-info span {
    color: var(--primary-color);
    font-weight: 700;
}

.tabs-container {
    padding: 0 24px;
    background: var(--bg-white);
    margin-top: 12px;
}

.tab-item {
    display: inline-block;
    padding: 12px 16px 16px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    animation: tabLine 2s ease-in-out infinite;
}

@keyframes tabLine {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 102, 255, 0); }
    50% { box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4); }
}


/* =========================================
   7. 文章列表组件
   ========================================= */
.card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-list {
    background: var(--bg-white);
}

.article-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    transition: all 0.3s;
    justify-content: space-between;
    position: relative;
}

/* 文章链接样式 - 用于服务端渲染的列表 */
.article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: inherit;
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: all 0.3s;
}

.article-item:hover::before {
    width: 4px;
    opacity: 1;
}

.article-item:hover {
    background: var(--primary-light);
}

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

.item-img {
    width: 130px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
}

.article-item:hover .item-img {
    border-color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.article-item:hover .item-img img {
    transform: scale(1.1);
}

.content-area {
    flex-grow: 1;
    margin-right: 16px;
    min-width: 0;
}

.title-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-item:hover .title-link {
    color: var(--primary-color);
}

.meta-row {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-tag {
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.action-area {
    flex-shrink: 0;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.article-item:hover .arrow-btn {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}


/* =========================================
   8. 文章详情页
   ========================================= */
.article-school-header {
    margin-bottom: 20px;
}

.school-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.school-back-link svg {
    transition: transform 0.3s;
}

.school-back-link:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.school-back-link:hover svg {
    transform: translateX(-3px);
}

.content-wrapper {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

.article-detail {
    background: var(--bg-white);
    margin-bottom: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
    animation: detailTop 3s ease-in-out infinite;
}

@keyframes detailTop {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; box-shadow: 0 0 15px rgba(0, 102, 255, 0.5); }
}

.article-title {
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    line-height: 1.4;
    font-size: 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    gap: 16px;
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-main);
    word-wrap: break-word;
}

.article-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.article-body img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.article-body a:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.related-section {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.related-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: sectionBar 2s ease-in-out infinite;
}

@keyframes sectionBar {
    0%, 100% { height: 20px; }
    50% { height: 24px; }
}


/* =========================================
   9. 分页组件
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px 0 50px;
    flex-wrap: wrap;
}

.pagination button,
.pagination-btn {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-main);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.pagination button::before,
.pagination-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s;
    z-index: -1;
}

.pagination button:hover:not(:disabled)::before,
.pagination-btn:hover::before {
    width: 200%;
    height: 200%;
}

.pagination button:hover:not(:disabled),
.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button.active,
.pagination-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    animation: activeBtn 2s ease-in-out infinite;
}

@keyframes activeBtn {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(0, 102, 255, 0.5); }
}

.pagination .page-info {
    color: var(--text-sub);
    font-size: 13px;
    margin-left: 20px;
}


/* =========================================
   10. 全局底部
   ========================================= */
.site-footer {
    background: var(--bg-white);
    border-top: 3px solid;
    border-image: var(--primary-gradient) 1;
    padding: 50px 0 40px;
    margin-top: auto;
    position: relative;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: footerLine 4s ease-in-out infinite;
}

@keyframes footerLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 32px;
    transition: transform 0.3s;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.05);
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-sub);
    transition: color 0.3s;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.footer-contact-item:hover svg {
    transform: scale(1.2);
}

.footer-contact-item a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.footer-contact-item a:hover {
    text-shadow: 0 0 8px rgba(0, 102, 255, 0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-link-item {
    font-size: 14px;
    color: var(--text-sub);
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.footer-link-item:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.footer-divider {
    color: var(--text-muted);
}

.footer-licenses {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.license-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    font-size: 13px;
    transition: all 0.3s;
    padding: 10px 18px;
    background: var(--primary-light);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.license-item:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.license-item img {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-beian {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-beian a {
    color: var(--text-muted);
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-beian a:hover {
    color: var(--text-sub);
}


/* =========================================
   11. 响应式适配
   ========================================= */
@media screen and (min-width: 1200px) {
    .school-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 769px) {
    .article-detail { padding: 50px; }
    .article-title { font-size: 34px; margin-bottom: 25px; }
}

@media screen and (max-width: 768px) {
    .container { padding: 16px; }
    .header-inner { padding: 12px 16px; }
    .header-logo-img { height: 30px; }
    .header-title { font-size: 16px; }
    .header-nav { display: none; }
    .header-tagline { font-size: 11px; padding: 4px 12px; }

    .hero-header { padding: 50px 16px 40px; }
    .hero-header .header-logo { max-width: 180px; margin-bottom: 20px; }
    .hero-header .main-title { font-size: 24px; letter-spacing: 1px; }
    .hero-header .sub-title { font-size: 12px; padding: 8px 20px; letter-spacing: 2px; }

    .breadcrumb-nav { padding: 12px 16px; }
    .breadcrumb-list { font-size: 12px; gap: 8px; }

    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 30px;
    }
    .school-card { padding: 16px; border-radius: 14px; }
    .school-logo { width: 48px; height: 48px; border-radius: 10px; }
    .school-info { margin-left: 14px; }
    .school-name { font-size: 14px; }
    .stat-tag { font-size: 11px; padding: 4px 10px; }
    .card-arrow { width: 32px; height: 32px; margin-left: 10px; }

    .card { border-radius: 16px; }
    .list-card { border-radius: 16px; }
    .sticky-header-group { border-radius: 16px 16px 0 0; }
    .article-item { padding: 16px; }
    .item-img { width: 100px; height: 70px; margin-right: 14px; border-radius: 10px; }
    .title-link { font-size: 15px; margin-bottom: 10px; }
    .meta-row { font-size: 12px; gap: 8px; }
    .platform-tag { font-size: 11px; padding: 3px 10px; }
    .arrow-btn { width: 32px; height: 32px; }

    .back-link { padding: 10px 16px; font-size: 13px; border-radius: 10px; }
    .school-back-link { padding: 10px 16px; font-size: 13px; border-radius: 10px; }

    .content-wrapper { padding: 16px; }
    .article-detail { padding: 24px 18px; border-radius: 16px; }
    .article-title { font-size: 22px; margin-bottom: 20px; }
    .article-meta { font-size: 12px; padding-bottom: 16px; margin-bottom: 24px; gap: 12px; }
    .article-body { font-size: 15px; line-height: 1.8; }
    .article-body img { margin: 16px auto; border-radius: 10px; }

    .related-section { border-radius: 16px; margin-top: 20px; }
    .section-header { padding: 16px 18px; }
    .section-title h3 { font-size: 16px; }

    .tabs-container { padding: 0 16px; }
    .tab-item { padding: 10px 12px 14px; font-size: 13px; }
    .library-header { padding: 18px 16px 14px; }
    .library-title { font-size: 18px; gap: 10px; }
    .library-title svg { width: 20px; height: 20px; }
    .article-count-info { font-size: 13px; }

    .pagination { flex-wrap: wrap; gap: 8px; padding: 20px 0 30px; }
    .pagination button { padding: 10px 16px; font-size: 13px; min-width: 44px; border-radius: 10px; }
    .pagination .page-info { width: 100%; text-align: center; margin-top: 12px; margin-left: 0; font-size: 12px; }

    .site-footer { padding: 35px 0 30px; }
    .footer-content { padding: 0 16px; }
    .footer-top { flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; }
    .footer-contact { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .footer-contact-item { font-size: 13px; }
    .footer-links { flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
    .footer-link-item { font-size: 13px; padding: 6px 12px; }
    .footer-licenses { flex-direction: column; gap: 12px; margin-bottom: 20px; }
    .license-item { font-size: 12px; padding: 8px 14px; }
    .footer-copyright { font-size: 12px; }
    .footer-beian { font-size: 11px; }
}

@media screen and (max-width: 480px) {
    .container { padding: 12px; }
    .school-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-header { padding: 40px 12px 30px; }
    .hero-header .header-logo { max-width: 160px; }
    .hero-header .main-title { font-size: 20px; }
    .school-card { padding: 14px; border-radius: 12px; }
    .school-logo { width: 44px; height: 44px; border-radius: 8px; }
    .school-name { font-size: 14px; }
    .card-arrow { width: 28px; height: 28px; }
    .item-img { width: 90px; height: 65px; margin-right: 12px; }
    .title-link { font-size: 14px; }
    .article-item { padding: 14px; }
    .pagination button { padding: 8px 12px; font-size: 12px; min-width: 40px; }
    .article-detail { padding: 20px 14px; border-radius: 14px; }
    .article-title { font-size: 20px; }
    .article-body { font-size: 14px; }
    .section-header { padding: 14px 16px; }
    .section-title h3 { font-size: 15px; }
    .back-link { padding: 8px 12px; font-size: 12px; }
    .library-title { font-size: 16px; }
}

@media screen and (max-width: 360px) {
    .hero-header { padding: 35px 10px 25px; }
    .hero-header .header-logo { max-width: 140px; }
    .hero-header .main-title { font-size: 18px; }
    .school-logo { width: 40px; height: 40px; }
    .school-name { font-size: 13px; }
    .stat-tag { font-size: 10px; padding: 3px 8px; }
    .item-img { width: 80px; height: 58px; margin-right: 10px; }
    .back-link { padding: 6px 10px; font-size: 11px; }
    .library-title { font-size: 15px; }
    .article-title { font-size: 18px; }
    .article-body { font-size: 13px; }
    .pagination button { padding: 6px 10px; font-size: 11px; min-width: 36px; }
    .footer-contact-item { font-size: 12px; }
    .license-item { font-size: 11px; padding: 6px 12px; }
}