/* ========== 全局变量与基础样式 ========== */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4ade80;
    --warning: #facc15;
    --error: #e90e0e;
    --test: #ee00ff;
    --shadow: #bebebe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    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-top: 0px;
    padding: 10px;
}

/* ========== 导航栏样式 ========== */
header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    padding: 10px;
    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: 24px;
    color: var(--primary);
}

.logo h1 {
    margin: auto 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 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: 0 12px;
    /* 调整内边距 */
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
    height: 32px;
    /* 固定高度 */
    display: inline-flex;
    /* 使用inline-flex */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    box-sizing: border-box;
    /* 包含内边距 */
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* ========== 共用组件样式 ========== */
section {
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(5px, 1.5vh, 20px);
}

.section-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    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: 12px;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: 10px;
}

/* ========== 模块1：公司主页（Main） ========== */
main {
    background-color: var(--light);
}

.responsive-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.responsive-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 模块1：公司简介（About） ========== */
.about {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5)),
        url('img/bridge1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: auto 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-content {
    display: flex;
    padding: 2vh 0 0 0;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 13px;
    text-indent: 1em;
    /* 首行缩进 2 个字符（1em = 当前字体大小） */
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 2vh auto 0;
}

.stat-item {
    height: auto;
    text-align: center;
    padding: 10px;
    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);
}

.stat-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.stat-item p {
    margin-bottom: 0px;
    text-indent: 0em;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    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: 15px;
}

.expansion-btn {
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary);
    border: none;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.expansion-btn.active {
    background: var(--primary);
    color: white;
}

.expansion-btn:hover {
    background: var(--primary);
    color: white;
}

.expansion-content {
    height: clamp(100px, 75vh, 3000px);
    /* max-height: calc(80vh); */
    aspect-ratio: 43 / 75;
    margin: auto;
    padding: 0;
    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(135deg, #eef2ff 0%, #e0f7fa 100%);
    border-radius: 20px;
    margin: auto 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1fr, 1fr));
    gap: clamp(8px, 3vh, 30px);
}

.product-grid a {
    text-decoration: none;
}

