/* ============================================================
   成员详情页 - 仿微博布局（国风样式）
   ============================================================ */
.member-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* 顶部封面 + 头像区 */
.member-cover {
    position: relative;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #9E2020 0%, #7A1818 50%, #5C1010 100%);
    box-shadow: 0 4px 20px rgba(122, 24, 24, 0.25);
}
.member-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(196, 154, 108, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 197, 155, 0.2) 0%, transparent 50%);
}
.member-cover::after {
    content: "族";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-size: 140px;
    color: rgba(255, 255, 255, 0.08);
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}
.member-cover-branch {
    position: absolute;
    top: 18px;
    left: 24px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.member-cover-back {
    position: absolute;
    top: 18px;
    right: 24px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: background .2s;
}
.member-cover-back:hover { background: rgba(0, 0, 0, 0.4); color: #fff; }

/* 头像悬浮区 */
.member-hero {
    position: relative;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 30px 18px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    min-height: 90px;
}
.member-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    background: var(--bg-alt);
    border: 4px solid var(--card-bg);
    box-shadow: 0 4px 16px rgba(80, 50, 20, 0.18);
    margin-top: -60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 56px;
    color: var(--primary);
    overflow: hidden;
    position: relative;
}
.member-hero-avatar.has-avatar {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
}
.member-hero-avatar .gen-char {
    font-family: var(--serif);
    line-height: 1;
}
.member-verify-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--card-bg);
    color: #fff;
    font-size: 14px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    z-index: 2;
}
.member-hero-info {
    flex: 1;
    padding-bottom: 6px;
    min-width: 0;
}
.member-hero-name {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--red);
    margin: 0 0 4px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.member-hero-gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
}
.member-hero-gender.m { background: #2E86AB; }
.member-hero-gender.f { background: #D63384; }
.member-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--text-light);
    font-size: 13px;
}
.member-hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.member-hero-meta .sep { color: var(--border); }

/* Tab 导航 */
.member-tabs {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    display: flex;
    gap: 0;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 50;
    overflow-x: hidden;
    flex-wrap: wrap;
}
.member-tab {
    flex: 1 1 auto;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-tab:hover { color: var(--primary); }
.member-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.member-tab-count {
    display: inline-block;
    margin-left: 4px;
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
}
.member-tab.active .member-tab-count {
    background: var(--primary);
    color: #fff;
}

/* 主体两栏布局 */
.member-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding-top: 20px;
}
.member-body-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.member-body-right {
    min-width: 0;
}

/* 左侧信息卡片 */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.info-card-head {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #f9f2e2 100%);
    border-bottom: 1px solid var(--border);
    font-family: var(--serif);
    font-size: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-card-body { padding: 14px 16px; }

/* 属性列表 */
.attr-list { list-style: none; }
.attr-list li {
    display: flex;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border-light);
}
.attr-list li:last-child { border-bottom: none; }
.attr-list .lbl {
    width: 56px;
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 12px;
}
.attr-list .val {
    color: var(--text);
    flex: 1;
    word-break: break-all;
    line-height: 1.6;
}
.attr-list .val.bio {
    line-height: 1.8;
    color: #555;
    font-size: 13px;
}
.attr-list .lunar {
    display: block;
    color: var(--text-light);
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.4;
    font-family: var(--serif);
}
.attr-list .date-field .val { display: block; }
.hero-date .hero-lunar {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    margin-left: 4px;
    display: inline-block;
}

/* 联系方式 */
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--bg-alt);
    border-radius: 8px;
    font-size: 13px;
}
.contact-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b5c3e;
    background: #f0e3ce;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.contact-value {
    flex: 1;
    color: #333;
    letter-spacing: 0.3px;
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}
.contact-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 14px 0;
}

/* 右侧内容面板 */
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.panel-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.panel-card h3 {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--primary-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-alt);
    display: flex;
    align-items: center;
    gap: 6px;
}
.panel-card h3 .panel-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
    background: var(--bg-alt);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: inherit;
}

/* ===== 仿 QQ 空间相册 ===== */
.qzone-album-view { min-height: 200px; }

/* 相册列表 */
.qzone-album-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.qzone-album-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
    position: relative;
}
.qzone-album-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(80,50,20,0.15);
    border-color: var(--primary);
}
.qzone-album-item[data-access="denied"] { cursor: not-allowed; }
.qzone-album-item[data-access="denied"]:hover { transform: none; box-shadow: none; border-color: var(--border); }
.qzone-album-item[data-access="password"] { cursor: pointer; }

