/* ===== 页面变量扩展 ===== */
:root {
    --profile-primary: #2563eb;
    --profile-primary-light: #3b82f6;
    --profile-primary-dark: #1d4ed8;
    --profile-accent: #f59e0b;
    --profile-success: #10b981;
    --profile-danger: #ef4444;
    --profile-bg: #f1f5f9;
    --profile-card-bg: #ffffff;
    --profile-text-primary: #0f172a;
    --profile-text-secondary: #475569;
    --profile-text-muted: #94a3b8;
    --profile-border: #e2e8f0;
    --profile-border-light: #f1f5f9;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-card-hover: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-elevated: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body { background: var(--profile-bg); }

/* ===== Hero 区域 ===== */
.profile-hero {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #1e3a5f 100%);
    padding: 60px 0 100px;
    color: #fff;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.profile-hero > .container { position: relative; z-index: 2; }

/* 网格背景装饰 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ===== 用户信息卡片 ===== */
.user-card {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 32px;
}
.user-card-inner {
    background: var(--profile-card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    padding: 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .user-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}

.avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 42px; font-weight: 700; color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.avatar-status {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--profile-success);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.user-meta { flex: 1; min-width: 0; }
.user-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .user-name-row { justify-content: center; }
}
.user-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--profile-text-primary);
    letter-spacing: -0.02em;
}
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}
.user-handle {
    font-size: 14px;
    color: var(--profile-text-muted);
    margin-bottom: 10px;
}
.user-bio {
    font-size: 14px;
    color: var(--profile-text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 8px;
}
@media (max-width: 768px) {
    .user-actions { width: 100%; justify-content: center; }
}
.btn-action {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-action--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-action--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-action--secondary {
    background: #f8fafc;
    color: var(--profile-text-secondary);
    border: 1px solid var(--profile-border);
}
.btn-action--secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.btn-action.followed {
    background: var(--profile-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== 数据统计栏 ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--profile-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell {
    background: var(--profile-card-bg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.stat-cell:hover {
    background: #f8fafc;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--profile-text-primary);
    font-family: "DIN Alternate", "DIN", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.02em;
    transition: var(--transition);
}
.stat-cell:hover .stat-value { color: var(--profile-primary); }
.stat-label {
    font-size: 13px;
    color: var(--profile-text-muted);
    margin-top: 4px;
}

/* ===== Tab 导航 ===== */
.tab-section {
    background: var(--profile-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    position: sticky;
    top: 64px;
    z-index: 100;
}
.tab-nav {
    display: flex;
    gap: 0;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--profile-text-muted);
    white-space: nowrap;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.tab-btn:hover { color: var(--profile-text-secondary); }
.tab-btn.active {
    color: var(--profile-primary);
    border-bottom-color: var(--profile-primary);
    font-weight: 600;
}
.tab-btn i { margin-right: 6px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== 主布局 ===== */
.profile-layout {
    display: grid;
    gap: 24px;
    padding-bottom: 40px;
}
@media (min-width: 1024px) { .profile-layout { grid-template-columns: 1fr 300px; } }

/* ===== 动态卡片 ===== */
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-card {
    background: var(--profile-card-bg);
    border: 1px solid var(--profile-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.feed-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}
.feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.feed-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff;
    flex-shrink: 0;
}
.feed-meta { flex: 1; min-width: 0; }
.feed-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feed-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--profile-text-primary);
}
.feed-action {
    font-size: 13px;
    color: var(--profile-text-muted);
}
.feed-time {
    font-size: 12px;
    color: var(--profile-text-muted);
    margin-left: auto;
}

.feed-body {
    background: var(--profile-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--profile-border-light);
}
.feed-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 6px;
    line-height: 1.5;
}
.feed-desc {
    font-size: 13px;
    color: var(--profile-text-secondary);
    line-height: 1.7;
}
.feed-footer {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--profile-text-muted);
}
.feed-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}
.feed-footer span:hover {
    color: var(--profile-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* ===== 币种卡片 ===== */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) { .coin-grid { grid-template-columns: repeat(3, 1fr); } }
.coin-card {
    background: var(--profile-card-bg);
    border: 1px solid var(--profile-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.coin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--profile-primary), var(--profile-primary-light));
    opacity: 0;
    transition: var(--transition);
}
.coin-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
    transform: translateY(-3px);
}
.coin-card:hover::before { opacity: 1; }
.coin-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px; font-weight: 700; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.coin-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin-bottom: 2px;
}
.coin-symbol {
    font-size: 12px;
    color: var(--profile-text-muted);
    margin-bottom: 10px;
}
.coin-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--profile-text-primary);
    font-family: "DIN Alternate", "DIN", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.02em;
}
.coin-change {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}
.coin-change.up { color: #059669; background: #d1fae5; }
.coin-change.down { color: #dc2626; background: #fee2e2; }

/* ===== 文章卡片 ===== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--profile-card-bg);
    border: 1px solid var(--profile-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}
.article-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}
.article-thumb {
    width: 130px; height: 90px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
}
.article-thumb > div { width: 100%; height: 100%; transition: transform 0.4s ease; }
.article-card:hover .article-thumb > div { transform: scale(1.05); }
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card:hover .article-title { color: var(--profile-primary); }
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--profile-text-muted);
}
.article-tag {
    background: var(--profile-bg);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--profile-text-secondary);
    border: 1px solid var(--profile-border);
}

@media (max-width: 640px) {
    .article-card { flex-direction: column; }
    .article-thumb { width: 100%; height: 160px; }
}

/* ===== 侧边栏 ===== */
.sidebar-card {
    background: var(--profile-card-bg);
    border: 1px solid var(--profile-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.sidebar-card:hover { box-shadow: var(--shadow-card-hover); }
.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: var(--profile-primary);
    font-size: 16px;
}

.about-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--profile-border-light);
    font-size: 13px;
}
.about-row:last-child { border-bottom: none; }
.about-label { color: var(--profile-text-muted); width: 60px; flex-shrink: 0; }
.about-value { color: var(--profile-text-secondary); font-weight: 500; }
.about-value a { color: var(--profile-primary); text-decoration: none; }
.about-value a:hover { text-decoration: underline; }

.social-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-item {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: var(--profile-bg);
    color: var(--profile-text-secondary);
    border: 1px solid var(--profile-border);
    transition: var(--transition);
    text-decoration: none;
}
.social-item:hover {
    background: var(--profile-primary);
    color: #fff;
    border-color: var(--profile-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    padding: 6px 14px;
    background: var(--profile-bg);
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--profile-text-secondary);
    transition: var(--transition);
}
.tag-item:hover {
    border-color: var(--profile-primary);
    color: var(--profile-primary);
    background: rgba(37, 99, 235, 0.05);
}

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--profile-bg);
    border-radius: 10px;
    border: 1px solid var(--profile-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--profile-text-secondary);
    transition: var(--transition);
}
.badge-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--profile-text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state p { font-size: 14px; }
.main-content img{
    height: 100%;
    width: 100%;
}
