/* ========================================
   藏蓝玫瑰轻奢风格主题 - 覆盖样式
   Navy Rose Luxury Theme Override
   ======================================== */

/* ---------- 颜色变量 ---------- */
:root {
    --navy-900: #0A0F38;
    --navy-800: #121A4D;
    --navy-700: #1A2566;
    --navy-600: #25327A;
    --navy-500: #3344AA;
    --cream-50: #FAF9F5;
    --cream-100: #F5F3ED;
    --gold-500: #C9A962;
    --gold-400: #D4B978;
    --shadow-soft: 0 4px 20px rgba(10, 15, 56, 0.08);
    --shadow-card: 0 8px 30px rgba(10, 15, 56, 0.06);
    --shadow-hover: 0 12px 40px rgba(10, 15, 56, 0.12);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;
}

/* ---------- 全局和背景 ---------- */
body {
    background-color: #FAF9F5 !important;
    color: #1A2566;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 头部 Header ---------- */
.header {
    background: linear-gradient(135deg, #0A0F38 0%, #121A4D 40%, #1A2566 70%, #25327A 100%) !important;
    color: #fff !important;
    padding: 0 20px !important;
    position: relative !important;
    overflow: hidden;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 4px 24px rgba(10, 15, 56, 0.2);
}

/* 线条玫瑰装饰 - 左下角藤蔓玫瑰（已移除） */
.header::before {
    display: none !important;
}

/* 线条玫瑰装饰 - 右侧大玫瑰（使用flower.png） */
.header::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -30px;
    transform: none;
    width: 180px;
    height: 180px;
    background-image: url("images/flower.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.14;
    filter: brightness(0) invert(1);
}

.header-content {
    height: 60px !important;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo::after {
    display: none !important;
    content: 'LUXURY ROSE';
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #C9A962;
    opacity: 0.8;
    margin-top: 2px;
}

/* ---------- 搜索框 Search Box ---------- */
.main-content,
.container,
.page {
    overflow: visible !important;
}

.search-box {
    background: transparent !important;
    padding: 15px 20px !important;
    position: static !important;
    z-index: 101 !important;
}

.search-input {
    background: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.08);
    transition: all 0.3s ease;
    color: #1A2566;
}

.search-input:focus {
    box-shadow: 0 6px 24px rgba(10, 15, 56, 0.12), 0 0 0 2px rgba(201, 169, 98, 0.3);
}

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

.clear-btn {
    color: #C9A962 !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 50%;
    margin-left: 12px !important;
}

/* ---------- 分类标签 Tabs ---------- */
.tabs {
    background: transparent !important;
    padding: 8px 15px 12px !important;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    color: #666 !important;
    background: #fff;
    border-radius: 999px !important;
    margin-right: 8px !important;
    border: 1px solid rgba(26, 37, 102, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-item:hover {
    border-color: rgba(201, 169, 98, 0.4);
    color: #1A2566 !important;
}

.tab-item.active {
    color: #fff !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.25);
}

/* ---------- 公告 Announcement ---------- */
.announcement {
    background: linear-gradient(135deg, #FAF9F5 0%, #F5F3ED 100%) !important;
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 12px 15px !important;
    margin: 10px 15px !important;
    border-radius: 12px !important;
}

.announcement-text {
    color: #1A2566 !important;
    font-size: 13px;
}

/* ---------- 排序栏 Sort Bar ---------- */
.sort-bar {
    background: transparent !important;
    padding: 5px 15px 10px !important;
    margin-bottom: 5px !important;
    gap: 8px;
}

.sort-item {
    padding: 6px 18px !important;
    font-size: 13px !important;
    color: #666 !important;
    background: #fff;
    border-radius: 999px !important;
    margin-right: 8px !important;
    border: 1px solid rgba(26, 37, 102, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sort-item:hover {
    border-color: rgba(201, 169, 98, 0.4);
    color: #1A2566 !important;
}

.sort-item.active {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.25);
}

/* ---------- 卡片 Card ---------- */
.card {
    background: #fff !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(10, 15, 56, 0.1) !important;
    transform: translateY(-2px);
}

/* ---------- 帖子项 Post Item ---------- */
.post-item {
    padding: 18px !important;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 8px 30px rgba(10, 15, 56, 0.1);
}

.post-header {
    margin-bottom: 12px !important;
}

.post-avatar {
    width: 44px !important;
    height: 44px !important;
    border: 2px solid #C9A962;
    padding: 2px;
    background: #FAF9F5 !important;
}

.author-name {
    color: #1A2566;
    font-weight: 600 !important;
}

.post-time {
    color: #999;
}

.top-tag {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    border-radius: 6px !important;
    font-weight: 500;
}

.forward-label {
    background: rgba(201, 169, 98, 0.1) !important;
    color: #1A2566 !important;
    border-radius: 8px !important;
    font-weight: 500;
}

.post-title {
    color: #0A0F38;
    font-weight: 600 !important;
}

.post-text {
    color: #333 !important;
    line-height: 1.7 !important;
}

.post-footer {
    border-top: 1px solid rgba(26, 37, 102, 0.06) !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
}

.footer-item {
    color: #999 !important;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-item:hover {
    color: #3344AA !important;
}

/* ---------- 帖子标签 ---------- */
.post-tag {
    background: rgba(201, 169, 98, 0.12) !important;
    color: #1A2566 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}

/* ---------- 网格列表 ---------- */
.grid-list {
    padding: 0 15px !important;
    gap: 12px !important;
}

.grid-info {
    padding: 12px !important;
}

.grid-title {
    color: #0A0F38;
    font-weight: 500;
}

.grid-stats {
    color: #999;
}

/* ---------- 底部导航 Tab Bar ---------- */
.tab-bar {
    position: fixed !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 30px) !important;
    max-width: 400px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #121A4D 50%, #1A2566 100%) !important;
    border: none !important;
    border-radius: 28px !important;
    padding: 8px 10px !important;
    box-shadow: 0 10px 40px rgba(10, 15, 56, 0.35);
    z-index: 1000 !important;
    height: auto !important;
}

.tab-bar-item {
    padding: 8px 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    border-radius: 18px;
    margin: 0 2px;
}

.tab-bar-item.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.tab-bar-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-icon {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 3px !important;
    transition: transform 0.3s ease;
}

.tab-label {
    font-size: 10px !important;
    letter-spacing: 0.5px;
}

/* 未读消息红点 */
.unread-badge {
    top: 2px !important;
    right: calc(50% - 26px) !important;
    background: linear-gradient(135deg, #C9A962 0%, #D4B978 100%) !important;
    color: #0A0F38 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.4);
}

/* ---------- 发布表单 Publish Form ---------- */
.publish-form {
    padding: 15px !important;
}

.page-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    padding: 20px 0 15px !important;
    color: #0A0F38;
    letter-spacing: 0.5px;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #C9A962, transparent);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* 分类选择器 */
.category-selector {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
    border: none !important;
}

.category-selector .label {
    font-size: 14px !important;
    color: #0A0F38 !important;
    font-weight: 600;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-selector .label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #C9A962, #1A2566);
    border-radius: 2px;
}

.category-list {
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto !important;
    padding: 10px 24px !important;
    background: #FAF9F5 !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    color: #6E7388 !important;
    cursor: pointer;
    min-width: auto;
    height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    border: 1px solid rgba(26, 37, 102, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.category-item:hover {
    border-color: rgba(201, 169, 98, 0.5);
    color: #1A2566 !important;
}

.category-item.active {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(10, 15, 56, 0.25);
    position: relative;
}

.category-item.active::after {
    display: none;
}

/* 表单项 */
.form-item {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
    border: none !important;
}

.form-item .label {
    font-size: 14px !important;
    color: #0A0F38 !important;
    font-weight: 600;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-item .label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #C9A962, #1A2566);
    border-radius: 2px;
}

/* 输入框 */
.input {
    border: 1px solid rgba(26, 37, 102, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    background: #FAF9F5 !important;
    color: #1A2566;
    transition: all 0.3s ease;
}

.input:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

/* 文本域 */
.textarea {
    border: 1px solid rgba(26, 37, 102, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    background: #FAF9F5 !important;
    color: #1A2566;
    transition: all 0.3s ease;
}

.textarea:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

/* 上传选项 */
.upload-options {
    gap: 15px !important;
}

.upload-option {
    cursor: pointer;
}

.option-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #FAF9F5 0%, #F5F3ED 100%) !important;
    border: 1px solid rgba(201, 169, 98, 0.2);
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
}

.option-icon:hover {
    border-color: #C9A962;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}

.option-text {
    font-size: 12px !important;
    color: #666 !important;
}

/* 可见性选项 */
.visibility-options {
    gap: 10px !important;
}

.visibility-options .option {
    padding: 10px 22px !important;
    background: #FAF9F5 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    color: #666 !important;
    border: 1px solid rgba(26, 37, 102, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.visibility-options .option:hover {
    border-color: rgba(201, 169, 98, 0.4);
    color: #1A2566 !important;
}

.visibility-options .option.active {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.25);
}

/* 内容类型选项 */
.content-types {
    gap: 10px !important;
}

.content-type-item {
    padding: 10px 22px !important;
    background: #FAF9F5 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    color: #666 !important;
    border: 1px solid rgba(26, 37, 102, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.content-type-item:hover {
    border-color: rgba(201, 169, 98, 0.4);
    color: #1A2566 !important;
}

.content-type-item.active {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.25);
}

/* ---------- 按钮 Button ---------- */
.btn {
    padding: 14px 24px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.draft-btn {
    background: #FAF9F5 !important;
    color: #1A2566 !important;
    border: 1px solid rgba(26, 37, 102, 0.15);
}

.draft-btn:hover {
    border-color: #C9A962;
    background: #fff !important;
}

.publish-btn {
    background: linear-gradient(135deg, #0A0F38 0%, #121A4D 30%, #1A2566 60%, #3344AA 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.publish-btn:hover {
    box-shadow: 0 8px 25px rgba(10, 15, 56, 0.4);
    transform: translateY(-1px);
}

.action-buttons {
    padding: 25px 0 !important;
    gap: 15px !important;
}

/* 登录按钮 */
.login-btn {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    padding: 14px 40px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3);
    transition: all 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 8px 25px rgba(10, 15, 56, 0.4);
    transform: translateY(-1px);
}

/* 发送验证码按钮 */
.send-code-btn {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.3);
}

/* 认证按钮 */
.auth-btn {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    padding: 16px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px !important;
}

.auth-btn:hover {
    box-shadow: 0 8px 25px rgba(10, 15, 56, 0.4);
    transform: translateY(-1px);
}

.switch-link {
    color: #3344AA !important;
    font-weight: 500;
}

/* 保存按钮 */
.save-btn {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3);
    transition: all 0.3s ease;
    margin-top: 25px !important;
}

.save-btn:hover {
    box-shadow: 0 8px 25px rgba(10, 15, 56, 0.4) !important;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
}

/* 头像编辑按钮 */
.avatar-edit {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.avatar-edit:hover {
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.3);
}

/* 编辑按钮 */
.edit-btn {
    border-color: #C9A962 !important;
    color: #C9A962 !important;
    border-radius: 999px !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.edit-btn:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: #C9A962;
}

/* 评论发送按钮 */
.comment-send {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-send:hover {
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.3);
}

/* 回复发送按钮 */
.send-reply {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 8px 20px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.send-reply:hover {
    box-shadow: 0 4px 12px rgba(26, 37, 102, 0.3);
}

/* 操作按钮确认 */
.confirm-btn {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    box-shadow: 0 4px 15px rgba(26, 37, 102, 0.3);
}

.cancel-btn {
    background: #FAF9F5 !important;
    color: #666 !important;
    border-radius: 999px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #F5F3ED !important;
}

/* ---------- 我的页 Profile ---------- */
.profile-content {
    padding: 15px !important;
}

.profile-header {
    padding: 25px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #121A4D 40%, #1A2566 80%, #25327A 100%) !important;
    border-radius: 20px !important;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 15, 56, 0.2);
}

/* 玫瑰装饰（已移除） */
.profile-header::before {
    display: none !important;
}

.profile-header .avatar {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    border: 3px solid #C9A962 !important;
    background: #FAF9F5 !important;
    padding: 2px;
    margin-right: 18px !important;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    position: relative;
    z-index: 1;
}

.profile-header .avatar .avatar-text {
    color: #1A2566 !important;
    font-weight: 600;
}

.user-info {
    position: relative;
    z-index: 1;
}

.nickname {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #fff;
}

.bio {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 12px !important;
}

/* 菜单列表 */
.menu-list {
    background: #fff !important;
    border-radius: 20px !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
}

.menu-item {
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.05) !important;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #FAF9F5;
}

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

.menu-text {
    font-size: 14px !important;
    color: #1A2566;
    font-weight: 500;
}

.menu-arrow {
    color: #C9A962 !important;
    font-size: 18px !important;
    opacity: 0.6;
}

/* 登出按钮 */
.logout-section {
    padding: 10px 0 20px !important;
}

.logout-btn {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    box-shadow: 0 8px 25px rgba(10, 15, 56, 0.4);
    transform: translateY(-1px);
}

/* ---------- 详情页 Detail ---------- */
.detail-content {
    padding: 15px !important;
}

.detail-header {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
}

.detail-body {
    background: #fff !important;
    padding: 20px !important;
    border-top: 1px solid rgba(26, 37, 102, 0.05) !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
}

.comment-section {
    margin-top: 15px !important;
    background: #fff !important;
    padding: 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
}

.comment-input {
    background: #FAF9F5 !important;
    border: 1px solid rgba(26, 37, 102, 0.08) !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.comment-input:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

.section-header {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0A0F38;
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.08) !important;
}

.toggle-author {
    background: #FAF9F5 !important;
    color: #666 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.toggle-author.active {
    color: #1A2566 !important;
    background: rgba(201, 169, 98, 0.15) !important;
}

.comment-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.05) !important;
}

.author-tag {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 500;
}

.delete-btn {
    color: #C9A962 !important;
    font-size: 12px !important;
    font-weight: 500;
}

.reply-btn {
    color: #666 !important;
    font-size: 12px !important;
    transition: color 0.2s;
}

.reply-btn:hover {
    color: #3344AA !important;
}

.replies-container {
    background: #FAF9F5 !important;
    border-radius: 12px !important;
    padding: 12px !important;
}

.expand-replies,
.collapse-replies {
    color: #3344AA !important;
    font-size: 12px !important;
    font-weight: 500;
}

/* 回复输入框 */
.reply-input-container {
    background: #fff !important;
    border-top: 1px solid rgba(26, 37, 102, 0.08) !important;
    padding: 12px 15px !important;
    bottom: 80px !important;
    box-shadow: 0 -4px 20px rgba(10, 15, 56, 0.06);
}

.reply-input {
    background: #FAF9F5 !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    border: 1px solid rgba(26, 37, 102, 0.08) !important;
    transition: all 0.3s ease;
}

.reply-input:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

.cancel-reply {
    color: #999 !important;
    font-size: 13px !important;
    font-weight: 500;
}

/* ---------- 返回按钮 Back Button ----------
   统一规则：固定在左上角横幅之上（z-index 高于 header/tab-bar 的1000，
   低于弹窗遮罩2000），深色半透明+毛玻璃，在深色横幅和浅色内容上都清晰可见。
   注意：不要再在后面对 .back-btn 定义 position:absolute / 更低 z-index，
   否则按钮会被横幅遮住。 */
.back-btn {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(10, 15, 56, 0.55) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 98, 0.55) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(10, 15, 56, 0.3);
    color: #fff !important;
    font-size: 18px !important;
    z-index: 1500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(10, 15, 56, 0.75) !important;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.4);
    transform: scale(1.05);
}

/* 有返回按钮的子页面：标题右移，避免与按钮重叠 */
body.sub-page .header-content {
    padding-left: 52px;
}

/* 子页面内容与顶部横幅留出间距，避免卡片贴住/重叠横幅 */
#page-my-posts .container,
#page-favorites .container,
#page-words .container,
#page-edit-profile .container,
#page-user-profile .container {
    padding-top: 15px !important;
}

/* ---------- 消息页 Messages ---------- */
.message-item {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(10, 15, 56, 0.05);
    transition: all 0.3s ease;
}

.message-item:hover {
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.08);
    background: #fff !important;
}

.message-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 2px solid #C9A962;
    padding: 2px;
    background: #FAF9F5 !important;
}

.message-sender {
    color: #0A0F38 !important;
    font-weight: 600 !important;
}

.message-time {
    color: #999 !important;
    font-size: 12px !important;
}

.message-type.comment {
    background: rgba(201, 169, 98, 0.15) !important;
    color: #1A2566 !important;
}

.message-type.forward {
    background: rgba(51, 68, 170, 0.1) !important;
    color: #3344AA !important;
}

.message-text {
    color: #555 !important;
    line-height: 1.6 !important;
}

.message-post-preview {
    background: #FAF9F5 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    color: #999 !important;
}

.message-unread-dot {
    background: linear-gradient(135deg, #C9A962 0%, #D4B978 100%) !important;
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.4);
}

/* ---------- 弹窗 Modal ---------- */
.modal-content {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 15, 56, 0.2);
}

.modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.08) !important;
}

.modal-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #0A0F38;
}

