/* --- 网站通用样式 - 2025-10-21 FINAL --- */

/* --- 1. 基础与重置 --- */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
a:focus, button:focus, input:focus, textarea:focus { outline: none; box-shadow: none; }
body, html { margin: 0; padding: 0; height: 100%; width: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; overflow: hidden; background-color: #000; }
.body-no-scroll { position: fixed; width: 100%; overflow: hidden; }

/* --- 2. 前端核心：视频播放器 --- */
:root { --vh: 1vh; }
.video-container { width: 100%; height: 100vh; height: calc(var(--vh) * 100); overflow: hidden; -webkit-overflow-scrolling: touch; }
.video-slide { width: 100%; height: 100vh; height: calc(var(--vh) * 100); scroll-snap-align: start; position: relative; display: flex; justify-content: center; align-items: center; }
video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.play-pause-icon { position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; background-color: transparent; z-index: 20; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(1.5); transition: opacity 0.3s ease, transform 0.3s ease; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' fill-opacity='0.7'%3E%3Cpath d='M7.25,2.62 C5.58,1.65 4,2.83 4,4.73 L4,19.27 C4,21.17 5.58,22.35 7.25,21.38 L19.25,14.11 C20.92,13.14 20.92,10.86 19.25,9.89 L7.25,2.62 Z' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center center; background-size: 80%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.play-pause-icon.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-info { position: absolute; bottom: 80px; left: 15px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.6); z-index: 10; max-width: 70%; }
.video-info h3 { margin: 0 0 5px 0; font-size: 1.2em; }
.video-info p { margin: 0; font-size: 0.9em; }

/* --- 3. 声音按钮 --- */
.global-mute-button { position: fixed; top: 20px; right: 20px; z-index: 999; cursor: pointer; width: 40px; height: 40px; background-color: rgba(0, 0, 0, 0.3); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: background-color 0.2s, transform 0.1s ease; }
.global-mute-button:hover { background-color: rgba(0, 0, 0, 0.5); }
.global-mute-button svg { width: 28px; height: 28px; }

/* --- 4. 进度条和其他前端组件 --- */
.progress-bar { position: absolute; bottom: 60px; left: 0; width: 100%; height: 12px; cursor: pointer; display: flex; align-items: center; z-index: 15; }
.progress-bar::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(-50%); }
.progress-bar-inner { position: relative; width: 0%; height: 2px; background-color: #fff; }
.progress-scrubber { position: absolute; right: 0; top: 50%; width: 12px; height: 12px; background-color: #fff; border-radius: 50%; transform: translate(50%, -50%); opacity: 0; transition: opacity 0.2s ease; }
.video-slide:hover .progress-scrubber { opacity: 1; }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #000; display: flex; justify-content: space-around; align-items: center; padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #333; z-index: 1000; }
.nav-item { color: #888; text-decoration: none; text-align: center; font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-basis: 0; flex-grow: 1; transition: transform 0.1s ease; line-height: 1.2; }
.nav-item svg { width: 28px; height: 28px; margin-bottom: 2px; }
.nav-item.active, .nav-item:active { color: #fff; }
.nav-item-publish { flex-basis: 0; flex-grow: 1; display: flex; justify-content: center; align-items: center; transition: transform 0.1s ease; }
.publish-icon-wrapper { width: 45px; height: 30px; background-color: #fff; border-radius: 8px; display: flex; justify-content: center; align-items: center; }
.publish-icon-wrapper svg { width: 28px; height: 28px; color: #000; }

/* --- 5. 前端内容页面 --- */
.page-body { background-color: #000; color: #fff; height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.profile-container, .discover-container, .upload-container.full-page { padding: 20px; padding-bottom: 80px; width: 100%; flex-grow: 1; }
.page-body .auth-container { margin: auto; }
.profile-header { text-align: center; margin-bottom: 20px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.profile-nickname { font-size: 22px; margin: 10px 0 5px; }
.profile-username { color: #aaa; margin-bottom: 10px; }
.profile-bio { color: #ccc; max-width: 80%; margin: 0 auto 20px; }
.profile-actions { display: flex; justify-content: center; gap: 10px; }
.btn-edit, .btn-logout { background-color: #333; color: #fff; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-size: 14px; border: none; }
.profile-tabs { display: flex; justify-content: center; border-bottom: 1px solid #555; margin-bottom: 10px; }
.tab { padding: 10px 20px; color: #aaa; cursor: pointer; }
.tab.active { color: #fff; border-bottom: 2px solid #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.video-grid-item { position: relative; padding-top: 150%; background-color: #222; border-radius: 4px; overflow: hidden; display: flex; justify-content: center; align-items: center; text-decoration: none; }
.video-grid-item::after { content: ''; width: 40px; height: 40px; background-color: rgba(0, 0, 0, 0.4); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8,5.14V19.14L19,12.14L8,5.14Z" /></svg>'); background-position: center; background-repeat: no-repeat; background-size: 60%; }
.no-videos { grid-column: 1 / -1; text-align: center; color: #888; margin-top: 30px; }
.search-bar-container { margin-bottom: 20px; }
.search-bar-container form { display: flex; background-color: #333; border-radius: 8px; }
.search-input { flex-grow: 1; background: transparent; border: none; color: #fff; padding: 12px; font-size: 16px; outline: none; }
.search-button { background: transparent; border: none; color: #fff; padding: 0 12px; cursor: pointer; }
.search-button svg { width: 24px; height: 24px; }
.content-placeholder { text-align: center; margin-top: 50px; color: #888; }
.upload-container.full-page h2 { color: #fff; }
.upload-container.full-page .form-group label { color: #ccc; }
.upload-container.full-page .form-group input, .upload-container.full-page .form-group textarea { background-color: #333; border-color: #555; color: #fff; }

/* --- 6. 通用表单和容器样式 --- */
.auth-container { background: #fff; color: #333; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 90%; max-width: 400px; }
.auth-container h2 { text-align: center; color: #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #555; }
.form-group input, .form-group textarea, .form-select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; background-color: #fff; color: #333; }
.btn { background-color: #fe2c55; color: white; padding: 12px 15px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-size: 16px; font-weight: bold; }
.error-msg { color: #dc3545; text-align: center; margin-bottom: 15px; }
.success-msg { color: #28a745; text-align: center; margin-bottom: 15px; }
.switch-auth { text-align: center; margin-top: 20px; }
.switch-auth a { color: #fe2c55; text-decoration: none; font-weight: bold; }
.custom-file-input { display: flex; align-items: center; gap: 10px; }
.custom-file-input button { width: auto; flex-shrink: 0; padding: 8px 15px; background-color: #eee; border: 1px solid #ddd; color: #333; border-radius: 44px; font-size: 14px; font-weight: normal; }
.custom-file-input span { font-size: 14px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- 7. 登录/注册页面 --- */
body.auth-page-body { background: linear-gradient(45deg, #121212, #1e1e1e, #121212); color: #fff; height: 100vh; overflow: auto; display: flex; justify-content: center; align-items: center; padding: 20px; }
.auth-page-body .auth-container { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); width: 90%; max-width: 420px; text-align: center; }
.auth-page-body .auth-container h2 { color: #fff; font-weight: 600; margin-bottom: 30px; }
.auth-page-body .form-group { margin-bottom: 25px; text-align: left; }
.auth-page-body .form-group label { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.auth-page-body .form-group input { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; font-size: 16px; background: rgba(255, 255, 255, 0.05); color: #fff; transition: all 0.3s ease; }
.auth-page-body .form-group input:focus { border-color: #fe2c55; background: rgba(255, 255, 255, 0.1); }
.auth-page-body .btn { padding: 15px; border-radius: 10px; margin-top: 10px; transition: all 0.3s ease; }
.auth-page-body .btn:hover { background-color: #e42046; transform: translateY(-2px); }
.auth-page-body .error-msg { color: #ff4d4d; background: rgba(255, 77, 77, 0.1); padding: 10px; border-radius: 8px; border: 1px solid rgba(255, 77, 77, 0.3); }
.auth-page-body .success-msg { color: #4dff4d; background: rgba(77, 255, 77, 0.1); padding: 10px; border-radius: 8px; border: 1px solid rgba(77, 255, 77, 0.3); }
.auth-page-body .switch-auth { color: rgba(255, 255, 255, 0.7); margin-top: 25px; }
.auth-page-body .switch-auth a { color: #fe2c55; font-weight: bold; }

/* --- 8. 后台专属样式 --- */
body.admin-body { background-color: #f4f4f4 !important; color: #333 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; padding: 10px; }
.admin-body .auth-container { margin: auto; }
.admin-nav { background-color: #333; padding: 10px; text-align: center; margin-bottom: 20px; border-radius: 8px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-nav a { color: #fff; text-decoration: none; padding: 8px 15px; font-weight: bold; background-color: #555; border-radius: 5px; transition: background-color 0.2s ease; }
.admin-nav a:hover { background-color: #777; }
.stats-container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; margin: 20px 0; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: center; flex-grow: 1; min-width: 150px; }
.stat-card h3 { margin-top: 0; color: #555; }
.stat-card p { font-size: 2em; font-weight: bold; margin-bottom: 0; }
table { width: 100%; margin: 20px 0; border-collapse: collapse; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: #fff; table-layout: fixed; }
th, td { padding: 12px; border: 1px solid #ddd; text-align: left; vertical-align: middle; word-wrap: break-word; }
td { overflow: hidden; }
td video { max-width: 120px; height: auto; display: block; border-radius: 4px; position: static !important; top: auto !important; left: auto !important; }
th { background-color: #f2f2f2; }
tr:nth-child(even) { background-color: #f9f9f9; }
.actions { white-space: nowrap; }
.actions button, .actions a { padding: 5px 10px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; margin: 2px; border: none; color: white; font-size: 14px; }
.btn-approve { background-color: #28a745; }
.btn-delete { background-color: #dc3545; }
.btn-edit { background-color: #007bff; }
.btn-ban { background-color: #ffc107; color: #333; }
.status-pending, .status-banned { color: #ffc107; font-weight: bold; }
.status-approved, .status-active { color: #28a745; font-weight: bold; }
.admin-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ===== [员工管理页面] 新增和修正的样式 ===== */
/* [修正] 添加新员工按钮改为蓝色 */
.btn-add { display: inline-block; padding: 8px 16px; background-color: #007bff; color: white; border-radius: 5px; text-decoration: none; font-weight: bold; margin-bottom: 15px; transition: background-color 0.2s; }
.btn-add:hover { background-color: #0056b3; }

/* [修正] 权限设置复选框的容器，使用grid布局 */
.permissions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }

.admin-form { max-width: 600px; margin: 20px auto; padding: 25px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form label { display: block; margin-bottom: 8px; font-weight: bold; color: #333; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; box-sizing: border-box; transition: border-color 0.2s; }
.admin-form input[type="text"]:focus, .admin-form input[type="password"]:focus, .admin-form textarea:focus { border-color: #007bff; outline: none; }
.admin-form small { display: block; margin-top: 5px; color: #888; font-size: 13px; }
/* [修正] 复选框和标签的对齐与大小 */
.admin-form .checkbox-label { display: flex; align-items: center; /* 垂直居中对齐 */ margin-right: 20px; margin-bottom: 10px; font-weight: normal; cursor: pointer; }
.admin-form .checkbox-label input { margin-right: 8px; width: 18px; /* 增大复选框 */ height: 18px; /* 增大复选框 */ }

/* [修正] 强制将表单内的提交/保存按钮颜色改为蓝色 */
.btn-submit, .admin-form button[type="submit"] { display: inline-block; width: 100%; padding: 12px; background-color: #007bff !important; /* 改为蓝色并强制生效 */ color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; text-align: center; cursor: pointer; transition: background-color 0.2s; }
.btn-submit:hover, .admin-form button[type="submit"]:hover { background-color: #0056b3 !important; /* 对应的深蓝色并强制生效 */ }

/* --- 9. 交互效果 --- */
.btn:active, .actions button:active, .actions a:active, .nav-item:active, .nav-item-publish:active, .btn-edit:active, .btn-logout:active, .global-mute-button:active, .btn-add:active { transform: scale(0.95); opacity: 0.8; }

/* --- 10. 后台移动端响应式媒体查询 --- */
@media (max-width: 768px) {
    .admin-body { padding: 5px; }
    .admin-body .auth-container { width: 95%; margin: 5px auto; padding: 20px; }
    .admin-nav a { font-size: 13px; padding: 6px 10px; }
    .stats-container { gap: 5px; }
    .stat-card { padding: 10px; min-width: 80px; }
    .stat-card h3 { font-size: 14px; }
    .stat-card p { font-size: 1.2em; }
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { border: 1px solid #ccc; margin-bottom: 10px; }
    td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; }
    td:before { position: absolute; top: 8px; left: 8px; width: 45%; padding-right: 10px; white-space: nowrap; font-weight: bold; content: attr(data-label); }
    td:nth-of-type(1):before { content: "预览"; }
    td:nth-of-type(2):before { content: "简介"; }
    td:nth-of-type(3):before { content: "发布者"; }
    td:nth-of-type(4):before { content: "状态"; }
    td:nth-of-type(5):before { content: "操作"; }
    .actions { text-align: right; padding: 10px 8px 10px 50%; }
    /* [修正] 移动端权限设置为单列显示 */
    .permissions-grid { grid-template-columns: 1fr; }
}

/* --- 11. 新增高级功能样式 --- */
.progress-time-tooltip { position: absolute; bottom: 20px; background-color: rgba(0, 0, 0, 0.8); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.video-container.previewing .video-info { filter: brightness(0.7); transition: filter 0.2s ease; }

/* ============================================================================ */
/* ======================= 社交功能样式 ======================== */
/* ============================================================================ */
.video-actions { position: absolute; right: 10px; bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; z-index: 15; }
.action-item { display: flex; flex-direction: column; align-items: center; background: none; border: none; color: white; cursor: pointer; padding: 0; transition: transform 0.1s ease; }
.action-item:active { transform: scale(0.9); }
.action-item svg { width: 35px; height: 35px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.action-count { font-size: 12px; font-weight: bold; margin-top: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.action-item img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid white; margin-bottom: 4px; }
.follow-btn { font-size: 12px; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 1px solid white; background: rgba(255,255,255,0.2); color: white; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.follow-btn.following { background: #fe2c55; border-color: #fe2c55; }
.video-author { color: #fff; text-decoration: none; font-weight: bold; }
.video-author:hover { text-decoration: underline; }
.follow-btn.loading { color: transparent !important; pointer-events: none; position: relative; }
.follow-btn.loading::after { content: '...'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: white; font-size: 18px; line-height: 1; animation: loading-dots 1.4s infinite; }
@keyframes loading-dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } 100% { content: '.'; } }
.comments-popup { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 100; opacity: 0; transition: opacity 0.3s ease-out; }
.comments-popup.active { opacity: 1; }
.comments-scrim { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
.comments-content-wrapper { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; background: #1C1C1E; border-top-left-radius: 20px; border-top-right-radius: 20px; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.3s ease-out; padding-bottom: 55px; }
.comments-popup.active .comments-content-wrapper { transform: translateY(0); }
.comments-header { flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 15px 20px; font-weight: bold; border-bottom: 1px solid #444; position: relative; }
.comments-header span { font-size: 14px; color: #E5E5EA; }
.close-comments-btn { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #E5E5EA; font-size: 24px; cursor: pointer; }
.comments-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 20px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 15px; animation: fadeInUp 0.5s ease-out; position: relative; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.comment-content { flex-grow: 1; }
.comment-content strong { display: block; margin-bottom: 4px; font-size: 14px; color: #F2F2F7; }
.comment-content p { margin: 0; font-size: 14px; word-break: break-word; color: #F2F2F7; }
.comment-item img.comment-image { max-width: 100%; height: auto; border-radius: 8px; margin-top: 5px; cursor: pointer; display: block; }
.comment-item p.deleted-comment { color: #8E8E93; font-style: italic; }
.comment-time { font-size: 12px; color: #8E8E93; margin-top: 4px; display: block; }
.comment-actions { position: absolute; top: 0px; right: 0px; display: none; z-index: 10; }
.comment-item:hover .comment-actions { display: flex; }
.comment-actions button { background: transparent; border: none; padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s ease; }
.comment-actions button:hover { background: rgba(255,255,255,0.2); }
.comment-actions button svg { width: 16px; height: 16px; }
.comment-input-area { flex-shrink: 0; display: flex; align-items: flex-end; padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #444; background: #1C1C1E; }
.comment-input-area .chat-media-btn { background: transparent; border: 1px solid #8E8E93; border-radius: 50%; width: 38px; height: 38px; padding: 0; display: flex; justify-content: center; align-items: center; cursor: pointer; flex-shrink: 0; transition: background-color 0.2s ease; }
.comment-input-area .chat-media-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
.comment-input-area .chat-media-btn svg path { stroke: #E5E5EA; }
.comment-input-area textarea.comment-input { flex-grow: 1; background: #3A3A3C; border: none; border-radius: 20px; padding: 10px 15px; color: #F2F2F7; margin: 0 10px; resize: none; min-height: 38px; max-height: 120px; overflow-y: auto; font-size: 14px; }
.send-comment-btn { background: #fe2c55; border: none; color: white; padding: 0 20px; height: 38px; border-radius: 20px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; flex-shrink: 0; }
.send-comment-btn:hover { background: #e42046; }
.send-comment-btn:disabled { background: #888; cursor: not-allowed; }
.comment-loading, .comment-empty, .comment-error { text-align: center; padding: 20px; color: #8E8E93; }
.comment-loading { border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid #fe2c55; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.comment-image-preview-area { flex-shrink: 0; display: none; padding: 0 15px 10px; background: #1C1C1E; position: relative; }
.comment-image-preview-area img { max-width: 60px; max-height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid #555; }
.comment-image-preview-area #remove-comment-image-btn { position: absolute; top: -5px; left: 55px; background-color: rgba(0,0,0,0.6); color: white; border: 1px solid white; border-radius: 50%; cursor: pointer; width: 20px; height: 20px; font-size: 14px; line-height: 18px; text-align: center; padding: 0; }
.comment-image-preview-area #remove-comment-image-btn:hover { background-color: #dc3545; }
.profile-stats { display: flex; justify-content: space-around; padding: 15px 0; text-align: center; color: #fff; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong { font-size: 1.2em; font-weight: bold; }
.stat-item span { font-size: 0.9em; color: #aaa; }
.tab-count { font-size: 0.8em; color: #aaa; margin-left: 5px; }
.btn-follow, .btn-message { background: #fe2c55; color: white; border: none; padding: 10px 30px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 15px; transition: background-color 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-follow:hover, .btn-message:hover { background: #e42046; }
.btn-follow.following { background: #555; }

/* --- 12. 公告功能样式 --- */
#announcement-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: none; /* 默认隐藏，有公告时JS会显示它 */
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, transform 0.1s ease;
}
#announcement-button:hover { background-color: rgba(0, 0, 0, 0.5); }
#announcement-button svg { width: 24px; height: 24px; }

.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.announcement-popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* --- 修改开始 --- */
.announcement-popup-content {
    background: #ffffff; /* 修改为白色背景 */
    color: #333333;   /* 修改为深色文字 */
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2); /* 调整阴影以适应浅色背景 */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
/* --- 修改结束 --- */

.announcement-popup-overlay.show .announcement-popup-content {
    transform: scale(1);
}

/* --- 修改开始 --- */
.announcement-popup-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #111111; /* 修改为深色标题 */
}
/* --- 修改结束 --- */

.announcement-body {
    overflow-y: auto;
    padding-right: 10px; /* for scrollbar */
}
.announcement-body a { color: #fe2c55; }
.announcement-body p { margin: 0 0 1em 0; line-height: 1.6; }

/* --- 修改开始 --- */
.close-announcement-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888888; /* 修改为灰色关闭按钮 */
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}
/* --- 修改结束 --- */