/* ==================== 个人中心全新设计 ==================== */

/* 页面基础 */
.profile-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--secondary-light) 100%);
}

/* ==================== 顶部Hero区域 ==================== */
.profile-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.profile-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* 头像区域 */
.profile-avatar-wrapper {
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-container:hover .profile-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.avatar-level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-container:hover .avatar-edit-btn {
    opacity: 1;
    transform: translateY(0);
}

.avatar-edit-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* 用户信息 */
.profile-info {
    flex: 1;
    color: white;
}

.profile-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.level-badge {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.profile-bio {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 500px;
    line-height: 1.6;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

/* 操作按钮 */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.profile-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

.profile-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== 主内容区域 ==================== */
.profile-main {
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* ==================== 侧边栏 ==================== */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 导航菜单 */
.sidebar-nav {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(43, 95, 117, 0.3);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-compact h3 {
    margin: 0;
}

.level-name {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 等级进度环 */
.level-progress-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.level-next {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.level-next strong {
    color: var(--primary-color);
}

.next-requirements {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
}

.requirement-tag {
    background: var(--secondary-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* 快捷链接 */
.quick-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
}

.quick-link-icon {
    font-size: 1.25rem;
}

/* ==================== 内容区域 ==================== */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease;
}

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

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

.section-header h2 {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.link-more {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.link-more:hover {
    color: var(--primary-dark);
    gap: 0.375rem;
}

.link-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.link-more:hover::after {
    transform: translateX(2px);
}

/* 时间筛选 */
.time-filter {
    display: flex;
    gap: 0.25rem;
    background: var(--secondary-light);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}

.filter-btn {
    padding: 0.375rem 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ==================== 数据概览 - 优化布局 ==================== */
.stats-grid-enhanced {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
}

/* 主统计卡片 */
.stat-card-primary {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
}

.stat-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.stat-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.stat-icon-large {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coin-gradient {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-info-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label-large {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.stat-trend-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.stat-trend-badge.up {
    color: #2E7D32;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 统计卡片组 */
.stat-cards-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card-compact {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}

.stat-card-compact:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.stat-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-compact-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.articles-icon { background: #E3F2FD; }
.views-icon { background: #F3E5F5; }
.likes-icon { background: #FFEBEE; }
.followers-icon { background: #E8F5E9; }

.stat-compact-change {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.stat-compact-change.positive {
    color: #2E7D32;
    background: #E8F5E9;
}

.stat-compact-change.neutral {
    color: var(--text-light);
    background: var(--secondary-color);
}

.stat-compact-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-compact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

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

/* 旧样式保留兼容 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card-large {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coin-icon-bg {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    color: #F57C00;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stat-trend.up {
    color: #2E7D32;
    background: #E8F5E9;
}

.stat-card-medium {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card-medium:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.stat-change {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.stat-change.positive {
    color: #2E7D32;
    background: #E8F5E9;
}

.stat-change.negative {
    color: var(--accent-color);
    background: #FFEBEE;
}

.stat-change.neutral {
    color: var(--text-light);
    background: var(--secondary-color);
}

.stat-body .stat-value {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.published { background: #4CAF50; }
.dot.likes { background: var(--accent-color); }
.dot.followers { background: var(--primary-color); }

/* ==================== 等级详情 - 优化设计 ==================== */
.level-display-card-enhanced {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.level-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.level-badge-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 20px rgba(43, 95, 117, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.level-badge-large:hover {
    transform: scale(1.05) rotate(5deg);
}

.level-header-info {
    flex: 1;
    min-width: 0;
}

.level-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.level-title-row h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.level-tag {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.level-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 迷你进度环 */
.level-progress-ring-mini {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.progress-ring-mini {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-bg-mini {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 5;
}

.progress-ring-fill-mini {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-text-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 优化进度条 */
.level-progress-enhanced {
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    position: relative;
}

.progress-bar-track {
    height: 10px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
    z-index: 0;
}

.progress-steps .step {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-steps .step.active {
    color: var(--primary-color);
    background: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(43, 95, 117, 0.15);
}

.progress-steps .step.completed {
    color: var(--gold-color);
    background: white;
}

/* 优化权益展示 */
.level-benefits-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.benefit-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(43, 95, 117, 0.1);
}

.benefit-tag-icon {
    font-size: 1rem;
}

/* 旧样式保留兼容 */
.level-display-card {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.level-info-main {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.level-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 16px rgba(43, 95, 117, 0.3);
    flex-shrink: 0;
}

.level-text h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.level-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.level-progress-linear {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-track {
    height: 8px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.level-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.benefit-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
}

.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* ==================== 可折叠区域样式 ==================== */
.collapsible-section {
    transition: all 0.3s ease;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    background: var(--secondary-light);
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.collapse-btn {
    background: var(--secondary-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

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

.collapse-icon {
    transition: transform 0.3s ease;
}

.collapsible-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.collapsible-section.collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* ==================== 最近动态 ==================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--secondary-light);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.activity-empty p {
    margin-bottom: 1.5rem;
}

/* ==================== 交易记录 ==================== */
.transaction-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.transaction-row:hover {
    background: var(--secondary-light);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-title {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.transaction-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.transaction-type {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.transaction-type.earn {
    color: #2E7D32;
    background: #E8F5E9;
}

.transaction-type.spend {
    color: var(--accent-color);
    background: #FFEBEE;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1rem;
}

.transaction-amount.earn {
    color: #2E7D32;
}

.transaction-amount.spend {
    color: var(--accent-color);
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    animation: modalIn 0.3s ease forwards;
}

.modal-container.modal-large {
    max-width: 640px;
}

@keyframes modalIn {
    to {
        transform: scale(1) translateY(0);
    }
}

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

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--secondary-light);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* 表单样式 */
.profile-form-enhanced .form-row {
    margin-bottom: 1.25rem;
}

.profile-form-enhanced .form-group {
    position: relative;
}

.profile-form-enhanced label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-form-enhanced input,
.profile-form-enhanced textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.profile-form-enhanced input:focus,
.profile-form-enhanced textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.char-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* 数字名片预览 */
.digital-card-preview {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

/* 等级时间线 */
.level-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 3.5rem;
    bottom: -1rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-item.completed::before {
    background: var(--gold-color);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--gold-color);
    border-color: var(--gold-dark);
}

.timeline-item.current .timeline-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(43, 95, 117, 0.2);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ==================== 按钮样式 ==================== */
.btn-primary,
.btn-secondary {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(43, 95, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(43, 95, 117, 0.4);
}

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

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .profile-main {
        grid-template-columns: 1fr;
        margin-top: -1rem;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .sidebar-card {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card-large {
        grid-column: span 2;
    }
    
    .level-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 优化布局响应式 */
    .stats-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .stat-card-primary {
        min-height: 140px;
    }
    
    .level-card-header {
        flex-wrap: wrap;
    }
    
    .level-progress-ring-mini {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 2rem 0 3rem;
    }
    
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-header-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .meta-divider {
        display: none;
    }
    
    .profile-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .profile-main {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-large {
        grid-column: span 1;
    }
    
    .level-info-main {
        flex-direction: column;
        text-align: center;
    }
    
    .level-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    /* 优化布局移动端 */
    .stat-cards-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .level-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .level-title-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .level-progress-ring-mini {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .progress-steps::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .collapsible-header:hover {
        margin: -1rem -1rem 1.25rem -1rem;
        padding: 1rem;
    }
    
    .section-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .time-filter {
        width: 100%;
        justify-content: stretch;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(43, 95, 117, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(43, 95, 117, 0);
    }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
