/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 视口流体缩放基础 — 23.8寸 1920px 屏幕为基准 1 */
:root {
    /* 字体缩放系数 (相对于 1920px 基准) */
    --scale: calc(1vw * 100 / 1920);

    /* 导航 */
    --nav-pad-x: clamp(36px, 3.5vw, 60px);
    --nav-pad-y: clamp(14px, 1.5vw, 25px);
    --logo-size: clamp(35px, 2.5vw, 45px);
    --brand-font: clamp(16px, 1.3vw, 22px);
    --nav-gap: clamp(28px, 3vw, 50px);
    --search-w: clamp(140px, 12vw, 220px);
    --nav-right-gap: clamp(14px, 1.5vw, 25px);

    /* 主内容区 */
    --main-pad-x: clamp(36px, 3.5vw, 60px);
    --main-pad-top: clamp(80px, 7vw, 120px);
    --main-pad-bot: clamp(60px, 7vw, 100px);
    --content-max: clamp(1100px, 85vw, 1600px);
    --content-gap: clamp(50px, 6vw, 100px);

    /* 标题 */
    --title-font: clamp(48px, 5.5vw, 90px);
    --stat-font: clamp(22px, 2.2vw, 36px);
    --stat-label-font: clamp(10px, 0.65vw, 11px);
    --stat-gap: clamp(28px, 3.5vw, 50px);
    --stats-col-gap: clamp(30px, 3.5vw, 60px);

    /* 副标题/简介 */
    --subtitle-font: clamp(12px, 0.85vw, 14px);
    --bio-gap: clamp(10px, 1vw, 15px);

    /* 卡片 */
    --card-pad: clamp(14px, 1.5vw, 24px);
    --card-radius: clamp(10px, 0.85vw, 16px);
    --card-gap: clamp(14px, 1.5vw, 25px);

    /* 视频/作品网格 */
    --video-grid-gap: clamp(14px, 1.5vw, 25px);
    --video-card-h: clamp(140px, 16vw, 240px);
    --work-grid-gap: clamp(14px, 1.5vw, 25px);
    --work-card-h: clamp(140px, 16vw, 240px);

    /* 右侧边栏 */
    --side-right: clamp(30px, 2.5vw, 40px);
    --side-gap: clamp(24px, 2.5vw, 40px);
    --side-font: clamp(11px, 0.75vw, 13px);
    --side-ls: clamp(4px, 0.35vw, 6px);

    /* 底部导航 */
    --bottom-left: clamp(30px, 3.5vw, 60px);
    --bottom-bot: clamp(24px, 2.5vw, 40px);

    /* 底部圆点 */
    --dot-size: clamp(6px, 0.45vw, 8px);
    --dot-gap: clamp(8px, 0.7vw, 12px);

    /* 弹窗 */
    --modal-max: clamp(400px, 40vw, 500px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(13px, 0.85vw, 15px);
    line-height: 1.6;
}

/* 背景星空 */
#starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--nav-pad-y) var(--nav-pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 - 与首页一致 */
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    text-decoration: none;
    color: var(--text-primary);
}

.logo {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
}

.brand-text {
    font-size: var(--brand-font);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

/* 导航链接 */
.nav-links {
    display: flex;
    list-style: none;
    gap: var(--nav-gap);
    align-items: center;
}

.nav-links a {
    color: #808080;
    text-decoration: none;
    font-size: var(--side-font);
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff;
}

/* 右侧导航 */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--nav-right-gap);
}

.user-time {
    font-size: var(--side-font);
    color: #808080;
    letter-spacing: 1px;
    font-weight: 400;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    border-radius: 22px;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #404040;
}

.search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: clamp(12px, 0.8vw, 14px);
    width: var(--search-w);
    outline: none;
    padding: 0;
}

.search-input::placeholder {
    color: #606060;
}

.search-btn {
    background: transparent;
    border: none;
    color: #808080;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn:hover {
    color: #ffffff;
}

/* 主内容 */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--main-pad-top) var(--main-pad-x) var(--main-pad-bot);
    width: 100%;
    box-sizing: border-box;
}

