/* ================================================================== *
 * 社交模块样式（我的主页 / 日志 / 圈子 / 站内信）
 * 从 UCHome 移植的是功能，样式按本站现有的白卡片 + slate/blue 调子重画，
 * 所以它看起来就是本站的一部分，而不是"另一个程序塞进来"。
 * 依赖 member.css 的容器（.mf-wrap / .mf-body）与全站外壳，不重复定义。
 * ================================================================== */

/* ---------------- 导航条 ---------------- */
.sns-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
    margin: 0 0 4px;
    border-bottom: 1px solid #e6edf5;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sns-nav::-webkit-scrollbar { display: none; }
.sns-nav-a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f2f5f9;
    color: #475569;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
}
.sns-nav-a:hover { background: #e8eef6; color: #1d4ed8; }
.sns-nav-a.is-on {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
}

/* ---------------- 头像块 ---------------- */
.sns-ava {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}
.sns-ava-sm { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
.sns-ava-md { width: 44px; height: 44px; font-size: 18px; }
.sns-ava-lg { width: 64px; height: 64px; font-size: 26px; border-radius: 14px; }

/* ---------------- 通用卡片 ---------------- */
.sns-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    margin: 0 0 14px;
}
.sns-card > h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.sns-card > h3 small { font-weight: 400; color: #94a3b8; font-size: 12px; }

/* 主页顶部：头像 + 名字 + 签名 */
.sns-hero {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fc 100%);
    padding: 16px;
    margin: 0 0 14px;
}
.sns-hero .who { flex: 1 1 auto; min-width: 0; }
.sns-hero .nm {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}
.sns-hero .hd { color: #2563eb; font-size: 13px; margin-top: 2px; }
.sns-hero .mood {
    margin-top: 8px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12.5px;
}
.sns-hero .meta { color: #94a3b8; font-size: 12px; margin-top: 8px; }

/* 四个数字 */
.sns-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sns-stat {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 88px;
    background: #f8fafc;
    border: 1px solid #e6edf5;
    border-radius: 9px;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.sns-stat b { display: block; font-size: 17px; color: #0f172a; }
.sns-stat span { display: block; color: #64748b; font-size: 11.5px; margin-top: 1px; }
.sns-stat:hover { border-color: #bfdbfe; background: #f4f9ff; }

/* ---------------- 表单 ---------------- */
.sns-form { max-width: 100%; }
.sns-form label { display: block; color: #334155; font-size: 13px; margin: 0 0 6px; }
.sns-form input[type="text"],
.sns-form input[type="password"],
.sns-form input[type="email"],
.sns-form input[type="date"],
.sns-form textarea,
.sns-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfcbdb;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    background: #fff;
    outline: none;
}
.sns-form input:focus, .sns-form textarea:focus, .sns-form select:focus { border-color: #2563eb; }
.sns-form textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.sns-form .row { margin: 0 0 12px; }
.sns-form .row-2 { display: flex; gap: 10px; flex-wrap: wrap; }
.sns-form .row-2 > div { flex: 1 1 160px; }
.sns-form .hint { color: #94a3b8; font-size: 12px; margin: 5px 0 0; }
.sns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.sns-btn:hover { background: #1d4ed8; color: #fff; }
.sns-btn-ghost { background: #f2f5f9; color: #334155; }
.sns-btn-ghost:hover { background: #e6e8eb; color: #334155; }
.sns-btn-danger { background: #dc2626; }
.sns-btn-danger:hover { background: #b91c1c; }
.sns-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.sns-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sns-acts .sns-btn { min-width: 0; }

/* ---------------- 说说 / 动态 ---------------- */
.sns-feed { display: grid; gap: 10px; }
.sns-feed-item {
    display: flex;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}
.sns-feed-item:first-child { border-top: 0; padding-top: 2px; }
.sns-feed-item .bd { flex: 1 1 auto; min-width: 0; }
.sns-feed-item .who {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.sns-feed-item .who span.t { color: #94a3b8; font-size: 12px; }
.sns-feed-item .tx {
    margin: 6px 0 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}
.sns-feed-item .ops { margin-top: 5px; }
.sns-feed-item .ops a { color: #94a3b8; font-size: 12px; text-decoration: none; }
.sns-feed-item .ops a:hover { color: #dc2626; }

/* ---------------- 日志 ---------------- */
.sns-list { display: grid; gap: 0; }
.sns-li {
    display: block;
    padding: 13px 0;
    border-top: 1px solid #eef2f7;
    text-decoration: none;
    color: inherit;
}
.sns-li:first-child { border-top: 0; padding-top: 2px; }
.sns-li .tt {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}
.sns-li:hover .tt { color: #2563eb; }
.sns-li .sm {
    color: #8a97a8;
    font-size: 12.5px;
    margin-top: 4px;
    line-height: 1.65;
    word-break: break-word;
}
.sns-li .mt { color: #94a3b8; font-size: 12px; margin-top: 6px; }

/* 日志正文 */
.sns-article h2 { margin: 0 0 8px; font-size: 19px; color: #0f172a; line-height: 1.4; word-break: break-word; }
.sns-article .mt { color: #94a3b8; font-size: 12.5px; margin: 0 0 14px; }
.sns-article .bd {
    color: #1f2937;
    font-size: 14.5px;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word;
}
.sns-article .bd img { max-width: 100%; height: auto; }

/* ---------------- 圈子 ---------------- */
.sns-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sns-group {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.sns-group:hover { border-color: #bfdbfe; background: #fafdff; }
.sns-group .nm { color: #0f172a; font-weight: 600; font-size: 15px; word-break: break-word; }
.sns-group .in { color: #8a97a8; font-size: 12.5px; margin-top: 5px; line-height: 1.6; }
.sns-group .nm2 { color: #94a3b8; font-size: 12px; margin-top: 8px; }

.sns-members { display: flex; flex-wrap: wrap; gap: 10px; }
.sns-member {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #e6edf5;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-size: 12.5px;
    background: #fff;
}
.sns-member:hover { border-color: #bfdbfe; color: #1d4ed8; }
.sns-member .owner { color: #b45309; font-size: 11px; }

/* ---------------- 站内信 ---------------- */
.sns-pm-list { display: grid; gap: 0; }
.sns-pm-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
    text-decoration: none;
    color: inherit;
}
.sns-pm-item:first-child { border-top: 0; }
.sns-pm-item:hover { background: #fafdff; }
.sns-pm-item .bd { flex: 1 1 auto; min-width: 0; }
.sns-pm-item .tt { color: #0f172a; font-size: 14px; font-weight: 600; word-break: break-word; }
.sns-pm-item.unread .tt { color: #1d4ed8; }
.sns-pm-item.unread .tt::after {
    content: "未读";
    display: inline-block;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 3px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10.5px;
    font-weight: 400;
    vertical-align: 1px;
}
.sns-pm-item .sm { color: #8a97a8; font-size: 12.5px; margin-top: 3px; word-break: break-word; }
.sns-pm-item .mt { color: #94a3b8; font-size: 12px; margin-top: 5px; }

.sns-pm-body {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fbfdff;
    padding: 14px 15px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    margin: 0 0 12px;
}

/* ---------------- 空态 / 分页 / 其它 ---------------- */
.sns-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 13.5px;
    padding: 26px 0;
}
.sns-empty a { color: #2563eb; }

.sns-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 0 4px;
    font-size: 13px;
    color: #64748b;
}
.sns-pager a { color: #2563eb; text-decoration: none; }

.sns-note {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0 0 14px;
}
.sns-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}
.sns-sub h3 { margin: 0; font-size: 15px; color: #0f172a; }
.sns-sec-title {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin: 18px 0 10px; padding-left: 9px;
    border-left: 3px solid #2563eb;
    font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.15;
}
.sns-sec-title a { font-size: 12px; font-weight: 400; color: #2563eb; text-decoration: none; }

/* ---------------- 移动端（768 及以下） ---------------- */
@media (max-width: 768px) {
    .sns-nav { padding-bottom: 12px; }
    .sns-nav-a { height: 36px; padding: 0 12px; font-size: 13px; }

    /* 表单：16px 起 iOS 聚焦不放大；按钮按手指来 */
    .sns-form input[type="text"],
    .sns-form input[type="password"],
    .sns-form input[type="email"],
    .sns-form input[type="date"],
    .sns-form textarea,
    .sns-form select { font-size: 16px; padding: 11px 12px; }
    .sns-btn { min-height: 44px; padding: 0 14px; }
    .sns-btn-sm { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
    .sns-acts .sns-btn { flex: 1 1 auto; }

    /* 主页头部：头像和文字在窄屏也并排，但留白收一点 */
    .sns-hero { padding: 13px; gap: 11px; }
    .sns-hero .nm { font-size: 17px; }
    .sns-ava-lg { width: 52px; height: 52px; font-size: 22px; }

    /* 统计四兄弟：两列 */
    .sns-stats { gap: 7px; }
    .sns-stat { flex: 1 1 calc(50% - 10px); min-width: 0; padding: 8px 10px; }

    /* 圈子卡片改单列 */
    .sns-groups { grid-template-columns: minmax(0, 1fr); }

    .sns-article h2 { font-size: 17px; }
    .sns-article .bd { font-size: 15px; line-height: 1.85; }
}

/* ============================= 第二批页面 ============================= */

/* 导航第二行（功能栏目），比第一行轻一点 */
.sns-nav-2 a { font-size: 13px; padding: 6px 12px; color: #475569; }
.sns-nav-2 a.is-on { color: #fff; }

/* 好友卡：头像 + 名字 + 操作 */
.sns-friend { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
    border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; }
.sns-friend .nm { font-size: 13px; color: #1e293b; text-decoration: none; }
.sns-friend form { margin: 0; }

/* 相册列表 */
.sns-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sns-album { display: block; text-decoration: none; color: inherit; }
.sns-album .cov { position: relative; padding-top: 76%; border-radius: 8px; overflow: hidden;
    background: #f1f5f9; border: 1px solid #e2e8f0; }
.sns-album .cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sns-album .cov .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 12px; }
.sns-album .nm { font-size: 14px; font-weight: 600; margin-top: 6px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.sns-album .sm { font-size: 12px; color: #94a3b8; }

/* 相册里的照片网格 */
.sns-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sns-photo { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.sns-photo img { display: block; width: 100%; height: 130px; object-fit: cover; }
.sns-photo .ft { display: flex; align-items: center; justify-content: space-between;
    padding: 5px 8px; font-size: 12px; color: #64748b; gap: 6px; }
.sns-photo .ft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sns-photo .ft form { margin: 0; }
.sns-photo .ft button { border: 0; background: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 0; }

/* 活动的元信息格 */
.sns-event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px; margin: 10px 0 14px; }
.sns-event-meta div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 8px 10px; font-size: 13px; color: #334155; box-sizing: border-box; }
.sns-event-meta b { display: block; font-size: 11px; color: #94a3b8; font-weight: 400; margin-bottom: 2px; }

/* 投票：选项与结果条 */
.sns-vote-opts { display: flex; flex-direction: column; gap: 8px; }
.sns-vote-opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; }
.sns-vote-opt input { width: auto; }
.sns-vote-res { display: flex; flex-direction: column; gap: 10px; }
.sns-vote-row .lb { font-size: 13px; color: #334155; margin-bottom: 4px; }
.sns-vote-row .lb .me { margin-left: 6px; font-size: 11px; color: #ea580c; }
.sns-vote-row .bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.sns-vote-row .bar i { display: block; height: 100%; background: #2563eb; border-radius: 999px; }
.sns-vote-row .num { font-size: 12px; color: #94a3b8; margin-top: 3px; }

/* 道具 */
.sns-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sns-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; background: #fff; }
.sns-item .ic { font-size: 26px; line-height: 1.2; }
.sns-item .nm { font-size: 14px; font-weight: 600; margin-top: 4px; }
.sns-item .sm { font-size: 12px; color: #64748b; margin-top: 2px; min-height: 32px; }
.sns-item .pr { font-size: 12px; color: #ea580c; margin: 6px 0 8px; }
.sns-item form { margin: 0; }

/* 任务 */
.sns-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sns-task { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; background: #fff; }
.sns-task.is-done { background: #f8fafc; }
.sns-task .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sns-task .hd .tt { font-size: 14px; font-weight: 600; }
.sns-task .hd .rw { font-size: 12px; color: #ea580c; white-space: nowrap; }
.sns-task .sm { font-size: 12px; color: #64748b; margin-top: 4px; }
.sns-task .pg { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.sns-task .pg i { display: block; height: 100%; background: #16a34a; }
.sns-task .mt { font-size: 12px; color: #94a3b8; }

/* 日志插图 */
.sns-blog-pic { margin: 12px 0; }
.sns-blog-pic img { max-width: 100%; border-radius: 8px; display: block; }
.sns-li .li-thumb { float: right; width: 84px; height: 60px; object-fit: cover; border-radius: 6px;
    margin: 0 0 6px 10px; }

/* 圈子公告 */
.sns-announce { border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 12px; }
.sns-announce .tt { font-size: 12px; color: #b45309; margin-bottom: 4px; }
.sns-announce .bd { font-size: 13px; color: #334155; line-height: 1.75; }

/* 话题楼层 */
.sns-floors { display: flex; flex-direction: column; gap: 10px; }
.sns-floor { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; }
.sns-floor .lf { display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.sns-floor .lf .nm { font-size: 13px; font-weight: 600; color: #1e293b; text-decoration: none; }
.sns-floor .lf .mt { font-size: 11px; color: #94a3b8; }
.sns-floor .lf .fl { margin-left: auto; font-size: 11px; color: #94a3b8; }
.sns-floor .bd { padding: 10px 12px; font-size: 14px; line-height: 1.8; color: #334155; word-break: break-word; }

/* 日志正文（富文本） */
.sns-rich { line-height: 1.85; word-break: break-word; }
.sns-rich p { margin: 0 0 10px; }
.sns-rich blockquote { margin: 10px 0; padding: 6px 12px; border-left: 3px solid #cbd5e1;
    background: #f8fafc; color: #475569; }
.sns-rich ul, .sns-rich ol { margin: 8px 0 8px 22px; }
.sns-rich li { margin: 2px 0; }
.sns-rich a { color: #2563eb; }
.sns-rich h3, .sns-rich h4 { margin: 12px 0 6px; }

/* 日志权限徽标 */
.sns-priv { display: inline-block; font-size: 11px; line-height: 1.6; padding: 0 6px;
    border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.sns-priv-1 { background: #e0f2fe; color: #0369a1; }
.sns-priv-2 { background: #fee2e2; color: #b91c1c; }

/* 简易富文本编辑器 */
.sns-editor { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; overflow: hidden; }
.sns-editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.sns-editor-bar button { border: 1px solid #e2e8f0; background: #fff; border-radius: 5px;
    padding: 3px 9px; font-size: 13px; color: #334155; cursor: pointer; line-height: 1.6; }
.sns-editor-bar button:hover { border-color: #93c5fd; color: #2563eb; }
.sns-editor-sep { width: 1px; height: 18px; background: #e2e8f0; margin: 0 4px; }
.sns-editor-tip { margin-left: auto; font-size: 11px; color: #94a3b8; }
.sns-editor-body { min-height: 240px; padding: 12px 14px; font-size: 14px; line-height: 1.85;
    outline: none; color: #1e293b; }
.sns-editor-body.is-empty:before { content: attr(data-placeholder); color: #94a3b8; }
.sns-editor-hidden { display: none; }

/* 广场 */
.sns-square .tx { padding: 2px 0; }
.sns-square-blog { display: block; font-size: 15px; font-weight: 600; color: #1e293b;
    text-decoration: none; margin-bottom: 4px; }
.sns-square-blog:hover { color: #2563eb; }
.sns-square-blog .tag { display: inline-block; font-size: 11px; font-weight: 400; color: #0369a1;
    background: #e0f2fe; border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: middle; }
.sns-square .pre { font-size: 13px; color: #64748b; line-height: 1.7; }


@media (max-width: 768px) {
    .sns-albums, .sns-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sns-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sns-tasks { grid-template-columns: minmax(0, 1fr); }
    .sns-photo img { height: 110px; }
    .sns-nav-2 a { font-size: 12.5px; }
    .sns-floor .bd { font-size: 15px; }
}

/* ================================================================== *
 * 第七批：主页双栏（照 UCHome 空间页的排布）+ 访客 / 通知 / 收藏 / 搜索
 * ================================================================== */

/* 主页两栏：左边资料与菜单，右边内容流；窄屏自动叠成一栏 */
.sns-space {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.sns-side { position: sticky; top: 12px; }
.sns-main { min-width: 0; }

.sns-side-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 13px 14px;
    margin: 0 0 12px;
}
.sns-side-card > h4 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sns-side-card > h4 small { font-weight: 400; font-size: 12px; }
.sns-side-card > h4 small a { color: #2563eb; text-decoration: none; }

/* 左栏资料卡 */
.sns-profile-card { text-align: center; }
.sns-ava-wrap { display: flex; justify-content: center; margin-bottom: 9px; }
.sns-profile-card .nm { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.35; word-break: break-word; }
.sns-profile-card .alias { font-size: 11.5px; color: #94a3b8; font-weight: 400; }
.sns-mood {
    margin: 8px 0 0; padding: 6px 9px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 7px;
    color: #92400e; font-size: 12.5px; line-height: 1.6; word-break: break-word;
}
.sns-mood-form { display: flex; gap: 5px; margin: 8px 0 0; }
.sns-mood-form input {
    flex: 1 1 auto; min-width: 0; padding: 5px 8px; border: 1px solid #e2e8f0;
    border-radius: 6px; font-size: 12.5px; color: #334155;
}
.sns-mood-form button {
    flex: 0 0 auto; border: 1px solid #2563eb; background: #2563eb; color: #fff;
    border-radius: 6px; padding: 0 9px; font-size: 12px; cursor: pointer;
}
.sns-profile-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
    margin-top: 7px; color: #64748b; font-size: 12px;
}
.sns-profile-intro {
    margin-top: 8px; color: #475569; font-size: 12.5px; line-height: 1.7;
    text-align: left; word-break: break-word;
}
.sns-profile-views { margin-top: 8px; color: #94a3b8; font-size: 11.5px; }
.sns-side-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; justify-content: center; }
.sns-side-acts .sns-btn { flex: 1 1 auto; }
.sns-relation-bar { margin-top: 11px; }

/* 左栏统计：两列小格 */
.sns-side-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
}
.sns-side-stats a {
    display: block; text-align: center; text-decoration: none;
    padding: 7px 2px; border-radius: 7px; background: #f8fafc;
}
.sns-side-stats a:hover { background: #eff6ff; }
.sns-side-stats b { display: block; font-size: 15px; color: #0f172a; line-height: 1.25; }
.sns-side-stats span { display: block; font-size: 11px; color: #64748b; margin-top: 1px; }

/* 左栏菜单：清单式，和 UCHome 侧边栏一个意思 */
.sns-side-menu { display: grid; gap: 2px; }
.sns-side-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 9px; border-radius: 7px;
    color: #334155; font-size: 13px; text-decoration: none;
}
.sns-side-menu a:hover { background: #f1f7ff; color: #1d4ed8; }

/* 最近访客头像排 */
.sns-visitor-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sns-visitor-row a { display: inline-flex; }

/* 上传的头像 */
.sns-ava-img { border-radius: 10px; object-fit: cover; background: #f1f5f9; flex: 0 0 auto; }
.sns-ava-img.sns-ava-sm { width: 30px; height: 30px; border-radius: 8px; }
.sns-ava-img.sns-ava-md { width: 44px; height: 44px; }
.sns-ava-img.sns-ava-lg { width: 64px; height: 64px; border-radius: 14px; }

/* 小号文字按钮（说说删除那类） */
.sns-linkbtn {
    border: 0; background: none; padding: 0; cursor: pointer;
    color: #94a3b8; font-size: 12px;
}
.sns-linkbtn:hover { color: #dc2626; }

/* 二级页顶部的小 tab（访客 / 通知） */
.sns-sub a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
}
.sns-sub a:hover { border-color: #bfdbfe; color: #1d4ed8; }
.sns-sub a.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.sns-sub form { margin: 0; }

/* 通知列表 */
.sns-notices .is-unread { background: #f7fbff; }
.sns-notices .who .tag {
    display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px;
    background: #e0f2fe; color: #0369a1; margin-right: 6px;
}
.sns-notices .tag-friend { background: #dcfce7; color: #15803d; }
.sns-notices .tag-wall { background: #fef3c7; color: #b45309; }
.sns-notices .tag-blog { background: #e0f2fe; color: #0369a1; }
.sns-notices .tag-system { background: #ede9fe; color: #6d28d9; }
.sns-notices .dot {
    margin-left: 6px; font-size: 11px; color: #dc2626;
}

/* 收藏 */
.sns-fav-kind {
    flex: 0 0 auto; font-size: 11px; color: #0369a1; background: #e0f2fe;
    border-radius: 4px; padding: 2px 7px; align-self: flex-start; margin-top: 2px;
}

/* 搜索栏 */
.sns-search-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
    padding: 12px 14px; margin: 0 0 14px;
}
.sns-search-bar input[type="text"] { flex: 1 1 220px; min-width: 0; }
.sns-search-bar select { flex: 0 0 auto; }

/* 照片搜索结果 */
.sns-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sns-photo-grid a {
    display: block; text-decoration: none; color: #475569; font-size: 12px;
}
.sns-photo-grid img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0;
}
.sns-photo-grid span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 举报页：被举报内容的提示 */
.sns-report-target {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; color: #475569; margin: 0 0 12px;
    word-break: break-word;
}

/* 双栏在窄屏（980 以下）叠成一栏，资料卡不再吸顶 */
@media (max-width: 980px) {
    .sns-space { grid-template-columns: minmax(0, 1fr); }
    .sns-side { position: static; }
    .sns-side-stats { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
    .sns-side-stats { grid-template-columns: repeat(3, 1fr); }
    .sns-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================== *
 * 第八批：立体感 / 纵深感（不改色系、不加背景图，全靠灰度与蓝色深浅）
 *   A 画布微渐变 + 卡片分层阴影
 *   B 资料卡渐变封面 + 头像压边
 *   C 内阴影、标题竖条、数字字重、顶栏胶囊、左栏吸顶滚动
 * ================================================================== */

/* ---------- A1. 画布：极浅冷灰 + 顶部一团蓝色光晕，白卡才浮得起来 ---------- */
.mf-body {
    background:
        radial-gradient(1100px 420px at 50% -80px, #e9f1ff 0%, rgba(233, 241, 255, 0) 62%),
        linear-gradient(180deg, #f8fafd 0%, #f4f7fb 100%);
}

/* ---------- A2. 卡片分层：1px 描边 + 远/近两层阴影 ---------- */
.sns-card,
.sns-side-card,
.sns-search-bar {
    border-color: #e3e9f2;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 12px 28px -18px rgba(15, 23, 42, .22);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.sns-card:hover,
.sns-side-card:hover {
    border-color: #dbe5f3;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .05),
        0 18px 38px -20px rgba(37, 99, 235, .30);
    transform: translateY(-1px);
}
/* 窄屏 / 触屏不做位移，避免抖 */
@media (hover: none) {
    .sns-card:hover,
    .sns-side-card:hover { transform: none; }
}

/* ---------- B. 资料卡：蓝色渐变封面 + 头像压边 ---------- */
.sns-profile-card {
    position: relative;
    padding: 0 14px 14px;
    overflow: hidden;
}
.sns-profile-card .sns-cover {
    height: 76px;
    margin: 0 -14px 0;
    border-radius: 9px 9px 0 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 48%, #1e40af 100%);
    position: relative;
}
/* 封面上的一层高光，做出球面感 */
.sns-profile-card .sns-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(240px 120px at 18% -10%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.sns-profile-card .sns-ava-wrap {
    margin: -34px 0 8px;
    position: relative;
    z-index: 1;
}
.sns-profile-card .sns-ava-wrap .sns-ava,
.sns-profile-card .sns-ava-wrap .sns-ava-img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    font-size: 29px;
    box-shadow:
        0 0 0 4px #fff,
        0 10px 22px -10px rgba(2, 6, 23, .45);
}
.sns-profile-card .nm { margin-top: 2px; }
/* 资料卡里的按钮压在浅灰底上，给一点层次 */
.sns-profile-card .sns-btn {
    box-shadow: 0 6px 14px -10px rgba(37, 99, 235, .55);
}
.sns-profile-card .sns-btn-ghost {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(15, 23, 42, .05);
    background: #fff;
}

/* ---------- C1. 表单控件内阴影：看起来是「凹进去」的 ---------- */
.sns-space input[type="text"],
.sns-space input[type="search"],
.sns-space input[type="password"],
.sns-space textarea,
.sns-space select,
.sns-card input[type="text"],
.sns-card input[type="search"],
.sns-card input[type="password"],
.sns-card textarea,
.sns-card select,
.sns-search-bar input[type="text"],
.sns-search-bar select {
    background: #fbfcfe;
    border-color: #dde4ee;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06);
    transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.sns-space input[type="text"]:focus,
.sns-space input[type="search"]:focus,
.sns-space input[type="password"]:focus,
.sns-space textarea:focus,
.sns-space select:focus,
.sns-card input[type="text"]:focus,
.sns-card input[type="search"]:focus,
.sns-card input[type="password"]:focus,
.sns-card textarea:focus,
.sns-card select:focus,
.sns-search-bar input[type="text"]:focus,
.sns-search-bar select:focus {
    background: #fff;
    border-color: #93c5fd;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, .03),
        0 0 0 3px rgba(37, 99, 235, .14);
    outline: none;
}

/* ---------- C2. 标题左侧蓝色竖条，卡片有「章节感」 ---------- */
.sns-card > h3,
.sns-side-card > h4 {
    position: relative;
    padding-left: 11px;
}
.sns-card > h3::before,
.sns-side-card > h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 15px;
    margin-top: -7.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}
.sns-side-card > h4::before { height: 12px; margin-top: -6px; }

/* ---------- C3. 统计格：内凹 + 数字放大加粗 ---------- */
.sns-side-stats a {
    background: #f7f9fc;
    border: 1px solid #edf1f7;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
    transition: box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.sns-side-stats a:hover {
    background: #fff;
    border-color: #dbeafe;
    box-shadow: 0 8px 18px -12px rgba(37, 99, 235, .45);
}
.sns-side-stats b {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #1d4ed8;
}

/* ---------- C4. 顶部二级目录：白色胶囊条 + 更实的选中块 ---------- */
.sns-nav-top {
    width: max-content;
    max-width: 100%;
    padding: 4px 5px;
    margin: 0 0 16px;
    border: 1px solid #e6ebf3;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 26px -22px rgba(15, 23, 42, .45);
}
.sns-nav-top .sns-nav-a {
    background: transparent;
    color: #52606f;
}
.sns-nav-top .sns-nav-a:hover { background: #eff6ff; color: #1d4ed8; }
.sns-nav-top .sns-nav-a.is-on {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(29, 78, 216, .65);
}

/* ---------- C5. 左栏：不再吸顶、不再自己滚 ----------
   之前加了 max-height + overflow，结果左栏内部多出一条滚动条，滚轮落在左栏时
   整页也跟着“卡住”，资料卡还会被滚出可视区。
   左栏内容本就有 15 个菜单项，比屏幕高，吸顶会把下半截永久藏起来，所以这里
   干脆跟着页面一起滚，谁也不会被切掉。 */
.sns-side {
    align-self: start;
    position: static;
    max-height: none;
    overflow: visible;
}

/* ---------- C6. 左栏菜单：悬停时从左侧渗出一层浅蓝 ---------- */
.sns-side-menu a {
    transition: background .16s ease, color .16s ease;
}
.sns-side-menu a:hover {
    background: linear-gradient(90deg, #eaf2ff 0%, #f6faff 100%);
    color: #1d4ed8;
}

/* ---------- 窄屏：封面与头像比例收一点，左栏不再吸顶 ---------- */
@media (max-width: 980px) {
    .sns-side { max-height: none; overflow: visible; padding: 0; margin: 0; }
}
@media (max-width: 768px) {
    .sns-profile-card .sns-cover { height: 62px; }
    .sns-profile-card .sns-ava-wrap { margin-top: -28px; }
    .sns-profile-card .sns-ava-wrap .sns-ava,
    .sns-profile-card .sns-ava-wrap .sns-ava-img {
        width: 64px; height: 64px; font-size: 25px;
    }
    .sns-nav-top { width: 100%; border-radius: 14px; }
}

/* ---------- 站内信写信页：收件人一行 + 「发给 admin」勾选 ---------- */
.sns-form .to-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sns-form .to-line > input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
}
.sns-form .to-line .to-admin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #dbe5f3;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.sns-form .to-line .to-admin input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}
.sns-form .to-line .to-admin:hover { border-color: #bfdbfe; background: #f7fbff; }
.sns-form .to-line .to-admin b { color: #1d4ed8; font-weight: 700; }
/* 勾上以后整颗变蓝，一眼看得出当前发给站长 */
.sns-form .to-line .to-admin:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}
/* 被锁成 admin 的输入框：灰一点，表示这一格由勾选接管 */
.sns-form input.is-locked {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}



/* ========== 第九批：签名条（原「今天的心情」）—— 有字才算「实」，右边按钮跟着点亮 ========== */
/* 空态：干净的白色线框（默认） */
.sns-space .sns-mood-form input[type="text"] {
    background: #fff;
    border: 1px solid #dde5f0;
    color: #475569;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* 空态按钮：白底蓝字描边款 */
.sns-space .sns-mood-form button {
    background: #fff;
    color: #2563eb;
    border: 1px solid #bcd2ef;
    box-shadow: none;
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sns-space .sns-mood-form button:hover {
    background: #f4f8ff;
    border-color: #93b8e8;
}
/* 有字（JS 给表单加 .has-txt）：输入框变成一块实体 */
.sns-space .sns-mood-form.has-txt input[type="text"] {
    background: #f4f9ff;
    border-color: #a6c4ee;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06), 0 3px 10px -6px rgba(37, 99, 235, .55);
}
/* 有字时聚焦：蓝描边 + 光圈，覆盖上面的填充样式 */
.sns-space .sns-mood-form input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
/* 有字：按钮从描边款变成实心蓝渐变 + 投影（「变色」） */
.sns-space .sns-mood-form.has-txt button {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .85);
}
.sns-space .sns-mood-form.has-txt button:hover {
    background: linear-gradient(180deg, #2f76ee, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .95);
}
/* 签名：保存后只显示文字，不再常驻输入框（点「改」才展开编辑） */
.sns-sign {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    margin: 8px 0 0;
    padding: 6px 8px 6px 11px;
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #93b8e8;
    border-radius: 8px;
}
.sns-sign .sns-sign-txt {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    word-break: break-word;
}
.sns-sign .sns-sign-edit {
    flex: 0 0 auto;
    padding: 2px 9px;
    background: #fff;
    color: #2563eb;
    border: 1px solid #bcd2ef;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.sns-sign .sns-sign-edit:hover {
    background: #f4f8ff;
    border-color: #93b8e8;
}
.sns-mood-form.is-hidden,
.sns-sign.is-hidden {
    display: none;
}
/* 邮箱验证状态（个人资料设置页） */
.mail-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.mail-state.is-ok {
    color: #0f6b3f;
    background: #f1faf4;
    border: 1px solid #cde9d9;
}
.mail-state.is-wait {
    color: #8a5300;
    background: #fff8ea;
    border: 1px solid #f2ddb0;
}
.mail-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mail-state.is-ok .mail-dot { background: #17a673; }
.mail-state.is-wait .mail-dot { background: #e0a106; }
.mail-resend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.mail-tip { color: #94a3b8; font-size: 12px; }
/* 会员中心（个人收款码 + 人工核销） */
.vip-wrap { max-width: 900px; margin: 0 auto; }
.vip-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 18px 20px; border-radius: 12px;
    background: #fff; border: 1px solid #e5e9f0;
}
.vip-hero.is-vip { border-color: #cfe0fb; background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%); }
.vip-hero-title { font-size: 17px; font-weight: 600; color: #0f172a; }
.vip-hero-sub { margin-top: 6px; font-size: 13px; color: #64748b; line-height: 1.7; }
.vip-hero-badge {
    flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    color: #fff; background: #2563eb;
}
.vip-alert {
    margin-top: 14px; padding: 10px 14px; border-radius: 8px;
    background: #fef2f2; border: 1px solid #f3d2d2; color: #b42318; font-size: 13px;
}
.vip-plans { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.vip-plan {
    position: relative; box-sizing: border-box; flex: 1 1 0; min-width: 160px;
    padding: 18px 16px; border-radius: 12px; background: #fff;
    border: 1px solid #e5e9f0; text-align: center;
}
.vip-plan.is-hot { border-color: #b9d1f5; background: #f8fbff; box-shadow: 0 6px 18px rgba(37, 99, 235, .08); }
.vip-plan-tag {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
    color: #fff; background: #2563eb; white-space: nowrap;
}
.vip-plan-name { font-size: 14px; color: #475569; }
.vip-plan-price { margin: 8px 0 2px; font-size: 30px; font-weight: 700; color: #0f172a; }
.vip-plan-price span { font-size: 16px; font-weight: 600; margin-right: 2px; }
.vip-plan-days { font-size: 12.5px; color: #94a3b8; margin-bottom: 12px; }
.vip-plan form { margin: 0; }
.vip-plan-btn { width: 100%; }
.vip-order .vip-pay { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.vip-pay-left { flex: 1 1 300px; min-width: 260px; }
.vip-amount { font-size: 34px; font-weight: 700; color: #0f172a; line-height: 1.1; }
.vip-amount span { font-size: 18px; margin-right: 2px; }
.vip-pay-hint { margin-top: 6px; font-size: 13px; color: #64748b; }
.vip-remark { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #475569; }
.vip-remark code {
    padding: 4px 10px; border-radius: 6px; background: #f4f8ff;
    border: 1px solid #cfdefa; font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13.5px; color: #1d4ed8; letter-spacing: .5px;
}
.vip-tip { margin-top: 8px; font-size: 12px; color: #94a3b8; }
.vip-pay-right { flex: 0 0 auto; text-align: center; }
.vip-qr { width: 208px; height: auto; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; }
.vip-qr-hint { margin-top: 6px; font-size: 12px; color: #94a3b8; }
.vip-hr { border: 0; border-top: 1px solid #eef2f7; margin: 18px 0; }
.vip-state { padding: 14px 16px; border-radius: 10px; }
.vip-state.is-ok { background: #f1faf4; border: 1px solid #cde9d9; }
.vip-state.is-wait { background: #fff8ea; border: 1px solid #f2ddb0; }
.vip-state.is-bad { background: #fef2f2; border: 1px solid #f3d2d2; }
.vip-state-title { font-size: 15px; font-weight: 600; color: #0f172a; }
.vip-state-sub { margin-top: 6px; font-size: 13px; color: #475569; line-height: 1.7; }
.vip-hist-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid #f1f5f9;
    font-size: 13px; color: #475569; text-decoration: none;
}
.vip-hist-row:last-child { border-bottom: 0; }
.vip-hist-row:hover { color: #1d4ed8; }
.vip-hist-t { flex: 0 0 128px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.vip-hist-p { flex: 1 1 auto; }
.vip-hist-a { flex: 0 0 78px; font-variant-numeric: tabular-nums; }
.vip-pill { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.vip-pill.is-wait { background: #f2f5f9; color: #475569; }
.vip-pill.is-review { background: #fff8ea; color: #8a5300; }
.vip-pill.is-ok { background: #f1faf4; color: #0f6b3f; }
.vip-pill.is-reject { background: #fef2f2; color: #b42318; }
.vip-faq { margin: 6px 0 0; padding-left: 18px; color: #64748b; font-size: 13px; line-height: 1.9; }
.vip-note { margin-top: 14px; }
@media (max-width: 620px) {
    .vip-hero { flex-direction: column; align-items: flex-start; }
    .vip-pay { flex-direction: column; align-items: center; }
    .vip-pay-left { width: 100%; min-width: 0; }
    .vip-amount { text-align: center; }
    .vip-hist-t { flex-basis: 104px; font-size: 12px; }
    .vip-plan { flex: 1 1 100%; min-width: 0; }
}
/* 主页昵称后的 VIP 标识 */
.vip-badge {
    display: inline-block; vertical-align: middle;
    margin-left: 6px; padding: 1px 7px;
    border-radius: 999px; background: #2563eb; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .4px;
    line-height: 1.55; text-decoration: none;
}
/* 评论、私信、列表里的小号版本：比主页主徽章轻一点，避免满屏蓝块 */
.vip-badge-sm {
    margin-left: 4px; padding: 0 5px;
    font-size: 10px; letter-spacing: .3px;
}
/* 手机端订单标题：单号与套餐分行，不挤成竖排 */
@media (max-width: 620px) {
    .vip-order h3 { flex-wrap: wrap; gap: 4px; }
    .vip-order h3 small { flex-basis: 100%; text-align: left; }
}
/* 套餐卡里的收款码缩略图：进来就能看到 30 元那张 */
.vip-plan-qr { margin: 10px auto 12px; width: 180px; }
.vip-plan-qr img { display: block; width: 100%; height: auto; border: 1px solid #e5e9f0; border-radius: 8px; background: #fff; }
.vip-plan-qr-tip { margin-top: 4px; font-size: 11.5px; color: #94a3b8; line-height: 1.5; }
/* 游客提交后自动建号：账号密码展示 */
.vip-newacc h3 { margin-bottom: 8px; }
.vip-newacc .vip-creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.vip-newacc .vip-creds > div { display: flex; align-items: center; gap: 8px; background: #f3f7ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 8px 12px; }
.vip-newacc .vip-creds span { color: #64748b; font-size: 13px; }
.vip-newacc .vip-creds code { font-size: 15px; font-weight: 700; color: #1e3a8a; letter-spacing: .5px; }
.vip-mail { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #dbeafe; }
.vip-mail-title { color: #1e3a8a; font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.vip-mail-form { margin-top: 10px; }
.vip-mail-ok { margin-top: 10px; padding: 8px 12px; border: 1px solid #a7f3d0; border-radius: 8px; background: #ecfdf5; color: #047857; font-size: 13px; line-height: 1.6; }
/* 找回订单 */
.vip-recover-a { color: #2563eb; text-decoration: none; }
.vip-recover-a:hover { text-decoration: underline; }
.vip-recover-info { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.vip-recover-info > div { display: flex; align-items: center; gap: 8px; background: #f3f7ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 8px 12px; }
.vip-recover-info span { color: #64748b; font-size: 13px; }
.vip-recover-info code { font-size: 14px; font-weight: 700; color: #1e3a8a; }