.product-card {
    display: flex;
    background: white;
    border-radius: 7px;
    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 {
    width: clamp(100px, 20vw, 200px);
    height: auto;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-lr;
    color: white;
    font-size: 15px;
}

.product-info {
    padding: 10px 15px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.product-info p {
    font-size: clamp(10px, 2vw, 13px);
    color: #666;
    margin-bottom: 10px;
    text-indent: 1em;
    /* 首行缩进 2 个字符（1em = 当前字体大小） */
    line-height: 1.2;
}

.product-tags {
    display: flex;
    gap: clamp(1px, 1vw, 10px);
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.tag {
    background: #eef2ff;
    color: var(--primary);
    padding: 5px 6px;
    border-radius: 20px;
    font-size: 8px;
    white-space: nowrap;
}

/* ========== 模块3：培训课程（Courses） ========== */
.courses {
    background: white;
    border-radius: 20px;
    margin-top: 57px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.course-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f9fafc;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg, #f0f4ff 0%, #f0faff 100%);
}

.course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    font-size: 30px;
    color: white;
}

.course-icon i {
    font-size: 12px;
}

.course-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.course-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 5px;
    color: #666;
}

.meta-item i {
    font-size: 12px;
}

.enroll-btn-grid {
    display: flex;
    width: 100%;
    justify-content: center;
}

.enroll-btn {
    display: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    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;
    margin-top: 20px;
}

.enroll-btn-all {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* ========== 模块4：每日更新（Daily Update） ========== */
.daily-update {
    background: linear-gradient(135deg, #1a1f39 0%, #2d325a 100%);
    color: white;
    border-radius: 20px;
    margin-top: 57px;
    position: relative;
    overflow: hidden;
}

.update-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.update-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.update-header p {
    font-size: 12px;
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
}

.update-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#current-date {
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
}

.refresh-btn {
    background: rgba(76, 201, 240, 0.2);
    color: var(--accent);
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 8px;
}

.refresh-btn:hover {
    background: rgba(76, 201, 240, 0.3);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    background: rgba(76, 201, 240, 0.2);
    color: var(--accent);
    text-align: left;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
}

.info-table td {
    color: white;
    padding: 15px 20px;
    font-size: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ========== 模块5：新闻公告（articles） ========== */
.articles {
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border-radius: 20px;
    margin-top: 57px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.container-articles {
    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: 0px;
    margin-top: 0px;
}

.articles-card {
    background: white;
    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%;
}

.articles-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.articles-content {
    padding: 25px;
    flex-grow: 1;
    display: none;
    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 p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 0;
}

.articles-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.recent-articles {
    width: auto;
    min-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 5px 10px;
    background-color: #e9faff;
}

.recent-articles h3 {
    display: flex;
    justify-content: center;
}

.articles-more {
    text-align: center;
    margin-top: 40px;
}

.articles-links {
    list-style: none;
    padding-left: 15px;
}

.articles-links li {
    margin-bottom: 15px;
}

.articles-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-articles-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
    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);
}

/* ========== 模块6：关于我们（About Us/Team） ========== */
.about-us {
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border-radius: 20px;
}

.team-container {
    display: flex;
    transition: transform 0.5s ease;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
    flex: 0 0 calc(25% - 30px);
    min-width: 250px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-img {
    height: 200px;
    background: linear-gradient(45deg, #5e60ce, #80ffdb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.member-info {
    padding: 25px 20px;
}

.member-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.member-info p {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.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);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--primary);
}

/* 校区一览样式 */
.campus-expansion {
    margin-top: 57px;
    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(auto-fit, minmax(1fr, 1fr));
    gap: 5px;
}

.campus-grid.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

.campus-card {
    background: white;
    height: 18vh;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.campus-img {
    height: 6vh;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5vh;
    font-weight: bold;
}

.campus-info {
    padding: 5px 10px;
}

.campus-info h3 {
    font-size: 10px;
    margin-bottom: clamp(5px, 1vh, 10px);
    color: var(--secondary);
}

.campus-info p {
    font-size: 10px;
    color: #666;
    margin-bottom: 0px;
    display: flex;
    align-items: flex-start;
}

.campus-info i {
    color: var(--primary);
    margin: auto 10px auto 0px;
    min-width: 20px;
}

/* 轮播样式 */
.campus-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 0px;
}

.carousel-inner {
    display: flex;
    flex-direction: row;
    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: 15px;
}

/* 右侧按钮定位 */
.carousel-control.next {
    right: 15px;
}

/* ========== 页脚样式 ========== */
footer {
    background-color: #212529;
    display: flex;
    color: white;
    justify-content: flex-end;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 57px;
    padding: 10px;
}

.footer-column h3 {
    font-size: 15px;
    margin-bottom: 0px;
    position: relative;
    color: var(--accent);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-column p {
    display: none;
    font-size: 14px;
    color: #a0aec0;
    margin: 10px 0;
}

.footer-links {
    list-style: none;
    margin: 20px 0 0;
    padding-left: 5px;
    gap: 5px;
}

.footer-links li {
    margin-bottom: 0px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent);
    width: 10px;
    margin-top: 3px;
}

.contact-item span {
    font-size: 13px;
}

.copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 10px;
}

.copyright p {
    margin-bottom: 0px;
}

/* ========== 动画与交互效果 ========== */
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: 10px;
    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);
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
    }

    .stats {
        flex-wrap: wrap;
    }

    .team-member {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .course-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-member {
        flex: 0 0 calc(100% - 30px);
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 聊天窗口样式 ========== */
#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: clamp(150px, 80vw, 300px);
    height: 450px;
    background: white;
    border-radius: 10px;
    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: 40px;
    height: 40px;
    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: 10px 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 {
    font-size: 12px;
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.3s;
}

@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;
    text-align: right;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.chat-input {
    display: flex;
    gap: 5px;
    align-items: center;
}

.chat-input input {
    font-size: 12px;
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: var(--secondary);
}

.form-message {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #c8e9ff;
    width: 100%;
    height: 20px;
    font-size: 12px;
}

/* 添加汉堡菜单样式 */
.hamburger {
    display: none;
    /* 默认隐藏，在移动端显示 */
    position: absolute;
    margin-left: 160px;
    /* 在logo右侧添加20px间隙 */
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
}

/* 导航栏折叠样式 */
@media (max-width: 767px) {
    .hamburger {
        display: block;
        /* 在移动端显示汉堡菜单 */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        /* 默认隐藏导航链接 */
        background: white;
        position: absolute;
        top: 60px;
        /* 根据导航栏高度调整 */
        left: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 15px 0;
    }

    .nav-links.show {
        display: flex;
        /* 添加show类时显示 */
    }

    .nav-links a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .contact-btn {
        width: auto;
        text-align: center;
        padding: 0 10px;
        /* 调整内边距 */
        height: 40px;
        /* 固定高度 */
        line-height: 40px !important;
        /* 强制行高等于高度 */
    }

    /* 确保图标完美居中 */
    .contact-btn i {
        vertical-align: middle;
        margin-right: 4px;
        line-height: 1;
        /* 重置图标行高 */
        position: relative;
        top: -1px;
        /* 微调图标位置 */
    }

    /* 确保下拉菜单内容水平排列 */
    .dropdown-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        padding: 0;
        position: static !important;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin-top: 5px;
    }

    .dropdown-center {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        gap: 5px;
        padding: 0;
    }

    .dropdown-center a {
        text-align: center;
        padding: 8px 5px;
        white-space: nowrap;
        margin: 0 !important;
    }

    /* 调整下拉菜单整体布局 */
    .dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .dropdown>a {
        order: -1;
        margin-bottom: 5px;
        position: relative;
    }

    .dropdown>a::after {
        position: absolute;
        right: 10px;
        font-size: 10px;
    }
}

/* ========== 移动端关于我们模块优化 ========== */
.founder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

/* 轮播容器 */
.slider {
    position: relative;
    overflow: hidden;
}

/* 幻灯片容器 - 确保正确显示 */
.slides {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(3 * 100vw);
    margin: 0 -32px;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    border-top: none !important;
    border-bottom: none !important;
}

/* 单个创始人卡片 */
.founder-card.mobile-layout {
    flex-direction: column;
    width: 100%;
    /* 每张幻灯片占满容器 */
    padding: 15px;
    box-sizing: border-box;
    min-height: auto;
    /* 移除固定高度 */
}

/* 左侧区域 */
.founder-left {
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

.founder-left img {
    width: clamp(100px, 20vw, 150px);
    height: auto;
    border-radius: 50%;
    margin: 0 auto;
}

.founder-role {
    font-size: 14px;
    margin-top: 10px;
    color: #666;
}

/* 右侧区域 */
.founder-right {
    width: 90%;
    padding: 0;
    margin: 0 auto;
}

.founder-name {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.founder-right ul {
    margin: 10px 20px 0 0;
}

.founder-right ul li {
    font-size: 10px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

/* 控制按钮 */
.mobile-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 20px;
    cursor: pointer;
}

.mobile-control.prev {
    left: 0%;
}

.mobile-control.next {
    right: 0%;
}

/* 轮播指示器 */
.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.indicator.active {
    background: #4a90e2;
}