.main-content:has(#page-4.active) {
    padding-right: calc(var(--side-right) + 3.25rem);
}

.content-wrapper {
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--content-gap);
    align-items: center;
}

/* 页面切换 */
.page-content {
    display: none !important;
}

.page-content.active {
    display: grid !important;
}

/* 视频页面、作品页面、关于我页面、聊天页面特殊布局 */
.video-page-layout.active,
.works-page-layout.active,
.about-page-layout.active {
    display: flex !important;
}

/* 聊天页在 main 的 flex 主轴上拉满宽度，否则中间会话区无法随屏变宽 */
.chat-page-layout.active {
    display: flex !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

/* 左侧文字区域 */
.text-section {
    animation: fadeInLeft 1s ease-out;
    display: flex;
    gap: var(--stats-col-gap);
    align-items: center;
}

/* 左侧统计列 */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: var(--stat-gap);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--stat-font);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: var(--stat-label-font);
    color: #606060;
    letter-spacing: 1px;
    font-weight: 300;
}

/* 标题容器 */
.title-container {
    flex: 1;
}

.main-title {
    font-size: var(--title-font);
    font-weight: 700;
    line-height: 1;
    margin-bottom: clamp(20px, 2.5vw, 40px);
    letter-spacing: -2px;
}

.title-word {
    display: block;
}

/* 个人简介区域 */
.bio-section {
    display: flex;
    align-items: center;
    gap: var(--bio-gap);
    max-width: 600px;
}

.subtitle {
    font-size: var(--subtitle-font);
    letter-spacing: 0.5px;
    color: #808080;
    font-weight: 300;
    line-height: 1.8;
    flex: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.subtitle:hover {
    color: #a0a0a0;
}

.edit-bio-btn {
    background: transparent;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 8px;
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.edit-bio-btn svg {
    width: 18px;
    height: 18px;
}

.edit-bio-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    opacity: 1;
}

/* 视频页面布局 */
.video-page-layout {
    flex-direction: column;
    gap: clamp(36px, 4vw, 60px);
    align-items: flex-start;
    width: 100%;
    max-width: clamp(1000px, 85vw, 1400px);
    grid-template-columns: 1fr;
}

.video-header-section {
    display: flex;
    gap: clamp(36px, 4vw, 60px);
    align-items: center;
}

.video-grid-section {
    width: 100%;
    margin-left: clamp(80px, 8vw, 140px);
}

/* 视频网格容器 */
.videos-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--video-grid-gap);
    max-width: 100%;
}

.video-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #ffffff;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-info {
    padding: clamp(10px, 1vw, 15px);
}

.video-title {
    font-size: clamp(12px, 0.8vw, 14px);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-meta {
    font-size: clamp(11px, 0.7vw, 12px);
    color: #808080;
}

/* 添加视频卡片 */
.add-video-card {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--video-card-h);
}

.add-video-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.add-video-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #606060;
    font-size: clamp(12px, 0.8vw, 14px);
    transition: color 0.3s ease;
}

.add-video-card:hover .add-video-btn {
    color: #808080;
}

.add-video-btn svg {
    width: clamp(32px, 2.5vw, 40px);
    height: clamp(32px, 2.5vw, 40px);
}

/* 作品页面布局 */
.works-page-layout {
    flex-direction: column;
    gap: clamp(36px, 4vw, 60px);
    align-items: flex-start;
    width: 100%;
    max-width: clamp(1000px, 85vw, 1400px);
    grid-template-columns: 1fr;
}

.works-header-section {
    display: flex;
    gap: clamp(36px, 4vw, 60px);
    align-items: center;
}

.works-grid-section {
    width: 100%;
    margin-left: clamp(80px, 8vw, 140px);
}

/* 作品分类容器 */
.works-categories {
    max-width: 100%;
}

.category-tabs {
    display: flex;
    gap: clamp(10px, 1vw, 15px);
    margin-bottom: clamp(18px, 2vw, 30px);
}

.category-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    color: #808080;
    font-size: clamp(11px, 0.75vw, 13px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #404040;
    color: #a0a0a0;
}

