/* =============================================
   户外暖阳交友主题 — 圈子主题 V2 全面样式
   ============================================= */

/* ========== 1. 快速导航 ========== */

/* 本地话题标题 */
.local-topic-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary, #3DBCB1);
    padding: 14px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--primary-light, #E8F8F6);
    margin-bottom: 4px;
}
.quick-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px 16px;
    gap: 4px;
}

.quick-nav-grid a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.quick-nav-grid a:hover {
    background: var(--primary-light);
}

.q-icon {
    font-size: 22px;
    background: var(--bg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--primary);
}

.q-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-content);
}

/* ========== 1.5 顶部搜索和多功能键靠右 ========== */
.header-right {
    margin-left: auto;
}

/* ========== 2. 筛选栏 ========== */
.circle-filter-bar {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* iOS Segmented Control */
.filter-tabs {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-full);
    padding: 3px;
}

.filter-tabs a {
    flex: 1;
    text-align: center;
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.filter-tabs a:hover { color: var(--primary); }

.filter-tabs a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-item {
    padding: 6px 16px;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.type-item:hover,
.type-item.active {
    background: var(--primary);
    color: #fff;
}

.filter-secondary {
    display: flex;
    justify-content: flex-end;
}

.filter-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    padding: 8px;
    display: none;
    z-index: 100;
    border: 1px solid var(--border-light);
}

.filter-dropdown.open .dropdown-menu,
.filter-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* 热门圈子下拉菜单 */
.dropdown-circle-menu {
    min-width: 190px;
    max-height: 380px;
    overflow-y: auto;
}
.dropdown-circle-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.dropdown-circle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #5B9BD5), #7BB8E8);
    border-radius: 50%;
    flex-shrink: 0;
}
.dropdown-circle-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-circle-count {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted, #999);
    font-weight: 600;
    background: var(--bg, #f0f2f5);
    padding: 1px 8px;
    border-radius: 10px;
}

/* ========== 3. 右侧边栏小组件 ========== */

/* 用户面板 */
.widget-user-panel {
    padding: 24px;
}

.widget-user-panel .u-info {
    text-align: center;
    margin-bottom: 20px;
}

.widget-user-panel .u-info img {
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.widget-user-panel .u-name {
    font-weight: 800;
    font-size: 17px;
    color: var(--text-primary);
}

.u-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-checkin {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-content);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-checkin:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-color: var(--primary-light);
}

.btn-post {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 14px;
    background: var(--primary-gradient);
    color: #fff;
    transition: all 0.2s;
    box-shadow: var(--shadow-btn);
}
.btn-post:hover {
    transform: scale(1.02);
    color: #fff;
    box-shadow: 0 6px 16px rgba(61, 188, 177, 0.3);
}

/* 登录引导 */
.login-promo {
    text-align: center;
    padding: 24px;
}

.login-promo .promo-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}

.login-promo h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-promo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 小组件标题 */
.widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 公告 */
.widget-notice .notice-content {
    padding: 20px;
    font-size: 13px;
    color: var(--text-content);
    line-height: 1.8;
}

/* 排行榜 */
.ranking-list {
    list-style: none;
    padding: 14px 20px;
}

.ranking-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.ranking-list li:last-child { margin-bottom: 0; }

.rank-num {
    width: 22px;
    height: 22px;
    background: var(--bg);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-num.top {
    background: var(--primary);
    color: #fff;
}

.ranking-list a {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.ranking-list a:hover { color: var(--primary); }

/* 页脚 */
.widget-footer-minimal {
    padding: 16px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

/* ========== 4. 归档页头部 ========== */
.archive-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}

.archive-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-light), #E8F8F6);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
}

.archive-meta h1 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--text-primary);
}

