/* 国风蓝紫色渐变UI风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

/* 统一传统文化字体 */
body {
    font-family: 'STKaiti', 'KaiTi', '楷体', 'SimSun', '宋体', 'STSong', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #667eea 50%, #764ba2 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: #1a1a1a;
    line-height: 1.8;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 国风背景纹理 - 云纹和水波纹效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* 祥云图案 */
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 100 Q60 80 70 100 T90 100 Q100 80 110 100 T130 100' stroke='rgba(139,92,246,0.08)' fill='none' stroke-width='2'/%3E%3Cpath d='M30 120 Q40 100 50 120 T70 120 Q80 100 90 120 T110 120' stroke='rgba(139,92,246,0.08)' fill='none' stroke-width='2'/%3E%3C/svg%3E") repeat,
        radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%, 8px 8px;
    pointer-events: none;
    z-index: 0;
    animation: cloud-drift 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 水波纹和回纹装饰 */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 50 Q30 40 40 50 T60 50' stroke='rgba(255,255,255,0.05)' fill='none' stroke-width='1'/%3E%3Cpath d='M20 70 Q30 60 40 70 T60 70' stroke='rgba(255,255,255,0.05)' fill='none' stroke-width='1'/%3E%3Cpath d='M10 10 L20 10 L20 20 L10 20 Z' fill='rgba(139,92,246,0.03)'/%3E%3Cpath d='M30 10 L40 10 L40 20 L30 20 Z' fill='rgba(139,92,246,0.03)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L20 0 L20 5 L0 5 Z M20 0 L40 0 L40 5 L20 5 Z' fill='rgba(139,92,246,0.02)'/%3E%3Cpath d='M0 10 L5 10 L5 20 L0 20 Z M10 10 L15 10 L15 20 L10 20 Z' fill='rgba(139,92,246,0.02)'/%3E%3C/svg%3E");
    background-size: 200px 200px, 80px 80px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: wave-pattern 25s linear infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes cloud-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes wave-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.home-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(26, 26, 26, 0.75);
}

.home-footer a {
    color: inherit;
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}

/* 页面基础样式 */
.page {
    display: none;
    min-height: calc(100vh - 40px);
}

.page.active {
    display: block;
}

/* 导航栏 - 千里江山图青绿色风格 */
/* 已移除顶部导航栏，合并到主页banner中 */
.navbar {
    display: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.1);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.logo i {
    font-size: 28px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle i {
    margin-right: 6px;
    opacity: 0.8;
}

.logo::before {
    content: '◆';
    position: absolute;
    left: -20px;
    color: rgba(139, 92, 246, 0.3);
    font-size: 12px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.8), transparent);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.3);
}

.subtitle {
    font-size: 13px;
    color: #5a7a6a;
    letter-spacing: 2px;
    font-style: italic;
    margin-top: 5px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a.nav-btn {
    color: #4a5568;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 233, 254, 0.9));
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15), 0 1px 3px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    text-align: center;
}

/* 按钮传统文化装饰边框 */
.nav-links a.nav-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-links a.nav-btn:hover::before {
    left: 100%;
}

.nav-links a.nav-btn:first-child {
    border-radius: 12px;
}

.nav-links a.nav-btn:last-child {
    border-radius: 12px;
}

.nav-links a.nav-btn i {
    font-size: 14px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.nav-links a.nav-btn:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-links a.nav-btn:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    color: #ffffff;
}

.nav-links a.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.user-info {
    display: none;
}