.category-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--work-grid-gap);
}

.work-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.work-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-type-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: clamp(11px, 0.7vw, 12px);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.work-type-badge.games {
    background: rgba(102, 126, 234, 0.9);
    color: #ffffff;
}

.work-type-badge.music {
    background: rgba(118, 75, 162, 0.9);
    color: #ffffff;
}

.work-type-badge.art {
    background: rgba(78, 205, 196, 0.9);
    color: #ffffff;
}

.work-info {
    padding: clamp(10px, 1vw, 15px);
}

.work-title {
    font-size: clamp(12px, 0.8vw, 14px);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-meta {
    font-size: clamp(11px, 0.7vw, 12px);
    color: #808080;
}

/* 添加作品卡片 */
.add-work-card {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--work-card-h);
}

.add-work-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(0);
}

.add-work-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #606060;
    font-size: clamp(12px, 0.8vw, 14px);
    transition: color 0.3s ease;
}

.add-work-card:hover .add-work-btn {
    color: #808080;
}

.add-work-btn svg {
    width: clamp(32px, 2.5vw, 40px);
    height: clamp(32px, 2.5vw, 40px);
}

/* 关于我页面布局 */
.about-page-layout {
    flex-direction: column;
    gap: clamp(36px, 4vw, 60px);
    align-items: flex-start;
    width: 100%;
    max-width: clamp(1000px, 85vw, 1400px);
    grid-template-columns: 1fr;
}

.about-header-section {
    display: flex;
    gap: clamp(36px, 4vw, 60px);
    align-items: center;
}

.about-content-section {
    width: 100%;
    margin-left: clamp(80px, 8vw, 140px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 1.5vw, 25px);
}

/* 信息卡片 */
.info-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(16px, 1.5vw, 25px);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: clamp(12px, 1.5vw, 20px);
}

/* 个人信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 1.2vw, 20px);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: clamp(11px, 0.7vw, 12px);
    color: #606060;
}

.info-item span {
    font-size: clamp(13px, 0.9vw, 15px);
    color: #ffffff;
    font-weight: 500;
}

/* 会员状态卡片 */
.membership-info {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.2vw, 20px);
}

.membership-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 600;
}

.membership-badge svg {
    width: 24px;
    height: 24px;
    color: #fbbf24;
}

.membership-expires {
    display: flex;
    justify-content: space-between;
    font-size: clamp(12px, 0.75vw, 13px);
    color: #808080;
}

.upgrade-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(12px, 0.8vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 钱包卡片 */
.wallet-info {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.2vw, 20px);
}