.archive-meta p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 侧栏子标题 */
.side-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.side-banner-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* 搜索图标 */
.header-search .search-icon {
    color: var(--text-muted);
    font-size: 15px;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 首页快捷入口 ===== */
.quick-actions {
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.quick-actions .widget-title {
    padding: 0 0 12px;
    border-bottom: none;
    margin-bottom: 12px;
}

/* 定位信息 — hero-banner 右上角 */
.hero-banner-location {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
    line-height: 1.4;
}

/* ========== 5. 话题详情页 ========== */
.topic-detail-card {
    padding: 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 13px;
}
.breadcrumb a { color: var(--primary); }

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.detail-side-tag {
    margin-left: auto;
    flex-shrink: 0;
}

.detail-title {
    font-size: 28px;
    line-height: 1.35;
    margin: 12px 0 16px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.topic-detail-content {
    color: var(--text-content);
    font-size: 16px;
    line-height: 1.9;
}

.topic-detail-content p { margin-bottom: 16px; }

.topic-detail-content img,
.topic-gallery img {
    border-radius: var(--radius-lg);
    max-width: 100%;
    height: auto;
}

.topic-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.topic-gallery-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.topic-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 图片灯箱 ========== */
.quanzi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    cursor: pointer;
}
.quanzi-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.quanzi-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: default;
}
.quanzi-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-drag: none;
}
.quanzi-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: opacity 0.2s, background 0.2s;
    line-height: 1;
    z-index: 2;
}
.quanzi-lightbox-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}
.quanzi-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: opacity 0.2s, background 0.2s;
    user-select: none;
    z-index: 2;
}
.quanzi-lightbox-nav:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}
.quanzi-lightbox-nav.prev { left: 16px; }
.quanzi-lightbox-nav.next { right: 16px; }
.quanzi-lightbox-nav.hidden { display: none; }
.quanzi-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    user-select: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .quanzi-lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .quanzi-lightbox-nav.prev { left: 8px; }
    .quanzi-lightbox-nav.next { right: 8px; }
    .quanzi-lightbox-close { top: 10px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
    .quanzi-lightbox img { max-width: 96vw; max-height: 84vh; }
}

/* ========== 评论美化 ========== */
.card-footer { margin-top: 12px; }

.wc-comments { padding: 0; font-size: 14px; line-height: 1.6; }

.wc-cmt-list {
    border-top: 1px solid var(--border-light);
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}
.topic-card .wc-cmt-list { display: none; }
.topic-card .wc-cmt-list.active { display: block; }

.wc-cmt {
    display: flex;
    gap: 10px;
    padding: 13px 16px;
    transition: background 0.15s;
}
.wc-cmt:hover { background: rgba(61,188,177,0.03); }
.wc-cmt + .wc-cmt { border-top: 1px solid rgba(61,188,177,0.05); }

.wc-cmt-avatar { flex-shrink: 0; }
.wc-cmt-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
}

.wc-cmt-body { flex: 1; min-width: 0; }

.wc-cmt-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
}

.wc-cmt-author {
    color: #2A9D94;
    font-weight: 600;
    font-size: 13px;
}

.wc-cmt-floor {
    color: #c8c8c8;
    font-size: 11px;
    font-weight: 400;
    margin-right: auto;
}

.wc-cmt-time {
    color: #c8c8c8;
    font-size: 11px;
}

.wc-cmt-del {
    margin-left: auto;
    font-size: 14px;
    color: #d0d0d0;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    line-height: 1;
}
.wc-cmt:hover .wc-cmt-del { opacity: 1; }
.wc-cmt-del:hover { color: #e74c3c; }

.wc-cmt-text {
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-word;
    line-height: 1.55;
}

.wc-cmt-text .reply-image { margin: 5px 0 0; }
.wc-cmt-text .reply-image img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.wc-reply {
    padding: 12px 16px 6px;
    display: none;
    border-top: 1px solid var(--border-light);
}
.wc-comments:has(.wc-reply.active) .wc-reply.active { display: block; }
.wc-reply.active { display: block; }

.wc-reply-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wc-reply-inner .qr-input {
    flex: 1;
    border: none;
    background: rgba(61,188,177,0.04);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}
.wc-reply-inner .qr-input:focus { background: rgba(61,188,177,0.06); }

.wc-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    touch-action: manipulation;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: background 0.15s;
}
.wc-btn:hover { background: rgba(61,188,177,0.05); }

.wc-send {
    width: auto;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
    font-family: inherit;
    border-radius: 4px;
}
.wc-send:hover { background: var(--primary-light); color: var(--primary-dark); }

.qr-emoji-box {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 2px 2px;
}
.qr-emoji-box.active { display: flex; }

.emoji-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.1s;
    user-select: none;
}
.emoji-item:hover { background: rgba(61,188,177,0.05); transform: scale(1.15); }