.modal-close {
    color: #999 !important;
    font-size: 24px !important;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #3344AA;
}

.modal-body {
    padding: 20px !important;
}

/* 操作表 */
.action-sheet {
    background: #fff !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 8px 0 !important;
}

.action-sheet-item {
    padding: 16px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.05) !important;
    color: #1A2566;
    font-weight: 500;
    transition: background 0.2s;
}

.action-sheet-item:hover {
    background: #FAF9F5;
}

.action-sheet-cancel {
    margin-top: 8px !important;
    background: #FAF9F5 !important;
    color: #666 !important;
    font-weight: 500;
}

/* ---------- 筛选标签 Filter Tabs ---------- */
.filter-tabs {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 6px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(10, 15, 56, 0.05);
}

.filter-tab {
    padding: 10px 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    border-radius: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: linear-gradient(135deg, #1A2566 0%, #3344AA 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(26, 37, 102, 0.25);
}

/* ---------- 帖子操作按钮 ---------- */
.post-actions {
    border-top: 1px solid rgba(26, 37, 102, 0.06) !important;
    padding-top: 15px !important;
    margin-top: 15px !important;
    gap: 10px !important;
}

.action-btn {
    background: #FAF9F5 !important;
    border-radius: 12px !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #F5F3ED !important;
}

.action-btn.delete {
    color: #C9A962 !important;
}

/* ---------- 编辑资料页 ---------- */
.section {
    background: #fff !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.05) !important;
}

.section-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #0A0F38;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #C9A962, #1A2566);
    border-radius: 2px;
}

