/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #fe2c55;
    --primary-dark: #e6254d;
    --bg-dark: #121212;
    --bg-card: rgba(30,30,30,0.5);
    --bg-input: rgba(44,44,44,0.5);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: #333;
    --success: #25d366;
    --danger: #ff4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: rgba(18,18,18,0.45);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    will-change: transform;
    transform: translateZ(0);
    gap: 16px;
}

.navbar .search-bar {
    flex-shrink: 0;
    min-width: 200px;
    margin-bottom: 0;
}

.navbar .logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar .logo:hover {
    text-decoration: none;
}

.navbar .logo span {
    background: linear-gradient(135deg, var(--primary), #ff6b8a, #ff8fab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* 澎湃OS 4.0 柔光玻璃胶囊导航 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 4px;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

/* 滑动胶囊指示器 */
.nav-indicator {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    border-radius: 20px;
    background: rgba(254,44,85,0.12);
    border: 1px solid rgba(254,44,85,0.25);
    box-shadow: 0 0 16px rgba(254,44,85,0.12);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    contain: layout style;
}

/* 胶囊内部光效 */
.nav-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 75%,
        transparent 100%);
    animation: glass-shimmer 3s ease-in-out infinite;
}

/* 胶囊底部折射光 */
.nav-indicator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(254,44,85,0.4),
        transparent);
}

@keyframes glass-shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.nav-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: scale(1.02);
}

.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(254,44,85,0.3);
}

/* 图标缩放动画 */
.nav-link .nav-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link.active .nav-icon {
    transform: scale(1.15);
}

/* 文字渐显 */
.nav-link .nav-text {
    transition: opacity 0.3s, transform 0.3s;
}

.nav-link.active .nav-text {
    background: linear-gradient(135deg, var(--primary), #ff6b8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

/* ==================== 按钮 ==================== */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* ==================== 澎湃OS 4.0 柔光玻璃按钮 ==================== */
.btn-glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.4s;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

.btn-glass-primary {
    background: linear-gradient(135deg, rgba(254,44,85,0.8), rgba(230,37,77,0.6));
    border: 1px solid rgba(254,44,85,0.3);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(254,44,85,0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn-glass-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s;
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, rgba(254,44,85,0.95), rgba(230,37,77,0.8));
    border-color: rgba(254,44,85,0.5);
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 16px rgba(254,44,85,0.35);
}

.btn-glass-primary:hover::before {
    left: 100%;
}

.btn-glass-primary:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

/* ==================== 主内容 ==================== */

/* ==================== 主内容 ==================== */
.main-content {
    margin-top: 60px;
    padding: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== 视频网格 ==================== */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 12px;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.video-stats {
    display: flex;
    gap: 12px;
}

/* ==================== 视频播放页 ==================== */
.video-player-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-player {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    max-height: 500px;
}

.video-detail {
    margin-top: 16px;
}

.video-detail h1 {
    font-size: 20px;
    margin-bottom: 12px;
}

.video-actions {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-input);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255,255,255,0.1);
}

.action-btn.active {
    color: var(--primary);
    background: rgba(254, 44, 85, 0.1);
}

.video-author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-left img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
}

.author-bio {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 2px;
}