.qr-preview {
    display: none;
    margin-top: 6px;
    position: relative;
}
.qr-preview.active { display: block; }
.qr-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
}
.qr-preview .qr-preview-del {
    position: absolute;
    top: -6px;
    left: 68px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 详情页专属 */
.wc-comments .wc-cmt { padding: 14px 16px; }

@media (max-width: 768px) {
    .wc-comments { padding: 0; }
    .wc-cmt { padding: 12px 14px; }
    .wc-cmt-avatar img { width: 26px; height: 26px; }
    .wc-cmt-header { gap: 4px; }
    .wc-cmt-author { font-size: 12px; }
    .wc-cmt-text { font-size: 14px; }
    .wc-reply { padding: 10px 14px 4px; }
    .wc-reply-inner .qr-input { font-size: 16px; padding: 7px 12px; }
    .wc-btn { width: 28px; height: 28px; font-size: 16px; }
    .emoji-item { width: 28px; height: 28px; font-size: 16px; }
    .wc-comments .wc-cmt { padding: 12px 14px; }
}

/* 详情页操作按钮 */
.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
}

.detail-action {
    min-width: 110px;
    padding: 11px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-content);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-family: inherit;
}

.detail-action.primary {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary);
}

.detail-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.detail-action .action-count {
    font-weight: 700;
}

/* ========== 6. 评论区域 ========== */
.comments-wrap {
    margin-top: 20px;
    padding: 28px;
}

.comments-heading {
    margin: 0 0 20px;
    font-size: 20px;
    color: var(--text-primary);
}

.comments-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-card,
.comments-list-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-form .comment-form-comment { margin: 0; }

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-hover);
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 108px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 188, 177, 0.07);
}

.comment-form .submit {
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-btn);
}
.comment-form .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 188, 177, 0.3);
}

.comments-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.comments-switch {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 评论列表 */
.comment-list { list-style: none; }

.comment-item { list-style: none; }

.comment-item + .comment-item {
    border-top: 1px solid var(--border-light);
}

.comment-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
}

.comment-avatar img { border-radius: 50%; }

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.comment-badge {
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 11px;
}

.comment-floor {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}

.comment-content {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-content);
}

.comment-content p:last-child { margin-bottom: 0; }

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.comment-action,
.comment-action a {
    color: var(--text-secondary);
    font-size: 13px;
}

.comments-empty,
.no-comments {
    padding: 20px 0 10px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
}

/* ========== 7. 弹窗系统 ========== */
.site-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-panel.active { display: flex; }

.site-panel-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.site-panel-content {
    position: relative;
    width: min(100%, 440px);
    border-radius: var(--radius-lg);
    background: #fff;
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: panelPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body.panel-open { overflow: hidden; }

/* 发布面板 */
.mpp-content { padding: 0; }

.mpp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.mpp-header span {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.mpp-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.mpp-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.mpp-body {
    padding: 24px;
}

.mpp-field {
    margin-bottom: 16px;
    position: relative;
}

.mpp-input,
.mpp-textarea,
.mpp-select {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    background: var(--bg-hover);
    transition: all 0.25s;
    font-family: inherit;
}

.mpp-input:focus,
.mpp-textarea:focus,
.mpp-select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 188, 177, 0.07);
}

.mpp-input::placeholder,
.mpp-textarea::placeholder { color: var(--text-muted); }

.mpp-textarea {
    resize: vertical;
    min-height: 100px;
}

.mpp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.mpp-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-btn);
    font-family: inherit;
    margin-top: 4px;
}
.mpp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61, 188, 177, 0.3);
}
.mpp-submit-btn:active { transform: translateY(0); }
.mpp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.mpp-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.mpp-upload-label:hover {
    background: var(--primary);
    color: #fff;
}

.mpp-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mpp-help {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 发布表单图片预览 */
.mpp-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    min-height: 0;
}

.mpp-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-light);
    background: var(--bg);
    flex-shrink: 0;
}

.mpp-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mpp-preview-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.mpp-preview-del:hover {
    background: rgba(255,71,87,0.85);
}

/* ========== 8. 认证弹窗 ========== */
.mup-content { padding: 0; }

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab-item {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.auth-tab-item.active {
    color: var(--auth);
    border-bottom-color: var(--auth);
    background: linear-gradient(180deg, rgba(136,201,161,0.05), transparent);
}

.auth-tab-item:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mup-body {
    padding: 28px 28px 32px;
}

.mup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    line-height: 1;
}
.mup-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.auth-form-group { display: none; }
.auth-form-group.active { display: block; }

.mup-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--auth), var(--auth-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    margin-top: 10px;
}
.mup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 197, 150, 0.35);
}
.mup-submit-btn:active { transform: translateY(0); }
.mup-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ========== 8a. 认证弹窗增强 ========== */

