/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
    color: #333;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ========== 背景图 ========== */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page-bg img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: right bottom;
    display: block;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo区域 */
.sidebar-logo {
    padding: 18px 18px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    width: 100%;
    object-fit: contain;
}

/* ========== 导航菜单 ========== */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.3);
    border-radius: 2px;
}

/* 标题栏 */
.nav-title {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #1A75A6;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 3px 10px 0;
    border-radius: 8px;
}

.nav-title .nav-icon {
    margin-right: 8px;
    font-size: 15px;
}

.nav-title .nav-text {
    flex: 1;
}

/* 分栏目 - 默认展开，不可折叠 */
.nav-items {
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 28px;
    color: #1A75A6;
    text-decoration: none;
    font-size: 14px;
    margin: 2px 10px 2px 18px;
    border-radius: 6px;
    opacity: 0.85;
}

.nav-item:hover {
    opacity: 1;
    font-weight: 700;
}

.nav-item.active {
    opacity: 1;
    font-weight: 700;
    background: rgba(26, 117, 166, 0.1);
}

.nav-item .nav-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* ========== 用户菜单 ========== */
.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    position: relative;
    z-index: 11;
}

/* 用户信息框 */
.user-box {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.user-toggle {
    display: flex;
    align-items: center;
    padding: 3px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    flex-shrink: 0;
}

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

.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #1A75A6;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    color: #1A75A6;
    font-size: 13px;
    font-weight: 500;
}

/* 未读消息气泡 */
.msg-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 4px;
}

.msg-badge-inline {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 6px;
}

/* 用户下拉菜单 - 向上弹出 */
.user-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-item span {
    margin-right: 8px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(26, 117, 166, 0.08);
}

.dropdown-item.admin-only {
    display: none;
}

.dropdown-item.admin-only.show {
    display: flex;
}

.dropdown-item#logoutBtn {
    color: #e74c3c;
}

/* ========== 右侧主内容区 ========== */
.main-content {
    margin-left: 220px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 24px;
    background: transparent;
}

.breadcrumb-text {
    font-size: 13px;
    color: #1A75A6;
    font-weight: 500;
}

/* 内容区 */
.content-area {
    flex: 1;
    padding: 24px 24px 0;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.welcome-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #1A75A6;
}

.welcome-placeholder h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-placeholder p {
    font-size: 15px;
    opacity: 0.7;
}

/* 页脚 */
.page-footer {
    padding: 10px 24px;
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    background: transparent;
    flex-shrink: 0;
}

.page-footer .footer-slogan {
    color: rgba(255, 255, 255, 0.85);
    font-size: 25px;
    font-weight: 700;
    text-align: right;
    line-height: 1.8;
    word-spacing: 13px;
}

.page-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: opacity 0.2s;
}

.page-footer a:hover {
    opacity: 1;
}