.video-description {
    padding: 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 评论区 ==================== */
.comments-section {
    margin-top: 24px;
}

.comment-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-input-area img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-input {
    flex: 1;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    resize: none;
    font-size: 14px;
    min-height: 80px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.comment-action:hover {
    color: var(--text-primary);
}

.comment-action.liked {
    color: var(--primary);
}

.replies {
    margin-left: 52px;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.reply-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reply-input input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.reply-input input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== 用户主页 ==================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 24px;
}

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

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-id {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

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

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ==================== 聊天页面 ==================== */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-container {
    display: flex;
    height: calc(100vh - 60px);
}

.chat-sidebar {
    width: 300px;
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    animation: slideInLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-sidebar .chat-item {
    animation: fadeInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.chat-sidebar .chat-item:nth-child(1) { animation-delay: 0.05s; }
.chat-sidebar .chat-item:nth-child(2) { animation-delay: 0.1s; }
.chat-sidebar .chat-item:nth-child(3) { animation-delay: 0.15s; }
.chat-sidebar .chat-item:nth-child(4) { animation-delay: 0.2s; }
.chat-sidebar .chat-item:nth-child(5) { animation-delay: 0.25s; }
.chat-sidebar .chat-item:nth-child(6) { animation-delay: 0.3s; }

.chat-input-area {
    animation: slideInBottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.chat-list {
    padding: 8px;
}

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

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

.chat-item-assistant {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.08), rgba(255, 107, 138, 0.05));
    border: 1px solid rgba(254, 44, 85, 0.2);
    margin-bottom: 8px;
}

.chat-item-assistant:hover {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.15), rgba(255, 107, 138, 0.1));
}

.chat-item-assistant img {
    border: 2px solid var(--primary);
}

.chat-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.chat-item-info {
    flex: 1;
}

.chat-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.chat-item-last {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.unread-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-main .chat-header {
    animation: fadeInUp 0.3s ease both;
    animation-delay: 0.1s;
}

.chat-main .chat-messages {
    animation: fadeInUp 0.3s ease both;
    animation-delay: 0.15s;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    gap: 8px;
    max-width: 70%;
}

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

.message img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-input);
    font-size: 14px;
    line-height: 1.5;
}

.message.sent .message-bubble {
    background: var(--primary);
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.no-chat-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==================== 好友页面 ==================== */
.friends-container {
    max-width: 800px;
    margin: 0 auto;
}

.friend-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.friend-section {
    margin-bottom: 32px;
}

.friend-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 8px;
}

.friend-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.friend-id {
    color: var(--text-secondary);
    font-size: 13px;
}

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

/* ==================== 上传页面 ==================== */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(254, 44, 85, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(254, 44, 85, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.upload-preview {
    margin-top: 16px;
    text-align: center;
}

.upload-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.upload-progress {
    margin-top: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
}

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

.modal {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    /* 从一个点向四周扩散 */
    transform: scale(0.2);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
    opacity: 1;
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .btn {
    width: 100%;
    margin-top: 8px;
}

.modal-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 收藏页 ==================== */
.favorites-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
    }

    .nav-link span {
        display: none;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .main-content {
        padding: 12px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        margin-left: 0;
    }

    .chat-sidebar {
        width: 80px;
    }

    .chat-item-info,
    .chat-item-last {
        display: none;
    }
}

/* ==================== Toast 通知 ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 3000;
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* ==================== 加载动画 ==================== */
.loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 视频展开动画 ==================== */
.video-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
    overflow-y: auto;
}

.video-expand-overlay.active {
    opacity: 1;
    display: block;
}

/* 视频播放器 - fixed 定位，JS控制位置 */
.video-expand-player {
    position: fixed;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    z-index: 10;
    box-sizing: border-box;
}

.video-expand-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 信息和评论区域容器 */
.video-expand-bottom {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 900px);
    z-index: 5;
}

/* 视频信息区域 - 从下方延伸 */
.video-expand-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.video-expand-overlay.active .video-expand-info {
    opacity: 1;
    transform: translateY(0);
}

.video-expand-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.video-expand-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.video-expand-author {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.video-expand-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.video-expand-author-name {
    font-weight: 500;
}

.video-expand-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.video-expand-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--bg-input);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.video-expand-actions .action-btn:hover {
    background: var(--border);
}

.video-expand-actions .action-btn.active {
    background: rgba(254,44,85,0.15);
    color: var(--primary);
}

.video-expand-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 评论区 */
.video-expand-comments {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.video-expand-overlay.active .video-expand-comments {
    opacity: 1;
    transform: translateY(0);
}

.video-expand-comment-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.video-expand-comment-input img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.video-expand-comment-input input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
}

.video-expand-comment-list {
    max-height: 400px;
    overflow-y: auto;
}

/* 关闭按钮 */
.video-expand-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    opacity: 0;
}

.video-expand-overlay.active .video-expand-close {
    opacity: 1;
}

.video-expand-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== 设置菜单 ==================== */
.settings-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    position: relative;
}

.settings-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    transform: rotate(45deg);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(30,30,30,0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.settings-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: default;
    transition: background 0.2s;
}

.settings-item:hover {
    background: rgba(255,255,255,0.05);
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主题切换按钮 */
.theme-toggle {
    display: flex;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 2px;
    border: 1px solid var(--border);
}

.theme-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 0;
    font-size: 14px;
}

/* pref按钮样式由.perf-btn控制 */

/* ===== 性能按钮横向切换 + 水滴指示器 ===== */
.perf-toggle {
    position: relative;
    display: flex;
    gap: 0;
    background: rgba(254,44,85,0.08);
    border: 1px solid rgba(254,44,85,0.25);
    border-radius: 14px;
    padding: 2px;
}

.perf-btn {
    width: auto;
    height: auto;
    padding: 4px 10px;
    font-size: 12px;
    color: rgba(254,44,85,0.6);
    border-radius: 12px;
    border: none;
    background: transparent;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease;
    cursor: pointer;
}

.perf-btn.highlighted {
    color: #fff;
}

/* ===== 玻璃按钮竖向切换 + 水滴指示器 ===== */

.perf-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(33.333% - 2px);
    height: calc(100% - 4px);
    background: var(--primary);
    border-radius: 12px;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(254,44,85,0.4);
}

/* 水滴形变效果 */
.perf-indicator::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 20px;
    background: var(--primary);
    opacity: 0;
    border-radius: 50%;
}

.perf-indicator.morph-left::before {
    left: -8px;
    opacity: 0.7;
    animation: morph-left 0.4s ease-out forwards;
}

.perf-indicator.morph-right::before {
    right: -8px;
    left: auto;
    opacity: 0.7;
    animation: morph-right 0.4s ease-out forwards;
}

@keyframes morph-left {
    0% { transform: scaleX(1.2) scaleY(0.8); opacity: 0.8; }
    50% { transform: scaleX(1.4) scaleY(0.7); opacity: 0.6; }
    100% { transform: scaleX(1) scaleY(1); opacity: 0; }
}

@keyframes morph-right {
    0% { transform: scaleX(1.2) scaleY(0.8); opacity: 0.8; }
    50% { transform: scaleX(1.4) scaleY(0.7); opacity: 0.6; }
    100% { transform: scaleX(1) scaleY(1); opacity: 0; }
}

.perf-btn ~ .perf-btn {
    margin-left: 0;
}

/* ===== 玻璃按钮竖向切换 + 水滴指示器 ===== */
.glass-toggle-v {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(254,44,85,0.08);
    border: 1px solid rgba(254,44,85,0.25);
    border-radius: 14px;
    padding: 2px;
    position: relative;
}