/* 实时验证状态 */
.mpp-field.has-error .mpp-input {
    border-color: #ef4444;
    background: #fff8f8;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.07);
}
.mpp-field.has-error .field-error-msg {
    display: block;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px;
    animation: fieldErrorShake 0.3s ease;
}
.mpp-field.has-success .mpp-input {
    border-color: #22c55e;
    background: #f8fff8;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.07);
}
.field-error-msg {
    display: none;
}
@keyframes fieldErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* 密码可见切换 */
.password-field-wrap {
    position: relative;
}
.password-field-wrap .mpp-input {
    padding-right: 44px;
}
.pw-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.pw-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg);
}
.pw-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* 密码强度条 */
.password-strength {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    height: 4px;
}
.password-strength-bar {
    flex: 1;
    background: var(--border-light);
    border-radius: 4px;
    transition: all 0.3s;
}
.password-strength-bar.active.weak {
    background: #ef4444;
}
.password-strength-bar.active.medium {
    background: #f59e0b;
}
.password-strength-bar.active.strong {
    background: #22c55e;
}
.password-strength-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    padding-left: 2px;
    min-height: 16px;
}
.password-strength-label.weak { color: #ef4444; }
.password-strength-label.medium { color: #f59e0b; }
.password-strength-label.strong { color: #22c55e; }

/* 短信验证码输入组 */
.sms-code-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.sms-code-wrap .mpp-input {
    flex: 1;
}
.sms-send-btn {
    flex-shrink: 0;
    padding: 0 14px;
    min-width: 100px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sms-send-btn:hover { opacity: 0.9; }
.sms-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 手机端短信验证码 */
@media (max-width: 768px) {
    .sms-code-wrap { flex-direction: row; }
    .sms-send-btn { min-width: 90px; padding: 0 10px; font-size: 12px; }
}

/* 提交按钮加载动画 */
.mup-submit-btn .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    margin: 0 auto;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
.mup-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.mup-submit-btn.loading .btn-text {
    display: none;
}
.mup-submit-btn.loading .btn-loader {
    display: block;
}

/* Toast 样式增强 */
.toasted.error {
    background: #ef4444;
}
.toasted.success {
    background: #22c55e;
}
.toasted.info {
    background: #3b82f6;
}

/* 记住我选项 */
.auth-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -8px 0 6px;
    font-size: 13px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}
.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--auth);
    cursor: pointer;
    margin: 0;
}
.forgot-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: var(--auth);
}

/* ========== 9. 个人资料页 — 科技感小程序风格 ========== */
.profile-page {
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 var(--gap);
}

/* === 移动端编辑按钮 === */
.mobile-edit-btn {
    display: none;
}

/* === Hero 封面（仿首页横幅风格） === */
.profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 40px 28px 28px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3DBCB1 0%, #2A9D94 50%, #1E8A81 100%);
    color: #fff;
    margin-bottom: var(--gap);
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-avatar {
    position: relative;
    margin-bottom: 16px;
}
.hero-avatar a {
    display: block;
    transition: transform 0.2s;
}
.hero-avatar a:hover {
    transform: scale(1.05);
}
.hero-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 4px rgba(61,188,177,0.25), 0 8px 24px rgba(0,0,0,0.3);
    object-fit: cover;
}
.hero-name {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.hero-bio {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 10px;
    line-height: 1.5;
    max-width: 320px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.hero-join {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 个人信息标签（融合到封面内） */
.hero-info-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.hero-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-info-tag svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.hero-info-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* === 统计数据条（独立于封面） === */
.profile-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: -20px 0 0;
    padding: 20px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}
.stats-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 4px 6px;
    transition: background 0.2s;
    border-radius: 8px;
}
.stats-item:hover {
    background: var(--primary-light);
}
.stats-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}
.stats-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}
.stats-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* === 快捷操作 === */
.profile-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s;
    cursor: pointer;
}
.shortcut-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.shortcut-item:hover .shortcut-icon { transform: scale(1.08); }
.shortcut-icon-blue {
    background: linear-gradient(135deg, #E8F8F6, #D0F0EC);
    color: #2A9D94;
}
.shortcut-icon-amber {
    background: linear-gradient(135deg, #EBF3FA, #D6E6F5);
    color: #3A8CCB;
}
.shortcut-icon-green {
    background: linear-gradient(135deg, #E8F5EE, #C8ECD8);
    color: #6DB58A;
}
.shortcut-icon-red {
    background: linear-gradient(135deg, #E8F0FE, #D0E2FC);
    color: #5B9BD5;
}

/* === 标签页 === */
.profile-tabs-wrap {
    margin: 4px 0 0;
}
.profile-tab-bar {
    display: flex;
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 4px;
    gap: 2px;
}
.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}
.profile-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.profile-tab.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 2px 8px rgba(61,188,177,0.25);
}
.profile-tab.active svg { stroke: #fff; }
.profile-tab-indicator { display: none; }

/* === 内容区 === */
.profile-content {
    margin-top: 12px;
}
.profile-tab-panel {
    min-height: 200px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state svg { margin: 0 auto 16px; display: block; }
.empty-state p { font-size: 15px; font-weight: 600; margin: 0; }

/* === 话题简洁列表 === */
.topic-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.topic-simple-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
    position: relative;
}
.topic-simple-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0 3px 3px 0;
}
.topic-simple-item:hover::before { opacity: 1; }
.topic-simple-item:last-child { border-bottom: none; }
.topic-simple-item:hover { background: var(--bg-hover); }
.topic-simple-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}
.topic-simple-link:hover { color: var(--primary); }
.topic-simple-link:hover .topic-simple-circle {
    background: var(--primary);
    color: #fff;
}
.topic-simple-circle {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    line-height: 1.5;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.topic-simple-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}
.topic-simple-link .essence-label {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #5B9BD5, #3A8CCB);
    color: #fff;
    font-weight: 700;
}
.topic-simple-meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.topic-simple-time { font-size: 12px; }

/* 话题删除按钮 */
.topic-del-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.5;
}
.topic-del-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    opacity: 1;
}

