/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #121212;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    /* 安全区域适配 */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.no-image-save {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

#root, #app {
    width: 100%;
    min-height: 100vh;
    max-width: 768px;
    margin: 0 auto;
    background-color: #f5f5f5;
    position: relative;
}

.page-container {
    width: 100%;
    padding-bottom: 70px;
}

.page {
    display: none;
    width: 100%;
    min-height: calc(100vh - 70px);
}

.page.active { display: block; }

/* 顶部导航 */
.top-nav {
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D92B1C 0%, #a31f14 100%);
    color: #fff;
    font-size: 28px;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 2px;
}

.nav-subtitle {
    font-size: 14px;
    color: #D92B1C;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-action-button {
    background: #D92B1C;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-action-button:hover {
    background: #b82418;
}

/* 页面头部 */
.page-header {
    background: #fff;
    padding: 16px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #D92B1C;
}

/* Banner */
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 公告栏 */
.announcement-bar {
    margin: 12px;
    background: #D92B1C;
    border-radius: 8px;
    overflow: hidden;
}

.announcement-container {
    display: flex;
    align-items: center;
    padding: 10px 12px;
}

.announcement-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    overflow: hidden;
    margin-left: 10px;
}

.announcement-scroll {
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Tab */
.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: #D92B1C;
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 43, 28, 0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* 分类卡片 */
.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

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

.category-card:active { transform: scale(0.98); }

.category-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.category-card-content { padding: 12px; }

.category-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-desc {
    font-size: 12px;
    color: #D92B1C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 联系卡片 */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-copy-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-action-btn {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.05);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
}

.nav-icon {
    font-size: 22px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.nav-item.active .nav-icon,
.nav-item.active .nav-label { color: #D92B1C; }

.nav-indicator {
    position: absolute;
    bottom: -4px;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: transparent;
}

.nav-item.active .nav-indicator { background: #D92B1C; }

.btn-active { cursor: pointer; transition: all 0.15s; }
.btn-active:active { transform: scale(0.96); opacity: 0.9; }

/* 分享弹窗 */
.share-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}

.share-popup.active { display: flex; }

.share-container {
    width: 100%;
    max-width: 768px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 20px;
}

/* 公告弹窗 */
.announcement-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.announcement-popup.active { display: flex; }

.announcement-container-new {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.announcement-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    z-index: 10;
}

.noticeNew {
    padding: 24px 20px 16px;
    text-align: center;
}

.topline {
    width: 60px;
    height: 4px;
    background: #D92B1C;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.logoimg {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dear {
    font-size: 16px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 12px;
}

.maincontents {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.8;
    text-align: left;
    white-space: pre-line;
    max-height: 200px;
    overflow-y: auto;
    padding: 0 8px;
}

.info-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.foot { font-size: 14px; font-weight: 600; color: #D92B1C; }
.date { font-size: 12px; color: #9CA3AF; margin-top: 4px; }

/* 发现页面 */
.discover-page {
    height: calc(100vh - 130px);
    background: #f5f5f5;
}

.discover-content {
    width: 100%;
    height: 100%;
}

.iframe-full {
    width: 100%;
    height: 100%;
    border: none;
}

.empty-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9CA3AF;
}

/* 大舞台样式 */
.stage-banner {
    position: relative;
    height: 160px;
    background: linear-gradient(180deg, #1a0505 0%, #3d0a0a 50%, #2a0808 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-banner-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.stage-user-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(100,100,200,0.8);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-site-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.stage-site-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #D92B1C 0%, #a31f14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 2px 8px rgba(217,43,28,0.3);
    overflow: hidden;
    order: 3;
    flex-shrink: 0;
}

.stage-site-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stage-site-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    order: 1;
}

.stage-site-slogan {
    font-size: 12px;
    color: #8B5CF6;
    margin-left: auto;
    margin-right: 12px;
    order: 2;
}

.stage-posts {
    background: #fff;
    padding-bottom: 100px;
}

/* 底部发布按钮 */
.stage-publish-float {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.stage-publish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #D92B1C 0%, #ff4444 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(217,43,28,0.5);
}

.loading-posts {
    text-align: center;
    padding: 40px;
    color: #9CA3AF;
}

/* 帖子卡片 */
.post-card {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.post-header {
    display: flex;
    align-items: flex-start;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #D92B1C 0%, #a31f14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.post-body {
    flex: 1;
    margin-left: 12px;
}

.post-author {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}

.post-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.post-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    white-space: pre-line;
}

/* 图片展示 */
.post-images {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.post-images.single {
    max-width: 260px;
}

.post-images img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.post-video {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.post-video video {
    width: 100%;
    max-height: 360px;
}

.post-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

/* 底部互动区 */
.post-interact {
    background: #f7f7f7;
    border-radius: 4px;
    overflow: hidden;
}

/* 点赞用户列表 */
.post-likes-list {
    padding: 10px 12px;
    font-size: 13px;
    color: #576B95;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid #eee;
}

.post-likes-list .like-icon {
    color: #D92B1C;
    flex-shrink: 0;
}

.post-likes-list .like-users {
    flex: 1;
    line-height: 1.6;
}

.post-visitor-count {
    color: #999;
    font-size: 12px;
}

/* 评论区 */
.post-comments {
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
}

.comment-item {
    font-size: 14px;
    line-height: 1.8;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

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

.comment-author {
    color: #576B95;
    font-weight: 500;
}

.comment-text {
    color: #333;
}

/* 帖子操作栏 */
.post-action-bar {
    display: flex;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
    padding-top: 8px;
}

.post-action-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.post-action-item:hover {
    color: #D92B1C;
    background: #fef2f2;
}

.post-action-item:first-child {
    border-right: 1px solid #f0f0f0;
}

.post-action-item .action-icon {
    font-size: 18px;
}

.post-action-item.liked {
    color: #D92B1C;
}

.post-action-item.liked .action-icon {
    color: #D92B1C;
}

/* 悬浮客服按钮 - 图标在上文字在下 */
.chat-float-btn {
    position: fixed !important;
    right: 15px !important;
    bottom: 120px !important;
    width: 60px !important;
    height: 70px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #D92B1C 0%, #ff4444 100%) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(217,43,28,0.5) !important;
    z-index: 9999 !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    border: none !important;
    outline: none !important;
}

.chat-float-icon {
    font-size: 24px !important;
    display: block !important;
    line-height: 1 !important;
}

.chat-float-text {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    display: block !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.chat-float-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(217,43,28,0.6) !important;
}

/* 移动端悬浮按钮样式 */
@media (max-width: 768px) {
    .chat-float-btn {
        right: 10px !important;
        bottom: 90px !important;
        width: 55px !important;
        height: 65px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }
    
    .chat-float-icon {
        font-size: 22px !important;
    }
    
    .chat-float-text {
        font-size: 10px !important;
    }
}

.chat-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* 客服聊天窗口 */
.chat-window {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 230px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1001;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #D92B1C 0%, #ff4444 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}

.chat-welcome {
    text-align: center;
    padding: 20px;
}

.chat-welcome-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.chat-welcome-text {
    color: #666;
    font-size: 14px;
}

.chat-msg {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.chat-msg.user {
    align-items: flex-end;
}

.chat-msg.admin {
    align-items: flex-start;
}

.chat-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, #D92B1C 0%, #ff4444 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.admin .chat-msg-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.chat-msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: #D92B1C;
}

.chat-send {
    background: linear-gradient(135deg, #D92B1C 0%, #ff4444 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.comment-input-wrap {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.comment-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.comment-input:focus {
    border-color: #D92B1C;
}

.comment-send-btn {
    background: #D92B1C;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* 发帖弹窗 */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 3000;
}

.post-modal.active {
    display: block;
}

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

.post-modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.post-modal-submit {
    background: #07C160;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.post-modal-submit:disabled {
    background: #ccc;
}

.post-modal-body {
    padding: 16px;
}

.post-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
}

.post-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.post-media-preview .media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.post-media-preview .media-item img,
.post-media-preview .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media-preview .remove-media {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
}

.post-modal-tools {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.tool-btn span:first-child {
    font-size: 24px;
}

/* 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 340px;
    padding: 24px;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    cursor: pointer;
    color: #666;
}

.login-tab.active {
    color: #D92B1C;
    border-bottom-color: #D92B1C;
}

.login-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
}

.login-input:focus {
    outline: none;
    border-color: #D92B1C;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #D92B1C 0%, #a31f14 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

/* 用户中心弹窗 */
.user-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    z-index: 2500;
    overflow-y: auto;
}

.user-center.active {
    display: block;
}

.user-header {
    background: linear-gradient(135deg, #D92B1C 0%, #a31f14 100%);
    padding: 60px 20px 30px;
    color: #fff;
    text-align: center;
    position: relative;
}

.user-header-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

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

.user-nickname-large {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-bio {
    font-size: 14px;
    opacity: 0.8;
}

.user-menu {
    background: #fff;
    margin: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.user-menu-item span:first-child {
    font-size: 20px;
    margin-right: 12px;
}

.user-menu-item span:last-child {
    margin-left: auto;
    color: #ccc;
}

/* 通知 */
.share-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.share-notification.active { display: block; }

/* 工具类 */
.text-primary { color: #D92B1C; }
.bg-primary { background-color: #D92B1C; }
.text-white { color: #fff; }
.text-text-dark { color: #121212; }
.text-text-light { color: #6B7280; }
.bg-gray-50 { background-color: #f9fafb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-primary { border-color: #D92B1C; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.space-x-2 > * + * { margin-left: 8px; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-5 { padding: 20px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.mx-4 { margin-left: 16px; margin-right: 16px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.ml-3 { margin-left: 12px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-auto { margin-top: auto; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-l-lg { border-radius: 8px 0 0 8px; }
.rounded-r-lg { border-radius: 0 8px 8px 0; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.text-center { text-align: center; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

@media (max-width: 480px) {
    .nav-logo { width: 48px; height: 48px; }
    .nav-title { font-size: 18px; }
    .nav-subtitle { font-size: 12px; }
    .nav-action-button { padding: 8px 14px; font-size: 13px; }
}
