/* 久慕传媒 - 1:1复刻zt项目样式 */

/* 重置 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --primary: #FF2442;
    --gold: #FFD700;
    --bg: #0a0a0a;
    --card: #1a1a1a;
    --card2: #2a2a2a;
    --text: #fff;
    --text-muted: rgba(255,255,255,0.5);
    --text-muted2: rgba(255,255,255,0.4);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* iOS全屏适配 - 彻底消除白边 */
html {
    background: var(--bg);
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* 超大背景层 - 彻底消除iOS白边 */
body::before {
    content: '';
    position: fixed;
    top: -500px;
    left: -500px;
    right: -500px;
    bottom: -500px;
    background: var(--bg);
    z-index: -9999;
}

/* 第二层背景保险 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: -9998;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

/* ========== 顶部导航 ========== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 100;
    padding-top: var(--safe-top);
}

.nav-content {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-crown-img {
    width: 22px;
    height: 22px;
}

.nav-brand {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: calc(44px + var(--safe-top));
    padding-bottom: calc(50px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
}

.video-list {
    min-height: 100%;
    background: var(--bg);
}

/* ========== 瀑布流 ========== */
.waterfall {
    display: flex;
    padding: 6px;
    gap: 6px;
}

.waterfall-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========== 视频卡片 ========== */
.video-card {
    background: var(--card);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.video-card:active {
    transform: scale(0.98);
}

.cover-wrap {
    position: relative;
    background: #222;
}

.cover-wrap img {
    width: 100%;
    display: block;
    min-height: 100px;
}

.vip-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 600;
}

.play-icon {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid #fff;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 2px;
}

.video-card .info {
    padding: 7px;
}

.video-card .title {
    font-size: 13px;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 400;
}

.video-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.video-card .author {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.video-card .author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.video-card .author span {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card .likes {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.video-card .likes img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* ========== 加载状态 ========== */
.load-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    gap: 6px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-text {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ========== 空状态 ========== */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.refresh-btn {
    background: var(--primary);
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
}

.refresh-btn span {
    color: #fff;
    font-size: 14px;
}

/* ========== 底部导航 ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(50px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--bg);
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: #666;
    padding-top: 6px;
}

.tab-item.active {
    color: var(--primary);
}

.tab-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.tab-item.active .tab-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(4013%) hue-rotate(340deg) brightness(91%) contrast(107%);
}

.tab-text {
    font-size: 10px;
}

/* ========== 页面覆盖层 ========== */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 50;
    overflow-y: auto;
    padding-top: calc(44px + var(--safe-top));
    padding-bottom: calc(50px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

/* ========== 页面头部 ========== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 10;
    padding-top: var(--safe-top);
    height: calc(44px + var(--safe-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
}

.page-header .back-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-header .title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--safe-top) + 12px);
}

.page-header .clear-btn {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}

.page-header .placeholder {
    width: 30px;
}


/* ========== 视频详情页 ========== */
.video-detail-content {
    padding-top: calc(44px + var(--safe-top));
    background: var(--bg);
    min-height: 100%;
}

.video-player-wrap {
    width: 100%;
    height: 210px;
    background: #000;
    position: relative;
}

.video-player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-cover-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-locked {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-badge {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #fff;
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-locked .lock-text {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 15px;
}

.unlock-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
}

.unlock-btn span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.video-card-detail {
    background: var(--card);
    margin: 10px;
    border-radius: 8px;
    padding: 15px;
}

.author-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.author-row .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-detail {
    display: flex;
    flex-direction: column;
}

.author-detail .author-name {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.author-detail .publish-time {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.video-title-detail {
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 15px;
}

.action-row {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--card2);
    border-radius: 6px;
    cursor: pointer;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn.active {
    background: rgba(255,36,66,0.15);
    color: var(--primary);
}

.action-btn img {
    width: 20px;
    height: 20px;
}

/* ========== 登录页 ========== */
.login-content {
    padding: calc(44px + var(--safe-top) + 30px) 20px 30px;
    text-align: center;
    background: var(--bg);
    min-height: 100%;
    position: relative;
}

.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--primary);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 100px;
    left: -75px;
}

.login-logo {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.login-logo img {
    width: 50px;
    height: 50px;
}

.login-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

.login-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 40px;
    display: block;
    position: relative;
    z-index: 1;
}

.input-card {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.input-group {
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.input-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.input-group img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.6;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #fff;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.login-btn {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 25px;
    text-align: center;
    margin-top: 25px;
    cursor: pointer;
    border: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-btn.active {
    background: linear-gradient(135deg, #FF2442, #FF6B6B);
    box-shadow: 0 6px 15px rgba(255,36,66,0.4);
}

.login-btn span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.contact-info .label {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-info .value {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.login-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.login-footer span {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

/* ========== 个人中心 ========== */
.mine-content {
    padding-bottom: 70px;
}

.user-section {
    padding: 15px;
}

.user-card {
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.user-card.login-card {
    cursor: pointer;
}

.avatar-wrap {
    position: relative;
    margin-right: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.login-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.login-avatar img {
    width: 25px;
    height: 25px;
    opacity: 0.5;
}

.user-detail {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 6px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 3px;
}

.vip-badge img {
    width: 14px;
    height: 14px;
}

.vip-badge span {
    color: #000;
    font-size: 11px;
    font-weight: 600;
}

.login-text {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.login-desc {
    font-size: 12px;
    color: var(--text-muted2);
    margin-top: 4px;
}

/* VIP卡片 */
.vip-card {
    margin: 0 15px 10px;
    background: linear-gradient(135deg, var(--card2), var(--card));
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,215,0,0.3);
    cursor: pointer;
}

.vip-left {
    display: flex;
    align-items: center;
}

.vip-left img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.vip-info {
    display: flex;
    flex-direction: column;
}

.vip-title {
    font-size: 15px;
    color: var(--gold);
    font-weight: 600;
}

.vip-desc {
    font-size: 11px;
    color: var(--text-muted2);
    margin-top: 3px;
}

.vip-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 8px 16px;
    border-radius: 15px;
}

.vip-btn span {
    color: #000;
    font-size: 13px;
    font-weight: 600;
}

/* 菜单列表 */
.menu-list {
    margin: 0 15px;
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #222;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-left img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.8;
}

.menu-text {
    font-size: 15px;
    color: #fff;
}

.menu-tag {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: 8px;
}

.menu-tag span {
    font-size: 10px;
    color: #000;
    font-weight: 600;
}

.menu-arrow {
    font-size: 16px;
    color: rgba(255,255,255,0.3);
}

/* 退出登录 */
.logout-btn {
    margin: 20px 15px;
    background: rgba(255,36,66,0.1);
    border: 1px solid rgba(255,36,66,0.3);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
}

.logout-btn span {
    color: var(--primary);
    font-size: 15px;
}


/* ========== 列表页(收藏/点赞/历史) ========== */
.list-content {
    padding: calc(44px + var(--safe-top) + 10px) 10px 20px;
    background: var(--bg);
    min-height: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    background: var(--card);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.list-item:active {
    background: #222;
}

.list-cover {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-info {
    flex: 1;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.list-title {
    font-size: 14px;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

.list-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.list-author {
    font-size: 12px;
    color: var(--text-muted);
}

.list-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* 空列表 */
.empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.empty-list img {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.empty-list .empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.empty-list .empty-btn {
    margin-top: 20px;
    background: var(--primary);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
}

.empty-list .empty-btn span {
    color: #fff;
    font-size: 14px;
}

/* ========== 邀请页 ========== */
.invite-content {
    padding: calc(44px + var(--safe-top) + 10px) 10px 20px;
    background: var(--bg);
    min-height: 100%;
}

.invite-card {
    background: linear-gradient(135deg, var(--card2), var(--card));
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255,215,0,0.3);
    text-align: center;
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.card-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    display: block;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.2);
}

/* 邀请码区域 */
.code-section {
    margin-top: 15px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card2);
    border-radius: 6px;
    padding: 12px;
}

.code-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.copy-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    border: none;
}

.copy-btn span {
    color: #000;
    font-size: 13px;
    font-weight: 600;
}

/* 操作按钮 */
.action-section {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.action-section .action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
    gap: 6px;
    cursor: pointer;
}

.action-section .action-btn.primary {
    background: linear-gradient(135deg, #FF2442, #FF6B6B);
}

.action-section .action-btn img {
    width: 24px;
    height: 24px;
}

.action-section .action-btn span {
    font-size: 13px;
    color: #fff;
}

/* 绑定邀请码 */
.bind-section {
    margin-top: 15px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.bind-section.bound {
    padding: 20px 15px;
}

.bound-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bound-text {
    font-size: 14px;
    color: var(--gold);
}

.bind-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bind-input {
    flex: 1;
    height: 40px;
    background: var(--card2);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #fff;
    border: none;
    outline: none;
}

.bind-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.bind-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.bind-btn span {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.bind-tip {
    font-size: 11px;
    color: var(--text-muted2);
    margin-top: 8px;
    display: block;
}

/* 邀请规则 */
.rules-section {
    margin-top: 15px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rule-num {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #000;
    font-weight: 600;
    flex-shrink: 0;
}

.rule-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    flex: 1;
}

/* 邀请记录 */
.records-section {
    margin-top: 15px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-item {
    display: flex;
    align-items: center;
}

.record-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.record-name {
    font-size: 14px;
    color: #fff;
}

.record-time {
    font-size: 11px;
    color: var(--text-muted2);
    margin-top: 3px;
}

.record-reward {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

/* ========== VIP兑换页 ========== */
.vip-page-content {
    padding: calc(44px + var(--safe-top) + 10px) 10px 20px;
    background: var(--bg);
    min-height: 100%;
}

.vip-header-card {
    background: linear-gradient(135deg, #3D3D3D, #2A2A2A);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--gold);
}

.vip-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vip-header-top img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.vip-header-info {
    display: flex;
    flex-direction: column;
}

.vip-header-name {
    font-size: 18px;
    color: var(--gold);
    font-weight: bold;
}

.vip-header-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vip-benefits {
    display: flex;
    justify-content: space-around;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.benefit-item span {
    font-size: 12px;
    color: #ccc;
}

/* 兑换区域 */
.redeem-section {
    margin-top: 10px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.redeem-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.redeem-input {
    flex: 1;
    height: 40px;
    background: var(--card2);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #fff;
    border: none;
    outline: none;
}

.redeem-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.redeem-btn span {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.redeem-tip {
    font-size: 12px;
    color: var(--text-muted2);
    margin-top: 8px;
    display: block;
}

/* 权益列表 */
.rights-section {
    margin-top: 10px;
    background: var(--card);
    border-radius: 8px;
    padding: 15px;
}

.rights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rights-item {
    display: flex;
    align-items: flex-start;
}

.rights-icon {
    font-size: 18px;
    margin-right: 8px;
    color: var(--gold);
}

.rights-info {
    display: flex;
    flex-direction: column;
}

.rights-title {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.rights-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ========== 精选页 ========== */
#featured-page {
    padding-top: 0;
    padding-bottom: 0;
    top: 0;
    bottom: calc(50px + var(--safe-bottom));
}

.featured-swiper {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: #000;
    -webkit-overflow-scrolling: touch;
}

.featured-item {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    position: absolute;
    left: 15px;
    bottom: 100px;
    right: 75px;
}

.featured-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.featured-author {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.featured-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-right: 8px;
}

.featured-author span {
    color: #fff;
    font-size: 14px;
}

.featured-sidebar {
    position: absolute;
    right: 10px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.sidebar-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-btn.active {
    background: rgba(255,36,66,0.3);
}

.sidebar-btn img {
    width: 24px;
    height: 24px;
}

.sidebar-count {
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* ========== 图标 ========== */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
}

.icon-back {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}


/* ========== 邀请海报弹窗 ========== */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.poster-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#posterCanvas {
    background: #1a1a1a;
    border-radius: 8px;
}

.poster-actions {
    margin-top: 15px;
}

.poster-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 12px 40px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 15px;
    font-weight: 600;
}

.poster-btn:active {
    transform: scale(0.96);
}

.poster-close {
    margin-top: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
}

/* ========== 关于我们弹窗 ========== */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.about-content {
    background: var(--card);
    border-radius: 12px;
    padding: 25px;
    width: 280px;
    text-align: center;
}

.about-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.about-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-btn {
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.about-btn:active {
    opacity: 0.9;
}

/* ========== 邀请图背景选择器 ========== */
.poster-bg-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding: 5px 0;
}

.bg-item {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.bg-item.active {
    border-color: var(--gold);
}

.bg-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-preview.default {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

/* ========== 保存图片弹窗 ========== */
.poster-save-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.poster-save-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.poster-save-tip {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 15px;
}

.poster-save-img {
    max-width: 300px;
    max-height: 70vh;
    border-radius: 8px;
}

.poster-save-close {
    margin-top: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 30px;
}

/* ========== 注册成功弹窗 ========== */
.register-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.register-success-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px 25px;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.3);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    margin: 0 auto 15px;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.account-info {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-row:first-child {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: monospace;
    letter-spacing: 1px;
}

.success-tip {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 20px;
}

.success-btn {
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 14px;
    border-radius: 25px;
    cursor: pointer;
}

.success-btn:active {
    opacity: 0.9;
}
