/* ========== 全局变量与基础样式 ========== */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #000000;
    --success: #4ade80;
    --warning: #facc15;
    --error: #ff0000;
    --test: #ee00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0 0px;
    padding: 20px;
}

/* ========== 导航栏样式 ========== */
header {
    background: linear-gradient(180deg, rgba(0, 136, 255, 0.3), rgba(255, 255, 255, 0.3));
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: clamp(20px, 2.4vw, 48px);
    color: var(--primary);
}

.logo h1 {
    font-size: clamp(20px, 2.4vw, 48px);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    /* 背景填充文字 */
    background-clip: text;
    -webkit-background-clip: text;
    /* 文字透明 */
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #151515;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 17px);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* ========== 共用组件样式 ========== */
section {
    padding: 0 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header p {
    font-size: 15px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 10px;
    border-radius: 10px;
}

/* ========== 模块1：公司主页（Main） ========== */
main {
    background-color: rgb(230, 237, 246);
}

/* 公司主页主图全屏自适应填充 */
.responsive-image-container,
.responsive-image {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 模块1：公司简介（About） ========== */
.about {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)),
        url('img/bridge1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 100px 30px 0;
}

/* 外圈渐变消失效果 */
.about::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background:
        /* 水平渐变（左右两侧透明） */
        linear-gradient(to right, rgba(230, 237, 246, 1), transparent 2%, transparent 98%, rgba(230, 237, 246, 1)),
        /* 垂直渐变（上下两侧透明） */
        linear-gradient(to bottom, rgba(230, 237, 246, 1), transparent 2%, transparent 98%, rgba(230, 237, 246, 1));
    background-size: 100% 100%;
    /* 覆盖整个元素 */
    z-index: 2;
    /* 放在原元素下方 */
    pointer-events: none;
    /* 允许点击穿透 */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: clamp(10px, 2vw, 32px);
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
    font-size: clamp(10px, 1.2vw, 16px);
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    height: auto;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    backdrop-filter: blur(2px);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: clamp(15px, 2vw, 24px);
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-item h4 {
    font-size: clamp(10px, 1.2vw, 18px);
    margin-bottom: 5px;
    color: var(--secondary);
}

.stat-item p {
    margin-bottom: 0px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* 公司架构和发展历程样式 */
.company-expansion {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.expansion-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.expansion-btn {
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expansion-btn.active {
    background: var(--primary);
    color: white;
}

.expansion-btn:hover {
    background: var(--primary);
    color: white;
}

.expansion-content {
    width: clamp(100px, 80vw, 3000px);
    max-height: calc(80vh);
    aspect-ratio: 33 / 14;
    margin: auto;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.expansion-content.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-img {
    width: 100%;
    margin: 0;
}

.content-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 模块2：产品服务（Products） ========== */
.products {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        url('img/sky1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    margin: 100px 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 5vw, 100px);
}

.product-grid a {
    text-decoration: none;
}

@media (min-width: 1800px) {
    .product-grid {
        gap: 10vw;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: clamp(100px, 15vw, 400px);
    width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img .responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

.product-info {
    padding: clamp(10px, 2vw, 25px);
}

.product-info h3 {
    font-size: clamp(15px, 1.5vw, 30px);
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-info p {
    font-size: clamp(10px, 1vw, 20px);
    color: #666;
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.tag {
    background: #eef2ff;
    color: var(--primary);
    padding: clamp(5px, 0.5vw, 15px) clamp(10px, 1vw, 30px);
    border-radius: clamp(20px, 2vw, 30px);
    font-size: clamp(3px, 0.8vw, 14px);
    font-weight: 500;
}

/* ========== 模块3：培训课程（Courses） ========== */
.courses {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1)),
        url('img/school2.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    margin: 100px 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.course-item {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.3);
}

.course-icon {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.course-details h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.course-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #373737;
}

.enroll-btn-grid {
    display: flex;
    justify-content: center;
}

.enroll-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.enroll-btn-all-grid {
    display: flex;
    width: 100%;
    justify-content: center;
}

.enroll-btn-all {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ========== 模块4：新闻公告（articles） ========== */
.articles {
    background: linear-gradient(-45deg, #c8e9ff, #f5f7fa, #e1ffe7, #f6ffed);
    border-radius: 30px;
    margin: 100px 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: gradientFlow 10s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container-articles {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    margin-top: 0px;
    padding: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 0px;
}

.articles-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.articles-card a {
    text-decoration: none;
}

.articles-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1150px) {
    .articles-grid .articles-card:nth-child(2) {
        display: none !important;
    }
}

.articles-content {
    height: 390px;
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.articles-content h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.4;
}

.articles-content .textp {
    text-indent: 2em;
    display: -webkit-box;
    font-size: 16px !important;
    line-clamp: 10;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    color: #666;
    flex-grow: 1;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articles-date {
    display: inline-block;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.recent-articles {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 300px;
    height: 500px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 0 30px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.recent-articles h3 {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.articles-more {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto 0 10px;
}

.articles-links {
    list-style: none;
    /* 移除列表的默认样式 */
    padding: 0 15px;
}

.articles-links li {
    margin-bottom: 15px;
}

.articles-links a {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    align-items: center;
    gap: 10px;
}

.articles-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.all-articles-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.all-articles-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* ========== 模块5：关于我们（About Us/Team） ========== */
.about-us {
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border-radius: 30px;
    margin: 100px 30px 0;
}

.founder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(3 * 100vw);
    margin: 0 -80px;
}

.card {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    width: 100vw;
    border-top: none !important;
    border-bottom: none !important;
}

.founder-card {
    display: flex;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    max-width: clamp(500px, 70vw, 800px);
    width: 100%;
    margin: 10px 0;
}

.founder-left,
.founder-right {
    padding: 1.5vw;
}

.founder-left {
    width: clamp(200px, 25vw, 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

.founder-left img {
    /* 最小150px，最大200px，20vw自适应 */
    width: clamp(150px, 20vw, 200px);
    /* 固定宽高比为1:1 */
    aspect-ratio: 1/1;
    /* 自适应填充 */
    object-fit: cover;
    /* 圆形头像 */
    border-radius: 50%;
    /* 以环宽5px的圆环作为头像边框 */
    border: 5px solid rgba(255, 255, 255, 0.6);
    /* 外环一周阴影 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.founder-title {
    margin-top: 20px;
    font-size: 1.2em;
    color: #444;
}

.founder-right {
    flex: 1;
    width: clamp(300px, 40vw, 600px);
}

.founder-right h2 {
    margin: 0 0 20px;
    /* 最小1.2em，最大2.5em，2.5vw自适应 */
    font-size: clamp(1.2em, 2.5vw, 2.5em);
    color: #222;
}

.founder-right ul {
    padding-left: 1.2em;
    list-style: disc;
}

.founder-right ul li {
    margin-bottom: 12px;
    font-size: clamp(14px, 1.1vw, 18px);
    color: #333;
    line-height: 1.6;
}

.founder-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(30px, 5vw, 50px);
    background: linear-gradient(to right, #a18cd1, #fbc2eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin: 10px 0 5px;
    text-align: center;
}

.founder-role {
    width: clamp(170px, 22vw, 220px);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2em, 1vw, 2.5em);
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 15%;
    margin-top: 10px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 1vw;
    cursor: pointer;
}

.prev {
    left: 0%;
}

.next {
    right: 0%;
}

/* ========== 页脚样式 ========== */
footer {
    background-color: var(--dark);
    display: flex;
    color: white;
    width: 100%;
    padding: 60px 0 30px;
}

.container-footer {
    background:
        /* 水平渐变（左右两侧透明） */
        linear-gradient(to right, var(--dark) 5%, transparent 20%, transparent 80%, var(--dark) 95%),
        /* 垂直渐变（上下两侧透明） */
        linear-gradient(to bottom, var(--dark) 0%, transparent 0%, transparent 40%, var(--dark) 70%),
        url('img/city2.jpg') no-repeat center;
    background-size: auto 100%;
    z-index: 100;
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0 0px;
    padding: 20px;
}

.container-footer-bottom {
    margin-top: auto;
}

.footer-content {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 20px;
    justify-content: space-between;
}

.footer-column h3 {
    font-size: clamp(10px, 1.2vw, 20px);
    margin-bottom: 25px;
    position: relative;
    color: var(--accent);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-column p {
    font-size: clamp(8px, 1vw, 16px);
    color: #a0aec0;
    margin-top: 30px;
}

.footer-links {
    list-style: none;
    padding-left: 15px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: clamp(8px, 1vw, 16px);
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: clamp(8px, 1vw, 16px);
    color: var(--accent);
    margin-top: 3px;
}

.contact-item {
    font-size: clamp(8px, 1vw, 16px);
}

.copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: clamp(8px, 1vw, 16px);
}

.copyright p {
    margin-bottom: 5px;
}

/* 校区一览样式 */
.campus-expansion {
    margin-top: 40px;
    text-align: center;
}

.campus-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.campus-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 20px 0;
}

@media (min-width: 1800px) {
    .campus-grid {
        gap: 40vw;
    }
}

.campus-grid.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

.campus-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.campus-card:hover {
    transform: translateY(-10px);
}

.campus-img {
    height: 200px;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(15px, 1.8vw, 32px);
    font-weight: bold;
}

.campus-info {
    padding: clamp(5px, 1vw, 25px);
}

.campus-info h3 {
    font-size: clamp(15px, 1.5vw, 28px);
    margin-bottom: 15px;
    color: var(--secondary);
}

.campus-info p {
    font-size: clamp(10px, 1vw, 20px);
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.campus-info i {
    color: var(--primary);
    margin-right: 10px;
    min-width: 20px;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 轮播样式 */
.campus-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    display: none;
}

.carousel-item.active {
    display: block;
}

/* 轮播控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 20px;
    margin: 0;
}

/* 左侧按钮定位 */
.carousel-control.prev {
    left: 14px;
    right: auto;
}

/* 右侧按钮定位 */
.carousel-control.next {
    right: 14px;
    left: auto;
}

.structure-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.structure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.structure-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.structure-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.structure-item p {
    color: #6c757d;
    line-height: 1.6;
}


/* ========== 动画与交互效果 ========== */
html {
    scroll-behavior: smooth;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 1000;
}

.scroll-hint i {
    font-size: 24px;
    margin-bottom: 5px;
}

.scroll-hint span {
    font-size: 14px;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== 聊天窗口样式 ========== */
#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transform-origin: bottom right;
    transition: transform 0.3s ease, bottom 0.3s ease, right 0.3s ease;
}

#chat-window.minimized {
    background-color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: move;
    overflow: hidden;
}

#chat-window.minimized h3 {
    display: none;
}

#chat-window.minimized .chat-header {
    background: var(--primary);
    cursor: move;
}

#chat-window.minimized .chat-header .minimize-btn {
    display: none;
}

#chat-window.minimized .chat-header .restore-btn {
    display: block;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#chat-window.minimized .chat-body,
#chat-window.minimized .form-message,
#chat-window.minimized .chat-footer {
    display: none;
}

.chat-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-actions button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.restore-btn {
    display: none;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s;
}

.form-message {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #c8e9ff;
    width: 100%;
    height: 20px;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.received {
    background: white;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-top-left-radius: 5px;
}

.message.sent {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.chat-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: var(--secondary);
}

@keyframes anim-product {
    0% {
        background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    }

    50% {
        background: linear-gradient(45deg, #fad0c4, #a18cd1);
    }

    100% {
        background: linear-gradient(45deg, #a18cd1, #fbc2eb);
    }
}

/* 下拉菜单容器，简约风格 */
.dropdown {
    border: 10px solid transparent;
    margin: -10px;
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    /* 优化毛玻璃效果，更好地融入背景 */
    background: rgba(255, 255, 255, 0.3);
    /* 增加透明度 */
    backdrop-filter: blur(10px);
    /* 增强模糊效果 */
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    /* 内发光效果 */
    /* 保持其他样式 */
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* 更亮的边框 */
    width: auto;
    left: 50%;
    top: 100%;
    margin-top: 5px;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    border-radius: 8px;
}

/* 优化下拉菜单项样式 */
.dropdown-content a {
    text-align: center;
    width: 100%;
    padding: 10px 15px;
    color: #212529;
    /* 深色文字增强可读性 */
    transition: background 0.2s ease;
}

/* 悬停效果保持层次感 */
.dropdown-content a:hover {
    background: rgba(67, 97, 238, 0.08);
    /* 轻微着色 */
    color: var(--primary);
}

/* 新增居中样式 */
.dropdown-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 水平居中 */
    justify-content: center;
    /* 垂直居中 */
    width: 100%;
}

/* 新增下拉菜单动画 */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    /* 显示 */
    transform: translateX(-50%) translateY(0);
    /* 下移到最终位置 */
    visibility: visible;
    /* 可见 */
}

/* 1. 针对 .expansion-link 及其悬停/聚焦状态 */
.expansion-relink,
.expansion-relink:hover,
.expansion-relink:focus,
.expansion-link,
.expansion-link:hover,
.expansion-link:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: none !important;
    color: inherit;
}

/* 2. 防止主题用伪元素画横线 */
.expansion-relink,
.expansion-relink:hover::after,
.expansion-relink:focus::after,
.expansion-link::after,
.expansion-link:hover::after,
.expansion-link:focus::after {
    display: none !important;
    content: none !important;
}

/* 3. 如果 Bootstrap/主题有 .dropdown-item 或 .nav-link 样式，也一并覆盖 */
.dropdown-content a,
.dropdown-content a:hover,
.dropdown-content a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 添加汉堡菜单样式 */
.hamburger {
    display: none;
    /* 默认隐藏，在移动端显示 */
}