/* === 评论历史 === */
.comment-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 600;
}
.comment-on {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 12px;
}

/* === 底部信息卡片 === */
.profile-bottom-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.bottom-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.bottom-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bottom-card-body {
    padding: 12px 20px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-row:last-child { border-bottom: none; }
.info-row-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.info-row-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.circles-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.circle-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}
.circle-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61,188,177,0.25);
}
.circle-chip-icon {
    width: 22px;
    height: 22px;
    background: rgba(61,188,177,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.circle-chip:hover .circle-chip-icon {
    background: rgba(255,255,255,0.25);
}

/* ========== 10. 照片墙 ========== */
.profile-photo-wall {
    margin: 2px auto 0;
    max-width: 1100px;
    padding: 0 0 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.photo-wall-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 18px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
}

/* 竖版照片墙 — 3:4 比例，永远竖着 */
.photo-wall-grid-portrait .photo-wall-item {
    aspect-ratio: 3 / 4;
}

.photo-wall-item {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-wall-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.photo-wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* 照片墙管理按钮 */
.photo-wall-manage {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--primary-light);
    transition: all 0.2s;
}
.photo-wall-manage:hover {
    background: var(--primary);
    color: #fff;
}

/* 照片墙空状态 */
.photo-wall-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}
.photo-wall-empty p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.photo-wall-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}
.photo-wall-add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 照片墙空占位 */
.photo-wall-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 2px dashed var(--border);
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    gap: 6px;
    transition: all 0.25s;
}
.photo-wall-placeholder:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.02);
}
.photo-wall-placeholder .placeholder-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-secondary);
    opacity: 0.5;
}
.photo-wall-placeholder .placeholder-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
}
.photo-wall-placeholder:hover .placeholder-icon,
.photo-wall-placeholder:hover .placeholder-text {
    color: var(--primary);
    opacity: 0.8;
}

/* 编辑页照片上传 */
.ep-photo-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: -12px 0 16px;
    line-height: 1.5;
}

.ep-photo-count { color: var(--primary); font-weight: 700; }

.ep-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ep-photo-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-hover);
    border: 2px solid var(--border-light);
}

.ep-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ep-photo-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.ep-photo-item:hover .ep-photo-del { opacity: 1; }

.ep-photo-upload {
    aspect-ratio: 3 / 4;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bg-hover);
}
.ep-photo-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* 编辑页照片墙空占位 */
.ep-photo-placeholder {
    aspect-ratio: 3 / 4;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    cursor: default;
    transition: all 0.25s;
}
.ep-photo-placeholder .placeholder-icon {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1;
    opacity: 0.4;
}

.ep-photo-plus {
    font-size: 32px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1;
}

.ep-photo-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.ep-photo-upload:hover .ep-photo-plus,
.ep-photo-upload:hover .ep-photo-text { color: var(--primary); }

/* ========== 11. 未加入圈子遮罩 ========== */
.join-circle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    border-radius: var(--radius);
}

.join-circle-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 280px;
}

.join-circle-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.topic-list-wrapper { position: relative; }

.blur-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

/* ========== 12. 编辑资料页 ========== */
.edit-profile-page {
    margin: var(--gap) auto;
    max-width: 900px;
    padding: 0 var(--gap);
}