.glass-btn-v {
    padding: 4px 10px;
    font-size: 12px;
    color: rgba(254,44,85,0.6);
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease;
    text-align: center;
}

.glass-btn-v.highlighted {
    color: #fff;
}

.glass-indicator-v {
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(33.333% - 2px);
    background: var(--primary);
    border-radius: 12px;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(254,44,85,0.4);
}

/* 玻璃指示器水滴形变 */
.glass-indicator-v::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 20px;
    background: var(--primary);
    opacity: 0;
    transition: top 0.3s ease, bottom 0.3s ease;
}

.glass-indicator-v.morph-up::before {
    top: -8px;
    bottom: auto;
    border-radius: 50%;
    opacity: 1;
    animation: morph-up 0.4s ease-out;
}

.glass-indicator-v.morph-down::before {
    bottom: -8px;
    top: auto;
    border-radius: 50%;
    opacity: 1;
    animation: morph-down 0.4s ease-out;
}

@keyframes morph-up {
    0% { transform: scaleY(1.2) scaleX(0.8); opacity: 0.8; }
    50% { transform: scaleY(1.4) scaleX(0.7); opacity: 0.6; }
    100% { transform: scaleY(1) scaleX(1); opacity: 0; }
}

@keyframes morph-down {
    0% { transform: scaleY(1.2) scaleX(0.8); opacity: 0.8; }
    50% { transform: scaleY(1.4) scaleX(0.7); opacity: 0.6; }
    100% { transform: scaleY(1) scaleX(1); opacity: 0; }
}

/* 开关按钮 */
.toggle-switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    transform: translateX(18px);
}

/* ==================== 白色主题 ==================== */
[data-theme="light"] {
    --bg-dark: #f5f5f7;
    --bg-card: #ffffff;
    --bg-input: #f0f0f2;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border: #d2d2d7;
    --success: #30d158;
    --danger: #ff453a;
}

[data-theme="light"] body {
    background: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="light"] .navbar-nav {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover {
    color: var(--text-primary);
}

[data-theme="light"] .nav-link.active {
    color: var(--primary);
}

[data-theme="light"] .nav-indicator {
    background: rgba(254,44,85,0.1);
    border-color: rgba(254,44,85,0.2);
    box-shadow: 0 0 12px rgba(254,44,85,0.08);
}

[data-theme="light"] .video-card {
    background: var(--bg-card);
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .video-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="light"] .btn-glass {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: var(--text-primary);
}

[data-theme="light"] .btn-glass:hover {
    background: rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] .chat-sidebar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="light"] .chat-item:hover,
