/* ===================================================
   山东工商学院 官方网站 - 青春版主题样式
   主色调: 深蓝 #0a2e5c | 金色 #ffd700
   辅色调: 青蓝 #00b4d8 | 珊瑚 #ff6b6b | 渐变绿 #06d6a0
   =================================================== */

/* ===== CSS 变量 ===== */
:root {
    --primary: #0a2e5c;
    --primary-light: #13478a;
    --primary-dark: #061c3a;
    --gold: #ffd700;
    --gold-light: #ffe44d;
    --cyan: #00b4d8;
    --coral: #ff6b6b;
    --green: #06d6a0;
    --bg-light: #f0f4ff;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-lighter: #b2bec3;
    --shadow-sm: 0 2px 8px rgba(10, 46, 92, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 46, 92, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 46, 92, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 顶部工具栏 ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .top-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.top-bar .top-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.top-bar .top-links a {
    color: rgba(255, 255, 255, 0.75);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    transition: var(--transition);
}

.top-bar .top-links a:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.top-bar .top-links a.highlight {
    color: var(--gold);
    font-weight: 600;
}

/* ===== 头部 Logo ===== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e5aa0 100%);
    padding: 18px 0;
    border-bottom: 4px solid var(--gold);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    inset: 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.03'%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");
    pointer-events: none;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.header .logo-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--gold);
    border: 2px solid rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.header .logo-text h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .logo-text .sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    margin-top: 2px;
}

.header .logo-text .en {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: center;
    position: relative;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--primary);
    background: rgba(10, 46, 92, 0.04);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar ul li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Hero 滑块的渐变背景 ===== */
.slide-bg-1 .slide-bg {
    background: linear-gradient(135deg, #0a2e5c 0%, #1a4a8a 30%, #2a6aaa 50%, #1a4a8a 70%, #0a2e5c 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}
.slide-bg-2 .slide-bg {
    background: linear-gradient(135deg, #061c3a 0%, #0a2e5c 25%, #13478a 50%, #00b4d8 75%, #0a2e5c 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}
.slide-bg-3 .slide-bg {
    background: linear-gradient(135deg, #0a2e5c 0%, #13478a 20%, #06d6a0 50%, #0a2e5c 80%, #061c3a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 新闻图片渐变背景 ===== */
.news-bg-1 { background: linear-gradient(135deg, #0a2e5c, #1a4a8a, #00b4d8); }
.news-bg-2 { background: linear-gradient(135deg, #061c3a, #13478a, #ffd700); }
.news-bg-3 { background: linear-gradient(135deg, #0a2e5c, #06d6a0, #00b4d8); }
.news-bg-4 { background: linear-gradient(135deg, #1a4a8a, #ff6b6b, #ffd700); }
.news-bg-5 { background: linear-gradient(135deg, #13478a, #0a2e5c, #06d6a0); }

/* ===== 校园风采渐变背景 ===== */
.gallery-bg-1 {
    background: linear-gradient(135deg, #0a2e5c 0%, #1a4a8a 50%, #2a6aaa 100%);
    position: relative;
    overflow: hidden;
}
.gallery-bg-1::before {
    content: '🏛️';
    position: absolute;
    font-size: 80px;
    right: -10px;
    bottom: -10px;
    opacity: 0.15;
}
.gallery-bg-2 {
    background: linear-gradient(135deg, #13478a 0%, #00b4d8 50%, #06d6a0 100%);
    position: relative;
    overflow: hidden;
}
.gallery-bg-2::before {
    content: '🎓';
    position: absolute;
    font-size: 70px;
    right: -5px;
    bottom: -5px;
    opacity: 0.15;
}
.gallery-bg-3 {
    background: linear-gradient(135deg, #061c3a 0%, #0a2e5c 50%, #1a4a8a 100%);
    position: relative;
    overflow: hidden;
}
.gallery-bg-3::before {
    content: '📚';
    position: absolute;
    font-size: 75px;
    right: -8px;
    bottom: -8px;
    opacity: 0.15;
}
.gallery-bg-4 {
    background: linear-gradient(135deg, #1a4a8a 0%, #2a6aaa 50%, #00b4d8 100%);
    position: relative;
    overflow: hidden;
}
.gallery-bg-4::before {
    content: '📖';
    position: absolute;
    font-size: 70px;
    right: -5px;
    bottom: -5px;
    opacity: 0.15;
}
.gallery-bg-5 {
    background: linear-gradient(135deg, #0a2e5c 0%, #ffd700 50%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}
.gallery-bg-5::before {
    content: '🎉';
    position: absolute;
    font-size: 65px;
    right: -5px;
    bottom: -5px;
    opacity: 0.15;
}

/* ===== Hero 轮播 ===== */
.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease, transform 1.2s ease;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide .slide-bg {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(1.1);
    transition: transform 8s ease;
}

.hero-slide.active .slide-bg {
    transform: scale(1.1);
}

.hero-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 46, 92, 0.7) 0%,
        rgba(10, 46, 92, 0.3) 50%,
        rgba(0, 180, 216, 0.15) 100%
    );
}

.hero-slide .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

.hero-slide .slide-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 2px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.hero-slide.active .slide-badge {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .slide-title {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 6px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.5s;
}

.hero-slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .slide-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.7s;
}

.hero-slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .slide-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.9s;
}

.hero-slide.active .slide-actions {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary) !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.45);
}

.hero-btn-outline {
    display: inline-block;
    color: #fff !important;
    padding: 13px 38px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    margin-left: 12px;
}

.hero-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 轮播指示器 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--gold);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* ===== 校训条幅 ===== */
.motto-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: var(--gold);
    text-align: center;
    padding: 20px 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 14px;
    position: relative;
    overflow: hidden;
}

.motto-bar::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.08), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

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

.motto-bar small {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 6px;
    margin-top: 4px;
    font-weight: 400;
}

/* ===== 通用 Section ===== */
section { padding: 72px 0; }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 14px auto 16px;
    border-radius: 4px;
}

.section-title p {
    color: var(--text-lighter);
    font-size: 15px;
}

/* ===== 学校概况 ===== */
.about-section {
    background: var(--bg-light);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-grid .about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 15px;
    text-indent: 2em;
    line-height: 1.9;
}

.about-grid .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

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

.stat-card .number {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .number span {
    font-size: 16px;
    color: var(--gold);
}

.stat-card .label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== 新闻网格 ===== */
.news-section { position: relative; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card .news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-card .news-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-img::after {
    opacity: 1;
}

.news-card .news-img .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.5;
}

.news-card .news-body {
    padding: 22px;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-light), #e0e8f5);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.news-date {
    color: var(--text-lighter);
    font-size: 12px;
}

.news-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-card:hover h3 {
    color: var(--primary);
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 新闻列表页 ===== */
.news-list { max-width: 820px; margin: 0 auto; }

.news-list-item {
    display: flex;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 18px;
    transition: var(--transition);
    background: #fff;
}

.news-list-item:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.news-list-icon {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.news-detail-bg {
    border-radius: var(--radius-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.news-list-body { flex: 1; }

.news-list-body h3 {
    font-size: 18px;
    color: var(--text);
    margin: 8px 0 8px;
    line-height: 1.5;
    transition: color 0.3s;
}

.news-list-item:hover .news-list-body h3 {
    color: var(--primary);
}

.news-list-body p {
    color: var(--text-light);
    font-size: 14px;
}

.filter-tag {
    display: inline-block;
    padding: 7px 20px;
    margin: 0 4px 8px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    cursor: pointer;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ===== 学院网格 ===== */
.colleges-section {
    background: var(--bg-light);
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.college-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.college-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--cyan), var(--coral));
    opacity: 0;
    transition: opacity 0.3s;
}

.college-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.college-card:hover::after {
    opacity: 1;
}

.college-card .icon {
    font-size: 40px;
    margin-bottom: 14px;
    display: block;
}

.college-card h4 {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}

.college-card p {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 学院全列表 ===== */
.colleges-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.college-full-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    transition: var(--transition);
}

.college-full-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.college-full-icon { font-size: 50px; margin-bottom: 16px; display: block; }

.college-full-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.college-full-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.college-link {
    display: inline-block;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

/* ===== 信息卡片 ===== */
.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 校园服务 ===== */
.service-section { position: relative; }

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-link-card {
    display: block;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-card .ql-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.quick-link-card:hover .ql-icon {
    transform: scale(1.2);
}

.quick-link-card .ql-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.quick-link-card:hover .ql-label {
    color: #fff;
}

.quick-link-card .ql-desc {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 4px;
    display: block;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.quick-link-card:hover .ql-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 快速链接（旧版兼容） ===== */
.quick-links-old {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.quick-links-old a {
    display: block;
    text-align: center;
    padding: 18px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.quick-links-old a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 校园风采 ===== */
.campus-section { background: var(--bg-light); }

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.campus-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.campus-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.campus-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.campus-gallery-item .gallery-label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.campus-gallery-item:first-child .gallery-label {
    font-size: 24px;
}

.campus-gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 46, 92, 0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.campus-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.campus-gallery-item .gallery-overlay span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* ===== 我们的优势 ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff, var(--bg-light));
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.advantage-card .adv-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
}

.advantage-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 国际合作 ===== */
.intl-section { background: var(--bg-light); }

.intl-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.intl-logos .partner {
    background: var(--bg-card);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.intl-logos .partner:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.partner-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-card h4 { font-size: 14px; color: var(--primary); margin: 10px 0 4px; }
.partner-card p { font-size: 12px; color: var(--text-lighter); }

/* ===== 页面横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e5aa0 100%);
    color: #fff;
    text-align: center;
    padding: 56px 20px 48px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 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.03'%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");
}

.page-banner h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ===== 关于页详情 ===== */
.about-detail {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-detail-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-detail-text p {
    margin-bottom: 14px;
    color: var(--text-light);
    text-indent: 2em;
    line-height: 1.9;
}

/* 时间线 */
.timeline {
    border-left: 3px solid var(--gold);
    padding-left: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 28px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .year {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.timeline-item .desc {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 24px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--cyan), var(--coral), var(--green), var(--gold));
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

footer .footer-brand h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

footer .footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

footer .footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

footer .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

footer .footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    transition: var(--transition);
}

footer .footer-col a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

footer .footer-bottom a:hover {
    color: var(--gold);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-detail { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .colleges-grid { grid-template-columns: repeat(3, 1fr); }
    .colleges-full-grid { grid-template-columns: 1fr 1fr; }
    .quick-links { grid-template-columns: repeat(3, 1fr); }
    .quick-links-old { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .campus-gallery { grid-template-columns: repeat(2, 1fr); }
    .campus-gallery-item:first-child { grid-column: span 2; grid-row: span 1; height: 220px; }
    footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-carousel { height: 440px; }
    .hero-slide .slide-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .advantages-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .navbar ul { flex-wrap: wrap; justify-content: flex-start; overflow-x: auto; }
    .navbar ul li a { padding: 10px 14px; font-size: 13px; }
    .header .logo-text h1 { font-size: 20px; letter-spacing: 2px; }
    .header .logo-icon { width: 48px; height: 48px; font-size: 18px; }
    .hero-carousel { height: 360px; }
    .hero-slide .slide-title { font-size: 26px; letter-spacing: 3px; }
    .hero-slide .slide-subtitle { font-size: 15px; }
    .hero-btn { padding: 11px 28px; font-size: 14px; }
    .hero-btn-outline { padding: 10px 26px; font-size: 14px; margin-left: 8px; }
    .news-grid { grid-template-columns: 1fr; }
    .colleges-grid { grid-template-columns: 1fr 1fr; }
    .colleges-full-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: 1fr 1fr; }
    .quick-links-old { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .campus-gallery { grid-template-columns: 1fr; }
    .campus-gallery-item:first-child { grid-column: span 1; }
    footer .footer-grid { grid-template-columns: 1fr; }
    .motto-bar { font-size: 18px; letter-spacing: 6px; }
    .page-banner h2 { font-size: 24px; }
    .news-list-item { flex-direction: column; }
    .about-grid .about-stats { grid-template-columns: 1fr 1fr; }
    .carousel-arrow { display: none; }
    section { padding: 48px 0; }
}


/* ===== 粒子背景（英雄区） ===== */
.hero-particles {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-particle {
    position: absolute; width: 6px; height: 6px;
    background: rgba(255, 215, 0, 0.4); border-radius: 50%;
    animation: heroFloat 20s ease-in-out infinite;
}
.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 25%; animation-delay: -3s; width: 4px; height: 4px; }
.hero-particle:nth-child(3) { left: 45%; animation-delay: -6s; width: 8px; height: 8px; }
.hero-particle:nth-child(4) { left: 65%; animation-delay: -9s; }
.hero-particle:nth-child(5) { left: 80%; animation-delay: -12s; width: 3px; height: 3px; }
.hero-particle:nth-child(6) { left: 35%; animation-delay: -15s; width: 5px; height: 5px; }
.hero-particle:nth-child(7) { left: 55%; animation-delay: -5s; width: 7px; height: 7px; }
.hero-particle:nth-child(8) { left: 90%; animation-delay: -8s; }
.hero-particle:nth-child(9) { left: 15%; animation-delay: -11s; width: 3px; height: 3px; }
.hero-particle:nth-child(10) { left: 75%; animation-delay: -14s; width: 5px; height: 5px; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-50%) translateX(30px); }
    90% { opacity: 1; }
    100% { transform: translateY(-200%) translateX(-20px); opacity: 0; }
}

/* ===== 发光标题 ===== */
.hero-slide .slide-title {
    background: linear-gradient(135deg, #fff 0%, #ffe44d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 10px rgba(255,215,0,0.2));
}

/* ===== 加载屏 ===== */
.page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: linear-gradient(135deg, #061c3a, #0a2e5c, #13478a);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.page-loader .loader-spinner {
    width: 60px; height: 60px; border-radius: 50%;
    border: 4px solid rgba(255, 215, 0, 0.15);
    border-top-color: #ffd700;
    animation: spin 1s linear infinite; margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader .loader-text {
    color: rgba(255,255,255,0.7); font-size: 15px; letter-spacing: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== 学生感言 ===== */
.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #061c3a, #0a2e5c);
    color: #fff;
}
.testimonials-section::before {
    content: ''; position: absolute; inset: 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.03'%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");
    pointer-events: none;
}
.testimonials-section .section-title h2 { color: #ffd700; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    position: relative; z-index: 1;
}
.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 32px 28px;
    backdrop-filter: blur(8px); transition: all 0.3s ease;
    position: relative;
}
.testimonial-card::before {
    content: '"\201C"'; position: absolute; top: 8px; left: 20px;
    font-size: 60px; color: #ffd700; opacity: 0.2;
    font-family: Georgia, serif; line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,215,0,0.2);
}
.testimonial-card .quote {
    font-size: 14px; line-height: 1.8;
    color: rgba(255,255,255,0.8); margin-bottom: 20px;
    position: relative; z-index: 1;
}
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffe44d);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #0a2e5c; font-size: 16px;
}
.testimonial-card .author-info .name { font-size: 14px; font-weight: 600; color: #fff; }
.testimonial-card .author-info .major { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== 暗色模式 ===== */
.theme-toggle {
    position: fixed; bottom: 90px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #0a2e5c, #13478a);
    color: #fff; border: none; cursor: pointer; font-size: 18px;
    box-shadow: 0 8px 30px rgba(10,46,92,0.12);
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
}
.theme-toggle.visible { opacity: 1; transform: translateY(0); }
.theme-toggle:hover { transform: translateY(-3px) scale(1.1); }

body.dark-mode { background: #0a0e1a; color: #e0e0e0; }
body.dark-mode .navbar { background: rgba(10,14,26,0.95); border-bottom-color: rgba(255,255,255,0.06); }
body.dark-mode .navbar ul li a { color: #ccc; }
body.dark-mode .navbar ul li a:hover,
body.dark-mode .navbar ul li a.active { color: #ffd700; }
body.dark-mode section,
body.dark-mode .about-section,
body.dark-mode .colleges-section,
body.dark-mode .campus-section,
body.dark-mode .intl-section,
body.dark-mode .news-section { background: #0f1525; }
body.dark-mode .stat-card,
body.dark-mode .news-card,
body.dark-mode .college-card,
body.dark-mode .quick-link-card,
body.dark-mode .info-card,
body.dark-mode .intl-logos .partner,
body.dark-mode .advantage-card { background: #1a2040; border-color: rgba(255,255,255,0.06); }
body.dark-mode .news-card h3,
body.dark-mode .college-card h4,
body.dark-mode .quick-link-card .ql-label,
body.dark-mode .stat-card .number,
body.dark-mode .section-title h2 { color: #e0e0e0; }
body.dark-mode .section-title h2 { color: #ffd700; }

/* ===== 浮动快捷菜单 ===== */
.float-menu {
    position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
    z-index: 999; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transition: opacity 0.5s ease;
}
.float-menu.visible { opacity: 1; }
.float-menu a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}
.float-menu a:hover { transform: scale(1.15); box-shadow: 0 4px 20px rgba(10,46,92,0.2); }
.float-menu a .tooltip {
    position: absolute; right: 50px; background: #0a2e5c;
    color: #fff; padding: 4px 12px; border-radius: 6px;
    font-size: 12px; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.float-menu a:hover .tooltip { opacity: 1; }

@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .float-menu { display: none; }
}
@media (max-width: 640px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .theme-toggle { bottom: 80px; right: 16px; width: 38px; height: 38px; }
}