.edit-profile-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--gap);
    align-items: flex-start;
}

.edit-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-height) + var(--gap));
}

.ep-avatar-section.box {
    padding: 30px 20px;
    text-align: center;
    background: #f0f2f5;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ep-avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
}

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

.ep-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s;
}
.ep-avatar-wrap:hover .ep-avatar-overlay { opacity: 1; }

.ep-avatar-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ep-progress {
    height: 4px;
    background: var(--bg);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.ep-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s;
}

.ep-nav-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ep-nav-item {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.ep-nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.ep-header {
    padding: 20px 28px;
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
}

.ep-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.ep-form {
    padding: 24px 28px 32px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-light);
}

.ep-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}
.ep-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ep-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.ep-field {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.ep-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 12px;
    white-space: nowrap;
}

.ep-input,
.ep-textarea,
.ep-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-hover);
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
    font-family: inherit;
}

.ep-input:focus,
.ep-textarea:focus,
.ep-select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 188, 177, 0.07);
}

.ep-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* 话题卡片操作按钮（编辑/删除） */
.card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.ca-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    line-height: 1.6;
}
.ca-btn:hover { background: var(--primary); color: #fff; }
.ca-del:hover { background: #e74c3c !important; color: #fff !important; }


.ep-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0 0;
    line-height: 1.5;
}

.ep-submit-row {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

.ep-submit-btn {
    padding: 12px 40px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: var(--shadow-btn);
}
.ep-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 188, 177, 0.25);
}
.ep-submit-btn:active { transform: translateY(0); }
.ep-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 13. 旧类名兼容（模板仍在使用） ========== */

/* .circle-list-simple → 侧边栏圈子列表 */
.circle-list-simple {
    list-style: none;
    padding: 8px;
}

.circle-list-simple li {
    margin-bottom: 2px;
}

.circle-list-simple a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-content);
    transition: all 0.2s;
}

.circle-list-simple a:hover,
.circle-list-simple a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.circle-list-simple .icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ========== 14. 导航小红点/徽标 ========== */
.nav-badge {
    position: relative;
}

.nav-badge::after {
    content: attr(data-badge);
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
    pointer-events: none;
}

.nav-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(255, 71, 87, 0.3);
    pointer-events: none;
}

/* ========== 15. 旧类名兼容（404/search 等） ========== */