/* ========== 手机端悬浮按钮 ========== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1A75A6;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== 个人信息弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
}

.profile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 101;
    width: 520px;
    max-height: 85vh;
    overflow-y: auto;
}

.profile-modal::-webkit-scrollbar {
    width: 4px;
}

.profile-modal::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.3);
    border-radius: 2px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(26, 117, 166, 0.1);
}

.profile-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A75A6;
}

.profile-close {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.profile-close:hover {
    color: #1A75A6;
}

.profile-body {
    display: flex;
    padding: 16px 24px;
    gap: 20px;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.profile-name-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 10px;
}

.profile-display-name {
    font-size: 17px;
    font-weight: 700;
    color: #1A75A6;
    white-space: nowrap;
}

.profile-username {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(26, 117, 166, 0.2);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: #1A75A6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    transition: background 0.2s;
    line-height: 1;
}

.avatar-upload-btn:hover {
    background: #1580B8;
}

.profile-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-field label {
    width: 72px;
    flex-shrink: 0;
    font-size: 13px;
    color: #1A75A6;
    opacity: 0.75;
}

.profile-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
    transition: all 0.3s;
}

.profile-input:disabled {
    background: transparent;
    border-color: transparent;
    color: #333;
}

.profile-input:not(:disabled):focus {
    border-color: #1A75A6;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.1);
    background: #fff;
}

.profile-textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
    resize: vertical;
    min-height: 50px;
    transition: all 0.3s;
}

.profile-textarea:disabled {
    background: transparent;
    border-color: transparent;
    color: #333;
    resize: none;
}

.profile-textarea:not(:disabled):focus {
    border-color: #1A75A6;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.1);
    background: #fff;
}

.profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-top: 1px solid rgba(26, 117, 166, 0.1);
}

.profile-footer-right {
    display: flex;
    gap: 10px;
}

.profile-pwd-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1.5px solid #1A75A6;
    color: #1A75A6;
}

.profile-pwd-btn:hover {
    background: #1A75A6;
    color: #fff;
}

.profile-edit-btn,
.profile-save-btn,
.profile-cancel-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-edit-btn {
    background: #1A75A6;
    color: #fff;
    border: none;
}

.profile-edit-btn:hover {
    background: #1580B8;
}

.profile-save-btn {
    background: #1A75A6;
    color: #fff;
    border: none;
}

.profile-save-btn:hover {
    background: #1580B8;
}

.profile-cancel-btn {
    background: transparent;
    color: #999;
    border: 1.5px solid #ddd;
}

.profile-cancel-btn:hover {
    border-color: #999;
    color: #666;
}

.profile-error {
    text-align: center;
    font-size: 13px;
    color: #e74c3c;
    min-height: 0;
    padding: 0 24px 8px;
}

/* 修改密码弹窗 */
.pwd-modal {
    width: 380px;
}

/* ========== 站内消息弹窗 ========== */
.msg-modal {
    width: 640px;
    height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.msg-tabs {
    display: flex;
    border-bottom: 1px solid rgba(26, 117, 166, 0.1);
    padding: 0 24px;
}

.msg-tab {
    padding: 12px 20px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.msg-tab.active {
    color: #1A75A6;
    border-bottom-color: #1A75A6;
    font-weight: 600;
}

.msg-tab:hover {
    color: #1A75A6;
}

.msg-content {
    padding: 16px 24px;
    flex: 1;
    overflow-y: auto;
}

.msg-content::-webkit-scrollbar {
    width: 4px;
}

.msg-content::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.3);
    border-radius: 2px;
}

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

.msg-item:hover {
    background: rgba(26, 117, 166, 0.06);
}

.msg-item.unread {
    background: rgba(26, 117, 166, 0.04);
}

.msg-item.unread .msg-subject {
    font-weight: 600;
}

.msg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A75A6;
    flex-shrink: 0;
    margin-top: 6px;
}

.msg-dot.read {
    background: transparent;
}

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

.msg-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.msg-from {
    font-size: 13px;
    color: #1A75A6;
    font-weight: 500;
}

