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

:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* 辅助色调 */
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --accent-color: #06b6d4;
    
    /* 背景色 */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.9);
    
    /* 文字色 */
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* 边框色 */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* 状态色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 字体 */
    --font-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', monospace;
}

/* ====== 基础样式 ====== */
html {
    scroll-behavior: smooth;
    overflow-x: auto;
    min-width: 380px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
    overflow-x: auto;
    min-width: 380px;
}

/* ====== 容器 ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    min-width: 380px;
}

/* ====== 导航栏 ====== */
.navbar {
    background: var(--bg-primary);
    color: var(--text-white);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.nav-brand span {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.user-center-link {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ====== 按钮样式 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: var(--spacing-xs);
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-white);
    border-color: var(--primary-color);
}

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

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

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    min-height: 52px;
}

.btn-disabled {
    background: var(--secondary-color);
    color: var(--text-white);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ====== 主页样式 ====== */
body {
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 非首页的主要内容区域 */
.main-content {
    padding-top: 40px;
    min-width: 380px;
}

/* 首页不需要额外间距 */
.home-page .main-content {
    padding: 0;
}

/* 英雄区域 */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: var(--text-white);
}

/* 视频背景 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 视频缩略图样式 */
.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* 视频加载后的效果 */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

/* 手动播放按钮样式 */
.hero-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* 视频覆盖层 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2;
    pointer-events: none;
}

/* 移动端视频背景优化 */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-overlay {
        background: rgba(15, 23, 42, 0.7);
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    
    /* 移动端课程卡片优化 */
    .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* 如果视频不支持，显示回退背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero区域按钮样式 */
.hero-buttons {
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    min-width: 160px;
    padding: 12px 24px;
}

/* Hero区域统计数据样式 */
.hero-stats {
    margin-top: 3rem;
}

.hero-stats > div {
    gap: 2rem;
}

.hero-stats .text-center {
    min-width: 80px;
    padding: 0 1rem;
}

.hero-stats h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-stats small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero .row {
    width: 100%;
}

/* 课程卡片描述样式优化 */
.card-text {
    text-align: left !important;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-text br {
    margin-bottom: 0.5rem;
}

/* 课程卡片布局优化 */
.card-body .text-center {
    text-align: center;
}

.card-body .text-center .card-text {
    text-align: left !important;
    max-width: 100%;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.tech-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-board {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, transparent 40%, var(--primary-color) 41%, var(--primary-color) 43%, transparent 44%);
    background-size: 20px 20px;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

.data-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* 课程展示区 */
.courses {
    padding: var(--spacing-xl) 0;
    background: #f8fafc;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.course-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.course-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
}

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

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

.placeholder-image {
    font-size: 4rem;
    color: var(--text-white);
    opacity: 0.6;
}

.course-content {
    padding: var(--spacing-lg);
}

.course-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.course-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.course-info {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.course-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price {
    color: var(--error-color) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.course-chapters {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: #f1f5f9;
    border-radius: var(--radius-md);
}

.chapter-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.chapter-item ul {
    list-style: none;
    padding-left: var(--spacing-md);
}

.chapter-item li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.chapter-item li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -var(--spacing-sm);
}

.course-detail-content {
    margin-bottom: var(--spacing-md);
}

.detail-section {
    margin-bottom: var(--spacing-md);
}

.detail-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.detail-section ul {
    list-style: none;
    padding-left: var(--spacing-md);
}

.detail-section li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.detail-section li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: -var(--spacing-sm);
}

.course-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.placeholder {
    opacity: 0.6;
}

.placeholder .course-image {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.placeholder .placeholder-image {
    color: var(--text-muted);
}

/* 特色功能区 */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-card);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f8fafc;
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--text-white);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--bg-primary);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
}

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-white);
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--bg-secondary);
    color: var(--text-muted);
}

/* ====== 表单样式 ====== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* ====== 模态框样式 ====== */
/* 自定义模态框样式，仅在非Bootstrap模态框时使用 */
.modal:not(.fade) {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal:not(.fade) .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal:not(.fade) .modal-content.large {
    max-width: 800px;
}

/* Bootstrap模态框的增强样式 */
.modal.fade .modal-dialog {
    margin: 1.75rem auto;
}

.modal.fade .modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: none;
}

