/* ============================================
 * 印刷与包装工程学院 - 统一样式文件
 * ============================================
 * 文件结构：
 * 1. 全局变量与重置样式
 * 2. 公共布局样式（Top Bar、Header、Navigation、Footer）
 * 3. 首页专用样式 (index.html)
 * 4. 教师列表页样式 (jsdw.html)
 * 5. 教师详情页样式 (teacher-detail.html)
 * 6. 领导页面样式 (leaders.html)
 * 7. 文章列表页样式 (article-list.html)
 * 8. 文章详情页样式 (article-detail.html)
 * 9. 机构设置页样式 (org.html, onepage.html)
 * 10. 响应式布局
 */

/* ============================================
 * 1. 全局变量与重置样式
 * ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #024fa7;
    --secondary: #1e3a5f;
    --accent: #2563eb;
    --light: #f0f4f8;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
 * 2. 公共布局样式
 * ============================================ */

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: white;
}

.search-inline {
    display: flex;
    gap: 0.5rem;
}

.search-inline input {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.875rem;
    width: 200px;
    outline: none;
}

.search-inline input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-inline .button {
    padding: 0.35rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
	width:80px;
}

.search-inline .button:hover {
    background: #1d4ed8;
}

/* Header */
.header {
    background: var(--primary);
    padding: 1.5rem 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo {
    min-width: 70px;
    height: 70px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-text p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Navigation */
.nav {
    /*background: var(--accent);*/
    background: linear-gradient(to right, rgb(9, 89, 210), rgb(4, 132, 170));
    
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
	margin: 0; 
    padding: 0; 
}

.nav-item {
    position: relative;
	flex: 1;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 1.1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--light);
    color: var(--accent);
    padding-left: 1.75rem;
}

/* Page Banner (通用页面标题区域) */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-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");
    opacity: 0.5;
}

.page-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.page-title,
.page-banner-inner h2 {
    font-size: 2.25rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.page-breadcrumb,
.breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.page-breadcrumb a,
.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover,
.breadcrumb a:hover {
    color: white;
}

/* Main Layout */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    margin-top: 1rem;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
	text-align:center;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* 菜单打开时的关闭图标 */
.mobile-toggle.active .hamburger {
    background: transparent;
}
.mobile-toggle.active .hamburger::before,
.mobile-toggle.active .hamburger::after {
    top: 0;
    bottom: 0;
}
.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
}
.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* ============================================
 * 3. 首页专用样式 (index.html)
 * ============================================ */

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #000;
}

@media (max-width: 768px) {
    .banner-slider {
        height: auto;
        aspect-ratio: 16 / 6;
    }
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.banner-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.banner-prev,
.banner-next {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.5);
}

.banner-dots {
    display: flex;
    gap: 0.5rem;
}

.banner-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 700px;
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Featured News Grid */
.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.featured-content {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.25rem;
}

.news-showcase {
    flex: 0 0 auto;
    width: 32%;
    aspect-ratio: 4 / 3;
    background: transparent;
    border: none;
    align-self: stretch;
    overflow: hidden;
}