/* 页面 - 统一白色背景风格 */
.page {
    display: none;
    min-height: calc(100vh - 90px);
    padding: 40px 0;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(237, 233, 254, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(221, 214, 254, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .page {
        padding: 20px 0;
        min-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .page {
        padding: 15px 0;
    }
}

.page.active {
    display: block;
}

/* 确保页面内容在装饰层之上 */
.page > .container {
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 40px;
    padding: 32px 0;
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    border-radius: 16px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    z-index: 1;
    overflow: hidden;
}

/* 页面头部传统文化装饰 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite reverse;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc, #a78bfa, #818cf8);
    border-radius: 2px;
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.page-header .header-actions {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.page-header .header-actions .btn {
    font-size: 14px;
    padding: 10px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.page-header .header-actions .btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.15);
}

.page-header h2::before {
    content: '◇';
    color: rgba(139, 92, 246, 0.4);
    font-size: 18px;
    margin-right: 8px;
}

.page-header h2 i {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
}

.page-subtitle {
    font-size: 18px;
    color: #5a7a6a;
    letter-spacing: 4px;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-weight: 300;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
}

h2 {
    margin-bottom: 30px;
    color: #2d4a3e;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 4px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.15);
}

/* 标题传统文化装饰 */
h2::before {
    content: '◇';
    color: rgba(139, 92, 246, 0.4);
    font-size: 16px;
    margin-right: 8px;
}

h2 i {
    font-size: 28px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #818cf8, #a78bfa, transparent);
    border-radius: 2px;
}

h3 a {
    color: #40826d;
    text-decoration: none;
    transition: all 0.3s ease;
}

h3 a:hover {
    color: #2e6b5a;
    text-decoration: underline;
}

h3 {
    color: #2d4a3e;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    position: relative;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.1);
}

h3::before {
    content: '▸';
    color: rgba(139, 92, 246, 0.3);
    font-size: 14px;
    margin-right: 8px;
}

/* 快速入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.action-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12), 0 2px 8px rgba(139, 92, 246, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 卡片传统文化装饰 */
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 14px;
    pointer-events: none;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L20 10 L20 20 L10 20 Z' fill='none' stroke='rgba(139,92,246,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.3;
}

.action-card::after {
    content: '◆';
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(139, 92, 246, 0.2);
    font-size: 12px;
    pointer-events: none;
}

.action-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.action-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3), 0 6px 16px rgba(99, 102, 241, 0.25);
    transform: translateY(-4px) scale(1.02);
    border-color: #a78bfa;
}

.action-card:hover .action-icon {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-card:hover .action-icon i {
    -webkit-text-fill-color: white;
    transform: scale(1.1);
}

.action-card h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
}

.action-card h3::before {
    content: '▸';
    color: rgba(139, 92, 246, 0.3);
    font-size: 12px;
    margin-right: 6px;
}

.action-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 0.5px;
}

.action-card:hover p {
    color: #7c3aed;
}

/* 登录页面 */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    position: relative;
    overflow: hidden;
}

/* 登录容器传统文化装饰 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite reverse;
}

.login-header-actions,
.page-header-actions {
    margin-bottom: 20px;
}

.login-header-actions .btn,
.page-header-actions .btn {
    font-size: 14px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 233, 254, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #6366f1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.login-header-actions .btn:hover,
.page-header-actions .btn:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.login-header-actions .btn:active,
.page-header-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(167, 139, 250, 0.2);
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.1);
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #818cf8, #a78bfa, #c084fc);
    border-radius: 2px;
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    padding-bottom: 8px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 0.5px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn.active {
    color: #6366f1;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc);
    border-radius: 2px 2px 0 0;
}

.tab-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    color: #6366f1;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .input-wrapper {
    position: relative;
    margin-bottom: 0;
}

.login-form .input-wrapper .input-icon {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    width: 20px;
    color: #9ca3af;
    z-index: 2;
    pointer-events: none;
}

.login-form .input-wrapper:focus-within .input-icon {
    color: #a78bfa;
}

/* 确保登录表单输入框有足够的左侧内边距，避免与图标重叠 */
.login-form input {
    padding-left: 44px !important;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1), 0 1px 3px rgba(139, 92, 246, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    color: #1a1a1a;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 0.5px;
}

.login-form input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.login-form input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25), 0 2px 6px rgba(139, 92, 246, 0.15), 0 0 0 3px rgba(167, 139, 250, 0.1);
    transform: translateY(-1px);
}

.login-form input:hover:not(:focus) {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15), 0 1px 4px rgba(139, 92, 246, 0.1);
}

