/* Manrope 字体注册 */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 品牌颜色变量 */
:root {
    /* 主色调 */
    --primary-color: #0a5a5a;           /* Deep Teal - 主色 */
    --light-gray: #ebebeb;              /* Light Gray - 辅色1 */
    --white: #ffffff;                   /* White - 辅色2 */
    --dark-gray: #636363;               /* Dark Gray - 辅色3 */
    
    /* 强调色 */
    --emerald-green: #00a870;           /* Emerald Green */
    --teal-accent: #00e194;             /* Teal Accent */
    --blue-accent: #0069cb;             /* Blue Accent */
    
    /* 功能色 */
    --success-color: var(--emerald-green);
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: var(--blue-accent);
    
    /* 文字色 */
    --text-primary: #2c3e50;
    --text-secondary: var(--dark-gray);
    --text-light: #999;
    
    /* 字体变量 */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-gray);
}

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

/* 头部样式 */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(10, 90, 90, 0.2);
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

header h1 i {
    margin-right: 10px;
    color: var(--teal-accent);
}

/* Header Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Header Logo Styles */
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Navigation Menu Styles */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-item {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--secondary-color);
}

/* Admin Header Styles */
.admin-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.admin-header-content h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

nav .admin-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav .admin-link:hover {
    background-color: var(--teal-accent);
    border-color: var(--teal-accent);
    transform: translateY(-2px);
}

/* 头图部分 */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 90, 90, 0.9) 0%, rgba(0, 168, 112, 0.8) 100%),
                url('https://images.unsplash.com/photo-1551818255-e6e10975cd17?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: center;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

/* 统计数据样式优化 */
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* 避免横向滚动 */
html, body {
    overflow-x: hidden;
}

/* 超小屏优化：可选隐藏副标题以节省空间 */
@media (max-width: 360px) {
    .hero-subtitle {
        display: none;
    }
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0,225,148,0.6);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 为不同状态添加特色颜色 */
/* 统一颜色为白色，移除差异化着色 */

/* 主要内容区域 */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* 活动部分头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
}

/* 过滤控制 */
.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tag-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-btn {
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

.tag-btn i {
    font-size: 0.8rem;
}

/* Language filter buttons */
.language-filter {
    margin-top: 1rem;
}

.language-btn {
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem;
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

.language-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 300;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

/* 列表视图样式 */
.events-list-section {
    margin-bottom: 2rem;
}

.events-list-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(10, 90, 90, 0.1);
    overflow: hidden;
    margin-top: 1.5rem;
    min-height: 200px;
}

.events-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--emerald-green));
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.list-header-col {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-list-content {
    max-height: 600px;
    overflow-y: auto;
    min-height: 150px;
}

.events-list-content .loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.events-list-content .loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-list-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    align-items: center;
}

.event-list-item:hover {
    background: rgba(10, 90, 90, 0.05);
}

.event-list-item:last-child {
    border-bottom: none;
}

.list-event-name {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-event-name .event-title {
    font-size: 1rem;
}

.list-event-name .event-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.list-event-name .event-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
}

.list-event-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-event-time .time-main {
    font-weight: 500;
    color: var(--text-primary);
}

.list-event-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-event-location i {
    color: var(--primary-color);
}

.list-event-status {
    display: flex;
    justify-content: center;
}

.list-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.list-status-badge.upcoming {
    background: rgba(54, 162, 235, 0.1);
    color: #36a2eb;
    border: 1px solid #36a2eb;
}

.list-status-badge.ongoing {
    background: rgba(255, 99, 132, 0.1);
    color: #ff6384;
    border: 1px solid #ff6384;
}

.list-status-badge.past {
    background: rgba(99, 99, 99, 0.1);
    color: #636363;
    border: 1px solid #636363;
}

.list-event-action {
    display: flex;
    justify-content: center;
}

.list-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
    justify-content: center;
}

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

.list-action-btn.register:hover {
    background: var(--emerald-green);
    transform: translateY(-2px);
}

.list-action-btn.join {
    background: var(--emerald-green);
    color: var(--white);
}

.list-action-btn.join:hover {
    background: var(--teal-accent);
}

.list-action-btn.contact {
    background: var(--dark-gray);
    color: var(--white);
}

.list-action-btn.contact:hover {
    background: var(--text-secondary);
}

.list-action-btn.ended {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--light-gray);
    cursor: default;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.6;
}