.showcase-header {
    padding: 1.25rem 1.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.more-btn {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.more-btn:hover {
    opacity: 1;
}

.showcase-content {
    padding: 0;
    height: 100%;
}

.showcase-slider {
    position: relative;
    height: 100%;
    padding-bottom: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
}

.slide-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: white;
    width: 30px;
}

/* Side Lists */
.side-lists {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    align-self: flex-start;
}

.list-card {
    background: white;
    border: 1px solid var(--border);
    flex: 1;
}

.list-header {
    padding: 1rem 1.25rem;
    background: var(--secondary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-body {
    padding: 0;
}

.list-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

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

.list-item:hover {
    background: var(--light);
    padding-left: 1.5rem;
}

.item-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-title {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.item-title:hover {
    color: var(--accent);
}

/* 首页右侧新闻文字列表 */
.featured-grid > .list-header {
    flex: 0 0 auto;
    padding: 0.85rem 1.25rem;
    background: var(--primary);
    color: white;
    border-bottom: none;
}

.featured-grid > .list-header span {
    position: relative;
    padding-left: 0.75rem;
    font-size: 1.1rem;
}

.featured-grid > .list-header span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    background: white;
    border-radius: 2px;
    transform: translateY(-50%);
}

.featured-grid .side-lists .list-more {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 0;
}

.featured-grid .side-lists .list-more .more-btn {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 1;
}

.featured-grid .side-lists .list-more .more-btn:hover {
    color: var(--primary);
}

.featured-grid .side-lists .list-card {
    display: flex;
    flex-direction: column;
    flex: none;
    height: auto;
    background: white;
    border: none;
    box-shadow: none;
}

.featured-grid .side-lists .list-body {
    display: flex;
    flex-direction: column;
}

.featured-grid .side-lists .list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 0.82rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
}

.featured-grid .side-lists .list-item:hover {
    background: #f8fbff;
    padding-left: 1.25rem;
}

.featured-grid .side-lists .item-title {
    position: relative;
    order: 1;
    flex: 1;
    min-width: 0;
    padding-left: 0.9rem;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-grid .side-lists .item-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.featured-grid .side-lists .item-date {
    order: 2;
    flex: 0 0 auto;
    margin: 0;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Quick Links Bar */
.quick-bar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
	
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-item {
    display: block;
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.quick-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    /*background: var(--primary);*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*border-radius: 50%;*/
}

.quick-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quick-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quick-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}


/* News Archive */
.archive-section {
    margin: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 600;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--primary);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.archive-card {
    background: white;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.archive-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    position: relative;
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.25rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
 * 4. 教师列表页样式 (jsdw.html)
 * ============================================ */

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.filter-tab {
    padding: 0.65rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* Teacher Grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.teacher-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.teacher-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.teacher-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.teacher-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light), #e8eef4);
}

.teacher-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.teacher-card:hover .teacher-photo {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.teacher-info {
    padding: 1.25rem;
    text-align: center;
}

.teacher-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.teacher-title {
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.teacher-department {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: none;
}

.teacher-card:hover .teacher-name {
    color: var(--accent);
}

/* ============================================
 * 5. 教师详情页样式 (teacher-detail.html)
 * ============================================ */

/* Profile Card */
.profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.profile-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light), #e8eef4);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.profile-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.profile-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.teacher-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.teacher-title {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text);
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Content Section */
.content-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    *border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.section-content {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.9;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Research Interests */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.research-tag {
    padding: 0.5rem 1rem;
    background: var(--light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-period {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Publications */
.publication-list {
    list-style: none;
}

.publication-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

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

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

.publication-title {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.publication-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
 * 6. 领导页面样式 (leaders.html)
 * ============================================ */

/* Leaders Grid - Dynamic Layout */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

/* First row - 1 card (centered) */
.leaders-grid .leader-card:nth-child(1) {
    grid-column: 3 / span 2;
    grid-row: 1;
}

/* First row - 2 cards (centered) */
.leaders-grid .leader-card:nth-child(1):not(:only-child) {
    grid-column: 2 / span 2;
}

.leaders-grid .leader-card:nth-child(2) {
    grid-column: 4 / span 2;
    grid-row: 1;
}

/* Second row - 3 cards */
.leaders-grid .leader-card:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.leaders-grid .leader-card:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.leaders-grid .leader-card:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

/* Leader Card */
.leader-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.leader-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Leader Card - Unified Layout */
.leader-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.leader-photo-wrapper {
    position: relative;
    width: 50%;
    padding-top: 66.66%;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light), #e8eef4);
    border-radius: 8px;
}

.leader-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    display: flex;
    flex-direction: column;
}

.leader-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.leader-position {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.leader-responsibilities {
    flex: 1;
}

.responsibilities-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.responsibilities-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
}

.responsibilities-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
    text-align: justify;
}

/* Secretary card - highlighted style */
.leader-card.secretary {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(2, 79, 167, 0.15);
}

/* Dean card - highlighted style */
.leader-card.dean {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(2, 79, 167, 0.15);
}

.leader-card.secretary:hover,
.leader-card.dean:hover {
    box-shadow: 0 12px 32px rgba(2, 79, 167, 0.2);
    transform: translateY(-6px);
}

.leader-card.secretary .leader-name,
.leader-card.dean .leader-name {
    color: var(--primary);
    font-size: 1.75rem;
}

.leader-card.secretary .leader-position,
.leader-card.dean .leader-position {
    border-bottom-color: var(--primary);
}

/* Standard leader cards */
.leader-card.standard:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* ============================================
 * 7. 文章列表页样式 (article-list.html)
 * ============================================ */

/* Article List */
.article-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.article-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
	
}

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

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

.article-link {
    text-decoration: none;
    color: inherit;
}

/* 文章列表页标题样式 */
.article-list .article-title {
    /* ========== 文章列表页标题字体大小设置 ========== */
    /* 可根据需要修改以下 font-size 值来调整文字大小 */
    /* 常用参考值：0.75rem(较小) | 0.85rem(适中) | 0.95rem(标准) | 1rem(较大) */
    font-size: 0.95rem;
    /*font-weight: 500;*/
    color: var(--text);
    line-height: 1.5;
    transition: color 0.2s;
    text-decoration: none;
    flex: 1;
    margin-right: 1.5rem;
	text-align:left;
}

.article-title:hover {
    color: var(--accent);
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-date {
    /* 文章列表页日期字体大小，与标题协调 */
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Class Page */
.class-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.class-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.class-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, rgba(9, 89, 210, 0.08), rgba(4, 132, 170, 0.08));
    border-bottom: 1px solid var(--border);
}

.class-section-header h2 {
    position: relative;
    margin: 0;
    padding-left: 0.75rem;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.class-section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateY(-50%);
}

.class-more {
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.class-more:hover {
    color: var(--primary);
}

.class-section .article-list {
    border: none;
    border-radius: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.page-link {
    padding: 0.65rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination a:hover,
.page-link:hover {
    background: var(--light);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    padding: 0.65rem 1.25rem;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    font-size: 0.9rem;
    border-radius: 4px;
}

.pagination a.disabled,
.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination a.disabled:hover,
.page-link.disabled:hover {
    background: white;
    border-color: var(--border);
    color: var(--text);
}

/* ============================================
 * 8. 文章详情页样式 (article-detail.html)
 * ============================================ */

/* Article Detail */
.article-detail {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 1.5rem;
	text-align:center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
	justify-content: center; 
    width: 100%; 
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 500;
    color: var(--text);
}

/* Article Content */
.article-content-wrapper {
    padding: 3rem;
}
.article-content2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
    text-align: justify;
    margin-bottom: 1.5rem;
}
.article-content2 table{
  margin-left: auto;
  margin-right: auto;
  /* 可选：设置表格宽度，如果不设置，表格会根据内容撑开 */
  /* width: 80%; */
}

/* 强制统一文章内容的样式 */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* 强制重置所有子元素样式 */
.article-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.article-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
    color: #1a1a1a !important;
    text-align: justify !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    font-weight: 600 !important;
    color: #024fa7 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.article-content h1 { font-size: 28px !important; }
.article-content h2 { font-size: 24px !important; }
.article-content h3 { font-size: 20px !important; }
.article-content h4 { font-size: 18px !important; }
.article-content h5 { font-size: 16px !important; }
.article-content h6 { font-size: 14px !important; }

.article-content strong,
.article-content b {
    font-weight: 600 !important;
}

.article-content em,
.article-content i {
    font-style: italic !important;
}

.article-content a {
    color: #024fa7 !important;
    text-decoration: underline !important;
    transition: color 0.2s !important;
}

.article-content a:hover {
    color: #1e3a5f !important;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 !important;
    padding-left: 2rem !important;
}

.article-content li {
    margin-bottom: 0.75rem !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.article-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 1rem auto !important;
    display: block !important;
}

.article-content table {
    width: 80% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem auto !important;
    font-size: 14px !important;
    border: 1px solid #60a5fa !important;
    display: table !important;
}

.article-content th,
.article-content td {
    padding: 0.9rem 0.75rem !important;
    border: 1px solid #93c5fd !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    transition: background 0.2s ease !important;
}

.article-content td:hover {
    background: #e5e7eb !important;
}

.article-content blockquote {
    border-left: 4px solid #024fa7 !important;
    padding-left: 1.5rem !important;
    margin: 1.5rem 0 !important;
    color: #6b7280 !important;
    font-style: italic !important;
}

/* Article Attachments */
.fujian {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}

.fujian-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dbeafe;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.fujian-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.fujian-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fujian-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fujian-list a:hover {
    color: var(--primary);
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateX(4px);
}

/* Article Actions */
.article-actions {
    padding: 2rem;
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--secondary);
}

/* Teacher Category Buttons */
.teacher-category-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.teacher-category-buttons a.teacher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.teacher-category-buttons a.teacher-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 79, 167, 0.2);
    text-decoration: none !important;
}

/* ============================================
 * 9. 教学系部页面样式 (ssds.html)
 * ============================================ */

/* Department Section */
.department-section {
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Department Grid */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Department Card */
.department-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.department-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags .tag {
    padding: 0.35rem 0.85rem;
    background: var(--light);
    color: var(--secondary);
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Research Section */
.research-section {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.research-group {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.group-header {
    background: var(--secondary);
    padding: 1.25rem 1.5rem;
}

.group-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.group-list {
    padding: 0.5rem;
}

.research-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.research-item:last-child {
    margin-bottom: 0;
}

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

.item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
 * 10. 机构设置页样式 (org.html, onepage.html)
 * ============================================ */

/* Org Chart */
.org-chart {
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Level */
.org-top {
    text-align: center;
    margin-bottom: 3rem;
}

.org-top-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    display: inline-block;
}

.org-top-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.org-top-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Org Section */
.org-section {
    margin-bottom: 3rem;
}

.org-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.org-section-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.org-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Org Grid */
.org-grid {
    display: grid;
    gap: 1.5rem;
}

.org-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.org-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.org-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Org Card */
.org-card {
    background: white;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.org-card:hover::before {
    transform: scaleX(1);
}

.org-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.org-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--light), #e0e7ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.org-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.org-card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Department Section */
.dept-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dept-header {
    background: var(--secondary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dept-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.dept-title {
    font-size: 1rem;
    font-weight: 600;
}

.dept-content {
    padding: 1rem;
}

.dept-offices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dept-office {
    padding: 0.75rem 1.25rem;
    background: var(--light);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

/* ============================================
 * 10. 响应式布局
 * ============================================ */

@media (max-width: 1024px) {
    /* 首页 */
    .featured-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .news-showcase {
        flex: none;
        width: 100%;
        height: auto;
        align-self: auto;
    }
    .showcase-slider {
        height: 0;
        padding-bottom: 75%;
    }
    .featured-grid .side-lists {
        width: 100%;
        align-self: auto;
    }
    .featured-grid .side-lists .list-card {
        height: auto;
    }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* 教师详情页 */
    .profile-card { grid-template-columns: 1fr; }
    
    /* 领导页面 */
    .leaders-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* 机构设置页 */
    .org-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .org-grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    /* 公共 */
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    .hero-text h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* 顶部栏 */
    .top-bar { display: none; }
    
    /* 头部 */
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        position: relative;
    }
    
    .brand {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .brand-logo img {
        height: 50px;
        width: auto;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .brand-text p {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 导航 */
    .mobile-toggle {
        display: block;
        position: fixed;
        right: 1rem;
        top: 3rem;
        z-index: 9999;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: rgba(0,0,0,0.2);
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .dropdown a {
        color: white;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    /* 页面标题 */
    .page-title { font-size: 1.75rem; }
    .main-wrapper { padding: 0 1rem 3rem; }
    .class-page { gap: 1.25rem; }
    .class-section-header {
        padding: 0.85rem 1rem;
    }
    .class-section-header h2 {
        font-size: 1.05rem;
    }
    .class-more {
        font-size: 0.85rem;
    }
    
    /* 领导页面 - 手机端单列显示 */
    .leaders-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .leaders-grid .leader-card:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    /* 师资队伍页面按钮 - 手机端单列显示 */
    .teacher-category-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .teacher-category-buttons a.teacher-btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* 教师详情页 - 手机端适配 */
    .article-content2 {
        font-size: 14px;
        padding: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .article-content2 table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 500px !important;
        table-layout: fixed !important;
        display: table !important;
        border-collapse: collapse !important;
    }
    .article-content2 table tbody {
        display: table-row-group !important;
    }
    .article-content2 table tr {
        display: table-row !important;
        border-bottom: none !important;
    }
    .article-content2 table td {
        display: table-cell !important;
        box-sizing: border-box;
        word-break: break-all;
        white-space: normal !important;
        padding: 6px 8px !important;
        border: 1px solid #000 !important;
        height: auto !important;
        vertical-align: top !important;
    }
    .article-content2 img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }
    .article-content2 p {
        word-break: break-all;
        hyphens: auto;
        font-size: 14px;
        margin: 0.5rem 0;
    }
    
    /* 首页幻灯片 */
    .banner-controls { bottom: 1rem; }
    .banner-prev, .banner-next { width: 30px; height: 30px; font-size: 1rem; }
    .banner-dot { width: 8px; height: 8px; }
    
    /* 首页图片新闻展示区 */
    .news-showcase {
        margin-top: 1.5rem;
    }
    .showcase-slider {
        height: 0;
        padding-bottom: 75%;
    }
    .slide-overlay h4 {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* 首页 */
    .hero { height: auto; min-height: 350px; padding: 1.5rem 0; margin-top: 0rem; }
    .hero-content { padding: 0 1rem; flex-direction: column; justify-content: center; align-items: flex-start; }
    .hero-text { display: block; max-width: none; width: 100%; }
    .hero-tag { font-size: 0.75rem; padding: 0.4rem 1rem; margin-bottom: 1rem; }
    .hero-text h2 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1rem; }
    .hero-text > p { display: block; font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; opacity: 0.9; }
    .hero-stats {
        display: grid !important;
        grid-template-columns: 50% 50%;
        gap: 0;
        padding: 0;
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1.5rem;
    }
    .stat-item {
        text-align: center;
        padding: 0.75rem 0;
        background: transparent;
        border-radius: 0;
        width: 100%;
    }
    .stat-item h3 { font-size: 1.5rem; margin-bottom: 0.25rem; color: white; }
    .stat-item p { font-size: 0.75rem; color: rgba(255,255,255,0.9); margin: 0; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: 1fr; }
    
    /* 教师列表页 */
    .filter-tabs { flex-wrap: wrap; }
    
    /* 教师详情页 */
    .info-grid { grid-template-columns: 1fr; }
    .teacher-name { font-size: 1.5rem; }
    
    /* 领导页面 */
    .leaders-grid { grid-template-columns: 1fr; }
    .leader-card.secretary,
    .leader-card.standard:nth-of-type(2),
    .leader-card.standard:nth-of-type(3),
    .leader-card.standard:nth-of-type(4) {
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 100% !important;
    }
    
    /* 机构设置页 */
    .org-grid-2,
    .org-grid-3,
    .org-grid-4 {
        grid-template-columns: 1fr;
    }
    .org-top-box { padding: 1rem 2rem; }
    
    /* 分页区域 */
    .pagination {
        justify-content: space-between;
        padding: 0.5rem 0;
        flex-wrap: nowrap;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .pagination .current,
    .pagination span:not(.prev):not(.next),
    .pagination a:not(.prev):not(.next) {
        display: none;
    }
    .pagination a.prev,
    .pagination a.next {
        min-width: 80px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
    }
    
    /* 教学系部页面 */
    .department-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .dept-offices { justify-content: center; }
    
    /* 文章详情页 */
    .article-content-wrapper { padding: 1.5rem; }
    .fujian {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    .fujian-list a {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }
    .article-actions {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* 底部 */
    .footer-main { display: none; }
}

/* ============================================
 * 11. 师资队伍模块样式 (首页)
 * ============================================ */

/* Faculty Section */
.faculty-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.faculty-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
	border:0px;
}

.faculty-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.faculty-section .view-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.faculty-section .view-all:hover {
    text-decoration: underline;
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Faculty Card */
.faculty-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.faculty-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Faculty Avatar */
.faculty-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    /*border: 3px solid var(--border);*/
    transition: border-color 0.3s;
}

.faculty-card:hover .faculty-avatar {
    border-color: var(--accent);
}

.faculty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Faculty Info */
.faculty-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.faculty-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.faculty-title {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
}

.faculty-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* jsdw Page - Teacher Name Grid */
.teacher-name-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1rem;
}

.teacher-name-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: white;
    /*border: 1px solid var(--border);*/
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.teacher-name-item:hover {
    /*background: var(--primary);
    color: white;
    border-color: var(--primary);*/
	color: var(--primary);
    transform: translateY(-2px);
    /*box-shadow: 0 4px 12px rgba(2, 79, 167, 0.15);*/
}

/* Responsive for Faculty Section */
@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .faculty-section {
        padding: 1.5rem 0;
    }
    
    .faculty-card {
        padding: 1rem;
    }
    
    .faculty-avatar {
        width: 80px;
        height: 80px;
    }
    
    .faculty-name {
        font-size: 1rem;
    }
    
    .faculty-title {
        font-size: 0.75rem;
    }
    
    .faculty-desc {
        font-size: 0.7rem;
    }
    
    .teacher-name-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .teacher-name-item {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* ============================================
 * 12. 科研平台模块样式 (首页)
 * ============================================ */

/* Research Section */
.research-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.research-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.research-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.research-section .view-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.research-section .view-all:hover {
    text-decoration: underline;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Research Card */
.research-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.research-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Research Icon */
.research-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Research Info */
.research-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.research-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.research-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive for Research Section */
@media (max-width: 768px) {
    .research-section {
        padding: 1.5rem 0;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .research-card {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .research-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .research-name {
        font-size: 1rem;
    }
    
    .research-desc {
        font-size: 0.8rem;
    }
}



/* ============================================
 * 21. 快速访问模块样式 (首页)
 * ============================================ */

/* Quick Access Section */
.quick-access-section {
    padding: 2rem 0;
    margin-bottom: 0rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Quick Access Card */
.quick-access-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
}

.quick-access-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Quick Access Icon */
.quick-access-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
}

.quick-access-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quick Access Info */
.quick-access-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.quick-access-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive for Quick Access Section */
@media (max-width: 768px) {
    .quick-access-section {
        padding: 1.5rem 0;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-access-card {
        padding: 1.5rem;
    }
    
    .quick-access-icon {
        width: 64px;
        height: 64px;
    }
    
    .quick-access-title {
        font-size: 1.1rem;
    }
    
    .quick-access-desc {
        font-size: 0.85rem;
    }
}
