/**
 * AIZXS Member System Styles
 * 会员系统专用样式
 *
 * @package AIZXS
 */

/* ==================== 变量定义 ==================== */
:root {
    --primary-purple: #8B5CF6;
    --primary-dark: #6D28D9;
    --gradient-main: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --gradient-light: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    --accent-orange: #F59E0B;
    --accent-green: #10B981;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 15px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 10px 30px rgba(139, 92, 246, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ==================== 页面容器 ==================== */
.member-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==================== 用户状态栏 ==================== */
.user-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.user-bar-logged-in {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-bar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
}

.user-bar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-bar-info {
    flex: 1;
}

.user-bar-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.user-bar-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.user-bar-zhidian {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-purple);
    font-weight: 600;
}

.user-bar-zhidian::before {
    content: '⚡';
    font-size: 14px;
}

.user-bar-dropdown {
    position: relative;
}

.user-bar-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-dark);
}

.user-bar-dropdown-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.user-bar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    overflow: hidden;
}

.user-bar-dropdown:hover .user-bar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-bar-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.user-bar-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

.user-bar-dropdown-menu a:last-child {
    color: #EF4444;
}

.user-bar-dropdown-menu a:last-child:hover {
    background: #FEF2F2;
}

.user-bar-not-logged {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-bar-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.user-bar-btn-login {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.user-bar-btn-login:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.user-bar-btn-register {
    background: var(--gradient-main);
    color: #fff;
}

.user-bar-btn-register:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==================== 用户资料卡片 ==================== */
.profile-header {
    background: var(--gradient-main);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    border: 4px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.profile-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

.profile-zhidian-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    text-align: center;
    min-width: 160px;
}

.profile-zhidian-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.profile-zhidian-value {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-zhidian-value::before {
    content: '⚡';
    font-size: 24px;
}

/* ==================== 统计卡片网格 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* ==================== 内容区域 ==================== */
.member-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.section-more {
    font-size: 14px;
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s;
}

.section-more:hover {
    color: var(--primary-dark);
}

/* ==================== 课程列表 ==================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.course-card-image {
    position: relative;
    height: 160px;
    background: var(--gradient-main);
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.course-card-badge.difficulty-easy {
    background: var(--accent-green);
}

.course-card-badge.difficulty-medium {
    background: var(--accent-orange);
}

.course-card-badge.difficulty-hard {
    background: #EF4444;
}

.course-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-card-status.unlocked {
    background: var(--accent-green);
    color: #fff;
}

.course-card-status.locked {
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.course-card-content {
    padding: 20px;
}

.course-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-card-cost {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-cost::before {
    content: '⚡';
}

.course-card-btn {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.course-card-btn-unlock {
    background: var(--gradient-main);
    color: #fff;
}

.course-card-btn-unlock:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-card-btn-learn {
    background: var(--accent-green);
    color: #fff;
}

.course-card-btn-learn:hover {
    background: #059669;
}

/* ==================== 智点记录列表 ==================== */
.record-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item:hover {
    background: var(--bg-light);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: var(--radius-sm);
}

.record-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.record-icon.income {
    background: #ECFDF5;
    color: var(--accent-green);
}

.record-icon.expense {
    background: #FEF2F2;
    color: #EF4444;
}

.record-info {
    flex: 1;
}

.record-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.record-time {
    font-size: 13px;
    color: var(--text-gray);
}

.record-amount {
    font-size: 17px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
}

.record-amount.positive {
    color: var(--accent-green);
}

.record-amount.negative {
    color: #EF4444;
}

/* ==================== 推广中心 ==================== */
.promotion-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: #fff;
}

.promotion-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.promotion-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.promotion-link-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.promotion-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.promotion-link-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.promotion-copy-btn {
    padding: 10px 20px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.promotion-copy-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
}

.promotion-stats {
    display: flex;
    gap: 30px;
}

.promotion-stat {
    text-align: center;
}

.promotion-stat-value {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.promotion-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* ==================== 课程详情页 ==================== */
.course-hero {
    background: var(--gradient-main);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.course-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
}

.course-hero-image {
    width: 280px;
    height: 180px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.course-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero-info {
    flex: 1;
}

.course-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.course-hero-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 20px;
}

.course-hero-badges {
    display: flex;
    gap: 15px;
}

.course-hero-badge {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== 进度条 ==================== */
.progress-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-purple);
}

.progress-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== 课程大纲 ==================== */
.course-outline {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.outline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outline-item {
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.outline-item:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.outline-item.completed {
    background: #F0FDF4;
}

.outline-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    margin-right: 15px;
    flex-shrink: 0;
}

.outline-item.completed .outline-number {
    background: var(--accent-green);
    color: #fff;
}

.outline-content {
    flex: 1;
}

.outline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.outline-meta {
    font-size: 13px;
    color: var(--text-gray);
}

.outline-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 15px;
    flex-shrink: 0;
}

.outline-status.locked {
    background: var(--bg-light);
    color: var(--text-light);
}

.outline-status.unlocked {
    background: var(--gradient-light);
    color: #fff;
}

.outline-status.completed {
    background: var(--accent-green);
    color: #fff;
}

/* ==================== 学习任务面板 ==================== */
.task-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.task-panel-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-item:hover {
    background: #EDE9FE;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.task-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

.task-checkbox.checked::after {
    content: '✓';
    font-size: 14px;
    font-weight: 700;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.task-desc {
    font-size: 13px;
    color: var(--text-gray);
}

.task-reward {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple);
    white-space: nowrap;
    margin-left: 15px;
}

/* ==================== 章节导航 ==================== */
.chapter-nav {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.chapter-nav-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.chapter-nav-item {
    flex-shrink: 0;
}

.chapter-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.chapter-nav-link:hover {
    background: var(--gradient-main);
    color: #fff;
}

.chapter-nav-link.active {
    background: var(--gradient-main);
    color: #fff;
}

.chapter-nav-link.completed {
    background: #F0FDF4;
    color: var(--accent-green);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.btn-success {
    background: var(--accent-green);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

/* ==================== 标签页 ==================== */
.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-item {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: none;
}

.tab-item:hover {
    color: var(--primary-purple);
}

.tab-item.active {
    color: var(--primary-purple);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .course-hero-content {
        flex-direction: column;
    }

    .course-hero-image {
        width: 100%;
        height: 200px;
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-zhidian-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .member-page {
        padding: 20px 15px;
    }

    .user-bar {
        flex-direction: column;
        gap: 15px;
    }

    .user-bar-logged-in {
        width: 100%;
        justify-content: space-between;
    }

    .user-bar-not-logged {
        width: 100%;
        justify-content: center;
    }

    .profile-header {
        padding: 25px;
    }

    .profile-name {
        font-size: 22px;
    }

    .profile-stats {
        gap: 20px;
    }

    .profile-stat-value {
        font-size: 20px;
    }

    .profile-zhidian-value {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .promotion-stats {
        gap: 20px;
    }

    .promotion-stat-value {
        font-size: 22px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .course-hero-title {
        font-size: 22px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}