.bbs-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bbs-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.bbs-empty h1 {
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bbs-empty h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.bbs-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.bbs-empty .button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-blue {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-blue:hover { color: #fff; transform: translateY(-1px); }

/* bbs-icon 箭头 */
.bbs-icon { font-style: normal; }
.bbs-arrow-down-s-line::before { content: '▾'; }

/* ========== 16. 话题标题网格 ========== */
.topic-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ========== 响应式：资料页 ========== */
@media screen and (max-width: 900px) {
    .edit-profile-container {
        grid-template-columns: 1fr;
    }

    .edit-profile-sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .photo-wall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 12px;
    }
    .photo-wall-grid-portrait .photo-wall-item {
        aspect-ratio: 3 / 4;
    }

    .ep-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .ep-avatar-section.box {
        padding: 24px 16px;
    }
    .ep-avatar-wrap {
        width: 120px;
        height: 120px;
    }
    .ep-header h2 { font-size: 18px; }
    .ep-form { padding: 20px 16px 24px; }

    .ep-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .ep-label { padding-top: 0; font-size: 13px; }
    .ep-submit-btn { width: 100%; padding: 14px; }
}

@media screen and (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-footer .stats {
        gap: 12px;
    }

    .profile-stats-bar {
        margin: -20px 10px 0;
        padding: 12px 6px;
    }
    .stats-num { font-size: 16px; }
    .profile-shortcuts { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .shortcut-item { padding: 12px 6px; font-size: 11px; }
    .shortcut-icon { width: 36px; height: 36px; border-radius: 10px; }
    .shortcut-icon svg { width: 16px; height: 16px; }
    .topic-simple-item { padding: 12px 14px; }
    .topic-simple-meta { gap: 6px; }
}

/* ========== 户外暖阳交友主题增强 ========== */

/* 话题卡片冷色边框高亮 */
.topic-card:hover {
    border-color: rgba(61, 188, 177, 0.15);
}

/* 圈子卡片冷色悬浮 */
.circle-card:hover {
    border: 1px solid rgba(61, 188, 177, 0.12);
}

/* 按钮交互动效 */
.btn-post:active,
.mpp-submit-btn:active {
    transform: scale(0.98);
}

/* 筛选标签冰川薄荷风格 */
.type-item.active {
    background: var(--primary);
    background-image: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 3px 10px rgba(61, 188, 177, 0.2);
}

/* 登录/注册弹窗渐变增强 */
.auth-tab-item.active {
    color: var(--auth);
    border-bottom-color: var(--auth);
    background: linear-gradient(180deg, rgba(136,201,161,0.05), transparent);
}

/* 个人页快捷图标 — 冰川薄荷科技配色 */
.shortcut-icon-blue {
    background: linear-gradient(135deg, #E8F8F6, #D0F0EC);
    color: #2A9D94;
}
.shortcut-icon-amber {
    background: linear-gradient(135deg, #EBF3FA, #D6E6F5);
    color: #3A8CCB;
}
.shortcut-icon-green {
    background: linear-gradient(135deg, #E8F5EE, #C8ECD8);
    color: #6DB58A;
}
.shortcut-icon-red {
    background: linear-gradient(135deg, #E8F0FE, #D0E2FC);
    color: #5B9BD5;
}

/* 圈子列表 hover 暖色动效 */
.circle-list-simple a:hover {
    background: linear-gradient(135deg, var(--primary-light), rgba(61,188,177,0.05));
}

/* 搜索框聚焦暖阳色 */
.header-search:focus-within {
    box-shadow: 0 0 0 2px rgba(61,188,177,0.15);
}

/* 加入按钮 — 冰川薄荷风格 */
.join-btn {
    background: linear-gradient(135deg, #3DBCB1, #2A9D94);
    box-shadow: 0 4px 12px rgba(61,188,177,0.25);
}
.join-btn:hover {
    box-shadow: 0 6px 18px rgba(61,188,177,0.35);
}

/* 页面标题底线暖阳渐变 */
.page-title {
    border-bottom: 2px solid var(--primary);
    border-image: linear-gradient(90deg, var(--primary), rgba(61,188,177,0.2)) 1;
}

}

/* 头像光环 — 冰川薄荷色 */
.widget-user-panel .u-info img {
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(61,188,177,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* 评论输入框聚焦冷色 */
.wc-reply-inner .qr-input:focus {
    background: rgba(61,188,177,0.04);
}

/* 徽章色 */
.user-block .meta .badge {
    background: linear-gradient(135deg, rgba(61,188,177,0.08), rgba(91,155,213,0.08));
    color: var(--primary);
}

/* 排行榜顶部冰川薄荷色 */
.rank-num.top {
    background: linear-gradient(135deg, #3DBCB1, #2A9D94);
}

/* 移动端底部导航冰川薄荷色 */
#mobile-footer-menu .mf-publish-btn {
    background: linear-gradient(135deg, #3DBCB1, #2A9D94);
}

/* ========== 文章页优化样式 ========== */

/* 文章卡片 */
.post-single {
    padding: 40px;
    border-radius: var(--radius);
}

/* 文章标题 */
.post-single .entry-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

/* 文章元信息 */
.post-single .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.post-single .meta-author-avatar {
    flex-shrink: 0;
}

.post-single .meta-author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.post-single .meta-author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.post-single .meta-sep {
    color: var(--text-muted);
    font-weight: 300;
}

.post-single .meta-cats a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.post-single .meta-cats a:hover {
    color: var(--primary-hover);
}

.post-single .meta-comments {
    color: var(--text-secondary);
}

/* 特色图片 */
.post-single .post-thumbnail {
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章正文 */
.post-single .entry-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-primary);
}

.post-single .entry-content p {
    margin: 0 0 1.2em;
}

.post-single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.2em 0;
}

.post-single .entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-single .entry-content a:hover {
    color: var(--primary-hover);
}

.post-single .entry-content h2,
.post-single .entry-content h3 {
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    line-height: 1.4;
}

.post-single .entry-content h2 { font-size: 22px; }
.post-single .entry-content h3 { font-size: 18px; }

.post-single .entry-content ul,
.post-single .entry-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.6em;
}

.post-single .entry-content li {
    margin-bottom: 0.3em;
}

.post-single .entry-content ul { list-style: disc; }
.post-single .entry-content ol { list-style: decimal; }

.post-single .entry-content blockquote {
    margin: 1.2em 0;
    padding: 14px 20px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-content);
    font-style: normal;
}

.post-single .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 分页链接（文章内多页） */
.post-single .page-links {
    margin: 1.5em 0;
    padding-top: 1em;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 文章标签 */
.post-single .entry-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border-light);
}

.post-single .entry-tags .tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.post-single .entry-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s;
}

.post-single .entry-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* 文章导航 */
.post-navigation.box {
    padding: 0;
    overflow: hidden;
}

.post-navigation .nav-links {
    display: flex;
    gap: 1px;
    background: var(--border-light);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: var(--primary-light);
}

.post-navigation .nav-dir {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.post-navigation .nav-title {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-content);
    font-weight: 500;
}

.post-navigation .nav-previous:hover .nav-title,
.post-navigation .nav-next:hover .nav-title {
    color: var(--primary);
}

/* ========== 17. 圈主功能样式 ========== */

/* 紫色快捷图标 */
.shortcut-icon-purple {
    background: linear-gradient(135deg, #F0E8FF, #E0D0F5);
    color: #8B5CF6;
}

/* 申请弹窗提示条 */
.apply-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-content);
    line-height: 1.6;
}
.apply-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.apply-hint strong {
    color: var(--primary);
}

/* 我已创建的圈子卡片 */
.circle-chip.owner-chip {
    background: linear-gradient(135deg, #F0E8FF, #E8DAF5);
    color: #8B5CF6;
    border: 1px solid rgba(139,92,246,0.15);
}
.circle-chip.owner-chip:hover {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    border-color: transparent;
}
.circle-chip.owner-chip .circle-chip-icon {
    background: rgba(139,92,246,0.12);
}

/* 审核中状态 */
.shortcut-item.pending-owner {
    opacity: 0.6;
    cursor: default;
    position: relative;
}
.shortcut-item.pending-owner::after {
    content: '审核中';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
}

/* 圈主身份徽标 - 放在头像或用户名旁边 */
.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F0E8FF, #E0D0F5);
    color: #8B5CF6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.owner-badge svg {
    width: 12px;
    height: 12px;
}

/* ========== 热门圈子跑马灯 ========== */
.hot-circles-marquee {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg, #fff);
}

.marquee-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary, #5B9BD5);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
}

.hot-circles-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-content, #333);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--bg, #f5f7fa);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.marquee-item:hover {
    background: var(--primary-light, #e8f0fe);
    color: var(--primary, #5B9BD5);
    transform: translateY(-1px);
}

.marquee-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #5B9BD5), #7BB8E8);
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee-name {
    font-weight: 600;
}

.marquee-sep {
    color: var(--text-muted, #ccc);
    font-size: 12px;
    flex-shrink: 0;
}

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

/* ========== 圈子 # 标签跑马灯（全端通用） ========== */
.hot-tags-marquee {
    overflow: hidden;
    padding: 8px 0;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ht-track {
    display: flex;
    overflow: hidden;
}
.ht-track:nth-child(1) {
    animation: marquee-scroll 23.33s linear infinite;
}
.ht-track:nth-child(2) {
    animation: marquee-scroll 23.33s linear infinite;
    animation-delay: -8s;
}
.ht-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.ht-item {
    display: inline-block;
    padding: 5px 14px;
    margin: 0 6px;
    font-size: 13px;
    color: var(--primary, #3DBCB1);
    background: var(--primary-light, #E8F8F6);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.ht-item strong {
    font-weight: 700;
}
.ht-item:hover {
    background: var(--primary, #3DBCB1);
    color: #fff;
}

/* ========== 页脚 V2 — 平铺统计 + 版权 ========== */
.footer-v2 {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-top: none;
    position: relative;
    padding: 24px 0;
    margin-top: 48px;
    font-size: 13px;
    color: var(--text-secondary);
}
.footer-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(61,188,177,0.20) 30%, rgba(91,155,213,0.16) 50%, rgba(61,188,177,0.20) 70%, transparent 95%);
}

.footer-v2 .footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* 统计行平铺 */
.footer-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.stats-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary, #222);
    white-space: nowrap;
}

.stats-item {
    font-size: 13px;
    color: var(--text-secondary, #666);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stats-item em {
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary, #3DBCB1);
}

/* 底部版权栏 */
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #999);
    white-space: nowrap;
}
.footer-bottom a {
    color: var(--text-secondary, #666);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--primary, #3DBCB1);
}

/* 表单说明文字 */
.form-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0 2px;
}

/* ========== 分类文章列表（简洁版） ========== */
.post-simple-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    padding: 20px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary, #222);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary, #3DBCB1);
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted, #999);
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary, #666);
    line-height: 1.7;
}

.post-excerpt p {
    margin: 0;
}