.edit-profile .input,
.edit-profile .textarea {
    background: #FAF9F5 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    border: 1px solid rgba(26, 37, 102, 0.08) !important;
    transition: all 0.3s ease;
}

.edit-profile .input:focus,
.edit-profile .textarea:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

/* 用户主页 */
.user-profile-header {
    padding: 30px 20px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #121A4D 40%, #1A2566 80%, #25327A 100%) !important;
    position: relative;
    overflow: hidden;
}

.user-profile-header::after {
    display: none !important;
}

.user-profile-header .avatar {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    border: 3px solid #C9A962 !important;
    background: #FAF9F5 !important;
    padding: 2px;
    margin-right: 20px !important;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    position: relative;
    z-index: 1;
}

.user-profile-name {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    position: relative;
    z-index: 1;
}

.user-profile-email {
    color: rgba(255, 255, 255, 0.6) !important;
    position: relative;
    z-index: 1;
}

.user-profile-bio {
    color: rgba(255, 255, 255, 0.75) !important;
    position: relative;
    z-index: 1;
}

.user-profile-btn {
    border-radius: 999px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-profile-btn.message-btn {
    border-color: #C9A962 !important;
    color: #C9A962 !important;
    background: transparent !important;
}

.user-profile-btn.message-btn:hover {
    background: rgba(201, 169, 98, 0.15) !important;
}

.user-profile-stats {
    padding: 18px 0 !important;
    margin-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.stat-num {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

/* ---------- 协作编辑 ---------- */
.add-collaborator {
    background: #FAF9F5 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-collaborator:hover {
    background: #F5F3ED !important;
    border-color: #C9A962;
}

.collaborator-item {
    background: rgba(201, 169, 98, 0.12) !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    color: #1A2566 !important;
    font-weight: 500;
}

.collaborator-remove {
    color: #C9A962 !important;
    font-weight: 600;
}

/* 协作者标签 */
.post-collaborator-tag {
    background: rgba(201, 169, 98, 0.12) !important;
    color: #1A2566 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500;
}

/* ---------- 内容卡片想说的话 ---------- */
.content-card {
    padding: 25px !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06);
}

.content-card .title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
    margin-bottom: 25px !important;
    position: relative;
}

.content-card .title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #C9A962, transparent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.words-text {
    font-size: 15px !important;
    line-height: 2 !important;
    color: #333 !important;
}