.msg-time {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.msg-subject {
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-preview {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.msg-action-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    background: #fff;
    color: #666;
    font-family: inherit;
    transition: all 0.2s;
}

.msg-action-btn:hover {
    border-color: #1A75A6;
    color: #1A75A6;
}

.msg-action-btn.delete:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 消息详情 */
.msg-detail {
    padding: 16px 24px;
}

.msg-detail-subject {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.msg-detail-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.msg-detail-content {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    white-space: pre-wrap;
}

.msg-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* 发送消息 */
.msg-compose {
    padding: 16px 24px;
}

.msg-compose-field {
    margin-bottom: 12px;
}

.msg-compose-field label {
    display: block;
    font-size: 13px;
    color: #1A75A6;
    opacity: 0.75;
    margin-bottom: 6px;
}

.msg-recipient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.msg-recipient-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(26, 117, 166, 0.1);
    color: #1A75A6;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}

.msg-recipient-tag .remove-tag {
    cursor: pointer;
    opacity: 0.6;
    font-size: 14px;
}

.msg-recipient-tag .remove-tag:hover {
    opacity: 1;
}

.msg-recipient-select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    outline: none;
    background: #fff;
}

.msg-recipient-select:focus {
    border-color: #1A75A6;
}

.msg-compose-subject {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    outline: none;
}

.msg-compose-subject:focus {
    border-color: #1A75A6;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.1);
}

.msg-compose-content {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 100px;
}

.msg-compose-content:focus {
    border-color: #1A75A6;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.1);
}

.msg-email-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.msg-email-option input[type="checkbox"] {
    accent-color: #1A75A6;
}

.msg-compose-actions {
    display: flex;
    gap: 10px;
}

/* 回复区域 */
.msg-reply-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.msg-reply-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.msg-reply-textarea:focus {
    border-color: #1A75A6;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.1);
}

.msg-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

.pwd-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== 移动端弹窗适配 ========== */
@media screen and (max-width: 768px) {
    .profile-modal {
        width: 92%;
        max-width: 520px;
        max-height: 90vh;
    }

    .profile-body {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }

    .profile-field {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .profile-field label {
        width: 72px;
    }

    .pwd-modal {
        width: 90%;
    }

    .pwd-body {
        padding: 16px;
    }

    .msg-modal {
        width: 95%;
        height: 80vh;
    }

    .msg-content {
        flex: 1;
    }

    .msg-item {
        padding: 10px;
    }

    .msg-tabs {
        padding: 0 16px;
    }

    .msg-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 侧边栏遮罩 - 手机端透明，背景不变暗 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 99;
}

/* ========== 模块通用：搜索栏 ========== */
.module-search-bar {
    position: relative;
    z-index: 10;
    width: calc(50% - 8px);
    margin: 0 0 20px 0;
    flex-shrink: 0;
}

/* 模块可滚动区域 */
.module-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
}

.module-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.module-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.2);
    border-radius: 2px;
}

.module-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.module-search-input::placeholder {
    color: #bbb;
}

.module-search-input:focus {
    border-color: rgba(26, 117, 166, 0.4);
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.08);
}

.module-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #bbb;
    pointer-events: none;
}

.module-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(26, 117, 166, 0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.module-search-dropdown.show {
    display: block;
}

.module-search-result {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.module-search-result:last-child {
    border-bottom: none;
}

.module-search-result:hover {
    background: rgba(26, 117, 166, 0.06);
}

.module-search-result .highlight {
    color: #1A75A6;
    font-weight: 600;
}

.module-search-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ========== 指南手册卡片（无标签，清爽版） ========== */
.guide-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 117, 166, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    text-align: left;
}

.guide-card:hover {
    box-shadow: 0 4px 18px rgba(26, 117, 166, 0.12);
    transform: translateY(-1px);
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.guide-card-time {
    font-size: 11px;
    color: #bbb;
}

.guide-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* ========== 公告专栏（时间线布局） ========== */
.announcement-timeline {
    position: relative;
    padding: 0;
}

.announcement-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(26, 117, 166, 0.15);
    transform: translateX(-50%);
}

.announcement-item {
    position: relative;
    width: 50%;
    padding: 0 24px 6px 24px;
}

.announcement-item:nth-child(odd) {
    padding-right: 32px;
    text-align: right;
    margin-top: -16px;
}

.announcement-item:nth-child(odd):first-child {
    margin-top: 0;
}

.announcement-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 32px;
    text-align: left;
    margin-top: -16px;
}

.announcement-dot {
    position: absolute;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1A75A6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(26, 117, 166, 0.15);
    z-index: 1;
}

.announcement-item.pinned .announcement-dot {
    background: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.announcement-item:nth-child(odd) .announcement-dot {
    right: -5px;
}

.announcement-item:nth-child(even) .announcement-dot {
    left: -5px;
}

.announcement-connector {
    position: absolute;
    top: 16px;
    width: 16px;
    height: 2px;
    background: rgba(26, 117, 166, 0.15);
}

.announcement-item:nth-child(odd) .announcement-connector {
    right: 5px;
}

.announcement-item:nth-child(even) .announcement-connector {
    left: 5px;
}

.announcement-item.pinned .announcement-connector {
    background: rgba(231, 76, 60, 0.15);
}

.announcement-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 117, 166, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    text-align: left;
}