[data-theme="light"] .chat-item.active {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .message-bubble {
    background: var(--bg-input);
    color: var(--text-primary);
}

[data-theme="light"] .message.sent .message-bubble {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .friend-item {
    background: var(--bg-card);
}

[data-theme="light"] .profile-header {
    background: var(--bg-card);
}

[data-theme="light"] .search-input {
    background: var(--bg-input) !important;
    border-color: var(--border) !important;
    color: var(--text-primary);
}

[data-theme="light"] .modal {
    background: var(--bg-card) !important;
}

[data-theme="light"] .form-control {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .action-btn {
    background: var(--bg-input);
    color: var(--text-primary);
}

[data-theme="light"] .comment-input {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .chat-input {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .settings-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

[data-theme="light"] .settings-item:hover {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .toggle-switch {
    background: #e5e5ea;
    border-color: #d1d1d6;
}

[data-theme="light"] .theme-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .upload-area {
    border-color: var(--border);
    background: var(--bg-card);
}

[data-theme="light"] .chat-item-assistant {
    background: rgba(254, 44, 85, 0.06);
    border-color: rgba(254, 44, 85, 0.15);
}

/* ==================== 低配模式（关闭所有动画特效，保留导航毛玻璃）==================== */
body.low-perf,
body.low-perf *:not(.spinner):not(.spinner *):not(.nav-indicator):not(.navbar):not(.navbar-nav):not(.video-expand-bottom):not(.video-expand-player) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 导航胶囊：无动画但可定位 */
body.low-perf .nav-indicator {
    transition: none !important;
    animation: none !important;
    background: rgba(254,44,85,0.15);
}

body.low-perf .btn-glass:hover,
body.low-perf .btn-glass-primary:hover,
body.low-perf .settings-btn:hover,
body.low-perf .video-card:hover {
    transform: none !important;
}

/* 低配：按钮悬停无白色光效 */
body.low-perf .btn-glass::before,
body.low-perf .btn-glass-primary::before {
    display: none !important;
}

/* 低配：视频展开底部模块无退出动画 */
body.low-perf .video-expand-info,
body.low-perf .video-expand-comments {
    transition: none !important;
}

body.low-perf .chat-sidebar,
body.low-perf .chat-sidebar .chat-item,
body.low-perf .chat-input-area,
body.low-perf .chat-main .chat-header,
body.low-perf .chat-main .chat-messages {
    animation: none !important;
}

/* ==================== 中配模式（保留视频卡片悬浮+聊天动画+导航毛玻璃）==================== */
body.mid-perf,
body.mid-perf *:not(.spinner):not(.spinner *):not(.nav-indicator):not(.navbar):not(.navbar-nav):not(.video-expand-bottom):not(.video-expand-player):not(.video-card):not(.chat-sidebar):not(.chat-sidebar *):not(.chat-input-area):not(.chat-main .chat-header):not(.chat-main .chat-messages) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 导航胶囊：无动画但可定位+毛玻璃 */
body.mid-perf .nav-indicator {
    transition: none !important;
    animation: none !important;
    background: rgba(254,44,85,0.15);
}

/* 中配：按钮悬停无白色光效 */
body.mid-perf .btn-glass::before,
body.mid-perf .btn-glass-primary::before {
    display: none !important;
}

body.mid-perf .btn-glass:hover,
body.mid-perf .btn-glass-primary:hover,
body.mid-perf .settings-btn:hover {
    transform: none !important;
}

/* 中配：保留视频卡片悬浮动画 */
body.mid-perf .video-card {
    transition: transform 0.2s, box-shadow 0.2s !important;
}

body.mid-perf .video-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

/* 中配：保留聊天页面动画 */
body.mid-perf .chat-sidebar {
    animation: slideInLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 中配：视频展开底部模块无退出动画 */
body.mid-perf .video-expand-info,
body.mid-perf .video-expand-comments {
    transition: none !important;
}

body.mid-perf .chat-sidebar .chat-item {
    animation: fadeInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

body.mid-perf .chat-sidebar .chat-item:nth-child(1) { animation-delay: 0.05s !important; }
body.mid-perf .chat-sidebar .chat-item:nth-child(2) { animation-delay: 0.1s !important; }
body.mid-perf .chat-sidebar .chat-item:nth-child(3) { animation-delay: 0.15s !important; }
body.mid-perf .chat-sidebar .chat-item:nth-child(4) { animation-delay: 0.2s !important; }
body.mid-perf .chat-sidebar .chat-item:nth-child(5) { animation-delay: 0.25s !important; }
body.mid-perf .chat-sidebar .chat-item:nth-child(6) { animation-delay: 0.3s !important; }

body.mid-perf .chat-input-area {
    animation: slideInBottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.mid-perf .chat-main .chat-header {
    animation: fadeInUp 0.3s ease both !important;
    animation-delay: 0.1s !important;
}

body.mid-perf .chat-main .chat-messages {
    animation: fadeInUp 0.3s ease both !important;
    animation-delay: 0.15s !important;
}

/* ==================== iOS 26 液态玻璃主题（极致版）==================== */
[data-glass="liquid"] {
    --glass-blur: blur(60px) saturate(200%);
    --glass-bg: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.22);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0,0,0,0.3);
    --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.1) 100%);
}

/* 液态玻璃 - 导航栏（模仿视频底部雾光效果） */
[data-glass="liquid"] .navbar {
    background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(20,20,20,0.75) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        0 -2px 30px rgba(0,0,0,0.3),
        0 8px 48px rgba(0,0,0,0.5),
        inset 0 1.5px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(255,255,255,0.08);
}

[data-glass="liquid"] .navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04));
    pointer-events: none;
    border-radius: 0 0 24px 24px;
}

/* 液态玻璃 - 导航胶囊 */
[data-glass="liquid"] .navbar-nav {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    border-radius: 28px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.18),
        inset 0 -2px 0 rgba(0,0,0,0.25),
        0 4px 16px rgba(0,0,0,0.2);
}

[data-glass="liquid"] .nav-indicator {
    background: rgba(254,44,85,0.25);
    border-color: rgba(254,44,85,0.45);
    box-shadow:
        0 0 30px rgba(254,44,85,0.25),
        0 0 60px rgba(254,44,85,0.08),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.15);
}

[data-glass="liquid"] .nav-link {
    color: rgba(255,255,255,0.55);
}

[data-glass="liquid"] .nav-link:hover {
    color: rgba(255,255,255,0.95);
}

[data-glass="liquid"] .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(254,44,85,0.5), 0 0 60px rgba(254,44,85,0.15);
}

/* 液态玻璃 - 卡片 */
[data-glass="liquid"] .video-card {
    background: rgba(25,25,25,0.4);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.4),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.15),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

/* 卡片高光反射层 - 更强的顶部高光 */
[data-glass="liquid"] .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

[data-glass="liquid"] .video-card:hover {
    background: rgba(35,35,35,0.5);
    border-color: rgba(255,255,255,0.28);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.25),
        inset 0 -2px 0 rgba(0,0,0,0.2),
        0 0 40px rgba(254,44,85,0.06);
    transform: translateY(-8px) scale(1.02);
}

/* 液态玻璃 - 按钮 */
[data-glass="liquid"] .btn-glass,
[data-glass="liquid"] .btn-glass-primary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255,255,255,0.2);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.15),
        0 4px 12px rgba(0,0,0,0.25);
    border-radius: 14px;
}

[data-glass="liquid"] .btn-glass:hover,
[data-glass="liquid"] .btn-glass-primary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.35),
        0 0 20px rgba(255,255,255,0.04);
}

[data-glass="liquid"] .btn-glass::before,
[data-glass="liquid"] .btn-glass-primary::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 45%, rgba(255,255,255,0.12) 100%);
    animation-duration: 3s;
}

/* 液态玻璃 - 输入框 */
[data-glass="liquid"] input,
[data-glass="liquid"] textarea,
[data-glass="liquid"] select {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
}