.signature {
    color: #C9A962 !important;
    font-size: 14px !important;
    margin-top: 25px !important;
    font-weight: 500;
}

/* ---------- 反馈弹窗 ---------- */
.feedback-modal {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 15, 56, 0.2);
}

.feedback-modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.08) !important;
}

.feedback-modal-title {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #0A0F38;
}

.feedback-modal-close {
    color: #999 !important;
    font-size: 24px !important;
}

.feedback-modal-body {
    padding: 30px 25px !important;
}

.feedback-text {
    color: #333 !important;
    font-size: 15px !important;
    margin-bottom: 18px !important;
}

.feedback-email {
    color: #3344AA !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* ---------- 收藏按钮激活状态 ---------- */
.favorite-btn.active img {
    filter: invert(68%) sepia(50%) saturate(400%) hue-rotate(5deg) brightness(90%) contrast(90%) !important;
}

/* ---------- 上传选项半宽 ---------- */
.upload-options-half .upload-option {
    border: 1px dashed rgba(201, 169, 98, 0.4) !important;
    border-radius: 16px !important;
    padding: 35px 15px !important;
    background: #FAF9F5 !important;
    transition: all 0.3s ease;
}

.upload-options-half .upload-option:hover {
    border-color: #C9A962 !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.15);
}

/* ---------- 转发弹窗 ---------- */
.forward-modal {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 15, 56, 0.2);
}

