* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect width="800" height="400" fill="%23f59e0b" opacity="0.1"/><rect x="600" y="200" width="200" height="150" fill="%23dc2626" opacity="0.8"/><rect x="400" y="180" width="180" height="120" fill="%23dc2626" opacity="0.7"/><rect x="200" y="220" width="160" height="100" fill="%23dc2626" opacity="0.6"/></svg>') no-repeat center right;
    background-size: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-top: 10px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,120 C300,80 600,40 1200,60 L1200,120 Z" fill="white"/></svg>') no-repeat;
    background-size: cover;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb .current {
    color: #2563eb;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.sidebar {
    /* 移除固定宽度，让Bootstrap处理 */
}

.sidebar-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
}

.sidebar-subtitle {
    color: #9ca3af;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    color: #374151;
}

.content {
    /* 移除flex: 1，让Bootstrap处理 */
    width: 100% !important;
    max-width: 100% !important;
}

.content-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.content-description {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.tab-link {
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}

.tab-link:hover {
    color: #2563eb;
}

.tab-link.active {
    color: #2563eb;
    font-weight: 500;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

/* Faculty Grid */
.content .faculty-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.content .faculty-grid .faculty-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    width: auto !important;
    cursor: pointer !important;
}

.content .faculty-grid .faculty-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translate(-5px, 5px) !important;
    border-color: #2563eb !important;
}

.content .faculty-grid .faculty-card .faculty-photo {
    width: 175px !important;
    height: 200px !important;
    background: #f3f4f6 !important;
    border-radius: 0 !important;
    margin: 0 auto 20px !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 150"><rect width="120" height="150" fill="%23e5e7eb"/><circle cx="60" cy="50" r="20" fill="%23d1d5db"/><path d="M30 120 Q60 100 90 120 L90 150 L30 150 Z" fill="%23d1d5db"/></svg>') !important;
    background-size: cover !important;
    background-position: center !important;
}

.content .faculty-grid .faculty-card .faculty-name {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    color: #333 !important;
}

.content .faculty-grid .faculty-card .faculty-position {
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
}

.content .faculty-grid .faculty-card .faculty-description {
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Contact Section */
.contact-section {
    background: #f9fafb;
    padding: 60px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
    font-size: 14px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    font-size: 14px;
}

.contact-label {
    width: 80px;
    color: #666;
    flex-shrink: 0;
}

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.qr-code {
    text-align: center;
}

.qr-image {
    width: 100px;
    height: 100px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 10px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e5e7eb"/><rect x="10" y="10" width="30" height="30" fill="%23374151"/><rect x="60" y="10" width="30" height="30" fill="%23374151"/><rect x="10" y="60" width="30" height="30" fill="%23374151"/><rect x="50" y="50" width="40" height="40" fill="%23374151"/></svg>');
    background-size: cover;
}

.qr-label {
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content .faculty-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
    }

    .content .faculty-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .content .faculty-grid .faculty-card {
        padding: 20px !important;
    }

    .content .faculty-grid .faculty-card:hover {
        transform: translate(-3px, 3px) !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 强制覆盖所有可能的冲突样式 */
.faculty-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
}

.faculty-grid .faculty-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
}

.faculty-grid .faculty-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translate(-5px, 5px) !important;
}

/* 移动端响应式 */
@media (max-width: 1200px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .faculty-grid .faculty-card {
        padding: 20px !important;
    }

    .faculty-grid .faculty-card:hover {
        transform: translate(-3px, 3px) !important;
    }
}

/* ==================== 分页样式 ==================== */
.pagination-container {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
    justify-content: center;
    margin-bottom: 20px;
}

.page-item {
    position: relative;
    display: block;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.page-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.25;
    color: #2563eb;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    z-index: 2;
    color: #1d4ed8;
    text-decoration: none;
    background-color: #f8fafc;
    border-color: #d1d5db;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #2563eb;
    border-color: #2563eb;
}

.page-item.disabled .page-link {
    color: #9ca3af;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #e5e7eb;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
    margin-top: 10px;
}

/* ==================== 无内容提示样式 ==================== */
.no-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
}

.no-content-message {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.no-content-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.no-content-icon svg {
    display: block;
    margin: 0 auto;
    opacity: 0.5;
}

.no-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.no-content-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

.no-content-btn {
    background-color: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.no-content-btn:hover {
    background-color: #1d4ed8;
    color: white;
}

/* ==================== 侧边栏增强样式 ==================== */
.sidebar-menu a.active {
    color: #2563eb;
    font-weight: 500;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.sidebar-menu .inactive-menu {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.sidebar-menu a:hover:not(.active) {
    color: #1d4ed8;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .no-content-message {
        padding: 20px 15px;
    }
    
    .no-content-title {
        font-size: 20px;
    }
    
    .no-content-description {
        font-size: 14px;
    }
    
    .no-content-icon svg {
        width: 80px;
        height: 80px;
    }
}

/* 二级导航栏样式 */
.sub-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  font-size: 18px;
  background: transparent;
}

.sub-nav-link {
  color: #6b7280;
  text-decoration: none;
  padding: 0 4px 6px 4px;
  transition: color 0.2s;
  position: relative;
  font-weight: 500;
}

.sub-nav-link.active,
.sub-nav-link.selected,
.sub-nav-link.active:visited {
  color: #0066cc !important;
}

.sub-nav-link.selected::after,
.sub-nav-link.active::after {
  background: #0066cc;
}