[data-glass="liquid"] input:focus,
[data-glass="liquid"] textarea:focus {
    border-color: rgba(254,44,85,0.6);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.1),
        0 0 0 4px rgba(254,44,85,0.2),
        0 0 20px rgba(254,44,85,0.1);
}

/* 液态玻璃 - 设置菜单 */
[data-glass="liquid"] .settings-dropdown {
    background: rgba(15,15,15,0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.6),
        inset 0 2px 0 rgba(255,255,255,0.18),
        inset 0 -2px 0 rgba(0,0,0,0.25);
    border-radius: 20px;
}

/* 液态玻璃 - 聊天侧边栏 */
[data-glass="liquid"] .chat-sidebar {
    background: rgba(15,15,15,0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1.5px solid rgba(255,255,255,0.12);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
}

[data-glass="liquid"] .chat-item:hover,
[data-glass="liquid"] .chat-item.active {
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* 液态玻璃 - 视频展开 */
[data-glass="liquid"] .video-expand-overlay {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

[data-glass="liquid"] .video-expand-info,
[data-glass="liquid"] .video-expand-comments {
    background: rgba(20,20,20,0.45);
    backdrop-filter: blur(40px) saturate(170%);
    -webkit-backdrop-filter: blur(40px) saturate(170%);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.18),
        inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* 液态玻璃 - 模态框 */
[data-glass="liquid"] .modal {
    background: rgba(15,15,15,0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1.5px solid rgba(255,255,255,0.22);
    box-shadow:
        0 40px 100px rgba(0,0,0,0.6),
        inset 0 2px 0 rgba(255,255,255,0.22),
        inset 0 -2px 0 rgba(0,0,0,0.25);
    border-radius: 24px;
}

/* 液态玻璃 - 滚动条 */
[data-glass="liquid"] ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* 液态玻璃 - 搜索栏 */
[data-glass="liquid"] .search-bar input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

/* 液态玻璃 - 操作按钮 */
[data-glass="liquid"] .action-btn {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-glass="liquid"] .action-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}

/* 液态玻璃 - 聊天输入区 */
[data-glass="liquid"] .chat-input-area {
    background: rgba(15,15,15,0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1.5px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* 液态玻璃 - 聊天消息 */
[data-glass="liquid"] .message-bubble {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-glass="liquid"] .message.sent .message-bubble {
    background: rgba(254,44,85,0.3);
    border-color: rgba(254,44,85,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 20px rgba(254,44,85,0.08);
}

/* 液态玻璃 - 用户头像 */
[data-glass="liquid"] .user-avatar {
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.04);
}

/* 液态玻璃 - 高光流动动画 */
@keyframes liquid-shimmer {
    0% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes liquid-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(254,44,85,0.05); }
    50% { box-shadow: 0 0 50px rgba(254,44,85,0.12); }
}

[data-glass="liquid"] .video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,0.03) 20%,
        rgba(255,255,255,0.08) 35%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.08) 65%,
        rgba(255,255,255,0.03) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: liquid-shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}


/* 液态玻璃 - 导航栏底部折射光线 */
[data-glass="liquid"] .navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 30%, rgba(254,44,85,0.15) 50%, rgba(255,255,255,0.15) 70%, transparent);
}

/* ==================== 液态玻璃 - 浅色主题 ==================== */
/* ===== 高砂玻璃 浅色主题 ===== */
[data-glass="liquid"][data-theme="light"] .navbar {
    background: rgba(240,240,245,0.65);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

[data-glass="liquid"][data-theme="light"] .navbar-nav {
    background: rgba(240,240,245,0.5);
    border-color: rgba(0,0,0,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-glass="liquid"][data-theme="light"] .nav-indicator {
    background: rgba(254,44,85,0.15);
    border-color: rgba(254,44,85,0.25);
    box-shadow: 0 0 12px rgba(254,44,85,0.08);
}

[data-glass="liquid"][data-theme="light"] .nav-link {
    color: rgba(0,0,0,0.5);
}

[data-glass="liquid"][data-theme="light"] .nav-link:hover {
    color: rgba(0,0,0,0.8);
}

[data-glass="liquid"][data-theme="light"] .nav-link.active {
    color: var(--primary);
    text-shadow: none;
}

[data-glass="liquid"][data-theme="light"] .video-card {
    background: rgba(240,240,245,0.55);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.06);
}

[data-glass="liquid"][data-theme="light"] .video-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
}

[data-glass="liquid"][data-theme="light"] .video-card:hover {
    background: rgba(240,240,245,0.75);
    border-color: rgba(0,0,0,0.1);
}

[data-glass="liquid"][data-theme="light"] .btn-glass,
[data-glass="liquid"][data-theme="light"] .btn-glass-primary {
    background: rgba(240,240,245,0.45);
    border-color: rgba(0,0,0,0.08);
    color: var(--text-primary);
}

