/* ============ 设计变量 ============ */
:root {
    /* 颜色 */
    --bg-color: #EDEDED;
    --card-bg: #FFFFFF;
    --text-primary: #191919;
    --text-secondary: #888888;
    --text-sub: #999999;
    --divider-color: #E5E5E5;
    --arrow-color: #C8C8CC;
    --badge-bg: #F03C33;
    --nav-text: #111111;
    --verify-gold: #FFB300;
    --icon-color: #1F1F1F;
    --profile-sub: #999999;

    /* 尺寸 */
    --card-radius: 12px;
    --cell-height: 52px;
    --cell-padding-h: 16px;
    --card-gap: 10px;
    --section-title-margin-top: 20px;
    --section-title-margin-bottom: 10px;

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

/* ============ 全局重置 ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    background-color: var(--bg-color);
    font-family: var(--font-family);
    font-size: 17px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* ============ 页面容器 ============ */
.page-wrapper {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* ============ 导航栏 ============ */
.nav-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    background-color: var(--card-bg);
    border-bottom: none;
}

.nav-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.nav-back:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--nav-text);
    letter-spacing: 0.3px;
}

.nav-right {
    width: 36px;
    height: 36px;
}

/* ============ 主体内容 ============ */
.content {
    padding: var(--card-gap) 16px;
}

/* ============ 卡片组件 ============ */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 0;
}

/* ============ Cell 行 ============ */
.cell {
    display: flex;
    align-items: center;
    height: var(--cell-height);
    padding: 0 var(--cell-padding-h);
    background-color: var(--card-bg);
    cursor: pointer;
    transition: background-color 0.12s ease;
    position: relative;
}

.cell:active {
    background-color: #F5F5F5;
}

.cell-text {
    font-size: 17px;
    color: var(--text-primary);
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.cell-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    flex-shrink: 0;
}

.cell-sub-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: 6px;
    flex-shrink: 0;
}

.last-cell {
    border-bottom: none;
}

/* ============ 分隔线 ============ */
.divider {
    height: 0.5px;
    background-color: var(--divider-color);
    margin-left: var(--cell-padding-h);
}

/* ============ 区块标题 ============ */
.section-title {
    font-size: 14px;
    color: var(--text-secondary);
    padding: var(--section-title-margin-top) 24px var(--section-title-margin-bottom) 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============ Profile Cell ============ */
.profile-cell {
    height: 76px;
    gap: 12px;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.verify-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-badge svg {
    display: block;
}

.profile-sub {
    font-size: 14px;
    color: var(--profile-sub);
    letter-spacing: 0.3px;
}

/* ============ 角标 ============ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background-color: var(--badge-bg);
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

.badge-dots {
    font-size: 10px;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* ============ 底部按钮区 ============ */
.bottom-actions {
    display: flex;
    align-items: stretch;
    height: 88px;
    background-color: var(--card-bg);
    border-top: 0.5px solid var(--divider-color);
}

.action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.action-item:active {
    background-color: rgba(0, 0, 0, 0.03);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.action-divider {
    width: 0.5px;
    background-color: var(--divider-color);
    margin: 16px 0;
}

/* ============ 底部占位 ============ */
.bottom-space {
    height: 40px;
}

/* ============ PC端适配 ============ */
@media (min-width: 421px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .page-wrapper {
        width: 100%;
        max-width: 420px;
        min-height: auto;
        height: auto;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        overflow: hidden;
    }

    .nav-bar {
        position: relative;
    }

    .content {
        padding-bottom: 20px;
    }
}

/* ============ 大屏居中容器 ============ */
@media (min-width: 768px) {
    .page-wrapper {
        max-width: 420px;
    }
}