.login-form button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35), 0 2px 6px rgba(99, 102, 241, 0.25);
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: btn-gradient-shift 3s ease infinite;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-form button:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5), 0 4px 12px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.login-form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.register-link-text {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.register-link-text:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
}

.register-link-text i {
    font-size: 13px;
}

/* 表单 */
.form {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    position: relative;
    overflow: hidden;
}

/* 表单传统文化装饰 */
.form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite reverse;
}

/* 输入框包装器 */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: #a78bfa;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 0;
    background: white;
    color: #1a1a1a;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form select {
    padding-left: 44px;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.form textarea {
    padding-left: 44px;
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.form input.error,
.form select.error,
.form textarea.error {
    border-color: #8b0000;
    background-color: #fff5f5;
}

.form input.success,
.form select.success,
.form textarea.success {
    border-color: #4a4a4a;
    background-color: #fafafa;
}

.password-hint {
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 18px;
    color: #666;
    font-style: italic;
}

.password-hint.error {
    color: #8b0000;
}

.password-hint.success {
    color: #a78bfa;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #2d4a3e;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
}

.form label i {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
}

.form label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35), 0 2px 6px rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: btn-gradient-shift 3s ease infinite;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form button:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5), 0 4px 12px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.form button i {
    font-size: 16px;
}

/* 消息提示 */
.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.message.success {
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.95), rgba(221, 214, 254, 0.9));
    color: #6d28d9;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* 列表 */
.competitions-list,
.recruitments-list {
    display: grid;
    gap: 25px;
}

/* 区块 */
.section {
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.section h3 {
    margin-bottom: 24px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
    position: relative;
    text-shadow: 1px 1px 2px rgba(139, 92, 246, 0.1);
}

.section h3::before {
    content: '◆';
    color: rgba(139, 92, 246, 0.3);
    font-size: 12px;
    margin-right: 4px;
}

.section h3 i {
    font-size: 20px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, 
        #818cf8 0%,
        #a78bfa 50%,
        #c084fc 100%,
        #a78bfa 100%);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.3);
}

/* 移除旧的after样式，已合并到上面的after中 */

.competition-card,
.recruitment-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12), 0 2px 8px rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(167, 139, 250, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 卡片传统文化装饰 */
.competition-card::after,
.recruitment-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 14px;
    pointer-events: none;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5 L15 5 L15 15 L5 15 Z' fill='none' stroke='rgba(139,92,246,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    opacity: 0.5;
}

.competition-card::before,
.recruitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #818cf8, #a78bfa, #c084fc);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.competition-card:hover::before,
.recruitment-card:hover::before {
    transform: scaleY(1);
}

.competition-card:hover,
.recruitment-card:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3), 0 6px 16px rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
    border-color: #a78bfa;
}

.competition-card h3,
.recruitment-card h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', '宋体', serif;
}

.competition-card h3::before,
.recruitment-card h3::before {
    content: '◆';
    color: rgba(139, 92, 246, 0.3);
    font-size: 10px;
    margin-right: 4px;
}

.competition-card h3 i,
.recruitment-card h3 i {
    font-size: 20px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.competition-card p,
.recruitment-card p {
    color: #6b7280;
    margin: 6px 0;
    line-height: 1.8;
    font-size: 14px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35), 0 2px 6px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: btn-gradient-shift 3s ease infinite;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Microsoft YaHei', '微软雅黑', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 按钮传统文化装饰 */
.btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    pointer-events: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes btn-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5), 0 4px 12px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn i {
    font-size: 14px;
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    background-size: 200% 200%;
    animation: btn-gradient-shift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    background-size: 200% 200%;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    background-size: 200% 200%;
    animation: btn-gradient-shift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    background-size: 200% 200%;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    background-size: 200% 200%;
    animation: btn-gradient-shift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    background-size: 200% 200%;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 我的页面 */
.my-content {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.menu-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 1px;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(237, 233, 254, 0.5), transparent);
    padding-left: 30px;
}