.wallet-balance {
    text-align: center;
    padding: clamp(14px, 1.5vw, 20px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.balance-amount {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.currency {
    font-size: clamp(16px, 1.5vw, 24px);
    opacity: 0.6;
}

.balance-label {
    font-size: clamp(11px, 0.75vw, 13px);
    color: #808080;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1vw, 15px);
}

.wallet-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(12px, 0.8vw, 14px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wallet-btn:hover {
    border-color: #404040;
    background: rgba(255, 255, 255, 0.08);
}

.wallet-btn.recharge:hover {
    border-color: #10b981;
    color: #10b981;
}

.wallet-btn.withdraw:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* 加入天数卡片 */
.days-info {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 20px);
    padding: clamp(14px, 1.5vw, 20px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.days-icon {
    width: clamp(48px, 3.5vw, 60px);
    height: clamp(48px, 3.5vw, 60px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.days-icon svg {
    width: clamp(24px, 1.8vw, 32px);
    height: clamp(24px, 1.8vw, 32px);
}

.days-text {
    flex: 1;
}

.days-label {
    font-size: clamp(11px, 0.75vw, 13px);
    color: #808080;
    margin-bottom: 10px;
}

.days-number {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.days-count {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.days-unit {
    font-size: clamp(14px, 1.1vw, 18px);
    color: #808080;
}

/* 图表卡片 */
.chart-card {
    grid-column: span 2;
}

.chart-container {
    width: 100%;
    height: clamp(180px, 15vw, 250px);
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 1.8vw, 30px);
    margin-top: clamp(12px, 1.2vw, 20px);
    padding-top: clamp(12px, 1.2vw, 20px);
    border-top: 1px solid #2a2a2a;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(11px, 0.75vw, 13px);
    color: #808080;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* ===================== 联系我 - 四栏聊天布局 ===================== */
.chat-page-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    /* 铺满主内容区，去掉 1400px 上限，中间聊天区 (flex:1) 才能随屏变宽 */
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    height: calc(100vh - 200px);
    gap: 0;
    margin-top: 20px;
    box-sizing: border-box;
}

/* --- 左侧图标栏 --- */
.sidebar-icons {
    width: 64px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 8px;
    flex-shrink: 0;
}

/* 未选中：与「通讯录」一致 — 纯白、统一尺寸；选中：白图标 + 紫色圆角底 + 光晕 */
.sidebar-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-icon:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-icon.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.45);
}

.sidebar-icon.active .sidebar-img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* --- 中间联系人列表 --- */
.chat-list-panel {
    width: 280px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.panel-header {
    padding: 20px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #a29bfe;
}

.search-bar {
    margin: 0 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
}

.search-bar i {
    color: #555;
    font-size: 12px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    flex: 1;
}

.search-bar input::placeholder {
    color: #555;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 12px;
}

.chat-list-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    letter-spacing: 1px;
    padding: 10px 8px 6px;
    text-transform: uppercase;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.chat-item.active {
    background: rgba(108, 92, 231, 0.15);
}

.chat-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #4cd97b;
    border: 2px solid #141414;
    border-radius: 50%;
}

.online-dot.offline {
    background: #555;
}

.chat-item-body {
    flex: 1;
    min-width: 0;
}

.chat-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.chat-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.chat-item-time {
    font-size: 11px;
    color: #555;
}

.chat-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-item-msg {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.badge {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* --- 主聊天区域 --- */
.chat-main-area {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-main-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-main-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrap {
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-main-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-main-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.chat-main-status {
    font-size: 11px;
    color: #4cd97b;
}

.chat-main-status.is-offline {
    color: #666;
}

.chat-main-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* --- 消息气泡区域 --- */
.chat-main-area .chat-messages {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-main-area .message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 70%;
}

.chat-main-area .message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-main-area .msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-main-area .msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-main-area .message.sent .msg-bubble-wrap {
    align-items: flex-end;
}

.chat-main-area .msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-main-area .message.received .msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

.chat-main-area .message.sent .msg-bubble {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-main-area .msg-time {
    font-size: 10px;
    color: #555;
    padding: 0 4px;
}

/* --- 聊天输入区 --- */
.chat-main-area .chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-main-area .tool-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 17px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chat-main-area .tool-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #a29bfe;
}

.chat-main-area .chat-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-main-area .chat-input::placeholder {
    color: #555;
}

.chat-main-area .chat-input:focus {
    border-color: rgba(162, 155, 254, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.chat-main-area .send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-main-area .send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.detail-avatar-wrap {
    position: relative;
    margin-bottom: 16px;
}

.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(108, 92, 231, 0.4);
}

.detail-online-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #4cd97b;
    border: 3px solid #141414;
    border-radius: 50%;
}

.detail-online-badge.is-hidden {
    display: none;
}

.detail-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.detail-location {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.detail-location i {
    color: #a29bfe;
}

.detail-bio {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 22px;
    width: 100%;
}

.detail-section {
    width: 100%;
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-section-title i {
    color: #a29bfe;
    font-size: 12px;
}

.social-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.social-tag {
    background: rgba(108, 92, 231, 0.12);
    color: #a29bfe;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.mutual-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mutual-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #141414;
}

.mutual-count {
    font-size: 11px;
    color: #666;
    margin-left: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.contact-row i {
    width: 14px;
    color: #a29bfe;
    font-size: 12px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.media-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.media-thumb:hover {
    transform: scale(1.05);
}

.detail-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.detail-action-btn {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #888;
}

.detail-action-btn.primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff;
    border: none;
}

.detail-action-btn:hover {
    transform: translateY(-1px);
}

.detail-action-btn.primary:hover {
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

/* ===================== 右侧面板双视图 ===================== */

/*
 * 必须留在 flex 文档流内（勿 position:absolute），否则中间 .chat-main-area 会占满整行，
 * 聊天区视觉上「盖住」右侧简介+通讯录。
 * 与「更改简介」对齐：靠 .main-content:has(#page-4) 的 padding-right 整体留白。
 */
.chat-detail-panel {
    width: min(520px, 100%);
    min-width: 280px;
    max-width: 520px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
}

/* ---------- 右侧面板：左侧简介卡片 ---------- */
.detail-normal-view {
    flex: 0 0 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    gap: 0;
    box-sizing: border-box;
    min-height: 100%;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 右侧面板：通讯录 A-Z 列表 ---------- */
.detail-address-book-view {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ab-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ab-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.ab-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.ab-search-bar i {
    color: #555;
    font-size: 12px;
    flex-shrink: 0;
}

.ab-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: #ccc;
    font-size: 12px;
    width: 100%;
}

.ab-search-bar input::placeholder { color: #555; }

.ab-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.ab-letter-group { }

.ab-letter-label {
    font-size: 11px;
    font-weight: 700;
    color: #a29bfe;
    padding: 10px 16px 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ab-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 10px;
    margin: 2px 8px;
    transition: background 0.15s ease;
}

.ab-contact-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ab-contact-row.active {
    background: rgba(108, 92, 231, 0.15);
}

.ab-contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.ab-contact-row.active .ab-contact-avatar {
    border-color: #a29bfe;
}

.ab-contact-info { flex: 1; min-width: 0; }

.ab-contact-name {
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ab-contact-row.active .ab-contact-name {
    color: #ffffff;
}

.ab-contact-desc {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ab-body::-webkit-scrollbar { width: 4px; }
.ab-body::-webkit-scrollbar-track { background: transparent; }
.ab-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* 右侧图片区域 */
.image-section {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.profile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin-left: auto;
}

.profile-image-container:hover .change-avatar-btn {
    opacity: 1;
    visibility: visible;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.3s ease;
}

.profile-image-container:hover .profile-image {
    filter: grayscale(30%) contrast(1.1) brightness(0.7);
}

.image-label {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(10, 10, 10, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 更换头像按钮 */
.change-avatar-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.change-avatar-btn svg {
    width: 32px;
    height: 32px;
}

.change-avatar-btn:hover {
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.05);
}

/* 底部导航点 */
.bottom-nav {
    position: fixed;
    bottom: 40px;
    left: 60px;
    z-index: 100;
}

.nav-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #404040;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 4px;
}

.dot:hover {
    background: #808080;
}

/* 右侧功能按钮 */
.side-actions {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 40px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.side-action-item {
    color: #606060;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 5px;
    position: relative;
    font-weight: 300;
}

.side-action-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #606060, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-action-item:hover {
    color: #ffffff;
    letter-spacing: 8px;
}

.side-action-item:hover::before {
    opacity: 1;
}

/* 动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 弹窗样式 - 玻璃质感 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal {
    background: rgba(26, 26, 26, 0.25);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .glass-modal {
    transform: scale(1) translateY(0);
}

/* 弹窗头部 */
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.15) 100%
    );
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: rotate(90deg);
}

/* 弹窗内容 */
.modal-body {
    padding: 30px;
}

.bio-textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset;
}

.bio-textarea::placeholder {
    color: #606060;
}

.bio-textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.15) inset;
}

.char-counter {
    margin-top: 12px;
    text-align: right;
    font-size: 13px;
    color: #808080;
    font-weight: 500;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

/* 名称输入框 */
.name-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset;
}

.name-input::placeholder {
    color: #606060;
}

.name-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.15) inset;
}

/* 输入提示 */
.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 13px;
}

.input-hint svg {
    width: 16px;
    height: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.input-hint span {
    line-height: 1.4;
}

/* 弹窗底部 */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.15);
}

.modal-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-wrapper {
        gap: 60px;
    }

    .main-title {
        font-size: 70px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .text-section {
        flex-direction: column;
        gap: 40px;
    }

    .stats-column {
        flex-direction: row;
        gap: 30px;
        width: 100%;
        justify-content: center;
    }

    .profile-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .video-header-section,
    .works-header-section,
    .about-header-section {
        flex-direction: column;
        gap: 40px;
    }

    .video-grid-section,
    .works-grid-section,
    .about-content-section {
        margin-left: 0;
    }

    .chat-page-layout {
        height: auto;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
    }

    .sidebar-icons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 10px 0;
        border-radius: 12px;
    }

    .chat-list-panel {
        width: 100%;
        border-radius: 12px;
        max-height: 300px;
    }

    .chat-main-area {
        min-height: 400px;
        border-radius: 12px;
    }

    .chat-detail-panel {
        width: 100%;
        max-width: none;
        border-radius: 12px;
        flex-direction: column;
    }

    .chat-detail-panel .detail-normal-view {
        flex: 0 0 auto;
        width: 100%;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .chat-detail-panel .detail-address-book-view {
        flex: 1 1 auto;
        min-height: 220px;
    }

    .videos-grid-container,
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content-section {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 20px 30px;
    }
    
    .logo {
        width: 38px;
        height: 38px;
    }
    
    .brand-text {
        font-size: 20px;
    }

    .main-content {
        padding: 80px 30px 80px;
    }

    .main-content:has(#page-4.active) {
        padding-right: calc(20px + 3rem);
    }

    .main-title {
        font-size: 48px;
    }

    .bottom-nav {
        left: 30px;
        bottom: 30px;
    }

    .side-actions {
        right: 20px;
        gap: 30px;
    }
    
    .side-action-item {
        font-size: 12px;
        letter-spacing: 5px;
    }
    
    .bio-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .edit-bio-btn {
        align-self: flex-start;
    }
    
    /* 弹窗响应式 */
    .glass-modal {
        max-width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 18px 20px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-text {
        font-size: 18px;
    }

    .main-content {
        padding: 80px 20px 80px;
    }

    .main-content:has(#page-4.active) {
        padding-right: calc(20px + 2.75rem);
    }

    .main-title {
        font-size: 36px;
    }

    .user-time {
        display: none;
    }

    .search-input {
        width: 120px;
    }

    .search-box {
        padding: 6px 12px;
    }

    .videos-grid-container,
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    /* 小屏幕弹窗响应式 */
    .glass-modal {
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 18px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
    }
    
    .modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .bio-textarea {
        font-size: 14px;
        min-height: 120px;
    }
    
    .name-input {
        font-size: 14px;
        padding: 14px;
    }
    
    .input-hint {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .input-hint svg {
        width: 14px;
        height: 14px;
    }
    
    .modal-footer {
        padding: 12px 18px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==================== 通知样式 ==================== */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 通知图标 */
.notification-icon {
    font-size: 18px;
    line-height: 1;
}

/* 通知消息 */
.notification-message {
    flex: 1;
}

/* 成功通知 */
.notification-success {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 1);
}

/* 错误通知 */
.notification-error {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 1);
}

/* 警告通知 */
.notification-warning {
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 1);
}

/* 信息通知 */
.notification-info {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 1);
}

/* 通知动画 */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}


/* ==================== 懒加载和性能优化样式 ==================== */

/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* 背景图懒加载样式 */
[data-background-src] {
    background-size: cover;
    background-position: center;
    transition: background-image 0.3s ease-in-out;
}

[data-background-src].bg-loaded {
    animation: bgFadeIn 0.3s ease-in-out;
}

@keyframes bgFadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* 头像加载动画 */
.profile-image {
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.95);
}

.profile-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* 头像加载骨架屏 */
.profile-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.profile-image-container.avatar-loaded::before {
    opacity: 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 占位符样式 */
.image-placeholder {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 缓存复用指示器 */
.cache-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 4px;
    font-size: 12px;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.cache-indicator.show {
    opacity: 1;
}

/* 性能优化：减少重排和重绘 */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* 响应式图片优化 */
@media (max-width: 768px) {
    .profile-image-container {
        max-width: 300px;
    }
    
    img[data-src] {
        max-width: 100%;
        height: auto;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img[data-src] {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 个人信息编辑按钮样式 */
.info-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-field-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 1px solid #667eea;
    border-radius: 6px;
    padding: 4px 6px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    font-size: 12px;
    opacity: 0.8;
}

.edit-field-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    opacity: 1;
}

.edit-field-btn i {
    font-size: 10px;
}

/* 字段编辑器样式 */
.field-editor {
    width: 100%;
}

/* 性别选择器 */
.gender-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.gender-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.gender-option input[type="radio"] {
    margin: 0;
    accent-color: #667eea;
}

.gender-option input[type="radio"]:checked + .gender-label {
    color: #667eea;
    font-weight: 500;
}

.gender-label {
    color: #ffffff;
    font-size: 14px;
}

/* 生日选择器 */
.birthday-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.birthday-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.age-preview {
    margin-top: 12px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.age-label {
    color: #a0a0a0;
}

.age-value {
    font-weight: 600;
    color: #667eea;
}

/* 文本输入器 */
.location-input,
.school-input,
.ffnumber-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.location-input:focus,
.school-input:focus,
.ffnumber-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.location-input::placeholder,
.school-input::placeholder,
.ffnumber-input::placeholder {
    color: #606060;
}

/* 自动补全建议 */
.location-suggestions {
    margin-top: 8px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.location-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
    color: #a0a0a0;
}

.location-suggestion:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

/* 验证状态 */
.validation-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.validation-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.validation-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.validation-status.loading {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gender-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .gender-option {
        justify-content: center;
    }
    
    .modal-container {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .edit-field-btn {
        display: inline-flex;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================== 地区选择器集成样式 ==================== */

/* 地区选择器容器 */
.location-selector-container {
    width: 100%;
}

.current-location-display {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-location-display:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #667eea;
}

.location-value {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
}

.location-value:empty::before {
    content: '请选择所在地';
    color: #a0a0a0;
}

.location-dropdown-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.location-dropdown-btn:hover {
    color: #667eea;
}

.location-dropdown-btn svg {
    width: 16px;
    height: 16px;
}

.location-preview {
    margin-top: 8px;
    font-size: 12px;
    color: #a0a0a0;
    padding: 4px 0;
}

/* 地区选择器弹窗样式覆盖 */
.modal-overlay .location-modal {
    z-index: 10001; /* 确保在个人信息弹窗之上 */
}

/* 个人信息弹窗中的地区选择器样式调整 */
.field-editor.location-editor {
    padding: 0;
}

.field-editor.location-editor .input-hint {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0a0a0;
}

.field-editor.location-editor .input-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .current-location-display {
        padding: 10px 12px;
    }
    
    .location-value {
        font-size: 13px;
    }
    
    .location-dropdown-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* 加载状态样式 */
.location-selector-container.loading .current-location-display {
    opacity: 0.6;
    pointer-events: none;
}

.location-selector-container.loading .location-dropdown-btn::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 选择状态样式 */
.location-selector-container.selected .current-location-display {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.location-selector-container.selected .location-value {
    color: #667eea;
}

/* 错误状态样式 */
.location-selector-container.error .current-location-display {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.location-selector-container.error .location-preview {
    color: #ef4444;
}

/* 焦点状态 */
.current-location-display:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 禁用状态 */
.location-selector-container.disabled .current-location-display {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 动画效果 */
.location-selector-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 地区选择器按钮悬停效果 */
.current-location-display:hover .location-dropdown-btn {
    transform: rotate(180deg);
}

.location-dropdown-btn {
    transition: transform 0.2s ease;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .current-location-display {
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .current-location-display:hover {
        border-color: #ffffff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .current-location-display,
    .location-dropdown-btn {
        transition: none;
    }
    
    .location-selector-container {
        animation: none;
    }
}

/* ==================== 错误通知样式 ==================== */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.error-notification .error-icon {
    font-size: 20px;
    font-weight: bold;
}

.error-notification .error-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.error-notification .close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.error-notification .close-button:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 占位文本样式 */
.placeholder {
    color: #999;
    font-style: italic;
}


/* ==================== 高级选择框样式 ==================== */
.personal-info-select {
    width: 100%;
    padding: 16px 40px 16px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 0 rgba(102, 126, 234, 0);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.personal-info-select:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.personal-info-select:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 4px rgba(102, 126, 234, 0.2),
                0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.personal-info-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px;
    font-size: 14px;
}

.personal-info-select option:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* 个人信息输入框样式 */
.personal-info-input {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 0 rgba(102, 126, 234, 0);
}

.personal-info-input::placeholder {
    color: #808080;
    font-weight: 400;
}

.personal-info-input:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.personal-info-input:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) inset,
                0 0 0 4px rgba(102, 126, 234, 0.2),
                0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* 日期输入框特殊样式 */
.personal-info-input[type="date"] {
    position: relative;
    color-scheme: dark;
}

.personal-info-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(220deg);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.personal-info-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 添加输入框图标装饰 */
.modal-body {
    position: relative;
}

.personal-info-select::before,
.personal-info-input::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.personal-info-select:focus::before,
.personal-info-input:focus::before {
    opacity: 1;
}

/* ==================== 占位符文字样式 ==================== */
.placeholder-text {
    color: #606060 !important;
    font-style: italic;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.info-item:hover .placeholder-text {
    color: #808080 !important;
    opacity: 0.9;
}

/* 当有实际内容时,移除占位符样式 */
.info-item span:not(.placeholder-text) {
    color: #ffffff;
    font-style: normal;
    font-weight: 500;
    opacity: 1;
}

/* ==================== 输入框示例提示样式 ==================== */
.input-example {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 6px;
    color: #a0a0a0;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.input-example::before {
    content: '💡';
    font-size: 14px;
    filter: grayscale(0.3);
}

.input-example:hover {
    background: rgba(102, 126, 234, 0.12);
    border-left-color: rgba(102, 126, 234, 0.7);
    color: #b0b0b0;
}

/* ==================== 只读字段标记样式 ==================== */
.readonly-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    color: #808080;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.readonly-badge i {
    font-size: 10px;
}

.readonly-badge:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.2);
}

/* 只读字段的 info-item 样式调整 */
.info-item:has(.readonly-badge) {
    position: relative;
}

.info-item:has(.readonly-badge) span:first-of-type {
    padding-right: 50px; /* 为只读标记留出空间 */
}

/* 个人简介占位符样式 */
.bio-placeholder {
    color: #606060 !important;
    font-style: italic;
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
}

.bio-placeholder:hover {
    color: #808080 !important;
    opacity: 0.8;
}

/* ==================== 身份卡展示板块 ==================== */
/* 标题右侧的身份卡样式 */
.identity-card-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.identity-card-section-header .identity-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.identity-card-section-header .identity-card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.identity-card-section-header .identity-card-img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.identity-card-section-header .identity-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.identity-card-section-header .identity-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.change-identity-btn-vertical {
    background: transparent;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 12px 8px;
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    writing-mode: vertical-rl;
    font-size: 14px;
    letter-spacing: 4px;
    line-height: 1.2;
}

.change-identity-btn-vertical:hover {
    border-color: #ffffff;
    color: #ffffff;
    opacity: 1;
}

/* 旧的身份卡样式(保留用于其他地方) */
.identity-card-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.identity-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.identity-card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.identity-card-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.identity-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.identity-card-name {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.change-identity-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-identity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.change-identity-btn i {
    font-size: 18px;
}

/* 身份卡选择弹窗 */
.identity-card-modal .modal-container {
    max-width: 800px;
    width: 90%;
}

.identity-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.identity-card-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.identity-card-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-5px);
}

.identity-card-option.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.identity-card-option-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.identity-card-option-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .identity-card-img {
        max-width: 250px;
    }
    
    .identity-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .identity-card-name {
        font-size: 20px;
    }
}
