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

/* 积分商城加载和错误状态样式 */
.loading-products,
.error-products,
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.loading-products i {
    font-size: 32px;
    margin-bottom: 16px;
    color: #007bff;
}

.error-products i {
    font-size: 32px;
    margin-bottom: 16px;
    color: #dc3545;
}

.no-products i {
    font-size: 32px;
    margin-bottom: 16px;
    color: #6c757d;
}

.retry-btn {
    margin-top: 16px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.retry-btn:hover {
    background: #0056b3;
}

/* 商品图片样式 */
.product-image {
    width: 100%;
    height: 220px; /* 根据324x280比例调整，保持图片比例 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 确保完整显示图片，保持比例 */
    border-radius: 8px;
}

.product-image i {
    font-size: 48px;
    color: #ddd;
}

/* 头像框样式 */
.avatar-frame-gold {
    outline: 4px solid #FFD700 !important;
    outline-offset: 0px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    position: relative;
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.avatar-frame-rainbow {
    outline: 4px solid #ff0000 !important;
    outline-offset: 0px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6) !important;
    position: relative;
    animation: rainbowPulse 2s ease-in-out infinite;
}

.avatar-frame-star {
    outline: 4px solid #87CEEB !important;
    outline-offset: 0px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 30px rgba(135, 206, 235, 0.9) !important;
    position: relative;
    background: transparent !important;
    animation: starTwinkle 2s ease-in-out infinite;
}

/* 容器元素的头像框样式 - 只用于装饰，不产生边框 */
.profile-avatar.avatar-frame-gold,
.user-avatar.avatar-frame-gold,
.user-avatar-small.avatar-frame-gold,
.profile-avatar.avatar-frame-rainbow,
.user-avatar.avatar-frame-rainbow,
.user-avatar-small.avatar-frame-rainbow,
.profile-avatar.avatar-frame-star,
.user-avatar.avatar-frame-star,
.user-avatar-small.avatar-frame-star,
.profile-avatar.avatar-frame-fire,
.user-avatar.avatar-frame-fire,
.user-avatar-small.avatar-frame-fire {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* 容器元素的装饰样式 - 不包含边框 */
.profile-avatar.avatar-frame-star::before,
.user-avatar.avatar-frame-star::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: starFloat 2s ease-in-out infinite;
    z-index: 10;
}

.profile-avatar.avatar-frame-star::after,
.user-avatar.avatar-frame-star::after,
.user-avatar-small.avatar-frame-star::after {
    content: '⭐';
    position: absolute;
    bottom: -20px;
    right: -15px;
    font-size: 24px;
    animation: starFloat 2s ease-in-out infinite 1s;
    z-index: 15;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 侧边栏头像的星星装饰 - 纯净的星星效果 */
.user-avatar-small.avatar-frame-star::before {
    content: '✨';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: starFloat 2s ease-in-out infinite;
    z-index: 15;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.avatar-frame-fire {
    outline: 4px solid #FF4500 !important;
    outline-offset: 0px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 35px rgba(255, 69, 0, 0.8) !important;
    position: relative;
    background: transparent !important;
    animation: fireFlicker 1s ease-in-out infinite;
}

/* 容器元素的装饰样式 - 不包含边框 */
.profile-avatar.avatar-frame-fire::before,
.user-avatar.avatar-frame-fire::before {
    content: '🔥';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: fireDance 0.8s ease-in-out infinite;
    z-index: 10;
}

.profile-avatar.avatar-frame-fire::after,
.user-avatar.avatar-frame-fire::after,
.user-avatar-small.avatar-frame-fire::after {
    content: '🔥';
    position: absolute;
    bottom: -20px;
    right: -15px;
    font-size: 20px;
    animation: fireDance 0.8s ease-in-out infinite 0.4s;
    z-index: 10;
}

/* 侧边栏头像的火焰装饰 - 使用额外的伪元素避免与hover效果冲突 */
.user-avatar-small.avatar-frame-fire::before {
    content: '🔥';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    animation: fireDance 0.8s ease-in-out infinite;
    z-index: 15;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 侧边栏头像的金色装饰 */
.user-avatar-small.avatar-frame-gold::before {
    content: '👑';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: goldGlow 2s ease-in-out infinite alternate;
    z-index: 15;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 侧边栏头像的彩虹装饰 */
.user-avatar-small.avatar-frame-rainbow::before {
    content: '🌈';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: rainbowPulse 2s ease-in-out infinite;
    z-index: 15;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}


/* 头像选择菜单样式 */
.avatar-select-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.avatar-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.avatar-select-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 90vw;
    animation: modalSlideIn 0.3s ease-out;
}

.avatar-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.avatar-select-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-avatar-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-avatar-menu:hover {
    background: #f5f5f5;
    color: #666;
}

.avatar-select-options {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #333;
}

.avatar-option:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.avatar-option i {
    font-size: 18px;
    color: #ff2442;
}

/* 头像框选择菜单样式 */
.avatar-frame-select-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.avatar-frame-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.avatar-frame-select-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    animation: modalSlideIn 0.3s ease-out;
}

.avatar-frame-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.avatar-frame-select-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-avatar-frame-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-avatar-frame-menu:hover {
    background: #f5f5f5;
    color: #666;
}

.avatar-frame-select-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.avatar-frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.avatar-frame-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.avatar-frame-option:hover {
    border-color: #ff2442;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.2);
}

.avatar-frame-option.current {
    border-color: #ff2442;
    background: #fff5f5;
}

.avatar-frame-option img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.avatar-frame-option .frame-name {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
}

.avatar-frame-option .frame-status {
    font-size: 10px;
    color: #ff2442;
    margin-top: 4px;
    font-weight: 500;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 头像框动画 */
@keyframes goldGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 40px rgba(255, 215, 0, 1); }
}

@keyframes goldRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rainbowPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.6); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 0, 0.8); }
}

@keyframes rainbowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes starTwinkle {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(135, 206, 235, 0.9);
        border-color: #87CEEB;
    }
    50% { 
        box-shadow: 0 0 40px rgba(135, 206, 235, 0.6);
        border-color: rgba(135, 206, 235, 0.7);
    }
}

@keyframes starFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fireFlicker {
    0%, 100% { 
        box-shadow: 0 0 35px rgba(255, 69, 0, 0.8);
        border-color: #FF4500;
    }
    25% { 
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.6);
        border-color: rgba(255, 69, 0, 0.8);
    }
    75% { 
        box-shadow: 0 0 30px rgba(255, 69, 0, 0.7);
        border-color: rgba(255, 69, 0, 0.9);
    }
}

@keyframes fireDance {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-5deg); }
    75% { transform: translateX(-50%) rotate(5deg); }
}

/* 头像框按钮状态样式 */
.exchange-btn[disabled] {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.exchange-btn:not([disabled]) {
    background: #007bff !important;
    color: white !important;
    cursor: pointer !important;
}

.exchange-btn:not([disabled]):hover {
    background: #0056b3 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 20px;
}

.search-section {
    flex: 1;
    max-width: 400px;
    margin-left: 20px; /* logo在header后留出间距 */
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
}

.search-box i {
    color: #999;
    margin-right: 8px;
}

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

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

/* 搜索类型标签样式 - 美化版本 */
.search-type-tabs {
    display: flex;
    gap: 0;
    margin: 24px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.search-type-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.search-type-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    justify-content: center;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-type-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.search-type-tab:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-type-tab:hover::before {
    width: 100%;
    height: 100%;
}

.search-type-tab.active {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #ff2442;
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.2);
    font-weight: 600;
    transform: translateY(-2px);
    border: 1px solid rgba(255, 36, 66, 0.1);
}

.search-type-tab.active::before {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.05) 0%, transparent 70%);
}

.search-type-tab i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.search-type-tab:hover i {
    transform: scale(1.1);
}

.search-type-tab.active i {
    color: #ff2442;
    transform: scale(1.15);
}

/* 搜索建议样式 - 美化版本 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #495057;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item::before {
    content: '🔍';
    font-size: 12px;
    opacity: 0.6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.08) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: #ff2442;
    transform: translateX(4px);
}

.suggestion-item:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* 用户搜索卡片样式 - 美化版本 */
.user-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2442 0%, #ff6b6b 50%, #ff2442 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 36, 66, 0.15);
    border-color: rgba(255, 36, 66, 0.2);
}