.menu-item:last-child {
    border-bottom: none;
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2d4a3e;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
    margin-top: 0;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.table th {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

.table tr:hover {
    background: rgba(237, 233, 254, 0.3);
}

.table tr:last-child td {
    border-bottom: none;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.stat-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12), 0 2px 8px rgba(139, 92, 246, 0.08);
    text-align: center;
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #2d4a3e;
    margin: 15px 0;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.stat-card .stat-label {
    color: #5a7a6a;
    font-size: 15px;
    letter-spacing: 1px;
}

/* 搜索框 */
.search-box {
    margin: 25px 0;
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.search-box button {
    padding: 12px 24px;
    margin-top: 0;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 0;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25), 0 4px 16px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    padding-bottom: 15px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #6366f1;
    transform: rotate(90deg);
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    border-radius: 16px;
    color: #8b5cf6;
    font-size: 16px;
    letter-spacing: 2px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    border-radius: 16px;
    color: #8b5cf6;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.3;
}

/* 扫码报名样式 */
.scan-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.scan-instructions {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.scan-instructions h3 {
    color: #2d4a3e;
    margin-bottom: 25px;
    font-size: 24px;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(64, 130, 109, 0.2);
    padding-bottom: 12px;
}

.scan-instructions ol {
    margin-left: 25px;
    line-height: 2.5;
    color: #5a7a6a;
    font-size: 15px;
}

.scan-instructions ol li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.scan-instructions ol li i {
    margin-top: 4px;
    color: #40826d;
    font-size: 16px;
    opacity: 0.8;
}

.scan-instructions h3 i {
    margin-right: 8px;
    color: #40826d;
}

.scan-area {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    text-align: center;
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.qr-code-selector {
    margin-bottom: 25px;
}

.qr-code-placeholder {
    border: 3px dashed rgba(64, 130, 109, 0.3);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(240, 250, 245, 0.5), rgba(232, 245, 242, 0.3));
    transition: all 0.3s ease;
}

.qr-code-placeholder:hover {
    border-color: rgba(64, 130, 109, 0.5);
    background: linear-gradient(135deg, rgba(240, 250, 245, 0.7), rgba(232, 245, 242, 0.5));
}

.qr-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
    filter: grayscale(100%);
}

.qr-code-display {
    text-align: center;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(64, 130, 109, 0.15);
    border: 2px solid rgba(64, 130, 109, 0.2);
    margin-bottom: 20px;
}

.qr-code-wrapper canvas {
    border-radius: 8px;
}

.qr-code-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(240, 250, 245, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(64, 130, 109, 0.2);
}

.scan-alternative {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.scan-alternative h3 {
    color: #2d4a3e;
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scan-alternative h3 i {
    color: #40826d;
    opacity: 0.8;
}

/* 饼图样式 */
.pie-chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(64, 130, 109, 0.2);
    min-width: 250px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 14px;
}

.legend-item:hover {
    background: rgba(64, 130, 109, 0.1);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* 图表容器 */
.chart-container {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
    margin: 30px 0;
    border: 1px solid rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chart-container:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.chart-title {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 25px;
    color: #2d4a3e;
    letter-spacing: 2px;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

/* 简单柱状图 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    gap: 15px;
    padding: 25px 15px;
    min-height: 300px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #40826d, #5a9a7d);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.bar-label {
    margin-top: 12px;
    font-size: 13px;
    color: #5a7a6a;
    text-align: center;
    word-break: break-word;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: bold;
    color: #2d4a3e;
}

/* 响应式 - 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        max-width: 100%;
    }

    .navbar {
        display: none;
    }

    .page-header {
        padding: 20px 0;
        margin-bottom: 24px;
    }

    .page-header .header-actions {
        margin-bottom: 12px;
    }

    .page-header .header-actions .btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .page-header h2 {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .logo {
        font-size: 26px;
        letter-spacing: 0.5px;
    }

    .logo-img {
        height: 40px;
    }

    .logo i {
        font-size: 26px;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .nav-links {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }
    
    .nav-links a.nav-btn {
        padding: 12px 10px;
        font-size: 14px;
        min-height: 48px;
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }

    .nav-links a.nav-btn i {
        font-size: 14px;
        margin-right: 4px;
        flex-shrink: 0;
    }
    
    /* 登录页面移动端优化 */
    .login-container {
        max-width: 100%;
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .login-container h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .login-tabs {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 12px 10px;
        font-size: 15px;
        gap: 6px;
    }
    
    .tab-btn i {
        font-size: 15px;
    }
    
    .login-form {
        gap: 18px;
    }
    
    .login-form .input-wrapper .input-icon {
        left: 14px;
        font-size: 16px;
        width: 20px;
    }
    
    .login-form input {
        padding: 14px 16px;
        padding-left: 44px !important;
        font-size: 16px; /* 防止iOS自动缩放 */
        border-radius: 12px;
        min-height: 48px; /* 提高触摸目标大小 */
        box-sizing: border-box;
        border: 1px solid rgba(167, 139, 250, 0.3);
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1), 0 1px 3px rgba(139, 92, 246, 0.08);
    }
    
    .login-form input:focus {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25), 0 2px 6px rgba(139, 92, 246, 0.15), 0 0 0 3px rgba(167, 139, 250, 0.1);
    }
    
    .login-form input:hover:not(:focus) {
        box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15), 0 1px 4px rgba(139, 92, 246, 0.1);
    }
    
    .login-form button {
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 16px;
        border-radius: 8px;
        min-height: 48px; /* 提高触摸目标大小 */
    }

    .login-container {
        padding: 24px 16px;
    }

    .login-header-actions {
        margin-bottom: 16px;
    }

    .login-header-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .register-link {
        margin-top: 16px;
        padding-top: 16px;
        font-size: 13px;
    }

    .register-link-text {
        font-size: 13px;
    }
    
    /* 表单移动端优化 */
    .form {
        max-width: 100%;
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .form input,
    .form select,
    .form textarea {
        padding: 14px 16px;
        padding-left: 42px;
        font-size: 16px; /* 防止iOS自动缩放 */
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .input-wrapper {
        margin-bottom: 15px;
    }
    
    .input-icon {
        left: 12px;
        font-size: 16px;
        width: 18px;
        text-align: center;
    }
    
    .form button {
        padding: 16px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        margin-top: 12px;
        min-height: 48px; /* 提高触摸目标大小 */
    }

    /* 移动端表单优化 */
    .form {
        max-width: 100%;
        padding: 24px 16px;
        margin: 16px 0;
    }

    .form input,
    .form select,
    .form textarea {
        padding: 14px 16px;
        padding-left: 44px;
        font-size: 16px; /* 防止iOS自动缩放 */
        min-height: 48px; /* 提高触摸目标大小 */
    }

    .input-wrapper {
        margin-bottom: 16px;
    }

    .input-icon {
        left: 14px;
        font-size: 16px;
        width: 20px;
    }
    
    .scan-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scan-instructions,
    .scan-area {
        padding: 25px 20px;
    }
    
    .scan-instructions ol {
        font-size: 14px;
        line-height: 2;
    }
    
    .bar-chart {
        height: 200px;
        gap: 8px;
    }
    
    #home {
        background-size: 200% 200%;
        padding: 15px 0;
    }
    
    /* 优化整体布局，确保手机端整齐 */
    .page {
        padding: 15px 0;
    }
    
    .page-header {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: 12px;
    }
    
    .page-header h2 {
        font-size: 22px;
        letter-spacing: 1px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .page-subtitle {
        font-size: 13px;
        letter-spacing: 1px;
        line-height: 1.5;
    }
    
    #home .section {
        padding: 20px 15px;
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .section {
        margin: 25px 0;
    }
    
    .section h3 {
        font-size: 18px;
        padding: 12px 15px;
        margin: -20px -15px 20px -15px;
        letter-spacing: 1px;
        border-radius: 12px 12px 0 0;
    }
    
    h2 {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    h3 {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .action-card {
        padding: 24px 20px;
        border-radius: 12px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(34, 197, 94, 0.1);
        transition: all 0.2s ease;
    }

    .action-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .action-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        background: #f3f4f6;
        border-radius: 10px;
    }

    .action-icon i {
        font-size: 24px;
        color: #22c55e;
    }
    
    .action-card:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(64, 130, 109, 0.15);
    }
    
    .action-card h3 {
        font-size: 16px;
        margin: 12px 0 8px 0;
        letter-spacing: 1px;
        font-weight: 500;
    }
    
    .action-card p {
        font-size: 13px;
        line-height: 1.6;
        margin: 0;
        color: #5a7a6a;
    }
    
    .action-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }
    
    .action-icon i {
        font-size: 26px;
    }
    
    /* 赛事列表卡片移动端优化 */
    .competition-card,
    .recruitment-card {
        padding: 18px 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .competition-card h3,
    .recruitment-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .competition-card p,
    .recruitment-card p {
        font-size: 13px;
        line-height: 1.6;
        margin: 6px 0;
    }
    
    /* 模态框移动端优化 */
    .modal-content {
        padding: 25px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .competition-card,
    .recruitment-card {
        padding: 20px 15px;
    }
    
    .my-content {
        padding: 25px 20px;
    }
    
    .menu-item {
        padding: 15px;
        font-size: 15px;
    }
}

/* 超小屏幕优化（手机横屏或小屏手机） */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .page-header {
        padding: 12px 10px;
        margin-bottom: 20px;
    }
    
    .page-header .header-top {
        padding-bottom: 0;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .logo {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .subtitle {
        display: none;
    }
    
    .nav-links {
        gap: 6px;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .nav-links a.nav-btn {
        padding: 10px 8px;
        font-size: 13px;
        min-height: 48px;
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }
    
    .nav-links a.nav-btn i {
        margin-right: 3px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .page-header h2 {
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    
    .page-subtitle {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    #home .section {
        padding: 18px 12px;
        margin: 18px 0;
    }
    
    .section h3 {
        font-size: 16px;
        padding: 10px 12px;
        margin: -18px -12px 15px -12px;
    }
    
    .quick-actions {
        gap: 12px;
    }
    
    .action-card {
        padding: 18px 15px;
        min-height: 130px;
    }
    
    .action-icon {
        width: 52px;
        height: 52px;
    }
    
    .action-icon i {
        font-size: 24px;
    }
    
    .action-card h3 {
        font-size: 15px;
    }
    
    .action-card p {
        font-size: 12px;
    }
    
    .login-container {
        padding: 25px 18px;
        margin: 12px 0;
        border-radius: 14px;
    }
    
    .login-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .form {
        padding: 25px 15px;
    }
    
    .login-tabs {
        gap: 6px;
        margin-bottom: 20px;
        border-bottom: 2px solid rgba(64, 130, 109, 0.15);
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 12px 8px;
        font-size: 14px;
        gap: 5px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
    
    .login-form {
        gap: 16px;
    }
    
    .login-form .input-wrapper .input-icon {
        left: 12px;
        font-size: 15px;
        width: 16px;
    }
    
    .login-form input {
        padding: 14px 14px;
        padding-left: 40px;
        font-size: 16px;
        border-radius: 12px;
        border: 1px solid rgba(167, 139, 250, 0.3);
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1), 0 1px 3px rgba(139, 92, 246, 0.08);
    }
    
    .login-form input:focus {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25), 0 2px 6px rgba(139, 92, 246, 0.15), 0 0 0 3px rgba(167, 139, 250, 0.1);
    }
    
    .login-form input:hover:not(:focus) {
        box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15), 0 1px 4px rgba(139, 92, 246, 0.1);
    }
    
    .login-form button {
        padding: 15px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .form input,
    .form select,
    .form textarea {
        padding: 12px 14px;
        padding-left: 40px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .input-icon {
        left: 12px;
        font-size: 14px;
        width: 16px;
        text-align: center;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-img {
        height: 36px;
    }

    .nav-links {
        gap: 4px;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .nav-links a.nav-btn {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 48px;
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }
    
    .nav-links a.nav-btn i {
        font-size: 12px;
        margin-right: 2px;
        flex-shrink: 0;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .page-header {
        padding: 25px 15px;
    }
}