/* 响应式设计 - 列表视图 */
@media (max-width: 768px) {
    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .events-list-header {
        display: none;
    }
    
    .event-list-item {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .list-event-name {
        margin-bottom: 1rem;
    }
    
    .list-event-name .event-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

/* 活动容器 */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 活动卡片 */
.event-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--dark-gray);
    box-shadow: 0 4px 20px rgba(10, 90, 90, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 90, 90, 0.15);
    border-color: var(--primary-color);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.event-image.placeholder {
    object-fit: cover;
    opacity: 0.9;
    background-color: #f8f9fa;
}

.event-card.placeholder-image .event-image {
    opacity: 0.7;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    background: var(--primary-color);
    border: none;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 没有图片的活动卡片样式 */
.event-card.no-image {
    min-height: 280px;
}

.event-card.no-image .event-content {
    padding: 2rem 1.5rem;
}

.event-card.no-image .event-header {
    position: relative;
}

.event-card.no-image .event-header::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    right: -1.5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--emerald-green));
    border-radius: 12px 12px 0 0;
}

/* 图片加载失败的样式 */
.event-card.image-error {
    min-height: 280px;
}

.event-card.image-error .event-content {
    padding: 2rem 1.5rem;
}

.event-meta i {
    color: var(--primary-color);
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-green);
}

.event-price.free {
    color: var(--primary-color);
}

/* Event mode badges */
.event-mode-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.event-mode-badge.online {
    background: rgba(0, 168, 112, 0.1);
    color: var(--emerald-green);
    border: 1px solid var(--emerald-green);
}

.event-mode-badge.offline {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid #ff9800;
}

/* Event badges container */
.event-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Event action buttons container */
.event-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Ongoing event action buttons */
.ongoing-action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-live {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-live:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-live:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-live:hover:before {
    left: 100%;
}

.btn-live:active {
    transform: translateY(0);
}

.btn-live i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Event actions container updates */
.event-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-registration-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Responsive adjustments for event actions */
@media (max-width: 768px) {
    .event-action-buttons {
        flex-direction: column;
    }
    
    .event-action-buttons .btn {
        min-width: auto;
        flex: none;
    }
    
    .event-registration-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-badges {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }
    
    .ongoing-action-buttons {
        margin-bottom: 0.75rem;
    }
    
    .btn-live {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Remaining slots display */
.remaining-slots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: var(--light-gray);
    color: var(--text-secondary);
    border-left: 3px solid var(--primary-color);
}

.remaining-slots i {
    font-size: 0.8rem;
}

/* Normal availability */
.remaining-slots.normal {
    background: rgba(0, 168, 112, 0.1);
    color: var(--emerald-green);
    border-left-color: var(--emerald-green);
}

/* Low availability (≤ 5 spots) */
.remaining-slots.low {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-left-color: #ff9800;
}

/* Fully booked */
.remaining-slots.full {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-left-color: #f44336;
}

/* Unlimited spots */
.remaining-slots.unlimited {
    background: rgba(63, 81, 181, 0.1);
    color: #3f51b5;
    border-left-color: #3f51b5;
}

/* Header actions for multiple buttons */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Success button style for export functions */
.btn.btn-success {
    background: var(--emerald-green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn.btn-success:hover {
    background: #00a870;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 112, 0.3);
}

.btn.btn-success:active {
    transform: translateY(0);
}

.btn.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, var(--light-gray), rgba(255, 255, 255, 0.9));
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--emerald-green);
}

.contact-details p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .contact-details {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
}

/* Disabled button styles for fully booked events */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn.btn-secondary:hover {
    background: var(--text-secondary);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--teal-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 225, 148, 0.4);
}

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

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

.btn-success {
    background-color: var(--emerald-green);
    color: var(--white);
}

.btn-success:hover {
    background-color: var(--teal-accent);
}

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

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 90, 90, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    box-shadow: 0 10px 30px rgba(10, 90, 90, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content.large {
    max-width: 800px;
    max-height: 90vh;
}

.modal-content.success {
    border-top: 4px solid var(--emerald-green);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-header .close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-header .close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* 改善滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-green);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 90, 90, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 管理员面板样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

.login-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 90, 90, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.admin-panel {
    min-height: 100vh;
    background-color: var(--light-gray);
}

.admin-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(10, 90, 90, 0.1);
}

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

.admin-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--teal-accent);
    border-color: var(--teal-accent);
}

/* 仪表板样式 */
.dashboard {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 90, 90, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.dashboard-tabs {
    display: flex;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--dark-gray);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--white);
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(10, 90, 90, 0.1);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 300;
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 12px 8px 40px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    width: 300px;
    background-color: var(--white);
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* 事件列表样式 */
.events-list,
.registrations-list {
    display: grid;
    gap: 1rem;
}

.admin-event-card,
.registration-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--light-gray);
}

/* 管理员活动状态样式 */
.admin-event-card.upcoming {
    border-left-color: var(--blue-accent);
}