.user-card:hover::before {
    transform: scaleX(1);
}

.user-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-section {
    flex-shrink: 0;
}

.user-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar-large::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff2442, #ff6b6b, #ff2442);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover .user-avatar-large::after {
    opacity: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 搜索框聚焦效果 */
.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.15);
    border-color: #ff2442;
}

.search-input:focus {
    color: #2c3e50;
}

/* Dark mode improvements for search and results */
/* 深色模式通用规则：将灰色文字改为白色 */
[data-theme="dark"] p[style*="color: #999"],
[data-theme="dark"] p[style*="color: #666"],
[data-theme="dark"] span[style*="color: #999"],
[data-theme="dark"] span[style*="color: #666"],
[data-theme="dark"] div[style*="color: #999"],
[data-theme="dark"] div[style*="color: #666"],
[data-theme="dark"] .text-gray,
[data-theme="dark"] .text-muted {
    color: #fff !important;
}

[data-theme="dark"] .search-box { background: #1f1f1f; border-color: #333; }
[data-theme="dark"] .search-box i { color: #fff; }
[data-theme="dark"] .search-input { color: #fff; }
[data-theme="dark"] .search-input::placeholder { color: rgba(255,255,255,0.7); }

[data-theme="dark"] .search-type-tabs { background: linear-gradient(135deg, #1d1f23 0%, #15171a 100%); border-color: #2a2d33; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
[data-theme="dark"] .search-type-tab { color: #fff; }
[data-theme="dark"] .search-type-tab:hover { background: rgba(255,255,255,0.06); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
[data-theme="dark"] .search-type-tab.active { background: linear-gradient(135deg, #23262b 0%, #1b1e22 100%); color: #4aa3ff; border-color: rgba(74,163,255,0.2); box-shadow: 0 4px 16px rgba(74,163,255,0.2); }

[data-theme="dark"] .search-suggestions { background: rgba(20,20,20,0.98); border-color: rgba(255,255,255,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
[data-theme="dark"] .suggestion-item { color: #fff; border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .suggestion-item:hover { background: rgba(74,163,255,0.12); color: #fff; }

[data-theme="dark"] .content-card { background: linear-gradient(135deg, #1e1f22 0%, #17181b 100%); border-color: rgba(255,255,255,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.6); }
[data-theme="dark"] .card-title { color: #e6e8eb; }
[data-theme="dark"] .card-meta { color: #fff; }
[data-theme="dark"] .card-meta .view-count i { color: #fff; }

[data-theme="dark"] .content-tabs .tab-item { color: #e6e8eb; }
[data-theme="dark"] .btn.btn-outline { color: #e6e8eb; border-color: #3a3f45; background: transparent; }
[data-theme="dark"] .btn.btn-outline:hover { background: rgba(255,255,255,0.06); }

[data-theme="dark"] .empty-state h3, [data-theme="dark"] .error-state h3 { color: #e6e8eb; }
[data-theme="dark"] .empty-state p, [data-theme="dark"] .error-state p { color: #fff; }

/* Dark mode: search status area and load more */
[data-theme="dark"] .search-status-area { background: #1c1d20; border-top: 1px solid #2b2f36; }
[data-theme="dark"] .search-status-message { color: #fff; }
[data-theme="dark"] .search-load-more-indicator { color: #fff; }
[data-theme="dark"] .search-load-more-indicator .loading-spinner i { color: #4aa3ff; }

/* Dark mode: user-card in search results */
[data-theme="dark"] .user-card { background: linear-gradient(135deg, #1e1f22 0%, #17181b 100%); border-color: rgba(255,255,255,0.06); box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
[data-theme="dark"] .user-name { color: #e6e8eb; }
[data-theme="dark"] .user-id { color: #fff; }
[data-theme="dark"] .user-actions .btn-outline { color: #e6e8eb; border-color: #3a3f45; background: transparent; }
[data-theme="dark"] .user-actions .btn-outline:hover { background: rgba(255,255,255,0.06); }

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 滚动条美化 */
.chat-conversation-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-conversation-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.chat-conversation-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 3px;
}

.chat-conversation-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e91e63 0%, #ff5722 100%);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .search-type-tabs {
        margin: 16px 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .search-type-tab {
        padding: 10px 16px;
    }
    
    .chat-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        height: calc(100vh - 250px);
        min-height: 500px;
        max-height: calc(100vh - 250px);
    }
    
    .chat-sidebar {
        order: 2;
    }
    
    .chat-main {
        order: 1;
        min-height: 500px;
    }
    
    .notification-item {
        padding: 16px 16px;
    }
    
    .user-card {
        padding: 20px;
    }
    
    .msg-bubble {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .search-type-tabs {
        margin: 12px 8px;
    }
    
    .notification-item {
        padding: 12px 12px;
    }
    
    .notification-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .user-card {
        padding: 16px;
    }
    
    .user-avatar-large {
        width: 56px;
        height: 56px;
    }
}

.user-info-section {
    flex: 1;
    min-width: 0;
}

.user-info-section .user-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.user-info-section .user-id {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 0 16px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: rgba(127, 140, 141, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

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

.user-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-actions .btn-primary {
    background: #e74c3c;
    color: white;
}

.user-actions .btn-primary:hover {
    background: #c0392b;
}

.user-actions .btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.user-actions .btn-outline:hover {
    background: #f8f9fa;
    color: #333;
}

.header-links {
    display: flex;
    gap: 20px;
    margin-left: auto; /* 强制推到最右边 */
    margin-right: 10px; /* 只保留很小的右边距 */
}

.header-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-link:hover {
    color: #ff2442;
}


/* 主容器 */
.main-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 左侧边栏 */
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    min-height: 0;
}

/* Logo样式 - 在header中显示 */
.logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    flex-shrink: 0;
    margin-right: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-icon i {
    color: #fff;
    font-size: 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 主导航 */
.main-nav {
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #333;
}

.nav-item.active {
    background: #fff2f0;
    color: #ff2442;
    font-weight: 500;
}

/* 通知按钮未读消息提示 */
.nav-item.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff2442;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.nav-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

/* 登录区域 */
.login-section {
    padding: 0 20px;
    margin-bottom: 30px;
}

.login-btn {
    width: 100%;
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.login-btn:hover {
    background: #e01e3c;
}

.login-text {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.benefits-list i {
    margin-right: 8px;
    color: #ff2442;
    width: 14px;
    text-align: center;
}

/* 更多菜单容器 */
.more-menu-container {
    display: none;
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fff;
    overflow: visible;
    flex-shrink: 0;
}

.more-menu-container.show {
    display: block;
}

/* 浅色模式下的更多菜单项样式 */
.more-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 14px;
    cursor: pointer;
}

.more-menu-item:hover {
    background: #f8f9fa;
    color: #333;
}

.more-menu-item:active {
    background: #f0f0f0;
}

.more-menu-item > i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #ff2442;
}

.more-menu-item span:not(.theme-mode-btn span) {
    color: #666;
}

.more-menu-item[data-action="themeMode"] {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
}

.more-menu-item[data-action="themeMode"] > div:first-child {
    margin-bottom: 8px;
    width: 100%;
}

.more-menu-item span:not(.theme-mode-btn span) {
    flex: 1;
}

.theme-mode-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

/* 浅色模式下的主题模式按钮样式 */
.theme-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    font-size: 12px;
    color: #666;
}

.theme-mode-btn:hover {
    border-color: #ff2442;
    background: #fff2f0;
    transform: translateY(-2px);
    color: #ff2442;
}

.theme-mode-btn.active {
    border-color: #ff2442;
    background: #ff2442;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
}

.theme-mode-btn i {
    font-size: 16px;
    margin-right: 0;
    width: auto;
}

.theme-mode-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* 更多链接 */
.more-section {
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    padding-bottom: 20px;
    background: #fff;
    flex-shrink: 0;
    overflow: visible;
}

/* 浅色模式下的更多按钮样式 */
.more-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    margin: -8px -12px;
}

.more-link:hover {
    color: #ff2442;
    background-color: #fff2f0;
}

.more-link:active {
    background-color: #ffe8e8;
}

.more-link i {
    margin-right: 12px;
    color: #ff2442;
    font-size: 16px;
}

.more-link span {
    font-weight: 500;
}


/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 20px;
    background: #f8f9fa;
}

/* 子页面容器 */
.page-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 子页面内容 */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content.active {
    display: block;
}

/* 页面头部 */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.page-title p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-outline {
    background: transparent;
    color: #ff2442;
    border: 1px solid #ff2442;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #ff2442;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.page-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 深色模式下 page-header 文字颜色 */
[data-theme="dark"] .page-header h2 {
    color: #fff;
}

[data-theme="dark"] .page-header p {
    color: #fff;
}

[data-theme="dark"] #publish-page .page-header h2 {
    color: #fff;
}

[data-theme="dark"] #publish-page .page-header p {
    color: #fff;
}

/* 发布页面样式 */
/* 原来的publish-form样式已移动到模态框中 */

.publish-form .form-group {
    margin-bottom: 24px;
}

/* 发布页面容器优化 */
#publish-page {
    display: none; /* 默认隐藏发布页面 */
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

#publish-page.active {
    display: flex; /* 只有在active状态下才显示 */
}

/* 发布页面内容区域 */
#publish-page .publish-form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#publish-page .page-header {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
    max-width: 800px;
}

#publish-page .page-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#publish-page .page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 发布页面头部样式 */
.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.close-publish-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-publish-btn:hover {
    background: #f5f5f5;
    color: #666;
    transform: scale(1.1);
}

.publish-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #ff2442;
}

.upload-area {
    border: 2px dashed #e5e5e5;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #ff2442;
    background: #fff2f0;
}

.upload-area i {
    font-size: 32px;
    color: #999;
    margin-bottom: 12px;
    display: block;
}

.upload-area p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #ff2442;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

.btn-primary {
    background: #ff2442;
    color: #fff;
}

.btn-primary:hover {
    background: #e01e3c;
}

/* 个人中心页面样式 */
.profile-background {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%), 
                url('src/resources/static/default_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-bottom: -50px;
    z-index: 1;
}


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

.profile-background:hover .background-overlay {
    opacity: 1;
}

.background-edit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.background-edit-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* 个人信息区域 - 固定在背景图下面 */
.profile-info-section {
    display: flex;
    align-items: center;
    gap: 24px;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    z-index: 2;
    margin-top: 50px;
    margin-bottom: 24px;
}

.profile-avatar {
    position: relative;
    text-align: center;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

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

.avatar-edit-btn {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    width: 32px;
    height: 32px;
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.profile-bio {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.profile-stats {
    display: flex;
    gap: 24px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

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

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 积分统计项特殊样式 */
.points-stat {
    position: relative;
}

.points-stat .stat-number {
    color: #ff6b6b;
    font-weight: 700;
}

.points-stat .stat-label {
    color: #ff6b6b;
    font-weight: 500;
}

.profile-content {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 新的个人中心标签样式 */
.profile-nav-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.profile-nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profile-nav-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.profile-nav-tab.active {
    color: #fff !important;
    background: #ff2442 !important;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3) !important;
}

.profile-nav-tab i {
    font-size: 16px;
}

.profile-nav-tab span {
    font-weight: 500;
}

/* 标签面板样式 */
.profile-tab-panels {
    position: relative;
}

.profile-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.profile-tab-panel.active {
    display: block;
}

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

/* 积分页面样式 */
.points-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.points-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.points-balance {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.balance-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.balance-desc {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.points-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.points-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.earn-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.earn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mall-btn {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.mall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.points-history {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.view-all-btn {
    background: none;
    border: none;
    color: #ff2442;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.view-all-btn:hover {
    background: #f8f9fa;
}

.history-list {
    min-height: 200px;
}

.loading-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.history-time {
    font-size: 12px;
    color: #999;
}

.history-points {
    font-weight: 600;
    color: #4CAF50;
}

.history-points.negative {
    color: #f44336;
}

/* 积分中心页面样式 */
.points-center-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 积分概览卡片 */
.points-overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.balance-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.balance-desc {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* 积分中心标签 */
.points-center-tabs {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.center-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #666;
}

.center-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.center-tab:hover:not(.active) {
    background: #f8f9fa;
    color: #333;
}

.center-tab i {
    font-size: 16px;
}

/* 积分中心面板 */
.points-center-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.points-center-panel.active {
    display: block;
}

/* 积分中心余额显示 */
.points-center-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.points-center-balance i {
    font-size: 16px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 地址输入栏样式 */
.address-input-container {
    margin-right: 16px;
}

.address-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 6px 12px;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.address-input-wrapper:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.address-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.address-icon {
    color: #667eea;
    font-size: 16px;
    flex-shrink: 0;
}

.address-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}

.address-input::placeholder {
    color: #999;
}

.address-input:not([readonly]) {
    cursor: text;
}

.address-input[readonly] {
    cursor: pointer;
}

.address-map-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.address-map-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.address-map-btn i {
    font-size: 14px;
}

/* 地图模态框样式 */
.address-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.address-map-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.address-map-modal-content {
    background: white;
    border-radius: 16px;
    width: 92%;
    max-width: 960px;
    height: 82vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.address-map-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-map-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.address-map-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.address-map-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.address-map-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.address-map-search {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.address-map-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.address-map-search-input:focus {
    border-color: #667eea;
}

/* 深色模式下地图搜索框文字颜色 */
[data-theme="dark"] .address-map-search-input {
    color: #fff !important;
}

[data-theme="dark"] .address-map-search-input::placeholder {
    color: #fff !important;
}

/* 针对编辑模态框的搜索框深色模式样式 */
[data-theme="dark"] #address-map-modal-edit .address-map-search-input {
    color: #fff !important;
}

[data-theme="dark"] #address-map-modal-edit .address-map-search-input::placeholder {
    color: #fff !important;
}

#address-map-container,
#address-map-container-edit {
    width: 100%;
    height: 420px;
    min-height: 360px;
    flex: 1;
    position: relative;
}

.address-map-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.address-map-btn-cancel,
.address-map-btn-confirm {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-map-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.address-map-btn-cancel:hover {
    background: #e0e0e0;
}

.address-map-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.address-map-btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.address-selected-info {
    padding: 12px 16px;
    background: #f8f9ff;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.address-selected-info strong {
    color: #667eea;
}

/* 地址栏整体容器（主页输入区域） */
.address-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
    min-height: 44px;
}

.address-input-wrapper:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
}

.address-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.22);
}

/* 管理地址按钮（主页输入区域右侧） */
.address-manage-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.address-manage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
}

.address-manage-btn:active {
    transform: translateY(0);
}

/* 弹窗内联想下拉的全局样式补强（与JS内联样式一致） */
#address-map-modal-edit .address-map-search-input-wrap { position: relative; flex: 1 1 auto; }
#address-map-modal-edit .address-map-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100000; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-top: 6px; max-height: 300px; overflow: auto; display: none;
}
#address-map-modal-edit .address-map-suggestion-item {
  padding: 10px 12px; font-size: 14px; color: #222; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
#address-map-modal-edit .address-map-suggestion-item:hover, 
#address-map-modal-edit .address-map-suggestion-item.active { background: #f7f8fa; }
#address-map-modal-edit .address-map-suggestion-sub { font-size: 12px; color: #888; margin-left: 8px; }

/* 弹窗左右布局（附近列表 + 地图） */
#address-map-modal-edit .address-layout { display: flex; gap: 12px; align-items: stretch; }
#address-map-modal-edit .address-sidebar { flex: 0 0 33.333%; display: flex; flex-direction: column; min-width: 260px; }
[data-theme="dark"] #address-map-modal-edit .address-sidebar { color: #fff; }
#address-map-modal-edit #address-map-container-edit { flex: 0 0 66.666%; height: 420px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; overflow: hidden; }
#address-map-modal-edit .address-nearby-wrapper { margin-top: 8px; }
#address-map-modal-edit .address-nearby-header { font-size: 14px; color: #333; margin-bottom: 8px; }
[data-theme="dark"] #address-map-modal-edit .address-nearby-header { color: #fff !important; }
#address-map-modal-edit .address-nearby-list { flex: 1 1 auto; min-height: 120px; max-height: 420px; overflow: auto; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; background: #fff; }
#address-map-modal-edit .address-nearby-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,0.05); }
#address-map-modal-edit .address-nearby-item:hover { background: #f7f8fa; }
#address-map-modal-edit .nearby-item-name { font-size: 14px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] #address-map-modal-edit .nearby-item-name { color: #fff !important; }
#address-map-modal-edit .nearby-item-sub { margin-top: 2px; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] #address-map-modal-edit .nearby-item-sub { color: rgba(255, 255, 255, 0.8) !important; }
#address-map-modal-edit .nearby-item-dist { font-size: 12px; color: #999; align-self: center; }
[data-theme="dark"] #address-map-modal-edit .nearby-item-dist { color: rgba(255, 255, 255, 0.7) !important; }

/* 浮动确定与快速填入（与脚本注入一致） */
#address-map-modal-edit .address-quick-fill { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: #fff; color: #333; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
#address-map-modal-edit .address-quick-fill:hover { background: #f7f8fa; }
#address-map-modal-edit .address-floating-confirm { position: absolute; right: 16px; bottom: 60px; padding: 10px 14px; border: none; border-radius: 8px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(102,126,234,0.35); display: none; }
#address-map-modal-edit .address-floating-confirm:hover { opacity: 0.95; }

/* 积分获取页面样式 */
.earn-points-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.earn-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.method-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 16px;
}

.method-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.method-info p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.points-reward {
    color: #4CAF50;
    font-weight: 600;
}

.method-btn {
    background: #ff2442;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.method-btn:hover {
    background: #e01e3c;
}

.points-rules {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.points-rules h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '•';
    color: #ff2442;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 积分商城页面样式 */
.mall-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mall-categories {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-btn.active {
    background: #ff2442;
    color: white;
}

.category-btn:hover:not(.active) {
    background: #f8f9fa;
}

.mall-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.mall-products {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.loading-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.product-media {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-frame-media {
    background: radial-gradient(ellipse at center, #fbfbfb 0%, #f1f1f1 100%);
}

.avatar-frame-preview {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-frame-preview .avatar-base {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ddd, #eee);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);
}

.avatar-frame-preview .avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid transparent;
}

.avatar-frame-preview .avatar-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(0,0,0,0.12);
    pointer-events: none;
}

/* 头像框主题 */
.avatar-frame-preview.frame-gold .avatar-ring {
    border-color: #f7d774;
    box-shadow: 0 0 0 2px #d9a441 inset, 0 0 16px rgba(215, 165, 58, 0.6);
}
.avatar-frame-preview.frame-gold .avatar-glow {
    box-shadow: 0 0 24px rgba(215,165,58,0.65);
}

.avatar-frame-preview.frame-rainbow .avatar-ring {
    border-width: 7px;
    border-image: conic-gradient(#ff2442, #ffb302, #2bd9fe, #7a5cff, #ff2442) 1;
    border-style: solid;
}
.avatar-frame-preview.frame-rainbow .avatar-glow {
    box-shadow: 0 0 24px rgba(123, 92, 255, 0.5);
}

.avatar-frame-preview.frame-star .avatar-ring {
    border-color: #6fd5ff;
    box-shadow: 0 0 0 2px #3aa6e6 inset, 0 0 16px rgba(58, 166, 230, 0.5);
}
.avatar-frame-preview.frame-star .avatar-glow {
    box-shadow: 0 0 24px rgba(58,166,230,0.5);
}

.avatar-frame-preview.frame-flame .avatar-ring {
    border-width: 6px;
    border-image: conic-gradient(#ff8a00, #ff2442, #ff8a00) 1;
    border-style: solid;
}
.avatar-frame-preview.frame-flame .avatar-glow {
    box-shadow: 0 0 24px rgba(255, 77, 0, 0.5);
}

.avatar-frame-preview.frame-default .avatar-ring {
    border-color: #bbb;
}


.product-info {
    padding: 16px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff2442;
}

.exchange-btn {
    background: #ff2442;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.exchange-btn:hover {
    background: #e01e3c;
}

.exchange-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 返回按钮样式 */
.back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.back-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.my-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.post-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-item:hover {
    transform: scale(1.02);
}

.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.post-item:hover .post-overlay {
    opacity: 1;
}

.post-stats {
    display: flex;
    gap: 16px;
    color: #fff;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 个人资料新模态框样式 */
.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.profile-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.profile-modal .modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.profile-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.profile-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.profile-modal .profile-form {
    padding: 16px 20px 20px;
}

.profile-modal .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.profile-modal label {
    font-size: 14px;
    color: #333;
}

.profile-modal .input,
.profile-modal .textarea,
.profile-modal select.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
}

.profile-modal .textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.profile-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

/* 上传模态框样式 */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.upload-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.upload-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.upload-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.upload-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.upload-modal .modal-body {
    padding: 20px;
}

.upload-modal .upload-area {
    border: 2px dashed #e5e5e5;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

.upload-modal .upload-area:hover {
    border-color: #ff2442;
    background: #fff2f0;
}

.upload-modal .upload-area i {
    font-size: 32px;
    color: #999;
    margin-bottom: 12px;
    display: block;
}

.upload-modal .upload-area p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.upload-modal .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-modal .preview-area {
    text-align: center;
    margin-bottom: 20px;
}

.upload-modal .preview-area img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-modal .upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 个人资料编辑表单样式 */
.profile-edit-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.profile-edit-form h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.profile-edit-form .form-group {
    margin-bottom: 20px;
}

.profile-edit-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-edit-form .form-input,
.profile-edit-form .form-textarea,
.profile-edit-form .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.profile-edit-form .form-input:focus,
.profile-edit-form .form-textarea:focus,
.profile-edit-form .form-select:focus {
    outline: none;
    border-color: #ff2442;
    box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.1);
}

.profile-edit-form .form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.profile-edit-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* 页面切换动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 内容标签 */
.content-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
}

.tab-item:hover {
    color: #333;
}

.tab-item.active {
    color: #ff2442;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff2442;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto; /* 让内容网格居中 */
}

/* 个人中心内容网格 - 与标签按钮对齐 */
.profile-content .content-grid {
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 移除居中 */
    width: 100%; /* 占满容器宽度 */
}

/* 内容卡片 */
.content-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.overlay-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.overlay-icons i {
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.user-name {
    font-weight: 500;
    color: #666;
}

.likes {
    color: #ff2442;
    font-weight: 500;
}

.card-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-meta .view-count {
    color: #ff2442 !important;
    font-weight: 500;
    font-size: 14px;
}

.card-stats .likes {
    color: #ff2442;
    font-weight: 500;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        /* 侧边栏始终可见，不隐藏 */
        width: 200px;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-left: 200px;
        padding: 20px 16px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .search-section {
        max-width: 200px;
    }
    
    .header-links {
        gap: 12px;
    }
    
    .header-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        gap: 16px;
    }
    
    .tab-item {
        font-size: 13px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 星芒主题色彩 */
:root {
    --primary-color: #ff2442;
    --primary-light: #ff6b6b;
    --secondary-color: #4a90e2;
    --accent-color: #7ed321;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --border-color: #e5e5e5;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 用户信息显示样式 - 无背景版本 */
.user-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0;
    width: 100%;
    max-width: 200px;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    /* 性能优化：移除backdrop-filter，使用will-change */
    will-change: transform;
    transition: transform 0.3s ease;
}

.user-avatar-small {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.user-avatar-small img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    /* 性能优化：只动画transform和opacity */
    will-change: transform;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.user-avatar-small::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-avatar-small:hover {
    /* 性能优化：简化动画，只保留缩放 */
    transform: scale(1.08);
}

.user-avatar-small:hover::before {
    opacity: 1;
}

.user-name-display {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
    max-width: 120px;
    margin-top: 4px;
}

/* 用户菜单整体样式优化 */
.user-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 200px;
}

/* 退出登录按钮样式 */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff2442 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
    position: relative;
    overflow: hidden;
}

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

.logout-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e01e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.4);
}

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

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
}

.logout-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.logout-btn:hover i {
    transform: translateX(-2px);
}

.logout-btn span {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 添加一些微妙的动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info-display {
    animation: fadeInUp 0.6s ease-out;
}


/* 通知页面样式 - 美化版本 */
.notification-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.notification-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.notification-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    flex: 1;
    justify-content: center;
    position: relative;
    letter-spacing: 0.3px;
}

.notification-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notification-tab:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.notification-tab:hover::before {
    transform: scaleY(1);
}

.notification-tab.active {
    color: #ff2442;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.15);
    transform: translateY(-2px);
}

.notification-tab.active::before {
    transform: scaleY(1);
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.08) 0%, rgba(255, 107, 107, 0.04) 100%);
}

.notification-tab i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.notification-tab:hover i {
    transform: scale(1.1);
}

.notification-tab.active i {
    color: #ff2442;
    transform: scale(1.15);
}

.notification-content {
    display: none;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 0 0 12px 12px;
    min-height: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: none;
    position: relative;
    overflow: hidden;
}

.notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff2442 0%, #ff6b6b 50%, #ff2442 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.notification-content.active::before {
    opacity: 1;
}

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

.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    transition: width 0.3s ease;
}

.notification-item:hover {
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.05) 0%, rgba(255, 107, 107, 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.1);
}

.notification-item:hover::before {
    width: 4px;
}

/* 收藏通知不显示红色竖条 */
.notification-item.collect-notification::before {
    display: none !important;
}

.notification-item.collect-notification:hover::before {
    display: none !important;
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

/* 聊天布局与样式 - 美化版本 */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-top: 16px;
    height: calc(100vh - 200px);
    min-height: 600px;
    max-height: calc(100vh - 200px);
}

.chat-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.chat-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2442 0%, #ff6b6b 50%, #ff2442 100%);
}
.chat-search { 
    padding: 16px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
}

.chat-search input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1px solid rgba(255, 36, 66, 0.2); 
    border-radius: 12px; 
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-search input:focus {
    outline: none;
    border-color: #ff2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
    background: #fff;
}

.chat-conversation-list { 
    max-height: 520px; 
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
}

.conversation-row { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    padding: 16px 16px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    cursor: pointer; 
    transition: all 0.3s ease;
    position: relative;
}

.conversation-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    transition: width 0.3s ease;
}

.conversation-row:hover { 
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.05) 0%, rgba(255, 107, 107, 0.02) 100%);
    transform: translateX(4px);
}

.conversation-row:hover::before {
    width: 3px;
}

.conversation-row.active {
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.conversation-row.active::before {
    width: 3px;
}

/* 群聊详情对话框切换开关样式 */
.group-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.group-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .group-toggle-slider {
    background-color: #ff2442;
}

input:checked + .group-toggle-slider:before {
    transform: translateX(20px);
}

.conversation-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-main { flex: 1; min-width: 0; }
.conversation-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-last { color: #888; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-main { 
    display: flex; 
    flex-direction: column; 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 16px; 
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 600px;
    max-height: 100%;
}

.chat-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2442 0%, #ff6b6b 50%, #ff2442 100%);
}

.chat-header { 
    padding: 16px 20px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    font-weight: 700; 
    font-size: 16px;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.chat-messages { 
    flex: 1;
    padding: 16px; 
    overflow-y: auto; 
    overflow-x: hidden;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    min-height: 0;
}
.msg-row { 
    display: flex; 
    margin: 12px 0; 
    animation: fadeInUp 0.3s ease-out;
}

.msg-row.mine { 
    justify-content: flex-end; 
}

.msg-bubble { 
    max-width: 70%; 
    padding: 12px 16px; 
    border-radius: 18px; 
    background: #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
}

.msg-row.mine .msg-bubble { 
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.chat-input { 
    display: flex; 
    gap: 12px; 
    padding: 16px 20px; 
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.chat-input textarea { 
    flex: 1; 
    resize: none; 
    border: 1px solid rgba(255, 36, 66, 0.2); 
    border-radius: 12px; 
    padding: 12px 16px; 
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    min-height: 44px;
    max-height: 120px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #ff2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
    background: #fff;
}

.chat-input .btn { 
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
}

.empty-tip { color: #999; padding: 16px; text-align: center; }

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.notification-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff2442, #ff6b6b, #ff2442);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover .notification-avatar::after {
    opacity: 1;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.notification-item:hover .notification-avatar img {
    transform: scale(1.05);
}

.notification-details {
    flex: 1;
    min-width: 0;
}

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

.notification-user {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

.notification-time {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
    background: rgba(127, 140, 141, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.notification-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.notification-text .highlight {
    color: #ff2442;
    font-weight: 700;
    background: rgba(255, 36, 66, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.notification-preview {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.8) 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 12px;
    border: 1px solid rgba(255, 36, 66, 0.1);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.notification-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 12px;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.notification-item:hover .notification-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.2);
}

.user-bio {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 12px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 12px;
}

.action-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.reply-btn:hover {
    background: #e3f2fd;
    color: #2196f3;
}

.delete-btn:hover {
    background: #ffebee;
    color: #f44336;
}

.like-btn:hover {
    background: #fce4ec;
    color: #ff2442;
}

.bookmark-btn:hover {
    background: #fff3e0;
    color: #ff9800;
}

.follow-back-btn {
    width: auto;
    padding: 6px 12px;
    background: #ff2442;
    color: #fff;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.follow-back-btn:hover {
    background: #e01e3c;
    color: #fff;
}

.follow-back-btn.followed {
    background: #7ed321;
}

/* 聊天功能样式 */
.chat-container {
    display: flex;
    height: 600px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.chat-list {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.chat-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
}

.chat-search-box i {
    color: #999;
    margin-right: 8px;
    font-size: 12px;
}

.chat-search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.chat-search-input::placeholder {
    color: #999;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.chat-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-tab.active {
    background: #fff;
    color: #ff2442;
    border-bottom: 2px solid #ff2442;
}

.chat-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.chat-item:hover {
    background: #f8f9fa;
}

.chat-item.active {
    background: #fff2f0;
    border-right: 3px solid #ff2442;
}

.chat-avatar {
    position: relative;
    margin-right: 12px;
}

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

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #7ed321;
    border: 2px solid #fff;
    border-radius: 50%;
}

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

.chat-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.chat-last-message {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

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

.unread-count {
    background: #ff2442;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

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

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

.chat-header-details {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.chat-header-status {
    color: #7ed321;
    font-size: 12px;
}

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

.chat-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 12px;
}

.chat-action-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

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

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

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-text {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word;
}

.message.sent .message-text {
    background: #ff2442;
    color: #fff;
}

.message-time {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
}

.message.sent .message-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    padding: 8px 16px;
}

.chat-attach-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s;
}

.chat-attach-btn:hover {
    color: #666;
}

.chat-input textarea {
    flex: 1;
    border: 1px solid #e5e5e5;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 8px 10px;
    border-radius: 6px;
    resize: none;
    min-height: 36px;
    max-height: 100px;
    line-height: 1.4;
}

.chat-input::placeholder {
    color: #999;
}

.chat-send-btn {
    min-width: 60px;
    height: 36px;
    border: none;
    background: #ff2442;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: #e01e3c;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info-display {
        padding: 0;
        margin-bottom: 12px;
        width: 100%;
        max-width: 180px;
    }
    
    .user-avatar-small {
        width: 56px;
        height: 56px;
    }
    
    .user-avatar-small img {
        width: 56px;
        height: 56px;
    }
    
    .user-name-display {
        font-size: 15px;
        max-width: 100px;
    }
    
    .user-menu {
        width: 100%;
        max-width: 180px;
    }
}

/* 用户作品展示区域样式 */
.user-works-section {
    margin-top: 25px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.user-works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-works-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.works-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.works-loading i {
    font-size: 16px;
}

.user-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.user-works-grid .content-card {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-works-grid .content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-works-grid .card-image {
    height: 200px !important;
    overflow: hidden;
    position: relative;
}

.user-works-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-works-grid .card-image.text-content {
    height: 200px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-works-grid .text-preview {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 90%;
}

.user-works-grid .text-preview h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.user-works-grid .text-preview p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

.user-works-grid .card-content {
    padding: 8px;
}

.user-works-grid .card-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-works-grid .card-stats {
    font-size: 11px;
    color: #666;
}

.user-works-grid .view-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-works-grid .view-count i {
    font-size: 10px;
}

/* 无作品状态 */
.no-works-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-works-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-works-message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #666;
}

.no-works-message p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ff6b6b;
    opacity: 0.7;
}

.error-state h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #666;
}

.error-state p {
    margin: 0;
    font-size: 14px;
    color: #999;
    
    
    .notification-tabs {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .notification-tab {
        flex: 1;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .chat-list {
        width: 250px;
    }
    
    .message {
        max-width: 85%;
    }
}

/* 内容类型选择器样式 */
.content-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.type-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.type-option:hover {
    border-color: #ff2442;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.15);
}

.type-option.selected {
    border-color: #ff2442;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.3);
}

.type-option.selected .type-icon {
    color: #fff;
}

.type-option.selected .type-info h4 {
    color: #fff;
}

.type-option.selected .type-info p {
    color: rgba(255, 255, 255, 0.9);
}

.type-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin-right: 16px;
    font-size: 24px;
    color: #666;
    transition: all 0.3s ease;
}

.type-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    transition: color 0.3s ease;
}

.type-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

/* 文件上传区域样式增强 */
.upload-area {
    border: 2px dashed #e5e5e5;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #ff2442;
    background: #fff5f5;
}

.upload-area.dragover {
    border-color: #ff2442;
    background: #fff5f5;
    transform: scale(1.02);
}

.upload-area i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
    transition: all 0.3s ease;
}

.upload-area:hover i {
    color: #ff2442;
    transform: scale(1.1);
}

.upload-area p {
    font-size: 16px;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

.upload-area:hover p {
    color: #ff2442;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 文件预览区域 */
.file-preview {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.file-preview-item .file-info {
    padding: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    background: #fff;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.file-preview-item .remove-btn:hover {
    background: #ff2442;
    transform: scale(1.1);
}

/* 表单验证样式 */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ff2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.error-message {
    color: #ff2442;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 发布按钮状态 */
#publish-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#publish-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* 上传进度条样式 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2442, #ff6b6b);
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
}

.progress-text {
    font-size: 14px;
    color: #fff;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 50%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(0%);
    }
}

/* 个人中心作品显示样式 */
.loading-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    min-height: 200px;
}

.loading-spinner {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.loading-works p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* 作品封面样式 */
.text-work-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.text-cover-content {
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 2;
}

.text-cover-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.text-cover-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.text-cover-preview {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.image-work-cover,
.video-work-cover {
    position: relative;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.work-cover-image,
.work-cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
}

.work-type-badge {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.no-image-placeholder,
.no-video-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.no-image-placeholder i,
.no-video-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.no-image-placeholder p,
.no-video-placeholder p {
    margin: 0;
    font-size: 14px;
}

.work-info {
    padding: 15px;
    background: white;
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.work-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 作品网格布局 */
.my-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.post-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item:hover .post-overlay {
    opacity: 1;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: white;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .text-work-cover,
    .image-work-cover,
    .video-work-cover {
        height: 160px;
    }
    
    .text-cover-title {
        font-size: 18px;
    }
    
    .text-cover-preview {
        font-size: 13px;
    }
    
    .work-title {
        font-size: 15px;
    }
    
    .work-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .my-posts-grid {
        padding: 10px 0;
    }
    
    .text-work-cover,
    .image-work-cover,
    .video-work-cover {
        height: 140px;
    }
    
    .text-cover-content {
        padding: 15px;
    }
    
    .text-cover-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .text-cover-title {
        font-size: 16px;
    }
    
    .text-cover-preview {
        font-size: 12px;
    }
}

.no-works-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-works-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-works-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

.no-works-message p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #666;
}

/* 文字作品预览样式 */
.text-work-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.text-work-preview:hover {
    border-color: #ff2442;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.15);
}

.work-type-icon {
    font-size: 32px;
    color: #ff2442;
    margin-bottom: 12px;
}

.work-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频作品预览样式 */
.video-work-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.video-work-preview:hover {
    border-color: #ff2442;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.15);
}

/* 作品统计信息 */
.post-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-stats i {
    font-size: 10px;
}

/* 作品信息覆盖层 */
.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 12px 12px;
    color: #fff;
}

.work-info .work-title {
    color: #fff;
    font-size: 14px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 作品项悬停效果 */
.post-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.post-item:hover .post-overlay {
    opacity: 1;
}

/* 响应式设计 - 内容类型选择器 */
@media (max-width: 1024px) {
    .publish-form {
        max-width: 700px;
        padding: 28px;
    }
    
    .content-type-selector {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    #publish-page {
        padding: 16px;
    }
    
    .publish-form {
        max-width: 100%;
        padding: 24px;
    }
    
    .content-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .type-option {
        padding: 16px;
    }
    
    .type-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .type-info h4 {
        font-size: 14px;
    }
    
    .type-info p {
        font-size: 12px;
    }
    
    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .file-preview-item img,
    .file-preview-item video {
        height: 100px;
    }
}

@media (min-width: 1200px) {
    .publish-form {
        max-width: 900px;
        padding: 40px;
    }
    
    .content-type-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .type-option {
        padding: 24px;
    }
    
    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

/* 发现页动态内容样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 300px;
}

.empty-icon, .error-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.error-icon {
    color: #ff6b6b;
}

.empty-state h3, .error-state h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p, .error-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
}

.retry-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #0056b3;
}

.retry-btn i {
    font-size: 12px;
}

/* 纯文字内容卡片样式 */
.card-image.text-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.text-preview {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 90%;
}

.text-preview h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.text-preview p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loading-container, .empty-state, .error-state {
        padding: 40px 15px;
    }
    
    .empty-icon, .error-icon {
        font-size: 48px;
    }
    
    .empty-state h3, .error-state h3 {
        font-size: 20px;
    }
    
    .text-preview h4 {
        font-size: 16px;
    }
    
    .text-preview p {
        font-size: 13px;
    }
}

/* 无限滚动加载指示器样式 */
.load-more-indicator, .end-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.load-more-indicator .loading-spinner {
    margin-bottom: 16px;
}

.load-more-indicator p, .end-indicator p {
    margin: 8px 0 0 0;
    color: #6c757d;
    font-size: 14px;
}

.end-indicator {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.end-indicator h3 {
    margin: 16px 0 8px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.end-indicator .end-icon {
    font-size: 48px;
    color: #856404;
}

.end-indicator p {
    color: #856404;
}

/* 无限滚动指示器响应式调整 */
@media (max-width: 768px) {
    .load-more-indicator, .end-indicator {
        padding: 30px 16px;
        margin: 16px 0;
    }
    
    .end-indicator .end-icon {
        font-size: 40px;
    }
    
    .end-indicator h3 {
        font-size: 14px;
    }
}

/* 加载更多按钮样式 */
.load-more-btn {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
}

.load-more-btn .btn {
    padding: 12px 24px;
    border: 1px solid #ff2442;
    background: transparent;
    color: #ff2442;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn .btn:hover {
    background: #ff2442;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.load-more-btn .btn:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #e5e5e5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载覆盖层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

/* 个人中心加载覆盖层样式 */
.profile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

/* 搜索加载指示器样式 */
.search-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* 内容加载指示器样式 */
.content-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff2442;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 内容详情页面的描述文本样式 */
.content-description {
    margin: 12px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 内容标签样式 */
.content-tag {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.tag-value {
    font-size: 14px;
    color: #ff2442;
    background: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #ff2442;
    font-weight: 500;
}

.no-comments {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
    margin: 0;
}

/* 评论区域样式 - 全局样式 */
.comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comments-header {
    margin-bottom: 15px;
}

.comment-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.comments-list {
    flex: 1;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-input-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.comment-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px 15px;
    gap: 10px;
}

.emoji-icon {
    font-size: 18px;
    cursor: pointer;
}

.comment-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}

.comment-input::placeholder {
    color: #999;
}

/* 发布页面字数统计样式 */
.char-count {
    text-align: right;
    font-size: 12px;
    margin-top: 4px;
    color: #666;
    font-weight: 500;
}

.char-count span {
    transition: color 0.2s ease;
}

/* 表单错误样式 */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ff2442;
    box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.1);
}

.error-message {
    color: #ff2442;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show {
    opacity: 1;
}

/* 多图片轮播图样式 */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-slide.active {
    opacity: 1;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 20;
}

.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    z-index: 10;
    position: relative;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: #ff2442;
    transform: scale(1.2);
}

.image-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    z-index: 20;
}

/* 多图片指示器样式（卡片上的） */
.multi-image {
    position: relative;
}

.image-count-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-count-indicator i {
    font-size: 10px;
}

/* 视频播放图标样式 */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 详情模态框样式 */
.search-detail-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-detail-modal .close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.2s ease;
}

.search-detail-modal .close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.detail-container {
    display: flex;
    height: 100%;
    min-height: 600px;
}

.detail-left {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频详情页面样式 */
.detail-video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    min-height: 500px;
    object-fit: contain; /* 改为 contain 确保视频完整显示 */
}

/* 全屏时确保视频完整显示 */
.detail-video:-webkit-full-screen {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.detail-video:-moz-full-screen {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.detail-video:-ms-fullscreen {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.detail-video:fullscreen {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.detail-media-left {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    z-index: 10;
}

.detail-media-left:hover .media-overlay {
    opacity: 1;
}

/* 视频的播放按钮覆盖层在暂停时可见 */
.detail-media-left .detail-video ~ .media-overlay,
.detail-media-left:has(.detail-video) .media-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

/* 视频播放时隐藏覆盖层 */
.detail-media-left .detail-video.playing ~ .media-overlay,
.detail-media-left:has(.detail-video.playing) .media-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 36, 66, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-button-large:hover {
    background: rgba(255, 36, 66, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.play-button-large:active {
    transform: scale(0.95);
}

.detail-right {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: 90vh;
}

.notification-section { display: none; }
.notification-section.active { display: block; }

/* 消息气泡样式 - 参考图片样式 */
.msg-row {
    margin: 8px 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.msg-row.mine {
    align-items: flex-end;
}

.msg-row:not(.mine) {
    align-items: flex-start;
}

.msg-bubble {
    max-width: 100%;
    min-width: 50px;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    width: fit-content;
    display: inline-block;
    border-radius: 18px;
    padding: 10px 16px;
}

.msg-bubble:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mine-bubble {
    background: #007AFF;
    color: white;
    border-radius: 18px 18px 4px 18px;
    text-align: left;
}

.other-bubble {
    background: #FFFFFF;
    color: #000;
    border-radius: 18px 18px 18px 4px;
    text-align: left;
    border: 1px solid #E5E5E5;
}

/* 消息时间戳样式 - 在消息下方 */
.msg-timestamp {
    color: #999;
    font-size: 11px;
    margin-top: 4px;
    line-height: 1;
    opacity: 0.7;
    text-align: left;
    margin-left: 46px; /* 与气泡左对齐，避开头像 */
    width: 100%;
}

.msg-row.mine .msg-timestamp {
    text-align: right;
    margin-left: 0;
    margin-right: 46px; /* 与气泡右对齐，避开头像 */
}

/* 消息头像样式 - 与气泡顶部对齐 */
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px; /* 与气泡内文字第一行对齐 */
}

/* 消息容器样式 - 头像与气泡在同一行对齐 */
.msg-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 75%;
    width: auto;
}

/* 确保对方消息容器左对齐 */
.msg-row:not(.mine) .msg-container {
    justify-content: flex-start;
    align-items: flex-start;
}

/* 确保自己消息容器右对齐，头像在消息右边 */
.msg-row.mine .msg-container {
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: row; /* 保持正常顺序：消息在左，头像在右 */
}

/* 消息内容区域 - 不再需要 */
.msg-content {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: calc(100% - 50px); /* 减去头像宽度和间距 */
}

.msg-row.mine .msg-content {
    align-items: flex-end;
}

.msg-row:not(.mine) .msg-content {
    align-items: flex-start;
}



/* 聊天消息区域样式 - 参考图片渐变背景 */
#chat-messages {
    padding: 20px 0;
    min-height: 400px;
    background: linear-gradient(180deg, #F0F8FF 0%, #FFFFFF 100%);
    border-radius: 0;
}

/* 响应式设计 - 参考图片移动端适配 */
@media (max-width: 768px) {
    .msg-container {
        max-width: 85%;
        gap: 8px;
    }
    
    .msg-bubble {
        font-size: 14px;
        padding: 9px 14px;
        border-radius: 16px;
    }
    
    .mine-bubble {
        border-radius: 16px 16px 4px 16px;
    }
    
    .other-bubble {
        border-radius: 16px 16px 16px 4px;
    }
    
    .msg-avatar {
        width: 32px;
        height: 32px;
    }
    
    .msg-row {
        padding: 0 12px;
        margin: 6px 0;
    }
}

/* ========== 聊天头像点击查看用户信息相关样式 ========== */

/* 可点击的聊天头像样式 */
.clickable-chat-avatar {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-chat-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 用户信息模态框样式 */
.user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.user-profile-content {
    background: white;
    border-radius: 16px;
    width: 98%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.user-profile-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.user-profile-avatar {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    box-shadow: none;
}

.user-profile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s ease;
}

.user-profile-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.user-profile-body {
    padding: 30px 20px 20px;
}

.user-profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 4px;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-info-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.user-info-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 60px;
}

.user-info-value {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.user-profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.profile-action-btn.primary {
    background: #ff2442;
    color: white;
}

.profile-action-btn.primary:hover {
    background: #e01e3a;
    transform: translateY(-1px);
}

.profile-action-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.profile-action-btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* 加载遮罩样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error i {
    color: #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info i {
    color: #17a2b8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .user-profile-content {
        width: 95%;
        margin: 20px;
    }
    
    .user-profile-header {
        height: 150px;
    }
    
    .user-profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .user-profile-body {
        padding: 20px 15px;
    }
    
    .user-profile-name {
        font-size: 20px;
    }
    
    .user-profile-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-action-btn {
        width: 100%;
    }
}

/* ==================== 地址管理样式 ==================== */

/* 地址管理按钮 */
.address-manage-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.address-manage-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.address-manage-btn i {
    font-size: 14px;
}

/* 地址管理模态框 */
.address-manage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.address-manage-modal.active {
    display: flex;
}

.address-manage-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.address-manage-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-manage-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.address-manage-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.address-manage-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.address-manage-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.address-list-container {
    min-height: 200px;
}

.address-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.address-list-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.address-list-empty p {
    margin: 8px 0;
    font-size: 14px;
}

.address-list-empty .empty-hint {
    font-size: 12px;
    color: #bbb;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: white;
}

.address-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.address-item.default {
    border-color: #667eea;
    background: #f8f9ff;
}

.address-item-content {
    margin-bottom: 12px;
}

.address-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.address-receiver-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.address-receiver-phone {
    color: #666;
    font-size: 14px;
}

.address-default-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

.address-edit-action,
.address-delete-action {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.address-edit-action:hover {
    background: #f0f7ff;
    color: #667eea;
}

.address-delete-action:hover {
    background: #fff0f0;
    color: #ff6b6b;
}

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

.address-label {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    width: fit-content;
}

.address-detail {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.address-item-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.address-select-btn,
.address-set-default-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.address-select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.address-select-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.address-set-default-btn {
    background: #f5f5f5;
    color: #666;
}

.address-set-default-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.address-manage-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
}

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

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

/* 地址编辑模态框 */
.address-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.address-edit-modal.active {
    display: flex;
}

.address-edit-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.address-edit-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-edit-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.address-edit-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.address-edit-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.address-edit-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.address-detail-wrapper {
    display: flex;
    gap: 8px;
}

.address-detail-wrapper .form-input {
    flex: 1;
}

.address-map-select-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.address-map-select-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.address-label-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.label-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.label-option:hover {
    border-color: #667eea;
}

.label-option input[type="radio"] {
    margin: 0 8px 0 0;
    cursor: pointer;
}

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

.label-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.address-edit-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.address-edit-btn-cancel,
.address-edit-btn-save {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.address-edit-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.address-edit-btn-cancel:hover {
    background: #e0e0e0;
}

.address-edit-btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.address-edit-btn-save:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .address-manage-modal-content,
    .address-edit-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .address-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .address-item-footer {
        flex-direction: column;
    }
    
    .address-select-btn,
    .address-set-default-btn {
        width: 100%;
    }
    
    .address-label-options {
        flex-direction: column;
    }
    
    .label-option {
        width: 100%;
    }
}

/* 地址与地图 - 高级主题化样式 */
:root {
    --addr-accent: var(--theme-primary-color, #667eea);
    --addr-bg: var(--theme-card-background-color, #ffffff);
    --addr-text: var(--theme-text-color, #333333);
    --addr-subtext: var(--theme-secondary-text-color, #6b7280);
    --addr-border: var(--theme-border-color, #e5e7eb);
    --addr-hover: rgba(102, 126, 234, 0.06);
}

[data-theme="dark"] {
    --addr-hover: rgba(74, 158, 255, 0.08);
}

[data-theme="eye-care"] {
    --addr-hover: rgba(212, 165, 116, 0.08);
}

#address-map-container-edit {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--addr-border);
    background: var(--addr-bg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

[data-theme="dark"] #address-map-container-edit {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="eye-care"] #address-map-container-edit {
    box-shadow: 0 12px 30px rgba(140, 120, 90, 0.18);
}

#address-nearby-list-edit {
    margin-top: 12px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

#address-nearby-list-edit::-webkit-scrollbar {
    width: 6px;
}

#address-nearby-list-edit::-webkit-scrollbar-thumb {
    background: var(--addr-border);
    border-radius: 4px;
}

.address-nearby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--addr-border);
    background: var(--addr-bg);
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.address-nearby-item:hover {
    transform: translateY(-2px);
    background: var(--addr-hover);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .address-nearby-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.nearby-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nearby-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--addr-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-item-sub {
    font-size: 12px;
    color: var(--addr-subtext);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-item-dist {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--addr-accent);
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .nearby-item-dist {
    background: rgba(74, 158, 255, 0.12);
    color: #4a9eff;
}

[data-theme="eye-care"] .nearby-item-dist {
    background: rgba(212, 165, 116, 0.12);
    color: #d4a574;
}

.address-nearby-loading,
.address-nearby-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed var(--addr-border);
    border-radius: 12px;
    color: var(--addr-subtext);
    background: var(--addr-bg);
}

.address-nearby-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid var(--addr-border);
    border-top-color: var(--addr-accent);
    border-radius: 50%;
    animation: addrSpin 0.9s linear infinite;
}

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

#address-map-actions-edit,
.address-map-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

#address-map-confirm-edit,
#address-map-cancel-edit {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--addr-border);
    background: var(--addr-bg);
    color: var(--addr-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

#address-map-confirm-edit {
    background: var(--addr-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] #address-map-confirm-edit {
    box-shadow: 0 10px 26px rgba(74, 158, 255, 0.35);
}

[data-theme="eye-care"] #address-map-confirm-edit {
    background: #d4a574;
    box-shadow: 0 10px 26px rgba(212, 165, 116, 0.28);
}

#address-map-confirm-edit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

#address-map-cancel-edit:hover {
    background: var(--addr-hover);
}

/* ==================== More 菜单 - 高级质感重构 ==================== */
:root {
    --more-bg: var(--theme-card-background-color, #ffffff);
    --more-text: var(--theme-text-color, #333333);
    --more-subtext: var(--theme-secondary-text-color, #666666);
    --more-border: var(--theme-border-color, #e5e7eb);
    --more-accent: var(--theme-primary-color, #ff2442);
}

/* Dark theme variable overrides for More menu */
[data-theme="dark"] {
    --more-bg: #1f2124;
    --more-text: #4aa3ff;
    --more-subtext: #4aa3ff;
    --more-border: #2e333a;
    --more-accent: #4aa3ff;
}

.more-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.more-menu.show {
    display: block;
}

.more-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .more-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="eye-care"] .more-menu-overlay {
    background: rgba(80, 60, 40, 0.25);
}

.more-menu-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--more-border);
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.12);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.28s ease-out;
}

[data-theme="dark"] .more-menu-content {
    background: linear-gradient(135deg, rgba(30,30,30,0.85), rgba(22,22,22,0.8));
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5), 0 20px 80px rgba(0,0,0,0.6);
}

[data-theme="eye-care"] .more-menu-content {
    background: linear-gradient(135deg, rgba(245,241,232,0.9), rgba(253,248,243,0.85));
    box-shadow: 0 -10px 30px rgba(140,120,90,0.12), 0 20px 60px rgba(140,120,90,0.15);
}

.more-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--more-border);
}

.more-menu-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--more-text);
}

.more-menu-close {
    background: none;
    border: none;
    color: var(--more-subtext);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background-color .2s ease, transform .2s ease;
}

.more-menu-close:hover {
    background: rgba(0,0,0,0.06);
    transform: rotate(90deg);
}

[data-theme="dark"] .more-menu-close:hover { background: rgba(255,255,255,0.06); }
[data-theme="eye-care"] .more-menu-close:hover { background: rgba(212,165,116,0.12); }

.more-menu-body {
    padding: 10px 12px 16px 12px;
    overflow: auto;
}

.more-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 6px 4px;
    background: var(--more-bg);
    border: 1px solid var(--more-border);
    border-radius: 14px;
    color: var(--more-text);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.more-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
}

[data-theme="dark"] .more-menu-item:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, rgba(40,40,40,0.9), rgba(28,28,28,0.85));
}

/* Dark mode: improve readability for More menu */
[data-theme="dark"] .more-menu-item { background: #23262a; border-color: #343a40; color: #4aa3ff; }
[data-theme="dark"] .more-menu-item strong, [data-theme="dark"] .more-menu-item .title { color: #4aa3ff; font-weight: 600; }
[data-theme="dark"] .more-menu-item span:not(.theme-mode-btn span) { color: #4aa3ff !important; }
[data-theme="dark"] .more-menu-item .desc, [data-theme="dark"] .more-menu-item small { color: #4aa3ff; }

[data-theme="dark"] .theme-mode-btn { background: #1f2124; border-color: #3a4149; color: #4aa3ff; }
[data-theme="dark"] .theme-mode-btn.active { background: var(--more-accent); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(74,163,255,0.35), 0 0 0 1px rgba(74,163,255,0.3) inset; }
[data-theme="dark"] .theme-mode-btn:focus-visible { outline: 2px solid rgba(74,163,255,0.6); outline-offset: 2px; }

[data-theme="eye-care"] .more-menu-item:hover {
    background: linear-gradient(180deg, rgba(253,248,243,0.95), rgba(245,241,232,0.9));
}

.more-menu-item i {
    font-size: 18px;
    color: var(--more-accent);
    width: 22px;
    text-align: center;
    margin-right: 6px;
}

.theme-mode-selector { gap: 10px; }

.theme-mode-btn {
    border-color: var(--more-border);
    background: var(--more-bg);
    color: var(--more-subtext);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.theme-mode-btn:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
[data-theme="dark"] .theme-mode-btn:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }

.theme-mode-btn.active {
    background: var(--more-accent);
    border-color: transparent;
    color: #fff;
}

/* Ripple 效果基础样式 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(0, 0, 0, 0.15);
    animation: ripple .6s ease-out;
    pointer-events: none;
    opacity: 0.7;
}

[data-theme="dark"] .ripple-effect { background: rgba(255, 255, 255, 0.22); }
[data-theme="eye-care"] .ripple-effect { background: rgba(212, 165, 116, 0.35); }

@keyframes ripple {
    to { transform: scale(2.6); opacity: 0; }
}

/* 主题切换的平滑过渡（限 More 菜单内常见属性）*/
.more-menu-content, .more-menu-item, .theme-mode-btn, .more-menu-header h3 {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* 作者操作区域样式 */
.author-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 操作栏样式 */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
    gap: 4px;
    flex: 1;
}

.action-item:hover {
    background: #f5f5f5;
    color: #333;
}

.action-item i {
    font-size: 18px;
}

.action-item span {
    font-size: 12px;
}

/* 删除作品按钮样式（在操作栏中） */
.action-item.delete-works-action {
    color: #ff2442;
}

.action-item.delete-works-action:hover {
    background: #fff5f5;
    color: #e01e3a;
}

.action-item.delete-works-action i {
    color: #ff2442;
}

.action-item.delete-works-action:hover i {
    color: #e01e3a;
}

/* 作者信息区域样式（如果不存在） */
.author-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.author-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.author-details p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #999;
}

.follow-btn {
    background: #ff2442;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #e01e3a;
    transform: scale(1.05);
}