.modal.fade .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal.fade .modal-body {
    padding: var(--spacing-lg);
    max-height: 70vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ====== 状态样式 ====== */
.status {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status.paid {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* ====== 图标字体 ====== */
[class^="icon-"],
[class*=" icon-"] {
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 使用CSS实现简单图标 */
.icon-video::before { content: '📹'; }
.icon-classroom::before { content: '🏫'; }
.icon-plus::before { content: '+'; }
.icon-shield::before { content: '🛡️'; }
.icon-devices::before { content: '📱'; }
.icon-certificate::before { content: '📜'; }
.icon-support::before { content: '🎧'; }
.icon-phone::before { content: '📞'; }
.icon-email::before { content: '📧'; }
.icon-address::before { content: '📍'; }
.icon-time::before { content: '⏰'; }
.icon-datacenter::before { content: '🏢'; }
.icon-target::before { content: '🎯'; }
.icon-people::before { content: '👥'; }
.icon-innovation::before { content: '💡'; }
.icon-dashboard::before { content: '📊'; }
.icon-book::before { content: '📚'; }
.icon-order::before { content: '📋'; }
.icon-password::before { content: '🔒'; }
.icon-logout::before { content: '🚪'; }
.icon-courses::before { content: '📖'; }
.icon-progress::before { content: '📈'; }
.icon-play::before { content: '▶️'; }
.icon-lock::before { content: '🔒'; }
.icon-search::before { content: '🔍'; }
.icon-empty::before { content: '📂'; }
.icon-wechat::before { content: '💬'; }
.icon-qq::before { content: '🐧'; }
.icon-alipay::before { content: '💳'; }
.icon-bank::before { content: '🏦'; }
.icon-eye::before { content: '👁️'; }
.icon-eye-off::before { content: '🙈'; }
.icon-check::before { content: '✓'; }
.icon-success::before { content: '✅'; }
.icon-medal::before { content: '🥇'; }
.icon-trophy::before { content: '🏆'; }
.icon-star::before { content: '⭐'; }
.icon-subway::before { content: '🚇'; }
.icon-bus::before { content: '🚌'; }
.icon-car::before { content: '🚗'; }
.icon-unique::before { content: '🔐'; }
.icon-secure::before { content: '🔒'; }

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

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

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

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

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

/* ====== 核心技能响应式布局 ====== */
/* 确保核心技能在小屏幕上保持两列布局 */
@media (max-width: 575px) {
    .core-skills .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .core-skills .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 0 5px !important;
    }
    
    .core-skills .d-flex {
        font-size: 0.8rem;
    }
    
    .core-skills .d-flex i {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
}

/* ====== 报名咨询样式 ====== */
.consultation-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-methods {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    transition: all 0.3s ease;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.phone-number {
    margin-top: var(--spacing-xs);
}

.phone-number .badge {
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 1px;
}

.qr-code-section {
    text-align: center;
}

.qr-code-container {
    display: inline-block;
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.consultation-features {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.feature-item {
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.feature-item i {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

/* 报名咨询响应式设计 */
@media (max-width: 575px) {
    .contact-item {
        margin-bottom: var(--spacing-md);
    }
    
    .qr-code-container img {
        max-width: 150px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.5rem !important;
    }
}

/* ====== 证书选择样式 ====== */
.certificate-options {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.certificate-options.is-invalid {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

.certificate-options .certificate-item {
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certificate-options .certificate-item:hover {
    background-color: #e2e8f0;
}

.certificate-options .certificate-item:last-child {
    margin-bottom: 0;
}

.certificate-options .form-check-input {
    position: absolute;
    left: var(--spacing-xs);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
    pointer-events: auto; /* 确保checkbox可以正常点击 */
}

.certificate-options .form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    display: block;
    padding-left: calc(1.25rem + var(--spacing-xs));
    margin: 0;
    line-height: 1.5;
    pointer-events: none; /* 防止label的点击事件干扰父容器 */
}

.certificate-options .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式处理 */
@media (max-width: 576px) {
    .certificate-options .certificate-item {
        padding: var(--spacing-sm);
    }
    
    .certificate-options .form-check-input {
        left: var(--spacing-sm);
    }
    
    .certificate-options .form-check-label {
        padding-left: calc(1.25rem + var(--spacing-sm));
    }
}

#certificate-error {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ====== 表单验证样式 ====== */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.invalid-feedback {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ====== 中文日期选择器样式 ====== */
input[type="date"] {
    font-family: var(--font-primary);
}

/* 设置日期选择器的语言为中文 */
input[type="date"][lang="zh-CN"] {
    direction: ltr;
}

/* 自定义日期选择器样式 */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--primary-hover);
}

/* 日期选择器在中文环境下的显示 */
input[type="date"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-secondary);
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
}

/* ====== Flatpickr 中文日期选择器样式 ====== */
.flatpickr-calendar {
    font-family: var(--font-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.flatpickr-calendar.open {
    z-index: 9999;
}

.flatpickr-day {
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.flatpickr-day:hover {
    background-color: var(--primary-light);
    color: white;
}

.flatpickr-day.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.flatpickr-day.today {
    border-color: var(--primary-color);
}

.flatpickr-months .flatpickr-month {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: var(--text-primary);
}

.flatpickr-weekdays {
    background-color: #f8fafc;
}

.flatpickr-weekday {
    color: var(--text-secondary);
    font-weight: 600;
}

/* 中文日期选择器输入框样式 */
#buyer-birthdate {
    cursor: pointer;
    background-color: white;
}

#buyer-birthdate:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* ====== 优惠券样式 ====== */
.coupon-item {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent !important;
}

.coupon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.coupon-item:hover::before {
    transform: translateX(100%);
}

/* 高级优惠券样式 */
.coupon-premium {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border-color: #ff4757 !important;
}

.coupon-premium .coupon-amount {
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coupon-premium .coupon-desc {
    color: rgba(255, 255, 255, 0.9);
}

.coupon-premium .coupon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.coupon-premium .coupon-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* 标准优惠券样式 */
.coupon-standard {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border-color: #26d0ce !important;
}

.coupon-standard .coupon-amount {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coupon-standard .coupon-desc {
    color: rgba(255, 255, 255, 0.9);
}

.coupon-standard .coupon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.coupon-standard .coupon-icon {
    font-size: 1.3rem;
    animation: bounce 1s infinite;
}

/* 优惠券动画 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 优惠券默认状态 - 表示已赠送 */
.coupon-item {
    box-shadow: var(--shadow-md);
}

.coupon-item::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--success-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in;
}

/* ====== 密码强度指示器 ====== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.danger {
    background-color: #ef4444;
}

.strength-fill.warning {
    background-color: #f59e0b;
}

.strength-fill.info {
    background-color: #3b82f6;
}

.strength-fill.success {
    background-color: #10b981;
}

/* ====== 认证页面样式 ====== */
.auth-section {
    padding-top: 80px;
}

.auth-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.auth-container .card-body {
    padding: 3rem;
}

@media (max-width: 768px) {
    .auth-container .card-body {
        padding: 2rem 1.5rem;
    }
}

/* ====== 用户中心页面样式 ====== */
.user-center-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.user-center-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

/* 侧边栏样式 */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.user-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.user-level {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: var(--spacing-xs);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: var(--spacing-sm);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.sidebar-nav a.logout {
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.sidebar-nav a.logout:hover {
    background: var(--error-color);
    color: var(--text-white);
}

/* 主内容区样式 */
.main-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.page-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.page-header p {
    color: var(--text-secondary);
}

/* 报名记录样式 */
.registration-section {
    margin-bottom: var(--spacing-xl);
}

.registration-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.registration-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.registration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.registration-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.card-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.course-type {
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.course-type.online {
    background: var(--success-color);
    color: var(--text-white);
}

.course-type.offline {
    background: var(--warning-color);
    color: var(--text-white);
}

.card-info {
    margin-bottom: var(--spacing-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.card-actions {
    text-align: center;
}

/* 联系信息样式 */
.contact-section {
    margin-bottom: var(--spacing-xl);
}

.contact-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-item .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.contact-item .phone-number,
.contact-item .wechat-id,
.contact-item .email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.contact-item .contact-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.qr-code-section {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.qr-code-section h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.qr-code-container {
    display: inline-block;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.qr-code-container img {
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.qr-code-container p {
    color: var(--text-secondary);
    margin: 0;
}

/* 公司地址样式 */
.address-section {
    margin-bottom: var(--spacing-xl);
}

.address-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.address-details {
    margin-bottom: var(--spacing-lg);
}

.address-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.address-item:last-child {
    margin-bottom: 0;
}

.address-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.address-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.address-content p {
    color: var(--text-secondary);
    margin: 0;
}

.transportation-info h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
}

.transportation-methods {
    display: grid;
    gap: var(--spacing-md);
}

.transport-method {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.transport-method h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.transport-method p {
    color: var(--text-secondary);
    margin: 0;
}

/* 个人信息样式 */
.profile-section {
    margin-bottom: var(--spacing-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
    margin: 0;
}

.profile-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

/* 报名详情弹窗样式 */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

#registration-detail-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

/* 确保弹窗内容在小屏幕上也能正常显示 */
@media (max-width: 768px) {
    .modal.fade .modal-dialog {
        margin: 0.25rem auto;
        max-width: 98%;
    }
    
    .modal.fade .modal-body {
        max-height: 70vh;
        padding: var(--spacing-sm);
    }
    
    #registration-detail-content {
        max-height: 65vh;
    }
}

/* 报名详情内容样式 */
.registration-detail {
    padding: var(--spacing-md);
}

.detail-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

.course-info-grid .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.course-info-grid .info-item label {
    color: var(--text-secondary);
    font-weight: 500;
}

.course-info-grid .info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

/* 费用明细样式 */
.fee-breakdown {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.fee-item.total {
    border-top: 2px solid var(--primary-color);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    font-weight: 600;
    font-size: 1.1rem;
}

.fee-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.fee-value {
    color: var(--text-primary);
    font-weight: 600;
}

.fee-value.original {
    text-decoration: line-through;
    color: var(--text-muted);
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* 支付信息样式 */
.payment-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.payment-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.payment-info .info-item label {
    color: var(--text-secondary);
    font-weight: 500;
}

.payment-info .info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

/* 课程特色样式 */
.features-list {
    list-style: none;
    padding: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.features-list li {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.features-list li i {
    color: var(--success-color);
    margin-right: var(--spacing-sm);
    font-weight: bold;
}

/* 证书样式 */
.certificates-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.certificate-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .user-center-layout {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .user-center-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .address-item {
        flex-direction: column;
        text-align: center;
    }
    
    .transportation-methods {
        grid-template-columns: 1fr;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    .user-center-page {
        padding-top: 60px;
    }
    
    .main-content {
        padding: var(--spacing-md);
    }
    
    .registration-card {
        padding: var(--spacing-sm);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .contact-item {
        padding: var(--spacing-sm);
    }
    
    .qr-code-container img {
        width: 150px;
        height: 150px;
    }
    
    .course-info-grid .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .fee-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .payment-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

/* ====== 消息提示样式 ====== */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-weight: 500;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.message.show {
    transform: translateX(0);
}

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

.message-error {
    background: var(--error-color);
}

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

.message-info {
    background: var(--info-color);
}

/* ====== 密码输入框样式 ====== */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* ====== 密码强度样式 ====== */
.password-strength {
    margin-top: var(--spacing-xs);
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: var(--error-color);
}

.strength-fill.medium {
    background: var(--warning-color);
}

.strength-fill.strong {
    background: var(--info-color);
}

.strength-fill.very-strong {
    background: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ====== 密码要求样式 ====== */
.password-requirements {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.password-requirements h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li i {
    margin-right: var(--spacing-xs);
    font-size: 0.8rem;
}

.password-requirements li.met {
    color: var(--success-color);
}

.password-requirements li.met i {
    color: var(--success-color);
}

/* ====== 字段错误样式 ====== */
.field-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: var(--spacing-xs);
}

.field-help {
    margin-top: var(--spacing-xs);
}

.field-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
}

.field-help a:hover {
    text-decoration: underline;
}

/* ====== 加载状态样式 ====== */
.icon-loading {
    animation: spin 1s linear infinite;
}

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

/* ====== 修改密码页面特定样式 ====== */
.change-password-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.password-form-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.form-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.password-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.form-actions .btn {
    flex: 1;
}

/* ====== 安全提示样式 ====== */
.security-tips {
    margin-top: var(--spacing-xl);
}

.security-tips h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tip-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tip-icon {
    background: var(--primary-color);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: 1rem;
}

.tip-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ====== 登录记录样式 ====== */
.login-history {
    margin-top: var(--spacing-xl);
}

.login-history h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.history-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--bg-secondary);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.history-table td {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background: var(--bg-secondary);
}

/* ====== 成功弹窗样式 ====== */
#success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#success-modal.show {
    opacity: 1;
}

#success-modal .modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#success-modal.show .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.success-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

#success-modal h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

#success-modal p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .password-form-section {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .history-table {
        overflow-x: auto;
    }
    
    .history-table table {
        min-width: 600px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}