/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #60a5fa 50%, #93c5fd 75%, #dbeafe 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-google {
    background: white;
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #1e40af;
}

.btn-google:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-guest {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.btn-guest:hover {
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* 登录界面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 10px;
    line-height: 1.3;
}

.login-subtitle {
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
    font-size: 1rem;
}

/* 认证表单切换 */
.auth-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.toggle-btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

/* 表单样式 */
.auth-form {
    animation: fadeIn 0.3s ease-in-out;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e40af !important;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1e40af;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #3b82f6 !important;
    font-weight: 500;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin-top: 10px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.remember-text {
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
}

.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px;
    color: #d97706;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
    font-weight: 500;
}

/* 职业选择界面 */
.career-container {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.career-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.career-header {
    margin-bottom: 30px;
}

.career-header img {
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.career-header img:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
}

.career-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
}

.career-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.career-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.career-option {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.career-option:hover {
    border-color: #1e40af;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.2);
}

.career-option.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.career-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.career-option h3 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 1.2rem;
}

.career-option p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 主界面样式 */
.main-container {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
    gap: 40px;
    box-sizing: border-box;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex-shrink: 0;
}

.logo img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
    animation: logoGlow 4s ease-in-out infinite;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

.logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-btn, .donation-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 12px;
}

.donation-nav-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.donation-nav-btn:hover {
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    margin-left: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    margin-top: 10px;
    display: none;
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.logout {
    color: #dc3545;
    border-top: 1px solid #e9ecef;
    margin-top: 5px;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
}

/* 英雄区域样式 */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 1200px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 搜索框样式 */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    margin-top: 20px;
}