.announcement-card:hover {
    box-shadow: 0 4px 18px rgba(26, 117, 166, 0.12);
    transform: translateY(-1px);
}

.announcement-item.pinned .announcement-card {
    border-color: rgba(231, 76, 60, 0.15);
}

.card-pinned {
    font-size: 12px;
    margin-left: 4px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.card-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.tag-notice { background: rgba(26, 117, 166, 0.1); color: #1A75A6; }
.tag-update { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.tag-meeting { background: rgba(243, 156, 18, 0.1); color: #e67e22; }
.tag-pin { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.tag-industry { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.tag-peer { background: rgba(155, 89, 182, 0.1); color: #8e44ad; }
.tag-zhongtai { background: rgba(26, 117, 166, 0.1); color: #1A75A6; }
.tag-client-meeting { background: rgba(243, 156, 18, 0.1); color: #e67e22; }
.tag-contract-signing { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.tag-project-node { background: rgba(26, 117, 166, 0.1); color: #1A75A6; }
.tag-general { background: rgba(149, 165, 166, 0.12); color: #7f8c8d; }
.tag-business { background: rgba(243, 156, 18, 0.1); color: #e67e22; }
.tag-technical { background: rgba(26, 117, 166, 0.1); color: #1A75A6; }
.tag-project-file { background: rgba(46, 204, 113, 0.1); color: #27ae60; }

/* 文件上传按钮（复用捷报投稿按钮样式） */
.jiebao-submit-bar {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    border-top: 1px solid rgba(26, 117, 166, 0.08);
    flex-shrink: 0;
}

.jiebao-submit-btn {
    padding: 10px 32px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1A75A6;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.jiebao-submit-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 捷报投稿弹窗 */
.jiebao-form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 101;
    width: 1326px;
    height: 90vh;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.jiebao-form-modal.show {
    display: flex;
}

.jiebao-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.jiebao-form-body::-webkit-scrollbar {
    width: 4px;
}

.jiebao-form-body::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.3);
    border-radius: 2px;
}

.jiebao-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.jiebao-form-field {
    flex: 1;
}

.jiebao-form-field label {
    display: block;
    font-size: 13px;
    color: #1A75A6;
    opacity: 0.75;
    margin-bottom: 4px;
}

.jiebao-form-field input,
.jiebao-form-field select,
.jiebao-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.jiebao-form-field input:focus,
.jiebao-form-field select:focus,
.jiebao-form-field textarea:focus {
    border-color: rgba(26, 117, 166, 0.4);
}

.jiebao-form-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.jiebao-form-field select {
    cursor: pointer;
}

.jiebao-image-upload {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.jiebao-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(26, 117, 166, 0.15);
}

.jiebao-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jiebao-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(231, 76, 60, 0.85);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.jiebao-image-add {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1.5px dashed rgba(26, 117, 166, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #1A75A6;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.jiebao-image-add:hover {
    opacity: 0.8;
}

.jiebao-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 24px;
    border-top: 1px solid rgba(26, 117, 166, 0.06);
    flex-shrink: 0;
}

.jiebao-preview-btn {
    padding: 8px 20px;
    background: rgba(26, 117, 166, 0.08);
    color: #1A75A6;
    border: 1.5px solid rgba(26, 117, 166, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.jiebao-preview-btn:hover {
    background: rgba(26, 117, 166, 0.14);
}

.jiebao-save-btn {
    padding: 8px 20px;
    background: rgba(26, 117, 166, 0.08);
    color: #1A75A6;
    border: 1.5px solid rgba(26, 117, 166, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.jiebao-save-btn:hover {
    background: rgba(26, 117, 166, 0.14);
}

.jiebao-submit-final-btn {
    padding: 8px 24px;
    background: #1A75A6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.jiebao-submit-final-btn:hover {
    background: #1580B8;
}

/* 捷报详情图片展示 */
.jiebao-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 117, 166, 0.08);
}

.jiebao-images img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.15s;
}

.jiebao-images img:hover {
    transform: scale(1.03);
}

.card-time {
    font-size: 11px;
    color: #bbb;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* 公告详情弹窗 */
.announcement-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 101;
    width: 1326px;
    height: 90vh;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.announcement-detail-modal.show {
    display: flex;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(26, 117, 166, 0.1);
    flex-shrink: 0;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A75A6;
}

.detail-close {
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.detail-close:hover {
    color: #333;
}

.detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.detail-body::-webkit-scrollbar {
    width: 4px;
}

.detail-body::-webkit-scrollbar-thumb {
    background: rgba(26, 117, 166, 0.3);
    border-radius: 2px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #999;
}

.detail-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

.detail-footer {
    padding: 10px 24px;
    border-top: 1px solid rgba(26, 117, 166, 0.06);
    text-align: right;
    font-size: 11px;
    color: #ccc;
    flex-shrink: 0;
}

/* ========== 佳作分享 - 文件卡片 ========== */
.file-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(26, 117, 166, 0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.file-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.file-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.file-card-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.file-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-card-size {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

.file-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.file-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(26, 117, 166, 0.06);
}

.file-card-meta {
    font-size: 11px;
    color: #bbb;
}

.file-card-download {
    font-size: 12px;
    color: #1A75A6;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.file-card:hover .file-card-download {
    opacity: 1;
}

/* 文件上传弹窗 */
.file-form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 101;
    width: 1020px;
    height: 520px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.file-form-modal.show {
    display: flex;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(26, 117, 166, 0.25);
    border-radius: 10px;
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 100px;
    margin-top: 4px;
}

.file-upload-area:hover {
    border-color: rgba(26, 117, 166, 0.45);
    background: rgba(26, 117, 166, 0.03);
}

.file-upload-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.file-upload-text {
    font-size: 13px;
    color: #999;
}

.file-upload-name {
    font-size: 13px;
    color: #1A75A6;
    font-weight: 600;
    word-break: break-all;
    text-align: center;
    max-width: 100%;
}

/* 文件详情弹窗 */
.file-detail-info {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(26, 117, 166, 0.04);
    border-radius: 8px;
}

.file-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.file-detail-row .label {
    color: #999;
    flex-shrink: 0;
    width: 60px;
}

.file-detail-row .value {
    color: #333;
    word-break: break-all;
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .sidebar.open {
        transform: translateX(0);
        overflow: visible;
    }

    .sidebar.open .user-dropdown {
        bottom: calc(100% + 6px);
        background: rgba(255, 255, 255, 0.98);
    }

    .sidebar.open .nav-item {
        font-size: calc(12px * 1.3);
        padding: calc(5px * 1.3) 14px calc(5px * 1.3) 28px;
        color: #1A75A6;
    }

    .sidebar.open .user-name {
        color: #1A75A6;
    }

    .sidebar.open .nav-item .nav-icon {
        font-size: calc(14px * 1.3);
    }

    .sidebar.open .nav-title {
        font-size: calc(14px * 1.3);
        padding: calc(7px * 1.3) 14px;
    }

    .sidebar.open .nav-title .nav-icon {
        font-size: calc(15px * 1.3);
    }

    .sidebar.open .user-name {
        font-size: calc(13px * 1.3);
        color: #1A75A6;
    }

    .sidebar.open .user-avatar,
    .sidebar.open .user-avatar img {
        width: calc(28px * 1.3);
        height: calc(28px * 1.3);
    }

    .sidebar.open .avatar-badge {
        width: calc(14px * 1.3);
        height: calc(14px * 1.3);
        font-size: calc(10px * 1.3);
    }

    .sidebar.open .sidebar-logo img {
        width: 100%;
    }

    .sidebar.open .sidebar-logo {
        padding: calc(14px * 1.3) 18px calc(10px * 1.3);
    }

    .sidebar.open .nav-item {
        margin: 0 10px;
    }

    .sidebar.open .nav-section {
        margin-bottom: 4px;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        bottom: 5%;
    }

    .content-area {
        padding: 16px 16px 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .breadcrumb {
        padding: 10px 16px;
    }

    .page-footer {
        text-align: center;
        font-size: 11px;
        padding: 8px 16px;
    }

    .page-footer .footer-slogan {
        text-align: center;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.85);
        word-spacing: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 公告专栏手机端：竖线在左侧，单列排列 */
    .module-search-bar {
        width: 100%;
    }

    .announcement-timeline::before {
        left: 16px;
        transform: none;
    }

    .announcement-item,
    .announcement-item:nth-child(odd),
    .announcement-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 14px 18px 38px;
        text-align: left;
    }

    .announcement-item:nth-child(odd) .announcement-dot,
    .announcement-item:nth-child(even) .announcement-dot {
        left: 10px;
        right: auto;
    }

    .announcement-item:nth-child(odd) .announcement-connector,
    .announcement-item:nth-child(even) .announcement-connector {
        left: 22px;
        right: auto;
        width: 10px;
    }

    .announcement-detail-modal {
        width: 92%;
        height: 90vh;
    }

    .jiebao-form-modal {
        width: 92%;
        height: 90vh;
    }

    .jiebao-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .jiebao-form-row .jiebao-form-field {
        max-width: 100% !important;
    }

    .file-form-modal {
        width: 92%;
        height: 80vh;
    }
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 240px;
        background: rgba(255, 255, 255, 0.96);
    }

    .sidebar.open {
        width: 240px;
    }

    .sidebar.open .sidebar-logo img {
        width: 100%;
    }

    .content-area {
        padding: 12px 12px 0;
    }

    .welcome-placeholder h2 {
        font-size: 22px;
    }

    .welcome-placeholder p {
        font-size: 13px;
    }
}

/* ========== 加载动画组件 ========== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(26, 117, 166, 0.15);
    border-top-color: #1A75A6;
    border-radius: 50%;
    animation: hyco-spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #999;
    letter-spacing: 0.5px;
}

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

/* 加载失败提示 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.error-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.6;
}

.error-retry-btn {
    padding: 8px 24px;
    background: rgba(26, 117, 166, 0.08);
    color: #1A75A6;
    border: 1.5px solid rgba(26, 117, 166, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.error-retry-btn:hover {
    background: rgba(26, 117, 166, 0.15);
    border-color: rgba(26, 117, 166, 0.35);
}

/* ========== Toast 通知组件 ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    animation: toast-in 0.35s ease forwards;
    max-width: 360px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-success {
    background: rgba(46, 204, 113, 0.92);
    color: #fff;
}

.toast-error {
    background: rgba(231, 76, 60, 0.92);
    color: #fff;
}

.toast-warning {
    background: rgba(243, 156, 18, 0.92);
    color: #fff;
}

.toast-info {
    background: rgba(26, 117, 166, 0.92);
    color: #fff;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* 按钮加载状态 */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hyco-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* 移动端 Toast 适配 */
@media screen and (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: 100%;
    }
}

/* ========== 图片查看器（点击放大） ========== */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

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

.image-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.image-viewer-container img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.image-viewer-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 16px;
}

/* 捷报图片可点击样式 */
.jiebao-img-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 6px;
}

.jiebao-img-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(26, 117, 166, 0.3);
}

/* 手机端图片查看器 */
@media screen and (max-width: 768px) {
    .image-viewer-container img {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .image-viewer-hint {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* ========== 捷报图片上传中状态 ========== */
.jiebao-image-item.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 117, 166, 0.1);
}

.uploading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(26, 117, 166, 0.2);
    border-top-color: #1A75A6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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