/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --light-bg: #F7F9FC;
    --white: #FFFFFF;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Times New Roman', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* 导航栏 */
.navbar {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #45b7af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 卡片样式 */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

/* 统计卡片样式优化 */
.grid-5 .card {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.grid-5 .card > div:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.grid-5 .card > div:nth-child(2) {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.grid-5 .card > div:nth-child(3) {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* 更紧凑的统计卡片 */
.grid-5.stats-cards .card {
    padding: 0.5rem 0.75rem;
}

.grid-5.stats-cards .card > div:first-child {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.grid-5.stats-cards .card > div:nth-child(2) {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.125rem;
}

.grid-5.stats-cards .card > div:nth-child(3) {
    font-size: 0.75rem;
    opacity: 0.9;
}
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
}

/* 标题样式 */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--white);
}

.badge-danger {
    background-color: var(--danger);
    color: var(--white);
}

/* 提示框样式 */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 进度条 */
.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* 标签页 */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr:hover {
    background-color: rgba(255, 107, 107, 0.05);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-item {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 页脚 */
/* Footer样式 - 参照新东方 */
.footer {
    margin-top: 3rem;
    background-color: #f8f9fa;
    color: #333;
}

/* 关注我们部分 */
.footer-follow {
    background-color: #f2f6fa;
    color: #333;
    padding: 2rem 0;
}

.footer-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 底部链接部分 */
.footer-links {
    padding: 3rem 0;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.footer-link-section h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-link-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-section li {
    margin-bottom: 0.8rem;
}

.footer-link-section a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link-section a:hover {
    color: var(--primary-color);
}

/* Footer简介部分 */
.footer-intro p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer联系方式部分 */
.footer-contact h4 {
    display: none; /* 隐藏标题 */
}

.footer-contact .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

.footer-contact .contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact .contact-list li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* 版权信息部分 */
.footer-copyright {
    padding: 1.5rem 0;
    background-color: #f8f9fa;
}

.footer-copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}

/* 移动端底部菜单 */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    color: var(--primary-color);
}

.mobile-menu-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mobile-menu-text {
    font-size: 0.75rem;
}

/* 移动端显示底部菜单 */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: flex;
    }

    /* 为body添加底部内边距,避免内容被遮挡 */
    body {
        padding-bottom: 60px;
    }

    /* 为.container添加底部内边距 */
    .container {
        padding-bottom: 60px;
    }

    /* 为什么选择我们部分 - 每行显示2个 */
    .section .grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Footer links部分 - 改为flex布局 */
    .footer-links .grid.grid-4 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer links第一列(关于我们) - 单独一行 */
    .footer-links .footer-intro {
        width: 100%;
    }

    /* Footer links第二、三列容器 - 改为grid布局 */
    .footer-links .grid.grid-4 {
        flex-wrap: wrap;
    }

    /* Footer links第二、三列 - 每行显示2个 */
    .footer-links .footer-link-section:not(.footer-intro):not(.footer-contact) {
        width: calc(50% - 0.75rem);
    }

    /* Footer links第二、三列链接 - 每行显示3个 */
    .footer-link-section:not(.footer-intro):not(.footer-contact) ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .footer-link-section:not(.footer-intro):not(.footer-contact) ul li {
        margin-bottom: 0;
    }

    /* Footer links第四列(联系方式) - 单独一行 */
    .footer-links .footer-contact {
        width: 100%;
    }
}

/* 筛选标签样式 */
.filter-section {
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* 首页15宫格菜单 */
.home-grid-menu {
    display: none;
    padding: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.home-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-grid-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.home-grid-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* 移动端显示15宫格 */
@media (max-width: 768px) {
    .home-grid-menu {
        display: block;
    }

    .home-grid-container {
        gap: 0.5rem;
    }

    .home-grid-item {
        padding: 0.75rem 0.25rem;
    }

    .home-grid-icon {
        font-size: 1.5rem;
    }

    .home-grid-title {
        font-size: 0.75rem;
    }

    /* 课程列表 - 每行显示2个 */
    .grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* 联系我们页面 - 公司信息卡片宽度调整 */
    .contact-info-card {
        grid-column: span 2;
    }

    /* 联系我们页面 - 地图卡片宽度调整 */
    .contact-info-card + .card {
        grid-column: span 2;
    }

    /* 社交媒体二维码 - 移动端每行显示2个 */
    .grid.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1222px) and (min-width: 769px) {
    .navbar-menu {
        gap: 0.8rem;
    }
    
    .navbar-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        width: 66.67%;
        height: 100vh;
        background-color: white;
        padding: 0;
        gap: 0;
        z-index: 999;
        box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding-top: 60px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--primary-color);
        text-decoration: none;
    }

    .navbar-menu a:hover {
        background-color: rgba(255, 107, 107, 0.1);
    }

    .navbar-menu a.active {
        color: #DC5A5A;
        font-weight: bold;
        background-color: rgba(255, 107, 107, 0.15);
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        width: 100%;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* 课程分类在竖屏时显示2列 */
@media (max-width: 768px) {
    #categoriesGrid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    #categoriesGrid .category-card {
        min-height: auto;
    }

    #categoriesGrid .card-body {
        padding: 1rem;
    }

    /* 班级卡片在竖屏时显示2列 */
    #classesGrid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    #classesGrid .class-card {
        min-height: auto;
    }

    #classesGrid .card-body {
        padding: 1rem;
    }

    /* 课程列表在竖屏时显示2列 */
    .courses-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .courses-grid .course-card {
        min-height: auto;
    }

    .courses-grid .card-body {
        padding: 1rem;
    }

    /* 班级列表在竖屏时显示2列 */
    .classes-list-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .classes-list-grid .class-card {
        min-height: auto;
    }

    .classes-list-grid .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .card-header {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.img-circle {
    border-radius: 50%;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* 滚动海报 */
.banner-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-container {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 800px !important;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    bottom: 350px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2rem;
    color: white;
    max-width: 1200px;
    width: calc(100% - 4rem);
    text-align: left;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.banner-content p {
    font-size: 1.1rem;
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

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

.banner-dot.active,
.banner-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.banner-arrow.prev {
    left: 1rem;
}

.banner-arrow.next {
    right: 1rem;
}

/* 后台子菜单样式 */
.admin-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.admin-submenu li {
    padding: 0;
}

.admin-submenu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--accent-color);
}

.admin-submenu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: var(--accent-color);
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.admin-menu li:hover .submenu-arrow {
    transform: rotate(180deg);
}

.admin-menu li:hover > .admin-submenu {
    display: block;
}