.search-box {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* 统计卡片样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 翻转卡片样式 */
.flip-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    perspective: 1000px;
    height: 220px;
    width: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flip-card.visible {
    opacity: 1;
    transform: scale(1);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.flip-card.visible .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.05);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 30px 20px;
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    color: #1f2937;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(59, 130, 246, 0.95));
    color: white;
    transform: rotateY(180deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flip-card-front .stat-number {
    color: #1e40af;
}

.flip-card-back .stat-number {
    color: white;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flip-card-front .stat-label {
    color: #374151;
}

.flip-card-back .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-description {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    max-width: 200px;
}

.flip-card-front .stat-description {
    color: #6b7280;
}

.flip-card-back .stat-description {
    color: rgba(255, 255, 255, 0.8);
}

/* 特色介绍样式 */
.features-intro-container {
    margin: 60px 0;
    padding: 0 20px;
}

.features-intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .features-intro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-intro-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.feature-intro-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-intro-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-intro-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-intro-card h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-intro-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* 大学卡片样式 */
.universities-container {
    margin: 50px 0;
    text-align: center;
    padding: 0 20px;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.university-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.university-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.university-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

.university-flag {
    font-size: 3rem;
    margin-bottom: 16px;
}

.university-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.university-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.quick-action-btn {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 0 5px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 捐赠区域样式 */
.donation-section {
    margin: 40px auto;
    max-width: 600px;
}

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.donation-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.donation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.donation-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.donation-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.donation-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.donation-btn:hover {
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* 功能卡片样式 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateZ(30px) rotateX(8deg) rotateY(8deg);
    box-shadow: 
        0 25px 50px rgba(30, 64, 175, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
    text-align: center;
}

.feature-desc {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* 通知侧边栏样式 */
.notification-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    z-index: 1000;
    pointer-events: none;
    animation: slideInFromRight 1.5s ease-out;
}

@keyframes slideInFromRight {
    0% {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

.notification-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    position: relative;
    animation: slideInFromRight 1.2s ease-out;
    animation-fill-mode: both;
}

.notification-card:nth-child(1) {
    animation-delay: 0.5s;
}

.notification-card:nth-child(2) {
    animation-delay: 1s;
}

.notification-card:nth-child(3) {
    animation-delay: 1.5s;
}

/* 卡片关闭动画 */
.notification-card.closing {
    animation: shrinkAndFadeOut 0.6s ease-in forwards;
}

@keyframes shrinkAndFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
        margin-bottom: 25px;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.5;
        margin-bottom: 15px;
    }
    100% {
        transform: scale(0);
        opacity: 0;
        margin-bottom: 0;
        height: 0;
        padding: 0;
    }
}

.notification-card:hover {
    transform: translateZ(15px) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.notification-content {
    font-size: 13px;
    color: #000000;
    line-height: 1.5;
}

.notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* 功能模块样式 */
.feature-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.feature-content-inner {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 0;
    padding: 80px 40px 40px 40px;
    margin: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    color: #1f2937;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(40px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-content.active .feature-content-inner {
    transform: scale(1) translateY(0);
}

/* 内容逐步显示动画 */
.feature-content .feature-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.feature-content .feature-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.feature-content .feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
}

.feature-content.active .feature-header,
.feature-content.active .feature-grid,
.feature-content.active .feature-item {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 全屏进入动画 */
@keyframes slideInFromBottom {
    0% {
        transform: scale(0.9) translateY(100px);
        opacity: 0;
    }
    50% {
        transform: scale(0.95) translateY(20px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 背景渐变动画 */
.feature-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 197, 253, 0.05) 50%, 
        rgba(219, 234, 254, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-content.active::before {
    opacity: 1;
}

/* 关闭按钮样式 */
.feature-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    color: #6b7280;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.feature-content.active .feature-close-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.feature-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    transform: scale(1.1) translateY(0);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.3);
}

/* 关闭按钮进入动画 */
@keyframes fadeInCloseBtn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 背景点击关闭 */
.feature-content {
    cursor: pointer;
}

.feature-content-inner {
    cursor: default;
}

/* 退出动画 */
.feature-content.closing {
    animation: slideOutToBottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.feature-content.closing .feature-content-inner {
    animation: scaleOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.feature-content.closing .feature-close-btn {
    animation: fadeOutCloseBtn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideOutToBottom {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
}

@keyframes scaleOut {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.95) translateY(30px);
        opacity: 0;
    }
}

@keyframes fadeOutCloseBtn {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}

.feature-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.feature-header h2 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 10px;
}

.feature-header p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* AI助手头部区域样式 */
.ai-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.ai-title-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.ai-title-text h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.ai-title-text p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.ai-status-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.chat-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* 聊天配置面板 */
.chat-config-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.config-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-label {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.config-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.config-toggles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.toggle-text {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

/* AI聊天主体区域 */
.ai-chat-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-messages-container {
    height: 500px;
    overflow-y: auto;
    background: #fafafa;
}

/* AI聊天界面样式 */
.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.chat-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.language-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #10b981;
    animation: none;
}

.status-dot.offline {
    background: #ef4444;
    animation: none;
}

.status-dot.checking {
    background: #f59e0b;
    animation: pulse 1s infinite;
}

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

/* 公告功能样式 */
.announcement-controls {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ai-status-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ai-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.ai-status-dot.online {
    background: #10b981;
}

.ai-status-dot.offline {
    background: #ef4444;
}

.announcement-search {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.search-input-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.announcements-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.announcements-header h3 {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.announcement-filters select {
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.announcement-filters select:focus {
    border-color: #3b82f6;
    outline: none;
}

.announcements-list {
    max-height: 400px;
    overflow-y: auto;
}

.announcement-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.9);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.announcement-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.announcement-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.announcement-item.admission {
    border-left-color: #10b981;
}

.announcement-item.exam {
    border-left-color: #f59e0b;
}

.announcement-item.enrollment {
    border-left-color: #8b5cf6;
}

.announcement-item.policy {
    border-left-color: #ef4444;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.announcement-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    font-weight: 500;
}

.announcement-type {
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.announcement-content {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.announcement-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.announcement-source {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.announcement-qa {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.qa-header h3 {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.qa-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.qa-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    font-weight: 500;
    color: white;
}

.qa-message.user {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    margin-left: auto;
    text-align: right;
}

.qa-message.ai {
    background: rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.4);
    margin-right: auto;
}

.qa-input {
    display: flex;
    gap: 10px;
}

.qa-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.qa-input input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.qa-input input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.message {
    display: flex;
    margin-bottom: 20px;
    gap: 12px;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.assistant-message .message-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-text {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #000000;
}

.user-message .message-text {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

/* 聊天输入区域 */
.chat-input-section {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
}

.typing-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.input-area {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    min-height: 50px;
    max-height: 150px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-btn {
    padding: 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.control-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.send-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

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

.input-info {
    margin-top: 10px;
}

.chat-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.chat-stats span {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 快速咨询区域样式 */
.quick-consultation-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.quick-consultation-section h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.consultation-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.category-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.category-section h4 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.category-section .quick-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-section .quick-option-btn {
    text-align: left;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.category-section .quick-option-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Markdown内容增强样式 */
.markdown-content {
    line-height: 1.6;
    color: #1f2937;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #1e40af;
}

.markdown-content h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.markdown-content h4 {
    font-size: 1.1rem;
    color: #3b82f6;
}

.markdown-content p {
    margin: 8px 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.markdown-content li {
    margin: 4px 0;
}

.markdown-content blockquote {
    border-left: 4px solid #3b82f6;
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.markdown-content strong {
    font-weight: 600;
    color: #1e40af;
}

.markdown-content em {
    font-style: italic;
    color: #6b7280;
}

.markdown-content mark {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
}

.markdown-content code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.markdown-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

/* 代码块增强样式 */
.code-block-wrapper {
    position: relative;
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-block-header {
    background: #374151;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #4b5563;
}

.copy-code-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-code-btn:hover {
    background: #9ca3af;
}

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.markdown-table th,
.markdown-table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}

.markdown-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* 流式文本光标 */
.streaming-cursor {
    animation: blink 1s infinite;
    color: #3b82f6;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input-container.enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.input-options {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    flex-wrap: wrap;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.option-toggle:hover {
    color: #3b82f6;
}

.option-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.action-btn {
    padding: 8px 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.send-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

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

.chat-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 快速咨询样式 */
.quick-consultation {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.quick-consultation h4 {
    margin: 0 0 16px 0;
    color: #000000;
    font-size: 1.1rem;
}

.quick-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-option-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #000000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-option-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

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

/* 流式文本样式 */
.streaming-text {
    position: relative;
}

.streaming-cursor {
    animation: blink 1s infinite;
    color: #3b82f6;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-container {
        gap: 20px;
        padding: 0 20px;
        height: 120px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 10px 14px;
        font-size: 0.8rem;
        max-width: 130px;
        text-align: center;
        margin: 0 3px;
    }
    
    .settings-btn, .donation-nav-btn {
        padding: 10px 14px;
        margin: 0 8px;
        font-size: 0.8rem;
    }
    
    .user-menu {
        margin-left: 10px;
    }
    
    .logo span {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 25px 15px;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 12px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 0 2px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    .settings-btn, .donation-nav-btn {
        padding: 8px 12px;
        margin: 0 5px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 80px;
    }
    
    .user-menu {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .notification-sidebar {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .chat-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chat-actions {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-options {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 8px;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 0.7rem;
        margin: 0 1px;
        min-width: 70px;
        flex: 1;
    }
    
    .settings-btn, .donation-nav-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        margin: 0 3px;
        min-width: 70px;
        flex: 1;
    }
    
    .user-menu {
        margin-top: 5px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .logo span {
        font-size: 1rem;
        max-width: 150px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-action-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .search-container {
        margin: 0 20px 30px;
    }
}

/* 题库功能样式 */
.header-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.question-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group, .search-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.filter-select, #questionSearch {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 150px;
}

.search-group {
    flex-direction: row;
    align-items: flex-end;
}

.search-group input {
    min-width: 200px;
}

.btn-icon {
    padding: 8px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 5px;
}

.bank-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bank-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.question-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon {
    font-size: 2.5rem;
}

.category-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
}

.category-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.crawler-control-panel {
    margin: 30px 0;
}

.section-title {
    margin: 30px 0 20px 0;
    text-align: center;
}

.section-title h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-title p {
    color: #6b7280;
    font-size: 1rem;
}

.crawler-status-container {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.crawler-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #374151;
}

.search-results-info {
    margin: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.recent-questions {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.question-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.difficulty-indicator {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.difficulty-indicator.easy {
    background: #10b981;
}

.difficulty-indicator.medium {
    background: #f59e0b;
}

.difficulty-indicator.hard {
    background: #ef4444;
}

.question-content {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.question-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.question-details {
    margin: 15px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-item .label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.detail-item .value {
    color: #6b7280;
    font-size: 0.9rem;
}

.question-meta {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.new {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.hot {
    background: #fef3c7;
    color: #92400e;
}

.badge.premium {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge.free {
    background: #d1fae5;
    color: #065f46;
}

.stats {
    color: #059669;
    font-weight: 600;
    font-size: 0.8rem;
}

.question-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.tools-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tool-card h4 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.tool-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 响应式题库样式 */
@media (max-width: 768px) {
    .question-filters {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .search-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group input {
        min-width: auto;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .question-categories {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-actions {
        justify-content: center;
    }
}

/* 申请策略功能样式 */
.strategy-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-btn.active, .tab-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* 时间线样式 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding: 20px 0 20px 60px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.timeline-item.completed {
    border-left-color: #10b981;
}

.timeline-item.current {
    border-left-color: #3b82f6;
}

.timeline-item.pending {
    border-left-color: rgba(156, 163, 175, 0.5);
}

.timeline-date {
    position: absolute;
    left: -50px;
    top: 25px;
    background: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content h4 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.timeline-tasks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.task {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.task.completed {
    background: #d1fae5;
    color: #065f46;
}

.task.in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.task.pending {
    background: #f3f4f6;
    color: #6b7280;
}

/* 申请要求网格 */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.requirement-card h4 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.requirement-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list li.completed {
    color: #059669;
}

.requirement-list li.in-progress {
    color: #1d4ed8;
}

.requirement-list li.pending {
    color: #6b7280;
}

/* 文书写作样式 */
.essays-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.essay-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.essay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.essay-header h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0;
}

.essay-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.essay-status.in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.essay-status.pending {
    background: #f3f4f6;
    color: #6b7280;
}

.essay-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.essay-prompt {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.essay-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 学校卡片样式 */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.school-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.school-card.reach {
    border-left-color: #ef4444;
}

.school-card.target {
    border-left-color: #f59e0b;
}

.school-card.safety {
    border-left-color: #10b981;
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.school-header h4 {
    color: #1f2937;
    margin: 0;
    font-size: 1.1rem;
}

.school-type {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.school-card.reach .school-type {
    background: #fee2e2;
    color: #991b1b;
}

.school-card.target .school-type {
    background: #fef3c7;
    color: #92400e;
}

.school-card.safety .school-type {
    background: #d1fae5;
    color: #065f46;
}

.school-stats, .school-deadlines {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.school-stats .stat {
    color: #6b7280;
}

.school-deadlines .deadline {
    color: #374151;
    font-weight: 500;
}

/* 策略内容容器 */
.strategy-content {
    margin-top: 20px;
}

/* 响应式申请策略样式 */
@media (max-width: 768px) {
    .strategy-tabs {
        justify-content: center;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }
    
    .timeline-container {
        padding: 15px;
    }
    
    .timeline-item {
        padding: 15px 0 15px 40px;
    }
    
    .timeline-date {
        left: -35px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .school-stats, .school-deadlines {
        flex-direction: column;
        gap: 5px;
    }
    
    .essay-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 大学信息弹窗样式 */
.university-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.university-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.university-modal {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.university-modal-overlay.show .university-modal {
    transform: scale(1) translateY(0);
}

.university-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.university-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.university-flag-large {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.university-title-section h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.university-ranking {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    font-size: 1rem;
    font-weight: 500;
}

.university-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.university-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.university-modal-content {
    padding: 30px;
    color: white;
}

.university-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.university-basic-info,
.university-academic-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.university-basic-info h3,
.university-academic-info h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

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

.info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: white;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
}

.university-link {
    color: #93c5fd;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.university-link:hover {
    border-bottom-color: #93c5fd;
}

.university-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.university-description h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.university-description p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.university-highlights {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.university-highlights h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.university-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.university-actions .btn {
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

/* 响应式大学弹窗 */
@media (max-width: 768px) {
    .university-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .university-modal-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .university-header-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .university-flag-large {
        font-size: 3rem;
    }
    
    .university-title-section h2 {
        font-size: 1.5rem;
    }
    
    .university-modal-content {
        padding: 20px;
    }
    
    .university-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .university-actions {
        flex-direction: column;
    }
    
    .university-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .university-modal-overlay {
        padding: 10px;
    }
    
    .university-modal {
        border-radius: 15px;
    }
    
    .university-modal-header {
        padding: 15px;
    }
    
    .university-modal-content {
        padding: 15px;
    }
    
    .university-flag-large {
        font-size: 2.5rem;
    }
    
    .university-title-section h2 {
        font-size: 1.3rem;
    }
}

/* ESC键关闭弹窗 */

/* 触摸友好优化 */
@media (hover: none) and (pointer: coarse) {
    .quick-option-btn:hover,
    .action-btn:hover,
    .send-btn:hover,
    .nav-item:hover {
        transform: none;
        background: initial;
    }
    
    .quick-option-btn:active,
    .action-btn:active,
    .send-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 更大的触摸目标 */
    .quick-option-btn,
    .action-btn,
    .send-btn {
        min-height: 44px;
        min-width: 44px;
    }
}



/* 登录按钮样式 */
.login-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

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

/* 用户菜单区域调整 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .overlay-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .overlay-icon {
        font-size: 3rem;
    }
    
    .overlay-content h3 {
        font-size: 1.5rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 用户功能界面样式 */
.user-feature-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    overflow-y: auto;
}

.user-feature-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.back-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(-2px);
}

.user-feature-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.user-feature-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 个人资料界面样式 */
.profile-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-avatar-section {
    text-align: center;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-avatar-large span {
    font-size: 48px;
    color: white;
    font-weight: 700;
}

.change-avatar-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.info-item input,
.info-item select,
.info-item textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.info-item input:focus,
.info-item select:focus,
.info-item textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-item textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.save-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* 账户设置界面样式 */
.settings-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.settings-group {
    margin-bottom: 40px;
}

.settings-group h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.setting-item label {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.setting-item.danger label {
    color: #dc3545;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.danger-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 学习进度界面样式 */
.progress-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.progress-chart {
    margin-bottom: 40px;
}

.progress-chart h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.achievements-section,
.recent-activity {
    margin-bottom: 30px;
}

.achievements-section h3,
.recent-activity h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.achievement-item {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
}

/* 我的收藏界面样式 */
.bookmarks-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.bookmarks-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #495057;
}

.bookmark-tab {
    display: none;
}

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

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bookmark-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bookmark-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bookmark-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.bookmark-item p {
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bookmark-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.bookmark-actions {
    display: flex;
    gap: 8px;
}

.bookmark-btn {
    background: #e9ecef;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookmark-btn:hover {
    background: #dee2e6;
}

.bookmark-btn.remove {
    background: #f8d7da;
    color: #721c24;
}

.bookmark-btn.remove:hover {
    background: #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .bookmarks-grid {
        grid-template-columns: 1fr;
    }
    
    .bookmarks-tabs {
        flex-direction: column;
    }
    
    .user-feature-content {
        padding: 20px;
    }
}