[data-glass="liquid"][data-theme="light"] input,
[data-glass="liquid"][data-theme="light"] textarea,
[data-glass="liquid"][data-theme="light"] select {
    background: rgba(240,240,245,0.5);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-glass="liquid"][data-theme="light"] .settings-dropdown {
    background: rgba(240,240,245,0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

[data-glass="liquid"][data-theme="light"] .chat-sidebar {
    background: rgba(240,240,245,0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0,0,0,0.06);
}

[data-glass="liquid"][data-theme="light"] .chat-item:hover,
[data-glass="liquid"][data-theme="light"] .chat-item.active {
    background: rgba(0,0,0,0.04);
}

[data-glass="liquid"][data-theme="light"] .message-bubble {
    background: rgba(240,240,245,0.6);
    border-color: rgba(0,0,0,0.06);
}

[data-glass="liquid"][data-theme="light"] .video-expand-info,
[data-glass="liquid"][data-theme="light"] .video-expand-comments {
    background: rgba(240,240,245,0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(0,0,0,0.08);
}

[data-glass="liquid"][data-theme="light"] .chat-input-area {
    background: rgba(240,240,245,0.5);
    border-top: 1px solid rgba(0,0,0,0.06);
}

[data-glass="liquid"][data-theme="light"] .action-btn {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
    color: var(--text-primary);
}

[data-glass="liquid"][data-theme="light"] .modal {
    background: rgba(240,240,245,0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-color: rgba(0,0,0,0.08);
}

[data-glass="liquid"][data-theme="light"] .video-card::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.15) 75%, transparent 100%);
    background-size: 200% 100%;
    animation: liquid-shimmer 6s ease-in-out infinite;
}

/* 关闭流光动画（保留高光） */
.no-video-light .video-card::after {
    animation: none !important;
    background: none !important;
}

/* ==================== 液态玻璃（ultra）— iOS 26 清透水体 ==================== */

/* 导航栏：极清透，无雾感 */
[data-glass="ultra"] .navbar {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* 导航胶囊：完全透明 */
[data-glass="ultra"] .navbar-nav {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    overflow: hidden;
}

/* 选中指示器：透明胶囊 */
[data-glass="ultra"] .nav-indicator {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 文字 */
[data-glass="ultra"] .nav-link {
    color: rgba(255,255,255,0.5);
}

[data-glass="ultra"] .nav-link.active .nav-text {
    color: #fff;
}

[data-glass="ultra"] .nav-link.active .nav-icon {
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.15));
}

/* ===== 水浪：8秒一轮，静止6秒，扫过2秒，从左往右 ===== */
[data-glass="ultra"] .navbar-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.03) 20%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.03) 80%,
        transparent 100%
    );
    animation: ultra-wave 5.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    border-radius: 28px;
}

@keyframes ultra-wave {
    0%, 27% { left: -80%; opacity: 0; }
    30% { opacity: 1; }
    72.7% { left: 120%; opacity: 0; }
    72.8%, 100% { left: 120%; opacity: 0; }
}

/* 水浪经过时文字/图标折射扭曲 */
[data-glass="ultra"] .nav-link .nav-text,
[data-glass="ultra"] .nav-link .nav-icon {
    animation: ultra-refract 5.5s ease-in-out infinite;
    will-change: transform;
}

/* 每个标签依次延迟，模拟水浪从左到右依次经过 */
[data-glass="ultra"] .nav-link:nth-child(2) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(2) .nav-icon { animation-delay: 0.3s; }
[data-glass="ultra"] .nav-link:nth-child(3) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(3) .nav-icon { animation-delay: 0.6s; }
[data-glass="ultra"] .nav-link:nth-child(4) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(4) .nav-icon { animation-delay: 0.9s; }
[data-glass="ultra"] .nav-link:nth-child(5) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(5) .nav-icon { animation-delay: 1.2s; }
[data-glass="ultra"] .nav-link:nth-child(6) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(6) .nav-icon { animation-delay: 1.5s; }
[data-glass="ultra"] .nav-link:nth-child(7) .nav-text,
[data-glass="ultra"] .nav-link:nth-child(7) .nav-icon { animation-delay: 1.8s; }

@keyframes ultra-refract {
    0%, 27% {
        transform: none;
        filter: none;
    }
    38% {
        transform: skewX(-3deg) scaleX(1.04) scaleY(0.97);
        filter: blur(1px) brightness(1.15);
    }
    48% {
        transform: skewX(2.5deg) scaleX(0.97) scaleY(1.03);
        filter: blur(0.5px) brightness(1.08);
    }
    58% {
        transform: skewX(-1.5deg) scaleX(1.02);
        filter: blur(0.3px);
    }
    67% {
        transform: skewX(0.5deg);
        filter: none;
    }
    72.7%, 100% {
        transform: none;
        filter: none;
    }
}

/* 视频卡片：清透玻璃 */
[data-glass="ultra"] .video-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-glass="ultra"] .video-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-6px) scale(1.01);
}

/* 卡片顶部高光 */
[data-glass="ultra"] .video-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

/* 卡片水浪：10秒一轮 */
[data-glass="ultra"] .video-card::after {
    content: '';
    position: absolute;
    top: 0; left: -80%; right: 0; bottom: 0;
    width: 80%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.02) 20%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.02) 80%,
        transparent 100%
    );
    animation: ultra-card-wave 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

@keyframes ultra-card-wave {
    0%, 80% { left: -80%; }
    100% { left: 120%; }
}

/* 按钮：清透 */
[data-glass="ultra"] .btn-glass,
[data-glass="ultra"] .btn-glass-primary {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

[data-glass="ultra"] .btn-glass:hover,
[data-glass="ultra"] .btn-glass-primary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}

[data-glass="ultra"] .btn-glass-primary {
    background: rgba(254,44,85,0.12);
    border-color: rgba(254,44,85,0.25);
}