.admin-event-card.ongoing {
    border-left-color: var(--emerald-green);
    box-shadow: 0 4px 20px rgba(0, 168, 112, 0.15);
}

.admin-event-card.past {
    border-left-color: var(--text-secondary);
    opacity: 0.85;
}

.admin-event-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.admin-status-badge.upcoming {
    background: var(--blue-accent);
    color: var(--white);
}

.admin-status-badge.ongoing {
    background: var(--emerald-green);
    color: var(--white);
    animation: pulse 2s infinite;
}

.admin-status-badge.past {
    background: var(--text-secondary);
    color: var(--white);
}

.status-text.upcoming {
    color: var(--blue-accent);
    font-weight: 500;
}

.status-text.ongoing {
    color: var(--emerald-green);
    font-weight: 500;
}

.status-text.past {
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-event-header,
.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-event-title,
.registration-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-event-actions,
.registration-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-event-meta,
.registration-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* 标签管理样式 */
.tags-list {
    display: grid;
    gap: 1rem;
}

.tag-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--tag-color, var(--primary-color));
    border: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-info {
    flex: 1;
}

.tag-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tag-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tag-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.tag-actions {
    display: flex;
    gap: 0.5rem;
}

/* 标签输入容器 */
.tags-input-container {
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: 0.75rem;
    min-height: 100px;
    background: var(--white);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.selected-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--white);
    background: var(--tag-color, var(--primary-color));
}

.selected-tag .remove-tag {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-left: 0.25rem;
}

.available-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.available-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--text-secondary);
}

.available-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 90, 90, 0.1);
    border-color: var(--primary-color);
}

