/* ============== 仿抖音手机端样式 ============== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #161823;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 手机外框容器 */
.phone-frame {
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    padding-bottom: 90px;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 5;
}
.status-bar .icons { display: flex; gap: 6px; align-items: center; }
.status-bar .icons span { font-size: 12px; }

/* 头部 banner */
.header-banner {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #2c2c2c;
    overflow: hidden;
}
/* 顶部轻微暗化（保证顶部白色文字可读） */
.header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 2;
}
/* 底部柔白淡出（用户信息区过渡） */
.header-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 2;
}
.banner-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 90px;
    font-weight: 900;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
    letter-spacing: -2px;
    z-index: 1;
    text-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* 顶部按钮 */
.top-actions {
    position: absolute;
    top: 50px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
    z-index: 4;
}
.top-actions .btn {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.top-actions .btn .icon { font-weight: bold; }
.top-actions .spacer { flex: 1; }
.top-actions .icon-btn {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}

/* 用户信息区 */
.user-info {
    position: relative;
    margin-top: -50px;
    padding: 0 16px;
    z-index: 3;
}
.avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.avatar-wrap {
    position: relative;
    width: 90px; height: 90px;
    flex-shrink: 0;
}
.avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #ddd;
    background-size: cover;
    background-position: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 32px;
}
.avatar-add {
    position: absolute;
    right: -2px; bottom: -2px;
    width: 28px; height: 28px;
    background: #2dbe60;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; font-weight: 300;
    border: 2px solid #fff;
    cursor: pointer;
}
.user-name-block {
    flex: 1;
    margin-left: 14px;
    padding-bottom: 8px;
}
.nickname {
    font-size: 22px;
    font-weight: 700;
    color: #161823;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nickname::after {
    content: '⌄';
    color: #161823;
    font-size: 16px;
    font-weight: 400;
}
.douyin-id {
    font-size: 12px;
    color: #86888b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.douyin-id .copy { color: #fe2c55; }
.douyin-id .verified { color: #2dbe60; }

.ai-btn {
    margin-top: 12px;
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 20px;
    font-size: 12px;
    color: #161823;
    font-weight: 500;
}
.ai-btn::before { content: '✦'; color: #fe2c55; margin-right: 4px; }

/* 数据统计 */
.stats {
    display: flex;
    margin-top: 16px;
    align-items: center;
    gap: 4px;
}
.stat {
    flex: 1;
    text-align: center;
    cursor: pointer;
}
.stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #161823;
}
.stat-label {
    font-size: 12px;
    color: #86888b;
    margin-top: 2px;
}
.edit-profile-btn {
    background: #f5f6f8;
    color: #161823;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

/* 简介 */
.bio {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #161823;
}
.bio a { color: #5680b3; font-weight: 500; }
.bio .emoji { color: #fe2c55; }
.bio .mention { color: #5680b3; }
.bio .highlight { color: #5680b3; }

.meta-info {
    margin-top: 10px;
    font-size: 12px;
    color: #86888b;
}
.meta-info span { margin-right: 10px; }

/* 功能图标 */
.feature-icons {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    padding: 4px 0;
}
.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #161823;
    font-size: 12px;
    cursor: pointer;
}
.feature-icon .ico {
    width: 36px; height: 36px;
    background: #f5f6f8;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 16px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    color: #86888b;
    position: relative;
    font-weight: 500;
}
.tab.active {
    color: #161823;
    font-weight: 700;
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    background: #161823;
    border-radius: 2px;
}
.tab .arrow { font-size: 10px; margin-left: 2px; }

/* 私密作品卡片 */
.private-card {
    margin: 12px 12px 0;
    background: #f5f6f8;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.private-card .pc-icon {
    width: 30px; height: 30px;
    background: #2c2c2c;
    color: #fff;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.private-card .pc-text { flex: 1; font-size: 13px; }
.private-card .pc-count { color: #161823; font-weight: 600; }
.private-card .pc-arrow { color: #c0c2c5; font-size: 16px; }

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 4px;
    padding: 2px;
}
.video-item {
    position: relative;
    aspect-ratio: 9/14;
    background: #2c2c2c;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}
.video-item .thumb {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.video-item .label {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.video-item .play-count {
    position: absolute;
    bottom: 6px; left: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    display: flex; align-items: center; gap: 3px;
}
.video-item .play-count::before {
    content: '▶';
    font-size: 9px;
    opacity: 0.95;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 12px 0 16px;
    z-index: 100;
}
.bn-item {
    flex: 1;
    text-align: center;
    font-size: 17px;
    color: #161823;
    padding: 6px 0;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}
.bn-item.active { color: #161823; font-weight: 700; }
.bn-plus {
    width: 46px; height: 30px;
    border: 2px solid #161823;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #161823;
    margin: 0 6px;
    font-weight: 300;
    line-height: 1;
}
.bn-badge {
    background: #fe2c55;
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    padding: 1px 6px;
    margin-left: 3px;
    vertical-align: top;
    font-weight: 500;
    display: inline-block;
    line-height: 1.4;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #c0c2c5;
    font-size: 14px;
}
.empty .ico { font-size: 48px; margin-bottom: 12px; }