.qzone-album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e8d0 0%, #e8d5b7 100%);
}
.qzone-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.qzone-album-item:hover .qzone-album-cover img { transform: scale(1.05); }
.qzone-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px; color: #c0a878;
}
/* 权限遮罩：覆盖整个相册项（封面+信息） */
.qzone-cover-mask {
    position: absolute; inset: 0;
    z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
}
/* 密码相册：与无权访问相同遮罩深度 */
.qzone-album-item[data-access="password"] .qzone-cover-mask {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
}
/* 无权访问：较深色遮罩，清晰显示禁止标志 */
.qzone-album-item[data-access="denied"] .qzone-cover-mask {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
}
.qzone-lock-icon { font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.qzone-lock-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.4);
    padding: 3px 12px;
    border-radius: 12px;
}

.qzone-album-meta { padding: 10px 12px; }
.qzone-album-name {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--serif);
}
.qzone-album-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}
.qzone-priv-tag {
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 11px;
    color: #fff;
}
.qzone-priv-tag.public { background: #2E7D32; }
.qzone-priv-tag.family { background: #1565C0; }
.qzone-priv-tag.lineage { background: #E65100; }
.qzone-priv-tag.password { background: #C62828; }

/* 照片墙视图 */
.qzone-photo-wall { animation: qzoneFade .25s; }
@keyframes qzoneFade { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.qzone-wall-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.qzone-back-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.qzone-back-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qzone-wall-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.qzone-wall-name {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qzone-wall-count { font-size: 12px; color: var(--text-light); }

/* 照片九宫格 */
.qzone-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.qzone-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-alt);
    transition: transform .15s;
}
.qzone-photo-item:hover { transform: scale(1.02); }
.qzone-photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.qzone-photo-item:hover img { transform: scale(1.08); }
.qzone-photo-item .photo-more-mask {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 600;
}
/* 照片右上角统计栏（点赞/浏览/评论） */
.qzone-photo-stats {
    position: absolute;
    top: 6px; right: 6px;
    display: flex;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.qzone-photo-stats .ps-stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    transition: background .15s, transform .15s;
    user-select: none;
    line-height: 1.4;
}
.qzone-photo-stats .ps-stat:hover { background: rgba(0,0,0,0.78); transform: translateY(-1px); }
.qzone-photo-stats .ps-stat.liked { background: rgba(231,76,60,0.85); }
.qzone-photo-stats .ps-stat.liked:hover { background: rgba(231,76,60,1); }
.qzone-photo-stats .ps-stat .ps-icon { font-size: 11px; }
.qzone-photo-stats .ps-stat .ps-num { font-weight: 600; }

.qzone-photo-loading, .qzone-photo-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 14px;
}

/* ============ 点赞/评论 弹出层 ============ */
.qzone-pop-modal {
    position: fixed; inset: 0; z-index: 2400;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.qzone-pop-modal.show { display: flex; }
.qzone-pop-box {
    background: var(--card-bg);
    border-radius: 12px;
    width: 420px;
    max-width: 92vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.35);
    animation: qzone-pop-in .2s ease-out;
}
@keyframes qzone-pop-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.qzone-pop-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
}
.qzone-pop-title {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}
.qzone-pop-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
}
.qzone-pop-close:hover { color: var(--primary); }
.qzone-pop-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.qzone-pop-empty {
    text-align: center;
    color: var(--text-light);
    padding: 30px 10px;
    font-size: 13px;
}
/* 点赞用户列表项 */
.qzone-liker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    transition: background .12s;
}
.qzone-liker-item:hover { background: var(--bg-alt); }
.qzone-liker-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 14px; font-weight: 600;
    flex-shrink: 0;
}
.qzone-liker-name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.qzone-liker-time {
    font-size: 11px;
    color: var(--text-light);
}
/* 评论列表项 */
.qzone-cmt-item {
    padding: 10px 18px;
    border-bottom: 1px dashed var(--border);
}
.qzone-cmt-item:last-child { border-bottom: none; }
.qzone-cmt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.qzone-cmt-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.qzone-cmt-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 11px; font-weight: 600;
}
.qzone-cmt-time {
    font-size: 11px;
    color: var(--text-light);
}
.qzone-cmt-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.qzone-cmt-del {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: inherit;
    opacity: 0.7;
    transition: all .15s;
    white-space: nowrap;
}
.qzone-cmt-del:hover { opacity: 1; color: #fff; background: #C0392B; border-color: #C0392B; }
.qzone-cmt-input-wrap {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.qzone-cmt-input-wrap textarea {
    flex: 1;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    resize: none;
    min-height: 38px;
    max-height: 100px;
    font-family: inherit;
}
.qzone-cmt-input-wrap textarea:focus { outline: none; border-color: var(--primary); }
.qzone-cmt-input-wrap button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.qzone-cmt-input-wrap button:hover { background: #B03030; }
.qzone-cmt-input-wrap button:disabled { background: #bbb; cursor: not-allowed; }
.qzone-cmt-login-tip {
    padding: 14px 18px;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.qzone-cmt-login-tip a { color: var(--primary); text-decoration: none; }
.qzone-cmt-login-tip a:hover { text-decoration: underline; }

/* ============ 灯箱（同 personalPhotos/view） ============ */
.pv-lightbox { position: fixed; z-index: 2200; display: none; }
.pv-lightbox.show { display: block; width: 100vw; height: 100vh; top: 0; left: 0; }
.pv-lightbox-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.88); }
.pv-lightbox-content { position: fixed; inset: 0; display: flex; align-items: stretch; justify-content: center; padding: 30px; gap: 20px; overflow: auto; }
.pv-lightbox-main {
    flex: 1;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    position: relative;
}
.pv-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.pv-lightbox-main img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: block;
}
.pv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 5;
    transition: background .15s, transform .15s;
    font-family: inherit;
}
.pv-arrow:hover { background: rgba(192,57,43,0.85); transform: translateY(-50%) scale(1.05); }
.pv-arrow.left { left: -70px; }
.pv-arrow.right { right: -70px; }
.pv-arrow:disabled { opacity: 0.25; cursor: not-allowed; transform: translateY(-50%); background: rgba(0,0,0,0.3); }
.pv-arrow:disabled:hover { transform: translateY(-50%); background: rgba(0,0,0,0.3); }

/* 照片上字幕（整体向上无缝循环滚动，固定显示10条，不会消失） */
.pv-subtitle-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 110px;
    overflow: hidden;
    margin: 0 30px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.pv-subtitle-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    will-change: transform;
}
.pv-subtitle-item {
    align-self: flex-start;
    max-width: 75%;
    padding: 5px 14px;
    background: rgba(0,0,0,0.7);
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.pv-subtitle-item .s-name { color: #ffd88a; margin-right: 8px; font-weight: 600; }
.pv-subtitle-empty {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

.pv-lightbox-caption { color: #fff; font-size: 14px; margin-top: 12px; text-align: center; max-width: 90%; }
.pv-lightbox-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; color: #fff; font-size: 14px; }
.pv-lightbox-actions .lb-like { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: rgba(255,255,255,0.1); border-radius: 20px; transition: background .15s; }
.pv-lightbox-actions .lb-like:hover { background: rgba(255,255,255,0.2); }
.pv-lightbox-actions .lb-like.active { background: rgba(231,76,60,0.8); color: #fff; }
.pv-lightbox-actions .lb-view { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: rgba(255,255,255,0.1); border-radius: 20px; }
.pv-lightbox-actions .lb-comments {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: background .15s, color .15s;
}
.pv-lightbox-actions .lb-comments:hover { background: rgba(255,255,255,0.22); color: #ffd88a; }
.pv-lightbox-actions .lb-comments.open { background: rgba(192,57,43,0.8); color: #fff; }
.pv-lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; z-index: 10; }
.pv-photo-index { position: absolute; top: 24px; left: 36px; color: #fff; font-size: 13px; opacity: 0.85; z-index: 3; background: rgba(0,0,0,0.3); padding: 4px 12px; border-radius: 12px; }

/* ========== 缩略图条 ========== */
.pv-thumb-wrap {
    width: 100%;
    max-width: 70%;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pv-thumb-count {
    color: #fff;
    font-size: 13px;
    opacity: 0.85;
    background: rgba(0,0,0,0.35);
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
    font-weight: 500;
}
.pv-thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .15s, opacity .15s;
    font-family: inherit;
    padding: 0;
}
.pv-thumb-arrow:hover:not(:disabled) { background: rgba(192,57,43,0.8); transform: scale(1.08); }
.pv-thumb-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.pv-thumb-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
    padding: 4px;
}
.pv-thumbstrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px;
    width: 100%;
    max-width: 100%;
}
.pv-thumbstrip::-webkit-scrollbar { height: 0; display: none; }
.pv-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: border-color .15s, transform .15s, opacity .15s;
    opacity: 0.7;
    background: rgba(0,0,0,0.3);
    box-sizing: border-box;
}
.pv-thumb:hover { opacity: 1; transform: translateY(-1px); border-color: rgba(255,255,255,0.55); }
.pv-thumb.active { opacity: 1; border-color: #C0392B; box-shadow: 0 0 0 2px rgba(192,57,43,0.35); transform: translateY(-2px); }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 评论面板（默认隐藏，有 open 类才显示） */
.pv-lightbox-side {
    width: 360px;
    max-width: 30%;
    background: #fff;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.pv-lightbox-side.open { display: flex; animation: pv-side-in .25s ease-out; }
@keyframes pv-side-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.pv-side-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: 16px; color: var(--primary-dark); font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.pv-side-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); line-height: 1; padding: 0; }
.pv-side-close:hover { color: var(--primary); }
.pv-side-comments { flex: 1; overflow-y: auto; padding: 10px 18px; }
.pv-side-comment { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.pv-side-comment:last-child { border-bottom: none; }
.pv-side-comment .c-user { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.pv-side-comment .c-user .c-time { font-weight: normal; font-size: 11px; color: var(--text-light); }
.pv-side-comment .c-content { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pv-side-comment .c-content .c-text { flex: 1; }
.pv-side-comment .c-delete {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: inherit;
    opacity: 0.7;
    transition: all .15s;
    white-space: nowrap;
}
.pv-side-comment .c-delete:hover { opacity: 1; color: #fff; background: #C0392B; border-color: #C0392B; }
.pv-side-empty { text-align: center; color: var(--text-light); padding: 30px 10px; font-size: 13px; }
.pv-side-input { padding: 12px 14px; border-top: 1px solid var(--border); background: #fafafa; }
.pv-side-input textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; resize: vertical; min-height: 56px; max-height: 120px; font-family: inherit; }
.pv-side-input textarea:focus { outline: none; border-color: var(--primary); }
.pv-side-input .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pv-side-input .row .tip { font-size: 11px; color: var(--text-light); }
.pv-side-input button { padding: 6px 18px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; font-family: inherit; }
.pv-side-input button:hover { background: #B03030; }
.pv-side-input button:disabled { background: #bbb; cursor: not-allowed; }
.pv-side-input .login-tip { font-size: 12px; color: var(--text-light); text-align: center; padding: 4px 0; }
.pv-side-input .login-tip a { color: var(--primary); text-decoration: none; }
.pv-side-input .login-tip a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .pv-lightbox-content { flex-direction: column; padding: 20px 10px; }
    .pv-lightbox-main { max-width: 100%; }
    .pv-lightbox-side { width: 100%; max-width: 100%; max-height: 45vh; }
    .pv-arrow { width: 40px; height: 40px; font-size: 18px; }
    .pv-arrow.left { left: 4px; }
    .pv-arrow.right { right: 4px; }
    .pv-subtitle-box { margin: 0 10px; }
}

/* 家族关系 */
.relation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.relation-block {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
}
.relation-block h4 {
    font-size: 13px;
    color: var(--primary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.relation-block h4::before {
    content: "";
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}
.relation-list { list-style: none; }
.relation-list li { padding: 4px 0; font-size: 13px; }
.relation-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}
.relation-list li a:hover { color: var(--primary); }
.gend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}
.gend-icon.gend-m { background: #2E86AB; }
.gend-icon.gend-f { background: #D63384; }
.gend-icon.gend-m::before { content: "♂"; }
.gend-icon.gend-f::before { content: "♀"; }
.relation-block .empty { color: var(--text-muted); font-size: 12px; padding: 4px 0; }

/* 密码弹窗 */
.album-pwd-modal {
    position: fixed; inset: 0; z-index: 1300; display: none;
    align-items: center; justify-content: center;
}
.album-pwd-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.album-pwd-box { position: relative; background: #fff; border-radius: 12px; padding: 32px; min-width: 320px; max-width: 90vw; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.album-pwd-icon { font-size: 48px; margin-bottom: 12px; }
.album-pwd-box h3 { font-family: var(--serif); font-size: 18px; color: var(--primary-dark); margin: 0 0 8px; }
.album-pwd-box p { font-size: 13px; color: var(--text-light); margin: 0 0 20px; }
.album-pwd-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; margin-bottom: 12px; }
.album-pwd-box input:focus { outline: none; border-color: var(--primary); }
.album-pwd-error { color: #C0392B; font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.album-pwd-actions { display: flex; gap: 10px; justify-content: center; }
.album-pwd-actions button { padding: 8px 20px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 14px; cursor: pointer; font-family: inherit; }
.album-pwd-actions button:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }
.album-pwd-actions button:first-child:hover { background: #B03030; }

/* ============ 个人小传时间轴 ============ */
.bio-timeline { position: relative; padding-left: 28px; margin-top: 10px; }
.bio-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), #E8D5B7);
    border-radius: 1px;
}
.bio-timeline-line { display: none; }
.bio-entry { position: relative; margin-bottom: 20px; }
.bio-entry-dot {
    position: absolute;
    left: -26px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}
.bio-entry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    transition: box-shadow .15s;
}
.bio-entry-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.bio-entry-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: var(--serif);
    margin-bottom: 8px;
}
.bio-entry-content {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

/* 响应式 */
@media (max-width: 880px) {
    /* 全局防止横向滚动 */
    html, body { overflow-x: hidden; max-width: 100%; }
    .member-detail-wrap { overflow-x: hidden; max-width: 100%; }
    .member-body { grid-template-columns: 1fr; }
    .qzone-album-list { grid-template-columns: repeat(2, 1fr); }
    .qzone-photo-grid { grid-template-columns: repeat(3, 1fr); }
    .relation-grid { grid-template-columns: 1fr; }
    .member-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 20px 16px; }
    .member-hero-avatar { margin-top: -50px; width: 96px; height: 96px; font-size: 44px; }
    .member-cover { height: 150px; }
    .member-cover::after { font-size: 100px; }
    .member-tabs { top: 0; overflow-x: hidden; flex-wrap: wrap; padding: 0 4px; }
    .member-tab { padding: 10px 8px; font-size: 13px; flex: 1 1 25%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .member-detail-wrap { overflow-x: hidden; }
}
@media (max-width: 480px) {
    .qzone-album-list { grid-template-columns: 1fr; }
    .qzone-photo-grid { grid-template-columns: 1fr; gap: 14px; }
    .qzone-photo-item {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #f0ebe0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .qzone-photo-item > img { aspect-ratio: auto; width: 100%; height: auto; object-fit: contain; }
    .qzone-photo-item:hover { transform: none; }
    .qzone-photo-item:hover img { transform: none; }
    .qzone-photo-stats {
        position: static;
        display: flex;
        justify-content: space-around;
        padding: 10px 12px;
        background: #fff;
        border-top: 1px solid #f5f0e5;
        border-radius: 0;
        transition: none;
    }
    .qzone-photo-stats .ps-stat {
        position: static;
        background: none;
        color: var(--text-light);
        font-size: 14px;
        padding: 0;
        flex: 1;
        justify-content: center;
        border-radius: 0;
    }
    .qzone-photo-stats .ps-stat:hover {
        background: none !important;
        transform: none;
        color: var(--primary);
    }
    .qzone-photo-stats .ps-stat.liked { color: var(--text-light); background: none !important; }
    .qzone-photo-stats .ps-stat.liked:hover { background: none !important; color: var(--text-light); }
    .qzone-photo-stats .ps-stat.liked .ps-icon { color: #E74C3C; }
    .qzone-photo-stats .ps-stat { font-size: 14px; }
    .qzone-photo-stats .ps-stat .ps-icon { font-size: 15px; }
    .qzone-photo-stats .ps-stat .ps-num { font-weight: 500; }
    .qzone-photo-stats .ps-stat.comments-open { color: var(--primary); }
    .qzone-photo-item .photo-more-mask {
        border-radius: 0;
    }
    /* 内联评论容器 */
    .qzone-inline-comments {
        border-top: 1px solid #f0ebe0;
        padding: 10px 12px 12px;
        background: #faf8f3;
        max-height: none;
        overflow: visible;
    }
    .qzone-inline-comments .ic-header {
        font-size: 13px;
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 8px;
    }
    .qzone-inline-comments .ic-item {
        padding: 8px 0;
        border-bottom: 1px solid #f0ece0;
    }
    .qzone-inline-comments .ic-item:last-child { border-bottom: none; }
    .qzone-inline-comments .ic-head {
        display: flex;
        align-items: baseline;
        gap: 6px;
        flex-wrap: wrap;
    }
    .qzone-inline-comments .ic-user {
        font-weight: 600;
        font-size: 13px;
        color: var(--text);
    }
    .qzone-inline-comments .ic-reply-to {
        font-size: 11px;
        color: var(--primary);
    }
    .qzone-inline-comments .ic-time {
        font-size: 11px;
        color: var(--text-light);
    }
    .qzone-inline-comments .ic-content {
        font-size: 13px;
        line-height: 1.6;
        color: var(--text);
        margin-top: 3px;
        word-break: break-word;
    }
    .qzone-inline-comments .ic-actions {
        display: flex;
        gap: 8px;
        margin-top: 4px;
    }
    .qzone-inline-comments .ic-btn {
        font-size: 11px;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .qzone-inline-comments .ic-btn.danger { color: #C0392B; }
    .qzone-inline-comments .ic-reply {
        border-left: 2px solid var(--border-light);
        padding-left: 8px;
        margin-top: 4px;
    }
    .qzone-inline-comments .ic-empty {
        text-align: center;
        color: var(--text-light);
        font-size: 13px;
        padding: 12px 0;
    }
    /* 内联评论输入区 */
    .qzone-inline-input {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0ebe0;
    }
    .qzone-inline-input input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 13px;
        box-sizing: border-box;
    }
    .qzone-inline-input button {
        padding: 8px 16px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        cursor: pointer;
        white-space: nowrap;
    }
    .qzone-inline-input button:disabled { opacity: 0.6; }
    /* 内联回复卡片 */
    .qzone-inline-reply-card {
        margin-top: 8px;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--primary);
        border-radius: 6px;
    }
    .qzone-inline-reply-card textarea {
        width: 100%;
        padding: 6px 10px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
        box-sizing: border-box;
        resize: vertical;
        min-height: 50px;
    }
    .qzone-inline-reply-card .ic-reply-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 6px;
    }
    .qzone-inline-reply-card .ic-reply-cancel {
        padding: 4px 12px;
        font-size: 12px;
        border: 1px solid var(--border);
        border-radius: 5px;
        background: #FAFAFA;
        color: var(--text);
        cursor: pointer;
    }
    .qzone-inline-reply-card .ic-reply-submit {
        padding: 4px 12px;
        font-size: 12px;
        border: none;
        border-radius: 5px;
        background: var(--primary);
        color: #fff;
        cursor: pointer;
    }
    /* 折叠按钮 */
    .qzone-inline-collapse-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        padding: 8px;
        background: #f0ebe0;
        border: none;
        border-top: 1px solid #e5ddc8;
        color: var(--primary);
        font-size: 13px;
        cursor: pointer;
        border-radius: 0 0 10px 10px;
    }
    .qzone-inline-collapse-btn:hover { background: #e5ddc8; }
    .member-hero-name { font-size: 22px; }
    /* 修复手机端 tabs 横向滚动问题 */
    .member-tabs {
        padding: 0 4px;
        overflow-x: hidden;
        flex-wrap: wrap;
        max-width: 100%;
    }
    .member-tab {
        flex: 1 1 25% !important;
        flex-shrink: 1 !important;
        padding: 8px 4px !important;
        font-size: 11px !important;
        min-width: 0 !important;
        max-width: 25%;
        text-align: center;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    /* 修复封面区域 */
    .member-cover {
        height: 120px;
    }
    .member-cover::after {
        font-size: 72px;
        right: 10px;
    }
    .member-cover-branch {
        top: 10px;
        left: 12px;
        padding: 3px 10px;
        font-size: 11px;
    }
    .member-cover-back {
        top: 10px;
        right: 12px;
        padding: 4px 10px;
        font-size: 11px;
    }
    /* 修复头像区域 */
    .member-hero {
        padding: 0 14px 14px;
        gap: 10px;
    }
    .member-hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-top: -40px;
    }
    .member-hero-meta {
        gap: 4px 10px;
        font-size: 12px;
    }
    /* 修复主体内容，防止横向滚动 */
    .member-detail-wrap {
        padding: 0 0 20px;
        overflow-x: hidden;
    }
    .member-body {
        padding-top: 12px;
        gap: 12px;
        overflow-x: hidden;
    }
    .info-card-head {
        padding: 10px 12px;
        font-size: 14px;
    }
    .info-card-body {
        padding: 10px 12px;
    }
    /* 关系区域防止溢出 */
    .relation-list li a {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 修复 bio timeline 位置 */
    .bio-timeline {
        padding-left: 20px;
    }
    .bio-entry-dot {
        left: -18px;
    }
    /* 修复相册区域 */
    .qzone-album-cover,
    .qzone-photo-item {
        border-radius: 8px;
    }
    /* 全局防止横向滚动 */
    .container,
    .member-detail-wrap,
    .member-body,
    .member-body-left,
    .member-body-right {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ============================================================
   成员主页 留言板（简洁列表风格）
   ============================================================ */

/* 留言计数标题 */
.md-message-count {
    color: #8b6914;
    font-weight: 600;
}

/* 登录提示条 */
.md-message-login-tip {
    background: #faf6e8;
    border: 1px dashed #d4b85a;
    color: #6b4f0e;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 16px;
}
.md-message-login-tip a {
    color: #9E2020;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #9E2020;
    margin: 0 2px;
}
.md-message-login-tip a:hover {
    color: #c0392b;
}

/* 留言输入框 */
.md-message-composer {
    background: #fdfaf1;
    border: 1px solid #ead8a4;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
}
.md-message-composer textarea,
.md-sub-composer textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 1px solid #e3d2a0;
    background: #fffdf4;
    color: #3c2f10;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.7;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.md-message-composer textarea:focus,
.md-sub-composer textarea:focus {
    border-color: #b58a34;
    box-shadow: 0 0 0 2px rgba(181, 138, 52, 0.18);
}
.md-message-composer .row,
.md-sub-composer .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.md-message-composer .row.right,
.md-sub-composer .row.right {
    justify-content: flex-end;
    gap: 10px;
}
.md-message-composer .tip {
    color: #9b884f;
    font-size: 12px;
}

/* 按钮通用 */
.md-btn-primary {
    background: linear-gradient(135deg, #9E2020 0%, #7A1818 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s, opacity .15s, box-shadow .15s;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(158, 32, 32, 0.18);
}
.md-btn-primary:hover { transform: translateY(-1px); opacity: .94; box-shadow: 0 4px 10px rgba(158, 32, 32, 0.24); }
.md-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.md-btn-cancel {
    background: #fff;
    color: #6b5a2e;
    border: 1px solid #d7c48e;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.md-btn-cancel:hover { background: #f7efd5; color: #4c3d0f; }

/* 留言空态 */
.md-message-empty {
    padding: 32px 0 16px;
    color: #a9975a;
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ============ 简洁列表风格留言 ============ */

/* 留言列表容器 */
.md-message-list {
    display: flex;
    flex-direction: column;
}

/* 单条留言行 */
.md-row {
    padding: 12px 0;
    border-bottom: 1px dashed #e0d5b0;
}
.md-row:last-child {
    border-bottom: none;
}

/* 回复行：缩进显示 */
.md-row.md-row-reply {
    padding: 8px 0 8px 24px;
    border-bottom: 1px dashed #ece3c8;
    position: relative;
}
.md-row.md-row-reply::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e8dfc0;
}

/* 行头部：作者 + 时间 + 操作 */
.md-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

/* 左侧作者信息 */
.md-row-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
    min-width: 0;
}
.md-row-name {
    font-weight: 600;
    color: #4c3d0f;
}
.md-branch-tag {
    color: #8b6914;
    background: #f5ecd0;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
}
.md-reply-prefix {
    color: #a9975a;
    font-size: 12px;
}
.md-reply-target {
    color: #9E2020;
    font-weight: 500;
    font-size: 12px;
}

/* 右侧时间 + 操作 */
.md-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.md-row-time {
    font-size: 12px;
    color: #b8a870;
}
.md-row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 链接式按钮（赞/踩/回复/编辑/删除） */
.md-link {
    background: transparent;
    border: none;
    color: #8b7a3c;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-family: inherit;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.md-link:hover {
    background: #f7efd5;
    color: #6b4f0e;
}
.md-link.md-like.on {
    color: #9E2020;
    background: #fae2e2;
}
.md-link.md-dislike.on {
    color: #5d5d5d;
    background: #ececec;
}
.md-link.md-link-edit {
    color: #5a7ab5;
}
.md-link.md-link-edit:hover {
    background: #e8eef7;
    color: #2c5282;
}
.md-link.md-link-delete {
    color: #b86060;
}
.md-link.md-link-delete:hover {
    background: #f5e6e6;
    color: #9E2020;
}

/* 留言内容 */
.md-row-content {
    color: #2c240b;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 2px 0;
}
.md-row.md-row-reply .md-row-content {
    font-size: 13px;
    line-height: 1.7;
}

/* 内嵌回复/编辑表单容器 */
.md-composer-slot {
    margin-top: 8px;
}
.md-sub-composer {
    background: #faf6e8;
    border: 1px dashed #d7c48e;
    border-radius: 6px;
    padding: 10px;
}

/* 小屏响应式 */
@media (max-width: 880px) {
    .md-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .md-row-meta {
        width: 100%;
    }
    .md-row.md-row-reply {
        padding-left: 16px;
    }
    .md-message-composer textarea { min-height: 64px; }
    .md-row-content { font-size: 13px; }
}

/* ============ 手机端灯箱布局 ============ */
.pv-lightbox-mobile {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff;
    position: fixed;
    top: var(--header-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
}
.pv-lightbox-mobile.show { display: flex; }

/* 手机端关闭按钮 */
.pv-mobile-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pv-mobile-close:active {
    background: rgba(0, 0, 0, 0.7);
}

/* 滚动容器 */
.pv-mobile-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
    background: #fff;
}

/* 主图区：类似抖音全屏布局，图片居中，右侧留空间给垂直操作栏 */
.pv-mobile-photo-area {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    max-height: 75vh;
    overflow: hidden;
    flex-shrink: 0;
    padding-right: 70px; /* 右侧给垂直图标栏留空间 */
}
.pv-mobile-photo-area img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 右侧垂直操作栏：抖音风格，图片右侧垂直居中立排 */
.pv-mobile-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 6;
}
.pv-m-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}
.pv-m-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s, background 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.pv-m-action:active .pv-m-icon {
    transform: scale(0.9);
    background: rgba(192, 57, 43, 0.75);
}
.pv-m-count {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.pv-m-action.active .pv-m-icon {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 1);
}

/* 照片计数 */
.pv-mobile-index {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 14px;
    z-index: 5;
}

/* 左右切换按钮 */
.pv-mobile-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 0;
    cursor: pointer;
}
.pv-mobile-arrow.left { left: 8px; }
.pv-mobile-arrow.right { right: 80px; } /* 避开右侧垂直操作栏（48+12+20） */
.pv-mobile-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

/* 信息区 */
.pv-mobile-info {
    padding: 14px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #f0ebe0;
    flex-shrink: 0;
}
.pv-mobile-user-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.pv-mobile-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark, #8B0000);
}
.pv-mobile-time {
    font-size: 12px;
    color: #999;
}
.pv-mobile-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 评论区 */
.pv-mobile-comments-area {
    background: #fff;
    padding: 0 16px;
    flex-shrink: 0;
}
.pv-mobile-comments-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark, #8B0000);
    padding: 12px 0 8px;
    border-bottom: 1px solid #f0ebe0;
}
.pv-mobile-comments {
    padding: 4px 0;
}
.pv-mobile-comment {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f0e5;
}
.pv-mobile-comment:last-child { border-bottom: none; }
.pv-mobile-comment .mc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8D5B7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.pv-mobile-comment .mc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-mobile-comment .mc-body {
    flex: 1;
    min-width: 0;
}
.pv-mobile-comment .mc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.pv-mobile-comment .mc-user {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.pv-mobile-comment .mc-time {
    font-size: 11px;
    color: #aaa;
}
.pv-mobile-comment .mc-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.pv-mobile-comment .mc-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.pv-mobile-comment .mc-btn {
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.pv-mobile-comment .mc-btn:hover { color: var(--primary, #8B0000); }
.pv-mobile-empty {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    padding: 30px 0;
}

/* 底部占位 */
.pv-mobile-bottom-spacer {
    height: 70px;
    background: #fff;
    flex-shrink: 0;
}

/* 固定底部输入栏 */
.pv-mobile-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0ebe0;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
}
.pv-mobile-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pv-mobile-input-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0d5c0;
    border-radius: 22px;
    font-size: 15px;
    box-sizing: border-box;
    background: #f7f5f0;
    color: #333;
}
.pv-mobile-input-bar input:focus {
    outline: none;
    border-color: var(--primary, #8B0000);
    background: #fff;
}
.pv-mobile-send {
    padding: 10px 18px;
    background: var(--primary, #8B0000);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.pv-mobile-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 手机端媒体查询：显示手机布局，隐藏PC布局 */
@media (max-width: 900px) {
    /* 隐藏PC端灯箱元素 */
    .pv-lightbox-content { display: none !important; }
    .pv-photo-index { display: none !important; }
    .pv-lightbox-mask { display: none !important; }

    /* 显示手机端布局 */
    .pv-lightbox-mobile { display: flex; }

    /* 调整PC端灯箱容器，不占据全屏 */
    .pv-lightbox.show {
        width: 0;
        height: 0;
        overflow: visible;
    }

    /* 调整关闭按钮位置 */
    .pv-lightbox-close {
        top: env(safe-area-inset-top, 12px);
        right: 14px;
        font-size: 30px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        z-index: 10002;
    }

    /* 调整主图区最小高度 */
    .pv-mobile-photo-area {
        min-height: 45vh;
    }

    /* 调整右侧操作栏 */
    .pv-mobile-actions {
        right: 8px;
        bottom: 16px;
        gap: 16px;
    }
    .pv-m-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