/* 输入框 */
[data-glass="ultra"] input,
[data-glass="ultra"] textarea,
[data-glass="ultra"] select {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
}

/* 设置下拉 */
[data-glass="ultra"] .settings-dropdown {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
}

/* 个人中心面板 */
[data-glass="ultra"] .profile-expand-panel {
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}

[data-glass="liquid"] .profile-expand-panel {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 视频信息区 */
[data-glass="ultra"] .video-info {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* 聊天侧栏 */
[data-glass="ultra"] .chat-sidebar {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* 操作按钮 */
[data-glass="ultra"] .action-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

[data-glass="ultra"] .action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

[data-glass="ultra"] .action-btn.active {
    background: rgba(254,44,85,0.1);
    border-color: rgba(254,44,85,0.2);
    color: var(--primary);
}

/* 发送按钮 */
[data-glass="ultra"] .btn-sm {
    background: rgba(254,44,85,0.1);
    border: 1px solid rgba(254,44,85,0.2);
    border-radius: 16px;
    color: var(--primary);
}

[data-glass="ultra"] .btn-sm:hover {
    background: rgba(254,44,85,0.18);
    border-color: rgba(254,44,85,0.35);
}

/* 视频展开区 */
[data-glass="ultra"] .video-expand-actions .action-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}

[data-glass="ultra"] .video-expand-comment-input input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== 导航切换折射（全屏扫过） ===== */
.ultra-refract-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 60px;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.ultra-refract-overlay .refract-band {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    left: -50%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.02) 30%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.02) 70%,
        transparent 100%
    );
    animation: refract-sweep 0.8s ease-out forwards;
}

.ultra-refract-overlay .refract-wave {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(90deg,
        transparent 0px,
        rgba(255,255,255,0.008) 3px,
        transparent 6px
    );
    animation: refract-wave-move 0.7s ease-out forwards;
}

@keyframes refract-sweep {
    0% { left: -50%; opacity: 0; }
    15% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

@keyframes refract-wave-move {
    0% { transform: scaleX(1) skewX(0deg); opacity: 0; }
    30% { transform: scaleX(1.015) skewX(-0.4deg); opacity: 0.4; }
    60% { transform: scaleX(0.99) skewX(0.2deg); opacity: 0.2; }
    100% { transform: scaleX(1) skewX(0deg); opacity: 0; }
}

/* ==================== 液态玻璃 - 浅色主题 ==================== */

/* ===== 雾光玻璃 浅色主题 ===== */
[data-glass="ultra"][data-theme="light"] .navbar {
    background: rgba(240,240,245,0.4);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-glass="ultra"][data-theme="light"] .navbar-nav {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.05);
}

[data-glass="ultra"][data-theme="light"] .nav-indicator {
    background: rgba(254,44,85,0.12);
    border-color: rgba(254,44,85,0.18);
    box-shadow: 0 0 8px rgba(254,44,85,0.06);
}

[data-glass="ultra"][data-theme="light"] .nav-link.active .nav-text {
    color: #111;
}

[data-glass="ultra"][data-theme="light"] .nav-link {
    color: rgba(0,0,0,0.4);
}

[data-glass="ultra"][data-theme="light"] .video-card {
    background: rgba(240,240,245,0.35);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(0,0,0,0.06);
}

[data-glass="ultra"][data-theme="light"] .video-card:hover {
    background: rgba(240,240,245,0.55);
    border-color: rgba(0,0,0,0.1);
}

[data-glass="ultra"][data-theme="light"] .video-card::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200,200,210,0.15) 20%,
        rgba(200,200,210,0.25) 50%,
        rgba(200,200,210,0.15) 80%,
        transparent 100%
    );
}

[data-glass="ultra"][data-theme="light"] .settings-dropdown {
    background: rgba(240,240,245,0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(0,0,0,0.06);
}

[data-glass="ultra"][data-theme="light"] .nav-link .nav-text,
[data-glass="ultra"][data-theme="light"] .nav-link .nav-icon {
    animation-name: ultra-refract-light;
}

@keyframes ultra-refract-light {
    0%, 72% {
        transform: none;
        filter: none;
    }
    80% {
        transform: skewX(-3deg) scaleX(1.04) scaleY(0.97);
        filter: blur(1px) brightness(0.9);
    }
    85% {
        transform: skewX(2.5deg) scaleX(0.97) scaleY(1.03);
        filter: blur(0.5px) brightness(0.95);
    }
    90% {
        transform: skewX(-1.5deg) scaleX(1.02);
        filter: blur(0.3px);
    }
    95% {
        transform: skewX(0.5deg);
        filter: none;
    }
    100% {
        transform: none;
        filter: none;
    }
}

/* ==================== 个人中心展开动画 ==================== */
.profile-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.profile-expand-overlay.active {
    opacity: 1;
}

/* 浮动头像（从右上角飞到中间） */
.profile-fly-avatar {
    position: fixed;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.2);
    z-index: 2001;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* 面板容器（头像到达后展开） */
.profile-expand-panel {
    position: fixed;
    z-index: 2001;
    background: rgba(18,18,18,0.5);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 关闭按钮 */
.profile-expand-close {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
    z-index: 100;
}

.profile-expand-close:hover {
    background: rgba(255,255,255,0.2);
}

/* 顶部区域：头像 + 右侧信息 */
.profile-expand-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--border);
}

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