.available-tag.selected {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preset-colors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(10, 90, 90, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Hero 区域统计栏：去除白色背景与卡片效果 */
.hero-section .stat-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    background: var(--primary-color);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mobile header layout */
    .header-content {
        gap: 1rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile navigation */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1000;
        border-radius: 0 0 8px 8px;
        padding: 1rem 0;
    }
    
    .main-navigation.mobile-open {
        display: flex;
    }
    
    .nav-item {
        padding: 1.2rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid var(--secondary-color);
        color: var(--text-primary);
        font-size: 1.05rem;
        font-weight: 600;
        text-shadow: none;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        transform: none;
        box-shadow: none;
    }
    
    /* Position header relative for absolute navigation */
    header {
        position: relative;
    }
    
    /* Responsive logo styles */
    .header-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .admin-header-logo {
        height: 35px;
        max-width: 120px;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .admin-header-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .stat-number {
        font-size: clamp(20px, 5vw, 28px);
    }

    .stat-label {
        font-size: clamp(10px, 2.8vw, 11px);
    }

    .stat-item {
        padding: 6px 8px;
        min-width: 0;
        flex: 1 1 0;
    }

    /* 让活动信息区更靠上，露出首条 */
    main.container, .container main, main {
        padding-top: 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tag-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .events-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .admin-event-header,
    .registration-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-event-actions,
    .registration-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-header nav {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
    
    .admin-event-meta,
    .registration-meta {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 修复: 移动端菜单按钮汉堡图标颜色改为白色 === */
header .mobile-menu-toggle .fa-bars {
  color: #fff !important;
}

/* === 修复: 移动端菜单按钮汉堡 & 关闭图标颜色为白色（统一） === */
header .mobile-menu-toggle .fa-bars,
header .mobile-menu-toggle .fa-times {
  color: #fff !important;
}

/* === 修复: 移除首页统计卡片的白色背景，保持文字为白色 === */
.hero-section .hero-stats .stat-card,
.hero-section .hero-stats .stat-card::before,
.hero-section .hero-stats .stat-card::after,
.hero-section .hero-stats .stat-item,
.hero-section .hero-stats .stat-item::before,
.hero-section .hero-stats .stat-item::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.hero-section .hero-stats .stat-card,
.hero-section .hero-stats .stat-item {
  color: #fff !important;
}

.hero-section .hero-stats .stat-card .value,
.hero-section .hero-stats .stat-card .label,
.hero-section .hero-stats .stat-item .value,
.hero-section .hero-stats .stat-item .label,
.hero-section .hero-stats .stat-card .stat-number,
.hero-section .hero-stats .stat-card .stat-label,
.hero-section .hero-stats .stat-item .stat-number,
.hero-section .hero-stats .stat-item .stat-label {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .event-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .event-card,
    .modal-content,
    .login-box,
    .dashboard {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .admin-event-card,
    .registration-card {
        background-color: #333;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #333;
        color: #e0e0e0;
        border-color: #555;
    }
}

/* 页面设置样式 */
.settings-form {
    max-width: 800px;
}

.settings-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    font-size: 1.25rem;
}

/* Toggle 开关样式 - 优化版 */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
    gap: 1.25rem;
    min-height: 44px;
    padding: 0.75rem 0;
    width: 100%;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 54px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: var(--emerald-green);
    box-shadow: inset 0 2px 4px rgba(0,168,112,0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
    box-shadow: 0 2px 6px rgba(0,168,112,0.3);
}

.toggle-text {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
    display: flex;
    align-items: center;
    min-width: 0;
    word-wrap: break-word;
}

.toggle-text i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* 确保在form-group中的toggle-label不被普通label样式影响 */
.form-group .toggle-label {
    display: flex !important;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    gap: 1.25rem !important;
    min-height: 44px;
    padding: 0.75rem 0;
    width: 100%;
}

.form-group .toggle-label .toggle-slider {
    margin-right: 0.5rem;
}

.form-group .toggle-label .toggle-text {
    flex: 1;
    min-width: 0;
}

/* 为小屏幕优化 */
@media (max-width: 768px) {
    .toggle-label,
    .form-group .toggle-label {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem !important;
        padding: 1rem 0;
        min-height: auto;
    }
    
    .toggle-text,
    .form-group .toggle-label .toggle-text {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
        flex: none;
    }
    
    .toggle-slider,
    .form-group .toggle-label .toggle-slider {
        align-self: flex-start;
        margin-right: 0;
        margin-left: 0.25rem;
    }
}

/* 模态框响应式优化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 1% auto;
        width: 95%;
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .modal-content.large {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-content.large {
        max-width: 100%;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: 0.75rem;
        border-bottom: 2px solid var(--light-gray);
    }
    
    .modal-body {
        padding: 0.75rem;
    }
}

/* 表单行样式优化 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 图片上传样式 */
.image-upload-container {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.upload-tabs {
    display: flex;
    background: var(--light-gray);
}

.upload-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.upload-tab.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.upload-tab:hover:not(.active) {
    background: rgba(10, 90, 90, 0.1);
    color: var(--primary-color);
}

.upload-mode {
    padding: 1.5rem;
}

.file-upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(10, 90, 90, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--emerald-green);
    background: rgba(0, 168, 112, 0.1);
}

.upload-prompt i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upload-prompt p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-prompt small {
    color: var(--text-secondary);
}

/* 上传进度条 */
.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-green), var(--teal-accent));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 图片预览 */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    margin-top: 1rem;
}

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

/* 过去活动样式 */
.past-events-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.past-events-section h2 {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.8;
}

.event-card.past-event {
    opacity: 0.9;
    border-left: 4px solid var(--text-secondary);
}

.event-card.past-event .event-title {
    color: var(--text-secondary);
}

.event-actions.past-event {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.contact-info {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.event-status.ended {
    background: var(--text-secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 正在进行的活动样式 */
.ongoing-events-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--emerald-green);
}

.ongoing-events-section h2 {
    color: var(--emerald-green);
    text-align: center;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.event-card.ongoing-event {
    border-left: 4px solid var(--emerald-green);
    box-shadow: 0 4px 20px rgba(0, 168, 112, 0.2);
}

.event-card.ongoing-event .event-title {
    color: var(--emerald-green);
}

.event-actions.ongoing-event {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.event-status.live {
    background: var(--emerald-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* 活动状态标签 */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.event-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.event-status-badge.upcoming {
    background: var(--blue-accent);
    color: var(--white);
}

.event-status-badge.ongoing {
    background: var(--emerald-green);
    color: var(--white);
    animation: pulse 2s infinite;
}

.event-status-badge.past {
    background: var(--text-secondary);
    color: var(--white);
}

/* ==================== Navigation Menu Management Styles ==================== */

/* Menu item card styles */
.menu-item-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item-card.active {
    border-left-color: var(--emerald-green);
}

.menu-item-card.inactive {
    border-left-color: var(--text-secondary);
    opacity: 0.7;
}

.menu-item-info {
    margin-bottom: 1rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.menu-item-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

.menu-item-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    flex-shrink: 0;
}

.menu-item-card.active .menu-item-status {
    background-color: rgba(0, 168, 112, 0.1);
    color: var(--emerald-green);
}

.menu-item-card.inactive .menu-item-status {
    background-color: rgba(102, 102, 102, 0.1);
    color: var(--text-secondary);
}

.menu-item-url {
    color: var(--blue-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.menu-item-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.menu-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.menu-item-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Navigation list container */
.navigation-list {
    max-height: 70vh;
    overflow-y: auto;
}

/* Empty state for navigation */
.navigation-list .no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.navigation-list .no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive menu management */
@media (max-width: 768px) {
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-item-actions {
        justify-content: stretch;
    }
    
    .menu-item-actions .btn {
        flex: 1;
        justify-content: center;
    }
}