.forward-modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.08) !important;
    background: #fff !important;
}

.forward-modal-title {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #0A0F38;
}

.forward-modal-close {
    color: #999 !important;
    font-size: 24px !important;
}

.forward-modal-body {
    padding: 20px !important;
}

.forward-preview {
    background: #FAF9F5 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
}

.forward-input {
    border: 1px solid rgba(26, 37, 102, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    background: #FAF9F5 !important;
    transition: all 0.3s ease;
}

.forward-input:focus {
    border-color: #C9A962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: #fff !important;
}

.forward-upload-option {
    border: 1px dashed rgba(201, 169, 98, 0.4) !important;
    border-radius: 12px !important;
    background: #FAF9F5 !important;
    transition: all 0.3s ease;
}

.forward-upload-option:hover {
    border-color: #C9A962 !important;
    background: #fff !important;
}

/* ---------- 详情页菜单 ---------- */
.detail-menu {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(10, 15, 56, 0.15) !important;
    padding: 8px 0 !important;
    overflow: hidden;
}

.detail-menu-item {
    padding: 14px 22px !important;
    color: #1A2566;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.detail-menu-item:hover {
    background: #FAF9F5 !important;
}

/* ---------- 私密标签 ---------- */
.private-tag {
    background: rgba(201, 169, 98, 0.15) !important;
    color: #1A2566 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500;
    padding: 4px 12px !important;
}

/* ---------- 加载和空状态 ---------- */
.loading, .no-more, .empty-text {
    color: #999 !important;
    font-size: 13px !important;
}

.empty-state {
    padding: 60px 20px !important;
}

/* ---------- PC端适配 ---------- */
@media (min-width: 768px) {
    .container {
        padding: 0 20px !important;
    }

    .search-box {
        padding: 20px 25px !important;
    }

    .search-input {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    .tab-item {
        font-size: 14px !important;
        padding: 10px 24px !important;
    }

    .sort-item {
        padding: 8px 22px !important;
        font-size: 14px !important;
    }

    .grid-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .grid-cover {
        height: 200px !important;
    }

    .post-item {
        padding: 22px !important;
    }

    .post-avatar {
        width: 52px !important;
        height: 52px !important;
    }

    .post-text {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .post-image {
        width: 150px !important;
        height: 150px !important;
    }

    .more-images {
        width: 150px !important;
        height: 150px !important;
    }

    .tab-bar {
        bottom: 20px !important;
        max-width: 500px !important;
    }
}

@media (min-width: 1024px) {
    .grid-list {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ---------- 细节优化 - 平滑过渡 ---------- */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 图片圆角优化 */
.post-image,
.grid-cover,
.inline-image,
.inline-video,
.image-item img,
.comment-media-item img,
.comment-media-item video,
.forward-image {
    border-radius: 12px !important;
}

.more-images {
    border-radius: 12px !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(26, 37, 102, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 37, 102, 0.35);
}

/* ========================================
   设计稿对齐 - 新增样式覆盖
   ======================================== */

/* ---------- 头部 - 页面标题动态切换 ---------- */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo .header-title-cn {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
}

.logo .header-title-en {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #C9A962;
    opacity: 0.7;
    margin-top: 2px;
}

/* ---------- 分类按钮 - 椭圆形胶囊 + 竖排文字 ---------- */
.category-list {
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto !important;
    min-width: 64px !important;
    height: auto !important;
    padding: 12px 10px !important;
    flex-direction: column !important;
    writing-mode: horizontal-tb !important;
    border-radius: 28px !important;
    font-size: 13px !important;
    line-height: 1.5;
    text-align: center;
    background: linear-gradient(180deg, #F5F6FA 0%, #EEF0F7 100%) !important;
    color: #6E7388 !important;
    border: 1px solid rgba(26, 37, 102, 0.06) !important;
    box-shadow: none !important;
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    color: #1A2566 !important;
}

.category-item.active {
    background: linear-gradient(180deg, #0A0F38 0%, #121A4D 40%, #1A2566 70%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3) !important;
}

.category-item.active::after {
    display: none !important;
}

/* 内容类型按钮 - 同样式 */
.content-types {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.content-types::-webkit-scrollbar {
    display: none;
}

.content-type-item {
    flex: 0 0 auto !important;
    min-width: 82px !important;
    padding: 12px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    border-radius: 28px !important;
    font-size: 13px !important;
    line-height: 1.5;
    text-align: center;
    background: linear-gradient(180deg, #F5F6FA 0%, #EEF0F7 100%) !important;
    color: #6E7388 !important;
    border: 1px solid rgba(26, 37, 102, 0.06) !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-type-item:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    color: #1A2566 !important;
}

.content-type-item.active {
    background: linear-gradient(180deg, #0A0F38 0%, #121A4D 40%, #1A2566 70%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3) !important;
}

/* ---------- 发布页标题 - 左上角 ---------- */
#page-publish .page-title {
    text-align: left !important;
    padding: 20px 5px 15px !important;
    font-size: 22px !important;
    position: relative;
    display: none !important;
}

/* ---------- 消息页 - 去掉私信标签 ---------- */
/* 消息页头部标签在SPA中通过header-tabs类控制，这里隐藏私信按钮 */
#page-messages .header-tabs,
.messages-tabs,
.msg-tabs {
    /* 如果有私信标签在这里隐藏 */
}

/* ---------- 我的页 - 退出登录居中 ---------- */
.logout-section {
    padding: 15px 0 25px !important;
    display: flex !important;
    justify-content: center !important;
}

.logout-btn {
    width: auto !important;
    min-width: 200px !important;
    max-width: 280px !important;
    padding: 14px 40px !important;
}

/* ---------- 发布页 - 内容类型区域显示 ---------- */
#content-type-field {
    display: block !important;
}

/* ---------- 头部玫瑰装饰优化 ---------- */
.header {
    padding-bottom: 20px !important;
}

.header-content {
    padding-top: 8px;
}

/* ---------- 排序栏 ---------- */
/* 排序按钮样式已在上方定义 */

/* ---------- 详情页 - 返回按钮 ----------
   返回按钮统一样式见上方「返回按钮 Back Button」区域，
   此处不再重复定义，以免 position/z-index 冲突导致按钮被横幅遮住。 */

/* ---------- 公告栏样式 ---------- */
.announcement {
    margin: 10px 15px !important;
}

/* ---------- 上传选项 - 优化 ---------- */
.upload-options-half {
    display: flex !important;
    gap: 15px !important;
}

.upload-option {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #FAF9F5 0%, #F5F3ED 100%) !important;
    border-radius: 16px !important;
    border: 1px dashed rgba(201, 169, 98, 0.3) !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-option:hover {
    border-color: #C9A962 !important;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.15) !important;
}

.upload-option .option-icon {
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 8px !important;
}

.upload-option .option-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* ---------- 协作编辑 ---------- */
.collaboration-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.add-collaborator {
    width: 100% !important;
    height: auto !important;
    padding: 14px 20px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #FAF9F5 0%, #F5F3ED 100%) !important;
    border: 1px solid rgba(26, 37, 102, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    color: #6E7388 !important;
    font-size: 14px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-collaborator:hover {
    border-color: rgba(201, 169, 98, 0.3) !important;
    background: #fff !important;
}

.add-collaborator .add-icon {
    font-size: 22px !important;
    color: #C9A962 !important;
    font-weight: 300;
}

/* ---------- 可见性选项 ---------- */
.visibility-options {
    display: flex !important;
    gap: 12px !important;
}

.visibility-options .option {
    flex: 1 !important;
    padding: 12px 16px !important;
    text-align: center !important;
    border-radius: 14px !important;
    background: #FAF9F5 !important;
    color: #6E7388 !important;
    font-size: 13px !important;
    font-weight: 500;
    border: 1px solid rgba(26, 37, 102, 0.08) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visibility-options .option:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    color: #1A2566 !important;
}

.visibility-options .option.active {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(10, 15, 56, 0.25) !important;
}

/* ---------- 底部操作按钮 ---------- */
.action-buttons {
    display: flex !important;
    gap: 12px !important;
    padding: 10px 0 20px !important;
}

.draft-btn {
    flex: 1 !important;
    padding: 14px !important;
    background: #FAF9F5 !important;
    color: #6E7388 !important;
    border: 1px solid rgba(26, 37, 102, 0.1) !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.draft-btn:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    color: #1A2566 !important;
}

.publish-btn {
    flex: 2 !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publish-btn:hover {
    box-shadow: 0 8px 28px rgba(10, 15, 56, 0.4) !important;
    transform: translateY(-1px);
}

/* ---------- 登录/注册表单 ---------- */
.not-logged-in {
    padding: 20px 15px !important;
}

.auth-form {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(10, 15, 56, 0.06) !important;
    margin-bottom: 15px;
}

.auth-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
    margin-bottom: 20px !important;
    text-align: center;
    letter-spacing: 1px;
}

.auth-btn {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3) !important;
    transition: all 0.3s ease;
    margin-top: 10px !important;
}

.auth-btn:hover {
    box-shadow: 0 8px 28px rgba(10, 15, 56, 0.4) !important;
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 15px !important;
    font-size: 13px !important;
    color: #6E7388 !important;
}

.switch-link {
    color: #C9A962 !important;
    cursor: pointer;
    font-weight: 500;
}

.send-code-btn {
    padding: 0 16px !important;
    background: linear-gradient(135deg, #C9A962 0%, #D4B978 100%) !important;
    color: #0A0F38 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- 编辑资料页 ---------- */
.save-btn {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 15, 56, 0.3) !important;
    transition: all 0.3s ease;
    margin-top: 20px !important;
}

.save-btn:hover {
    box-shadow: 0 8px 28px rgba(10, 15, 56, 0.4) !important;
    transform: translateY(-1px);
}

.section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
    margin-bottom: 12px !important;
}

.avatar-edit {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #C9A962 0%, #D4B978 100%) !important;
    color: #0A0F38 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

/* ---------- 想说的话页 ---------- */
.content-card {
    padding: 25px !important;
}

.content-card .title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
    margin-bottom: 20px !important;
    text-align: center;
}

.words-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #1A2566 !important;
}

.signature {
    margin-top: 20px !important;
    text-align: right !important;
    color: #C9A962 !important;
    font-size: 13px !important;
    font-style: italic;
}

/* ---------- 过滤标签（我的帖子/收藏） ---------- */
.filter-tabs {
    display: flex !important;
    gap: 8px !important;
    padding: 12px 0 !important;
}

.filter-tab {
    padding: 8px 18px !important;
    font-size: 13px !important;
    color: #6E7388 !important;
    background: #fff !important;
    border-radius: 999px !important;
    border: 1px solid rgba(26, 37, 102, 0.08) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    color: #1A2566 !important;
}

.filter-tab.active {
    background: linear-gradient(135deg, #0A0F38 0%, #1A2566 50%, #3344AA 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(10, 15, 56, 0.25) !important;
}

/* ---------- 弹窗样式 ---------- */
.modal-content {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.06) !important;
}

.modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
}

.modal-close {
    color: #6E7388 !important;
    font-size: 24px !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #FAF9F5;
    color: #0A0F38 !important;
}

.modal-body {
    padding: 20px !important;
}

/* Action Sheet */
.action-sheet {
    background: #fff !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden;
}

/* 转发弹窗 */
.forward-modal {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.forward-modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.06) !important;
}

.forward-modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
}

.forward-modal-close {
    color: #6E7388 !important;
    font-size: 24px !important;
    cursor: pointer;
}

.forward-modal-body {
    padding: 20px !important;
}

/* 反馈弹窗 */
.feedback-modal {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.feedback-modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(26, 37, 102, 0.06) !important;
}

.feedback-modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0A0F38 !important;
}

.feedback-modal-close {
    color: #6E7388 !important;
    font-size: 24px !important;
    cursor: pointer;
}

.feedback-modal-body {
    padding: 25px 20px !important;
    text-align: center;
}

.feedback-text {
    color: #6E7388 !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.feedback-email {
    color: #C9A962 !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* ---------- 搜索用户弹窗 ---------- */
.search-user-modal .modal-content {
    max-width: 320px !important;
}

.search-user-input {
    display: block !important;
    /* 宽度减去左右各 16px 外边距，配合 border-box，左右圆角都不会被弹窗裁剪 */
    width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
    margin: 16px 16px 15px !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(26, 37, 102, 0.1) !important;
    border-radius: 12px !important;
    background: #FAF9F5 !important;
    font-size: 14px !important;
    color: #1A2566;
}

.search-user-input:focus {
    outline: none;
    border-color: #C9A962 !important;
    background: #fff !important;
}

/* ---------- 编辑按钮 ---------- */
.edit-btn {
    display: inline-block !important;
    padding: 6px 16px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* ---------- 消息页 - 头部标签 ---------- */
.messages-header-tabs {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* ---------- 主内容区域 padding 调整 ---------- */
.main-content {
    padding-bottom: 90px !important;
}

/* ---------- 帖子卡片玫瑰水印（已去除） ---------- */
.post-item::after {
    display: none !important;
}

.post-item > * {
    position: relative;
    z-index: 1;
}

/* ---------- 移动端优化 ---------- */
@media (max-width: 480px) {
    .header-content {
        height: 56px !important;
    }

    .logo .header-title-cn {
        font-size: 18px;
    }

    .logo .header-title-en {
        font-size: 8px;
    }

    .tab-bar {
        bottom: 10px !important;
        width: calc(100% - 20px) !important;
        padding: 6px 8px !important;
        border-radius: 24px !important;
    }

    .tab-bar-item {
        padding: 6px 0 !important;
    }

    .tab-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .tab-label {
        font-size: 9px !important;
    }
}