.profile-expand-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 8px rgba(255,255,255,0.06);
    display: block;
}

.profile-avatar-follow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.profile-avatar-follow:hover {
    transform: scale(1.15);
    background: #e02040;
}

/* 已关注标签 + 取消关注按钮 */
.pe-unfollow-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pe-unfollow-tag {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.08);
    padding: 2px 10px;
    border-radius: 12px;
}

.pe-unfollow-btn {
    font-size: 12px;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pe-unfollow-btn:hover {
    background: var(--primary);
    color: #fff;
}

@keyframes peUnfollowPop {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 右侧信息（从头像右侧滑出） */
.profile-expand-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-expand-info.show {
    opacity: 1;
    transform: translateX(0);
}

.profile-expand-info h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.profile-expand-info .pe-id {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.profile-expand-info .pe-bio {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 统计数据（依次从上铺开） */
.profile-expand-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-expand-stats.show {
    opacity: 1;
    transform: translateY(0);
}

.profile-expand-stats .stat-item {
    text-align: center;
    flex: 1;
}

.profile-expand-stats .stat-item:first-child {
    text-align: left;
}

.profile-expand-stats .stat-item:last-child {
    text-align: right;
}

.profile-expand-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-expand-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 操作按钮 */
.profile-expand-actions {
    display: flex;
    gap: 10px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-expand-actions.show {
    opacity: 1;
    transform: translateY(0);
}

/* 视频标题 */
.profile-expand-videos-title {
    padding: 16px 28px 8px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-expand-videos-title.show {
    opacity: 1;
    transform: translateY(0);
}

/* 视频网格 */
.profile-expand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 8px 28px 28px;
}

.profile-expand-grid .video-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-expand-grid .video-card.show {
    opacity: 1;
    transform: translateY(0);
}

.profile-expand-empty {
    text-align: center;
    padding: 40px 28px;
    color: var(--text-secondary);
}

/* ==================== 用户搜索卡片 ==================== */
.user-search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-search-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.user-search-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-search-info {
    flex: 1;
    min-width: 0;
}
.user-search-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.user-search-meta {
    font-size: 13px;
    color: var(--text-secondary);
}
.user-search-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 视频标签 ==================== */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.video-tag {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(254,44,85,0.08);
    transition: background 0.2s;
}
.video-tag:hover {
    background: rgba(254,44,85,0.2);
}

/* ==================== 搜索模式 ==================== */
/* 搜索模式下：导航链接收缩消失 */
body.search-mode .navbar-nav .nav-link {
    animation: navLinkCollapse 0.35s ease forwards;
}
body.search-mode .navbar-nav .nav-link:nth-child(1) { animation-delay: 0s; }
body.search-mode .navbar-nav .nav-link:nth-child(2) { animation-delay: 0.04s; }
body.search-mode .navbar-nav .nav-link:nth-child(3) { animation-delay: 0.08s; }
body.search-mode .navbar-nav .nav-link:nth-child(4) { animation-delay: 0.12s; }
body.search-mode .navbar-nav .nav-link:nth-child(5) { animation-delay: 0.16s; }
body.search-mode .navbar-nav .nav-link:nth-child(6) { animation-delay: 0.20s; }
body.search-mode .navbar-nav .nav-link:nth-child(7) { animation-delay: 0.24s; }
body.search-mode .navbar-nav .nav-link:nth-child(8) { animation-delay: 0.28s; }
body.search-mode .navbar-nav .nav-indicator { display: none; }

@keyframes navLinkCollapse {
    0% { opacity: 1; transform: translateY(0) scale(1); max-width: 80px; margin: 0 4px; }
    100% { opacity: 0; transform: translateY(-20px) scale(0.5); max-width: 0; margin: 0; padding: 0; overflow: hidden; }
}

/* 搜索模式：搜索栏放大居中 */
body.search-mode .navbar .search-bar {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
    transition: all 0.3s ease;
}
body.search-mode .search-input {
    font-size: 16px;
    padding: 12px 16px;
}

/* 搜索模式：头像/名字隐藏 */
body.search-mode .user-menu {
    display: none !important;
}
/* 搜索模式：设置按钮移到最右（保留显示） */
body.search-mode .settings-btn-wrap {
    margin-left: auto;
}

/* 视频卡片退出动画（缩小消失） */
.video-card.shrink-out {
    animation: videoShrinkOut 0.4s ease forwards;
    pointer-events: none;
}
@keyframes videoShrinkOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.2); }
}

/* 视频卡片进入动画（从缩小弹出） */
.video-card.pop-in {
    animation: videoPopIn 0.35s ease forwards;
}
@keyframes videoPopIn {
    0% { opacity: 0; transform: scale(0.5); }
    80% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* 排序按钮区域退出 */
body.search-mode .sort-area {
    animation: fadeUpOut 0.25s ease forwards;
}
@keyframes fadeUpOut {
    0% { opacity: 1; transform: translateY(0); max-height: 50px; }
    100% { opacity: 0; transform: translateY(-15px); max-height: 0; margin: 0; overflow: hidden; }
}

/* 搜索模式：排序按钮区域（进入搜索后重新展示） */
body.search-mode .sort-area-search {
    display: flex !important;
    animation: fadeDownIn 0.3s ease forwards;
    margin-bottom: 20px;
}
.sort-area-search { display: none; }
@keyframes fadeDownIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
