/* ============================================================
 *  昵称的小屋 — 主样式表
 *  采用 CSS 变量统一管理颜色，便于后期换肤维护
 * ============================================================ */

/* ============================================================
 *   一、CSS 变量 & 设计令牌
 * ============================================================ */
:root {
    /* ---- 主配色 ---- */
    --color-pink-light:   #FFF0F5;   /* 极浅粉（卡片背景） */
    --color-pink:         #FFC0CB;   /* 页面背景粉 */
    --color-pink-deep:    #FFB6C1;   /* 深一点的粉 */
    --color-rose:         #E8A0B4;   /* 玫瑰色 */
    --color-brown-light:  #C9A9A9;   /* 浅棕灰（顶栏） */
    --color-brown-dark:   #4A2E2E;   /* 深棕（顶栏字） */
    --color-footer-bg:    #2C3E50;   /* 深蓝灰（底栏） */
    --color-footer-text:  #FFFFFF;   /* 白色 */
    --color-link:         #C0392B;   /* 链接红 */
    --color-link-hover:   #E74C3C;   /* 悬停亮红 */
    --color-accent:       #FF6B81;   /* 强调色（按钮、图标） */

    /* ---- 卡片（磨砂玻璃 / 透明塑料板） ---- */
    --card-bg:            rgba(255, 240, 245, 0.35);  /* 淡粉半透底 */
    --card-border:        rgba(255, 255, 255, 0.5);   /* 塑料板白边 */
    --card-shadow:        0 4px 24px rgba(200, 130, 145, 0.15);
    --card-shadow-hover:  0 8px 36px rgba(200, 130, 145, 0.28);
    --card-radius:        16px;

    /* ---- 字体 ---- */
    --font-calligraphy: "楷体", "KaiTi", "华文楷书", "STKaiti", serif;
    --font-body:        "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;

    /* ---- 间距 ---- */
    --spacing-xs:  4px;
    --spacing-sm:  8px;
    --spacing-md:  16px;
    --spacing-lg:  24px;
    --spacing-xl:  36px;
    --spacing-2xl: 48px;

    /* ---- 过渡 ---- */
    --ease-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
 *   二、全局重置 & 基础样式
 * ============================================================ */
html {
    scroll-behavior: smooth;          /* 全局平滑滚动 */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;                    /* sticky footer 基础 */
}

body {
    display: flex;
    flex-direction: column;             /* sticky footer */
    min-height: 100vh;
    /* 粉色渐变背景，从上到下由浅入深 */
    background: linear-gradient(180deg,
        #FFF0F5 0%,
        #FFC0CB 30%,
        #FFB6C1 70%,
        #F8A5B5 100%);
    background-attachment: fixed;
    text-align: center;
    font-family: var(--font-body);
    line-height: 1.7;
    color: #4A3535;
    overflow-x: hidden;
}

/* 全局 ::selection 选中文字颜色 */
::selection {
    background: var(--color-accent);
    color: #fff;
}


/* ============================================================
 *   三、浮动装饰元素
 * ============================================================ */
.floating-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;             /* 不阻挡鼠标点击 */
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 28px;
    opacity: 0.35;
    animation: floatAround 12s ease-in-out infinite;
}

/* 四个装饰物分别放在不同位置 + 不同动画延迟 */
.float-1 { top: 12%; left: 5%;  animation-delay: 0s;   font-size: 32px; }
.float-2 { top: 30%; right: 6%; animation-delay: -3s;  font-size: 24px; }
.float-3 { top: 55%; left: 8%;  animation-delay: -6s;  font-size: 28px; }
.float-4 { top: 70%; right: 4%; animation-delay: -9s;  font-size: 36px; }

@keyframes floatAround {
    0%, 100% { transform: translateY(0)    rotate(0deg); }
    25%      { transform: translateY(-20px) rotate(8deg); }
    50%      { transform: translateY(-8px)  rotate(-5deg); }
    75%      { transform: translateY(-28px) rotate(3deg); }
}


/* ============================================================
 *   四、顶部导航栏
 * ============================================================ */
.up-bar {
    flex-shrink: 0;
    width: 100%;
    /* 顶栏渐变：从玫瑰色过渡到浅棕 */
    background: linear-gradient(135deg, #D4B5B5 0%, #C9A9A9 50%, #D4B5B5 100%);
    color: var(--color-brown-dark);
    text-align: center;
    padding: 12px 6px 8px;
    box-sizing: border-box;
    position: relative;
}
.header-clock {
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 12px;
    color: inherit;
    opacity: 0.75;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
    z-index: 5;
}
@media (max-width: 600px) {
    .header-clock { font-size: 10px; left: 4px; top: 4px; }
}
    font-family: var(--font-calligraphy);
    position: relative;
    z-index: 10;
    overflow: visible;              /* 确保下拉菜单不被裁剪 */
    /* 底部轻微阴影，与内容区有层次感 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-star {
    font-size: 28px;
    animation: starPulse 2s ease-in-out infinite;
}

/* 两颗星交替闪烁 */
.header-star:last-child {
    animation-delay: -1s;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1);   opacity: 0.7; }
    50%      { transform: scale(1.25); opacity: 1; }
}

.up-bar h1 {
    margin: 4px 0;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: 6px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.header-subtitle {
    margin: 2px 0 0;
    font-size: 15px;
    font-family: var(--font-body);
    letter-spacing: 2px;
    opacity: 0.8;
}


/* ============================================================
 *   五、主体内容区
 * ============================================================ */
.content {
    flex: 1 0 auto;                    /* sticky footer：撑满 header 和 footer 之间 */
    width: 100%;
    max-width: 1100px;
    align-self: center;                /* flex 列中水平居中，替代 margin:0 auto */
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* 宽版内容区（私信页等需要更多空间） */
.content-wide {
    max-width: 1200px;
}
@media (max-width: 1240px) {
    .content-wide { max-width: 96vw; }
}

/* 私信两栏布局 */
.msg-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.msg-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.msg-main {
    flex: 1;
    min-width: 0;                      /* 防止flex子项溢出 */
}

/* 移动端私信叠放 */
@media (max-width: 700px) {
    .msg-layout {
        flex-direction: column;
    }
    .msg-sidebar {
        width: 100%;
    }
}


/* ============================================================
 *   六、通用卡片样式（透明塑料板 / 磨砂玻璃）
 * ============================================================ */
.card {
    /* 淡粉半透底 — 像一层薄塑料板覆在粉色背景上 */
    background: var(--card-bg);
    /* 塑料板边缘：一圈半透白边 */
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-md) auto;
    /* 关键：背景模糊 + 饱和度微提，模拟磨砂塑料 */
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    /* 入场过渡 */
    transition: transform var(--ease-smooth),
                box-shadow var(--ease-smooth),
                background var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* 卡片顶部高光线 — 模拟光线打在塑料板上的反光 */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent);
    pointer-events: none;
}

/* 卡片顶部色条装饰 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-rose);
    border-radius: 0 0 3px 3px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    background: rgba(255, 240, 245, 0.5);  /* 悬停更亮一点 */
}

.card-icon {
    font-size: 36px;
    margin-bottom: var(--spacing-sm);
}

.card h2,
.card h3,
.card h4 {
    margin: var(--spacing-sm) 0;
    color: #4A2E2E;
}

.card h2 { font-size: 22px; }
.card h3 { font-size: 18px; }
.card h4 { font-size: 20px; }

.card-subtitle {
    color: #8B6B7A;                  /* 不用纯灰，用淡紫棕融入整体 */
    font-size: 14px;
    margin: 0 0 var(--spacing-md);
}


/* ============================================================
 *   七、装饰分隔线
 * ============================================================ */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) auto;
    max-width: 400px;
    opacity: 0.6;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-rose),
        transparent);
}

.divider-icon {
    font-size: 18px;
    color: var(--color-rose);
    animation: heartBeat 2.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1);   }
    15%      { transform: scale(1.25); }
    30%      { transform: scale(1);   }
}


/* ============================================================
 *   八、B 站按钮
 * ============================================================ */
.btn-bilibili {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 10px 28px;
    background: linear-gradient(135deg, #FB7299, #F85B82);
    color: #fff !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(251, 114, 153, 0.4);
    transition: all var(--ease-smooth);
}

.btn-bilibili:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(251, 114, 153, 0.55);
    text-decoration: none !important;
    color: #fff !important;
}

.btn-bilibili:active {
    transform: translateY(0);
}


/* ============================================================
 *   九、普通链接
 * ============================================================ */
a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--ease-smooth);
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* ============================================================
 *   十、图片通用 & 分类
 * ============================================================ */
figure {
    margin: var(--spacing-md) auto;
    display: inline-block;
}

figcaption {
    font-size: 13px;
    color: #8B6B7A;
    margin-top: 6px;
}

img {
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto;
    transition: transform var(--ease-smooth),
                box-shadow var(--ease-smooth);
}

/* 图片悬停：微微放大 + 阴影加深 */
img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* 收款码 */
.img-donate {
    width: 22%;
    min-width: 150px;
    cursor: zoom-in;
    border-radius: 8px;
}

/* 答题卡 */
.img-exam {
    width: 48%;
    min-width: 260px;
}

/* 萌宠 */
.img-pet {
    width: 50%;
    min-width: 280px;
}

/* 学车之路 */
.img-car {
    width: 70%;
    min-width: 280px;
    max-width: 600px;
}

/* 学车文案 */
.car-description {
    max-width: 520px;
    margin: var(--spacing-md) auto 0;
    font-size: 14px;
    line-height: 1.8;
    color: #6B4E5A;
}

/* 答题卡画廊：两张并排 */
.exam-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.exam-gallery figure {
    flex: 0 1 auto;
}


/* ============================================================
 *   十一、底部信息栏
 * ============================================================ */
.bottom-bar {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(180deg, #2C3E50 0%, #1A252F 100%);
    color: var(--color-footer-text);
    text-align: center;
    padding: 24px 20px;
    box-sizing: border-box;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.footer-content p {
    margin: 4px 0;
    line-height: 1.8;
}

.footer-note {
    font-size: 12px;
    opacity: 0.7;
}

.footer-copyright {
    margin-top: var(--spacing-sm) !important;
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 1px;
}


/* ============================================================
 *   十二、返回顶部按钮
 * ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 129, 0.35);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity var(--ease-smooth),
                transform var(--ease-smooth),
                box-shadow var(--ease-smooth);
}

/* JS 控制显示 */
#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(255, 107, 129, 0.5);
}

#back-to-top:active {
    transform: translateY(0);
}


/* ============================================================
 *   十三、响应式适配
 * ============================================================ */
@media (max-width: 600px) {
    .up-bar h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .card {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-sm) auto;
        border-radius: 12px;
    }

    .img-donate {
        width: 50%;
        min-width: 120px;
    }

    .img-exam,
    .img-pet,
    .img-car {
        width: 90%;
        min-width: unset;
    }

    .exam-gallery {
        flex-direction: column;
        align-items: center;
    }

    .float-item {
        font-size: 20px;              /* 手机上浮动装饰缩小 */
    }

    #back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


/* ============================================================
 *   十四、登录/注册表单样式
 * ============================================================ */

/* 表单容器 */
.auth-form {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

/* 表单组 */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #5A3E48;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid #E8CFD5;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: #4A2E2E;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--ease-smooth),
                box-shadow var(--ease-smooth),
                background var(--ease-smooth);
}

.form-group input:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(232, 160, 180, 0.25);
    background: #fff;
}

.form-group input::placeholder {
    color: #C0A0AA;
}

/* 提交按钮 — 粉红渐变，和 B 站按钮风格一致 */
.btn-submit {
    display: block;
    width: 100%;
    margin-top: var(--spacing-lg);
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(255, 107, 129, 0.3);
    transition: all var(--ease-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 107, 129, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 错误提示 */
.auth-error {
    background: #FFF0F0;
    color: #D64550;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    margin: var(--spacing-sm) auto var(--spacing-md);
    max-width: 380px;
    text-align: center;
}

/* 表单底部切换链接 */
.auth-switch {
    margin-top: var(--spacing-lg);
    font-size: 14px;
    color: #999;
}

.auth-switch a {
    color: var(--color-rose);
}

/* 问候卡片中的登录/注册按钮 */
.greeting-actions {
    margin-top: var(--spacing-md);
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login,
.btn-register,
.btn-logout {
    display: inline-block;
    padding: 9px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all var(--ease-smooth);
}

.btn-login {
    color: #fff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    box-shadow: 0 4px 14px rgba(255, 107, 129, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 107, 129, 0.5);
    text-decoration: none;
    color: #fff;
}

.btn-register {
    color: var(--color-rose);
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--color-rose);
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-rose);
}

.btn-logout {
    color: #999;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 7px 20px;
}

.btn-logout:hover {
    color: #E74C3C;
    border-color: #E74C3C;
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.btn-admin {
    color: #B8860B;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #DAA520;
    font-size: 14px;
    padding: 7px 20px;
}

.btn-admin:hover {
    background: rgba(255, 215, 0, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
    color: #8B6914;
}

/* 手机端表单适配 */
@media (max-width: 600px) {
    .auth-form {
        max-width: 100%;
    }

    .greeting-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* ============================================================
 *   十五、管理员后台样式
 * ============================================================ */

/* 提示消息 */
.admin-msg {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
    text-align: center;
}

.admin-error {
    background: #FFF0F0;
    color: #C0392B;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
    text-align: center;
}

/* 表格外层滚动（窄屏时） */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 数据表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: var(--spacing-sm);
}

.admin-table th {
    background: rgba(232, 160, 180, 0.18);
    color: #4A2E2E;
    font-weight: bold;
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-rose);
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #F0E0E5;
    color: #5A3E48;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 192, 203, 0.15);
}

/* 管理员行高亮 */
.row-admin {
    background: rgba(255, 215, 0, 0.06);
}

.td-actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

/* 小按钮 */
.btn-sm {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--ease-smooth);
}

.btn-reset {
    background: #E8F0FE;
    color: #1A6FC4;
}

.btn-reset:hover {
    background: #D0E3FC;
}

.btn-delete {
    background: #FDE8E8;
    color: #C0392B;
}

.btn-delete:hover {
    background: #F8D0D0;
}

/* ---- 弹窗遮罩 ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 弹窗卡片 */
.modal-card {
    background: #FFFBFD;
    border-radius: var(--card-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #4A2E2E;
}

.modal-card #reset-username {
    color: #999;
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

/* 取消按钮 */
.btn-cancel {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #999;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--ease-smooth);
}

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

/* 手机端表格适配 */
@media (max-width: 600px) {
    .admin-table {
        font-size: 12px;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
    .td-actions {
        flex-direction: column;
    }
}


/* ============================================================
 *   十六、等级徽章 / VIP 标签 / 经验条
 * ============================================================ */

/* 徽章行 */
.badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}

/* 等级徽章 — 彩色胶囊 */
.badge-level {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* VIP 标签 — 金色闪光 */
.badge-vip {
    display: inline-block;
    background: linear-gradient(135deg, #FFB300, #FF8F00);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.4);
    animation: vipShine 2s ease-in-out infinite;
}

@keyframes vipShine {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 179, 0, 0.4); }
    50%      { box-shadow: 0 2px 16px rgba(255, 179, 0, 0.7); }
}

/* 经验进度条容器 */
.exp-bar-wrap {
    max-width: 320px;
    margin: 12px auto 0;
    text-align: center;
}

/* 进度条背景 */
.exp-bar {
    width: 100%;
    height: 8px;
    background: #F0E0E5;
    border-radius: 4px;
    overflow: hidden;
}

/* 进度条填充 */
.exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-rose), var(--color-accent));
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

/* 经验值文字 */
.exp-text {
    display: block;
    font-size: 12px;
    color: #B0A0A8;
    margin-top: 4px;
}

/* 管理员 EXP/VIP 小按钮 */
.btn-exp {
    background: #FFF3E0;
    color: #E65100;
}

.btn-exp:hover {
    background: #FFE0B2;
}

.btn-vip-btn {
    background: #FFF8E1;
    color: #F9A825;
}

.btn-vip-btn:hover {
    background: #FFECB3;
}


/* ============================================================
 *   十七、访问日志 / IP 监控样式
 * ============================================================ */

/* 统计概览卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
}

.stat-num {
    font-size: 36px;
    font-weight: bold;
    color: #4A2E2E;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.stat-warn {
    border-color: #FFCDD2;
    background: rgba(255, 240, 240, 0.7);
}

/* 过滤栏 */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-bar input,
.filter-bar button {
    font-family: var(--font-body);
}

/* 可疑 IP 行 */
.ip-suspicious {
    background: #FFF0F0 !important;
}

.ip-suspicious:hover {
    background: #FFE0E0 !important;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--color-rose);
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #E8CFD5;
    transition: all var(--ease-smooth);
}

.page-link:hover {
    background: var(--color-rose);
    color: #fff;
    text-decoration: none;
}

.page-active {
    background: var(--color-rose);
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

/* 小屏分页 */
@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-num {
        font-size: 24px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar input {
        width: 100% !important;
    }
}


/* ============================================================
 *   十八、个人主页 / 好友 / 编辑资料
 * ============================================================ */

/* 头像 */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 16px rgba(232,160,180,0.3);
}

/* 管理员徽章 */
.badge-admin {
    display: inline-block;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* 元信息网格 */
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    margin-top: 12px;
}

.meta-item {
    font-size: 14px;
    color: #6B4E5A;
}

.meta-label {
    color: #B0A0A8;
    font-size: 12px;
}

/* 操作按钮 */
.profile-actions {
    margin-top: 14px;
}

.btn-profile {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--ease-smooth);
}

.btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232,160,180,0.4);
}

.btn-friend-done {
    display: inline-block;
    padding: 8px 22px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
}

/* 我的主页按钮 */
.btn-myprofile {
    display: inline-block;
    padding: 7px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #8ECAE6, #64B5F6);
    box-shadow: 0 2px 8px rgba(100, 180, 246, 0.3);
    transition: all var(--ease-smooth);
}

.btn-myprofile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 180, 246, 0.5);
    text-decoration: none;
    color: #fff;
}

/* 资料明细行 */
.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F5ECF0;
}

.detail-label {
    min-width: 50px;
    font-weight: bold;
    color: #B0A0A8;
    font-size: 13px;
    padding-top: 2px;
}

.detail-value {
    color: #4A2E2E;
    font-size: 15px;
    flex: 1;
}

.detail-locked {
    color: #D0C0C8;
    font-size: 13px;
    font-style: italic;
}

.detail-bio {
    border-bottom: none;
}

/* 星座标签 */
.zodiac-tag {
    display: inline-block;
    background: #F3E5F5;
    color: #7B1FA2;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
}

/* 表单控件 */
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 15px;
    border: 1.5px solid #E8CFD5;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    color: #4A2E2E;
    outline: none;
    box-sizing: border-box;
    font-family: var(--font-body);
    transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(232,160,180,0.25);
    background: #fff;
}

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

/* 好友列表 */
.friend-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    transition: background var(--ease-smooth);
}

.friend-item:hover {
    background: rgba(255,255,255,0.8);
}

.friend-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4A2E2E;
    flex: 1;
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose), #F0C0D0);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-name {
    font-weight: bold;
}

/* 封禁横幅 */
.ban-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFF0F0, #FFE0E0);
    border: 2px solid #E74C3C;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: left;
}
.ban-banner-icon { font-size: 32px; }
.ban-banner strong { color: #C0392B; font-size: 15px; display: block; }
.ban-banner p { color: #A04040; font-size: 12px; margin: 2px 0 0; }


/* ============================================================
 *   十九、私信 / 搜索 / 未读 / 好友请求
 * ============================================================ */

/* 顶栏未读红点 */
.unread-dot-top {
    background: #E74C3C;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* 联系人列表 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    text-decoration: none;
    color: #4A2E2E;
    transition: background var(--ease-smooth);
}

.contact-item:hover {
    background: rgba(255,255,255,0.8);
}

.contact-unread {
    background: rgba(255, 235, 238, 0.6);
    border-left: 4px solid #E74C3C;
    position: relative;
}

/* 未读联系人右侧红点 */
/* 当前选中联系人 */
.contact-active {
    background: rgba(232, 160, 180, 0.2) !important;
    border-left: 4px solid var(--color-rose) !important;
}

.contact-unread::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #E74C3C;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

/* 私信两栏布局 */
.msg-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.msg-sidebar { width: 240px; flex-shrink: 0; }
.msg-main { flex: 1; min-width: 0; }
.contact-active {
    background: rgba(232, 160, 180, 0.2) !important;
    border-left: 4px solid var(--color-rose) !important;
}
@media (max-width: 700px) {
    .msg-layout { flex-direction: column; }
    .msg-sidebar { width: 100%; }
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-name {
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.contact-time {
    font-size: 12px;
    color: #B0A0A8;
    white-space: nowrap;
}

/* 未读数字徽章 */
.unread-badge {
    background: #E74C3C;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

/* 对话气泡 */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding: 8px 0;
    margin-bottom: 16px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    word-break: break-word;
}

.chat-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #FFE0EC, #FFD0E0);
    border-bottom-right-radius: 4px;
}

.chat-other {
    align-self: flex-start;
    background: #F5F5F5;
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 11px;
    color: #B0A0A8;
    margin-bottom: 3px;
    display: flex;
    gap: 8px;
}

.chat-content {
    font-size: 15px;
    line-height: 1.6;
    color: #4A2E2E;
}

.chat-time {
    font-weight: normal;
}

/* 发送框 */
.chat-send-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    border-top: 1px solid #F0E0E5;
    padding-top: 12px;
}

.chat-textarea {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid #E8CFD5;
    border-radius: 12px;
    resize: vertical;
    min-height: 44px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--ease-smooth);
}

.chat-textarea:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(232,160,180,0.2);
}

/* 发送错误提示 */
.chat-error {
    color: #D64550;
    font-size: 13px;
    text-align: center;
    background: #FFF0F0;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 搜索 */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 11px 18px;
    font-size: 16px;
    border: 1.5px solid #E8CFD5;
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.search-input:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(232,160,180,0.2);
}

/* 手机端对话 */
@media (max-width: 600px) {
    .chat-bubble {
        max-width: 90%;
    }
    .contact-time {
        display: none;
    }
    .search-form {
        flex-direction: column;
    }
    .search-input {
        width: 100%;
    }
}


/* ============================================================
 *   二十、右上角用户头像菜单（类 B 站）
 * ============================================================ */

.user-menu {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 50;
}

/* 头像按钮 */
.user-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* 头像上的红点徽章 — 脉冲动画引导注意 */
.avatar-badge {
    position: absolute;
    bottom: -3px;
    left: -3px;
    background: #E74C3C;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    border: 2px solid #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
    50%      { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

/* 顶栏未登录按钮 */
.btn-top-login {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-accent));
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all var(--ease-smooth);
}

.btn-top-login:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 下拉面板 */
.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 210px;
    background: #FFFBFD;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease-out;
    z-index: 60;
}

/* 桌面端 hover 显示 */
@media (hover: hover) {
    .user-menu:hover .user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 移动端/click 显示 */
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉头部 */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #F0E0E5;
    margin-bottom: 4px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-header strong {
    font-size: 14px;
    color: #4A2E2E;
    display: block;
}

/* 下拉菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    color: #4A2E2E;
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #FFF0F5;
    text-decoration: none;
    color: #4A2E2E;
}

/* 分割线 */
.dropdown-divider {
    height: 1px;
    background: #F0E0E5;
    margin: 4px 12px;
}

/* 退出登录 */
.dropdown-logout {
    color: #999;
    font-size: 13px;
}

.dropdown-logout:hover {
    color: #E74C3C;
}

/* 桌面端隐藏（移动端显示在 greeting-actions 中） */
.desktop-hide { display: none; }

/* 移动端隐藏用户菜单，改用首页卡片导航 */
@media (max-width: 600px) {
    .user-menu {
        display: none;
    }
    .desktop-hide {
        display: contents;   /* 让子元素直接参与父 flex 布局 */
    }
}


/* ============================================================
 *   二十一、论坛样式
 * ============================================================ */

.forum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-top: 10px; }
.forum-cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.45); border-radius: 12px; text-decoration: none; color: #4A2E2E; transition: all var(--ease-smooth); }
.forum-cat-card:hover { background: rgba(255,255,255,0.75); transform: translateY(-2px); text-decoration: none; color: #4A2E2E; }
.cat-icon { font-size: 28px; }
.cat-desc { font-size: 12px; color: #999; margin: 2px 0 0; }
.cat-count { margin-left: auto; font-size: 13px; color: var(--color-rose); font-weight: bold; }

.thread-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.thread-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(255,235,240,0.45); border-radius: 10px; transition: background var(--ease-smooth); border: 1px solid rgba(232,160,180,0.10); }
.thread-item:hover { background: rgba(255,225,232,0.7); }
.thread-link-cover { position: absolute; inset: 0; z-index: 3; }   /* 全覆层：整行可点（高于文字层） */
.thread-info { position: relative; z-index: 2; flex: 1; min-width: 0; }
.thread-info strong a { color: #4A2E2E; text-decoration: none; pointer-events: none; }  /* 标题链接穿透到覆层 */
.thread-info strong a:hover { color: var(--color-rose); }
.thread-meta a { position: relative; z-index: 4; pointer-events: auto; }  /* 用户链接保持独立可点 */
.thread-info { flex: 1; min-width: 0; }
.thread-info strong { display: block; margin-bottom: 2px; }
.thread-meta { font-size: 12px; color: #999; }
.thread-pin { display: inline-block; background: rgba(232,160,180,0.18); border-radius: 4px; padding: 1px 5px; margin-right: 6px; font-size: 13px; flex-shrink: 0; }
.thread-deleted { display: inline-block; background: rgba(231,76,60,0.12); color: #E74C3C; border-radius: 4px; padding: 1px 5px; margin-right: 6px; font-size: 12px; flex-shrink: 0; }

.thread-content { font-size: 15px; line-height: 1.8; color: #4A2E2E; word-break: break-word; margin: 8px 0; }

.post-item { padding: 12px 0; border-bottom: 1px solid #F0E0E5; }
.post-content { font-size: 14px; line-height: 1.7; color: #4A2E2E; margin: 6px 0; word-break: break-word; }
.post-quote { background: #FFF8F0; border-left: 3px solid #F9A825; padding: 6px 12px; margin: 6px 0; font-size: 13px; color: #8B6914; border-radius: 0 6px 6px 0; }

.post-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.post-img { max-width: 160px; max-height: 160px; border-radius: 8px; object-fit: cover; cursor: zoom-in; transition: transform 0.2s; }
.post-img:hover { transform: scale(1.05); }

/* ---- 图片灯箱 ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
    animation: lbFadeIn 0.2s ease;
}
.lightbox-overlay.active { display: flex; align-items: center; justify-content: center; }
.lightbox-overlay.closing { animation: lbFadeOut 0.2s ease; }
.lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 56px rgba(0, 0, 0, 0.6);
    cursor: default;
    animation: lbZoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    pointer-events: none;
    z-index: 10000;
}
@keyframes lbFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes lbZoomIn  { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sort-bar { display: flex; gap: 4px; }
.sort-btn { padding: 4px 12px; font-size: 13px; border-radius: 20px; text-decoration: none; color: #999; background: rgba(255,255,255,0.4); transition: all 0.2s; }
.sort-btn:hover { color: #4A2E2E; text-decoration: none; }
.sort-active { background: var(--color-rose); color: #fff !important; font-weight: bold; }

.btn-like { transition: all 0.2s; }
.btn-like.liked { background: #E8F0FE !important; color: #1A6FC4 !important; font-weight: bold; }

@media (max-width: 600px) {
    .forum-grid { grid-template-columns: 1fr; }
    .post-img { max-width: 100px; max-height: 100px; }
}


/* ============================================================
 *   二十二、微信浏览器绿色主题 & 兼容修复
 * ============================================================ */
.wechat {
    /* 绿色渐变背景 */
    background: linear-gradient(180deg, #F0FFF0 0%, #D4EDDA 30%, #A8E6CF 70%, #7BC8A4 100%) !important;
    background-attachment: fixed !important;
}
.wechat .up-bar {
    background: linear-gradient(135deg, #B7E0C5 0%, #8FD3A8 50%, #B7E0C5 100%) !important;
    color: #1B5E20 !important;
}
.wechat .up-bar a { color: #1B5E20 !important; }
.wechat .up-bar h1, .wechat .up-bar p { color: #1B5E20 !important; text-shadow: none; }
.wechat .header-subtitle, .wechat .header-subtitle a { color: #2E7D32 !important; }
.wechat .bottom-bar {
    background: linear-gradient(180deg, #1B5E20 0%, #0D3B0F 100%) !important;
}
.wechat .card {
    background: rgba(240, 255, 240, 0.4) !important;
    border-color: rgba(129, 199, 132, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.wechat .card:hover { background: rgba(240, 255, 240, 0.6) !important; }
.wechat .btn-submit, .wechat .btn-bilibili, .wechat .btn-profile {
    background: linear-gradient(135deg, #66BB6A, #43A047) !important;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35) !important;
}
.wechat .btn-submit:hover, .wechat .btn-bilibili:hover { box-shadow: 0 6px 22px rgba(76, 175, 80, 0.5) !important; }
.wechat .badge-level { text-shadow: none !important; }
.wechat .divider-icon { color: #66BB6A !important; }
.wechat .divider-line { background: linear-gradient(90deg, transparent, #66BB6A, transparent) !important; }
.wechat a { color: #2E7D32; }
.wechat a:hover { color: #1B5E20; }
.wechat .thread-meta a { color: #2E7D32; }
.wechat .thread-item { background: rgba(240,255,240,0.45) !important; border-color: rgba(129,199,132,0.15) !important; }
.wechat .thread-item:hover { background: rgba(220,245,220,0.7) !important; }
.wechat .thread-pin { background: rgba(129,199,132,0.2) !important; color: #2E7D32 !important; }
.wechat .card::before { background: #66BB6A !important; }
.wechat .sort-active { background: #66BB6A !important; }
.wechat .contact-unread { border-left-color: #43A047 !important; background: rgba(200,255,200,0.3) !important; }
.wechat .btn-login { background: linear-gradient(135deg, #66BB6A, #43A047) !important; box-shadow: 0 4px 14px rgba(76,175,80,0.3) !important; }
.wechat .btn-register { color: #2E7D32 !important; border-color: #66BB6A !important; }
.wechat .ban-banner { background: linear-gradient(135deg, #FFF0F0, #FFE0E0) !important; }
.wechat .forum-cat-card { background: rgba(240,255,240,0.45) !important; }
.wechat .forum-cat-card:hover { background: rgba(240,255,240,0.7) !important; }
.wechat .btn-myprofile { background: linear-gradient(135deg, #66BB6A, #388E3C) !important; box-shadow: 0 2px 8px rgba(76,175,80,0.3) !important; }
.wechat .btn-admin { color: #2E7D32 !important; border-color: #66BB6A !important; background: rgba(102,187,106,0.15) !important; }
.wechat .user-avatar-btn { border-color: rgba(255,255,255,0.8) !important; }
.wechat .dropdown-item:hover { background: #E8F5E9 !important; }
.wechat .unread-badge { background: #388E3C !important; }
.wechat .avatar-badge { background: #388E3C !important; }
.wechat .badge-vip { background: linear-gradient(135deg, #FFB300, #FF8F00) !important; }
.wechat .btn-exp { background: #E8F5E9 !important; color: #2E7D32 !important; }
.wechat .btn-exp:hover { background: #C8E6C9 !important; }
.wechat .btn-reset { background: #E8F5E9 !important; color: #2E7D32 !important; }
.wechat .badge-admin { background: linear-gradient(135deg, #DAA520, #B8860B) !important; }
.wechat .admin-error { background: #FFF0F0 !important; }
.wechat .admin-msg { background: #E8F5E9 !important; color: #2E7D32 !important; }
.wechat .chat-mine { background: linear-gradient(135deg, #E8F5E9, #C8E6C9) !important; }

/* 微信标识水印 */
.wechat .bottom-bar .footer-copyright::after {
    content: ' · 💚 微信版';
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}
.wechat .header-subtitle::after {
    content: ' 💚';
    font-size: 13px;
}

/* QQ 浏览器蓝色主题 */
.qq {
    background: linear-gradient(180deg, #F0F8FF 0%, #D6EAF8 30%, #AED6F1 70%, #85C1E9 100%) !important;
    background-attachment: fixed !important;
}
.qq .up-bar {
    background: linear-gradient(135deg, #B0D4F1 0%, #85C1E9 50%, #B0D4F1 100%) !important;
    color: #154360 !important;
}
.qq .up-bar a, .qq .up-bar h1, .qq .up-bar p { color: #154360 !important; text-shadow: none; }
.qq .header-subtitle, .qq .header-subtitle a { color: #1A5276 !important; }
.qq .bottom-bar { background: linear-gradient(180deg, #154360 0%, #0B2133 100%) !important; }
.qq .card {
    background: rgba(240,250,255,0.4) !important;
    border-color: rgba(133,193,233,0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.qq .card:hover { background: rgba(240,250,255,0.6) !important; }
.qq .btn-submit, .qq .btn-bilibili, .qq .btn-profile {
    background: linear-gradient(135deg, #3498DB, #2471A3) !important;
    box-shadow: 0 4px 14px rgba(52,152,219,0.35) !important;
}
.qq .btn-submit:hover, .qq .btn-bilibili:hover { box-shadow: 0 6px 22px rgba(52,152,219,0.5) !important; }
.qq .badge-level { text-shadow: none !important; }
.qq .divider-icon { color: #3498DB !important; }
.qq .divider-line { background: linear-gradient(90deg, transparent, #3498DB, transparent) !important; }
.qq a { color: #1A5276; }
.qq a:hover { color: #154360; }
.qq .thread-meta a { color: #1A5276; }
.qq .thread-item { background: rgba(235,245,255,0.45) !important; border-color: rgba(133,193,233,0.15) !important; }
.qq .thread-item:hover { background: rgba(220,240,255,0.7) !important; }
.qq .thread-pin { background: rgba(133,193,233,0.2) !important; color: #1A5276 !important; }
.qq .card::before { background: #3498DB !important; }
.qq .sort-active { background: #3498DB !important; }
.qq .contact-unread { border-left-color: #2471A3 !important; background: rgba(200,230,255,0.3) !important; }
.qq .btn-login { background: linear-gradient(135deg, #3498DB, #2471A3) !important; box-shadow: 0 4px 14px rgba(52,152,219,0.3) !important; }
.qq .btn-register { color: #1A5276 !important; border-color: #3498DB !important; }
.qq .btn-myprofile { background: linear-gradient(135deg, #3498DB, #1A5276) !important; }
.qq .btn-admin { color: #1A5276 !important; border-color: #3498DB !important; background: rgba(52,152,219,0.15) !important; }
.qq .dropdown-item:hover { background: #E8F4FD !important; }
.qq .unread-badge { background: #2471A3 !important; }
.qq .avatar-badge { background: #2471A3 !important; }
.qq .btn-exp { background: #E8F4FD !important; color: #1A5276 !important; }
.qq .btn-exp:hover { background: #D4E6F1 !important; }
.qq .btn-reset { background: #E8F4FD !important; color: #1A5276 !important; }
.qq .admin-msg { background: #E8F4FD !important; color: #1A5276 !important; }
.qq .chat-mine { background: linear-gradient(135deg, #E8F4FD, #D4E6F1) !important; }
.qq .bottom-bar .footer-copyright::after { content: ' · 💙 QQ版'; color: rgba(255,255,255,0.5); font-size: 11px; }
.qq .header-subtitle::after { content: ' 💙'; font-size: 13px; }


/* ============================================================
 *   二十三、VIP 金色主题
 * ============================================================ */
.vip .up-bar {
    background: linear-gradient(180deg, #FFF8E1 0%, #FFE082 50%, #FFD54F 100%) !important;
}
.vip .up-bar a, .vip .up-bar h1, .vip .up-bar p { color: #6D4C00 !important; text-shadow: none; }
.vip .header-subtitle, .vip .header-subtitle a { color: #8B6914 !important; }
.vip .bottom-bar { background: linear-gradient(180deg, #5D4037 0%, #3E2723 100%) !important; }
.vip .card {
    --card-bg: rgba(255, 248, 225, 0.4) !important;
    --card-border: rgba(212, 160, 23, 0.25) !important;
    --card-shadow: 0 4px 24px rgba(180, 140, 20, 0.15) !important;
    background: rgba(255, 248, 225, 0.4) !important;
    border-color: rgba(212, 160, 23, 0.25) !important;
}
.vip .card:hover { background: rgba(255, 245, 210, 0.55) !important; }
.vip .btn-submit, .vip .btn-bilibili, .vip .btn-profile {
    background: linear-gradient(135deg, #FFB300, #FF8F00) !important;
    box-shadow: 0 4px 14px rgba(255, 179, 0, 0.35) !important;
}
.vip .btn-submit:hover, .vip .btn-bilibili:hover { box-shadow: 0 6px 22px rgba(255, 179, 0, 0.5) !important; }
.vip .badge-level { text-shadow: none !important; }
.vip .divider-icon { color: #D4A017 !important; }
.vip .divider-line { background: linear-gradient(90deg, transparent, #D4A017, transparent) !important; }
.vip a { color: #8B6914; }
.vip a:hover { color: #6B4F10; }
.vip .thread-meta a { color: #8B6914; }
.vip .thread-item { background: rgba(255, 245, 215, 0.5) !important; border-color: rgba(212, 160, 23, 0.18) !important; }
.vip .thread-item:hover { background: rgba(255, 240, 195, 0.75) !important; }
.vip .thread-pin { background: rgba(212, 160, 23, 0.2) !important; color: #8B6914 !important; }
.vip .card::before { background: #D4A017 !important; }
.vip .sort-active { background: #D4A017 !important; }
.vip .contact-unread { border-left-color: #E6A800 !important; background: rgba(255, 235, 180, 0.35) !important; }
.vip .btn-login { background: linear-gradient(135deg, #D4A017, #B8860B) !important; box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35) !important; }
.vip .btn-register { color: #8B6914 !important; border-color: #D4A017 !important; }
.vip .ban-banner { background: linear-gradient(135deg, #FFF0F0, #FFE0E0) !important; }
.vip .forum-cat-card { background: rgba(255, 248, 220, 0.5) !important; }
.vip .forum-cat-card:hover { background: rgba(255, 243, 200, 0.75) !important; }
.vip .btn-myprofile { background: linear-gradient(135deg, #D4A017, #9E7600) !important; box-shadow: 0 2px 8px rgba(212,160,23,0.35) !important; }
.vip .btn-admin { color: #8B6914 !important; border-color: #D4A017 !important; background: rgba(212,160,23,0.15) !important; }
.vip .user-avatar-btn { border-color: rgba(212,160,23,0.5) !important; box-shadow: 0 0 8px rgba(255,179,0,0.25); }
.vip .dropdown-item:hover { background: #FFF8E1 !important; }
.vip .unread-badge { background: #D4A017 !important; }
.vip .avatar-badge { background: #D4A017 !important; }
.vip .badge-vip { background: linear-gradient(135deg, #FFD700, #FFA000) !important; box-shadow: 0 0 8px rgba(255,179,0,0.3); }
.vip .btn-exp { background: #FFF8E1 !important; color: #8B6914 !important; }
.vip .btn-exp:hover { background: #FFE082 !important; }
.vip .btn-reset { background: #FFF8E1 !important; color: #8B6914 !important; }
.vip .badge-admin { background: linear-gradient(135deg, #DAA520, #B8860B) !important; }
.vip .admin-error { background: #FFF0F0 !important; }
.vip .admin-msg { background: #FFF8E1 !important; color: #8B6914 !important; }
.vip .chat-mine { background: linear-gradient(135deg, #FFF8E1, #FFE082) !important; }
.vip .bottom-bar .footer-copyright::after { content: ' · 👑 VIP'; color: rgba(255,215,0,0.7); font-size: 11px; }
.vip .header-subtitle::after { content: ' 👑'; font-size: 13px; }
.vip .thread-deleted { background: rgba(231,76,60,0.12) !important; color: #E74C3C !important; }
.vip .btn-like.liked { background: #D4A017 !important; color: #fff !important; }


/* ============================================================
 *   二十四、封禁红色主题
 * ============================================================ */
.banned {
    --card-bg: rgba(255, 235, 235, 0.4) !important;
    --card-border: rgba(231, 76, 60, 0.2) !important;
    --card-shadow: 0 4px 24px rgba(200, 50, 30, 0.12) !important;
}
.banned .up-bar {
    background: linear-gradient(180deg, #2C0A0A 0%, #4A1010 50%, #5C1515 100%) !important;
}
.banned .up-bar a, .banned .up-bar h1, .banned .up-bar p { color: #F5C6C6 !important; text-shadow: none; }
.banned .header-subtitle, .banned .header-subtitle a { color: #E8A0A0 !important; }
.banned .bottom-bar { background: linear-gradient(180deg, #2C0A0A 0%, #1A0505 100%) !important; }
.banned .card {
    background: rgba(255, 235, 235, 0.4) !important;
    border-color: rgba(231, 76, 60, 0.2) !important;
    box-shadow: 0 4px 24px rgba(200, 50, 30, 0.12) !important;
}
.banned .card:hover { background: rgba(255, 225, 225, 0.55) !important; }
.banned .btn-submit, .banned .btn-bilibili, .banned .btn-profile {
    background: linear-gradient(135deg, #922B21, #7B241C) !important;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35) !important;
}
.banned .btn-submit:hover, .banned .btn-bilibili:hover { box-shadow: 0 6px 22px rgba(192, 57, 43, 0.5) !important; }
.banned .badge-level { text-shadow: none !important; }
.banned .divider-icon { color: #C0392B !important; }
.banned .divider-line { background: linear-gradient(90deg, transparent, #C0392B, transparent) !important; }
.banned a { color: #922B21; }
.banned a:hover { color: #7B241C; }
.banned .thread-meta a { color: #922B21; }
.banned .thread-item { background: rgba(255, 235, 235, 0.5) !important; border-color: rgba(231, 76, 60, 0.15) !important; }
.banned .thread-item:hover { background: rgba(255, 220, 220, 0.7) !important; }
.banned .thread-pin { background: rgba(231, 76, 60, 0.18) !important; color: #922B21 !important; }
.banned .card::before { background: #C0392B !important; }
.banned .sort-active { background: #C0392B !important; }
.banned .contact-unread { border-left-color: #C0392B !important; background: rgba(255, 225, 225, 0.35) !important; }
.banned .btn-login { background: linear-gradient(135deg, #C0392B, #922B21) !important; box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35) !important; }
.banned .btn-register { color: #922B21 !important; border-color: #C0392B !important; }
.banned .ban-banner { background: linear-gradient(135deg, #4A1010, #2C0A0A) !important; color: #F5C6C6 !important; border-color: #C0392B !important; }
.banned .forum-cat-card { background: rgba(255, 235, 235, 0.5) !important; }
.banned .forum-cat-card:hover { background: rgba(255, 220, 220, 0.75) !important; }
.banned .btn-myprofile { background: linear-gradient(135deg, #C0392B, #7B241C) !important; box-shadow: 0 2px 8px rgba(192,57,43,0.35) !important; }
.banned .btn-admin { color: #922B21 !important; border-color: #C0392B !important; background: rgba(192,57,43,0.15) !important; }
.banned .user-avatar-btn { border-color: rgba(231,76,60,0.5) !important; box-shadow: 0 0 8px rgba(192,57,43,0.25); }
.banned .dropdown-item:hover { background: #FDEDEC !important; }
.banned .unread-badge { background: #C0392B !important; }
.banned .avatar-badge { background: #C0392B !important; }
.banned .badge-vip { background: linear-gradient(135deg, #E74C3C, #C0392B) !important; }
.banned .btn-exp { background: #FDEDEC !important; color: #922B21 !important; }
.banned .btn-exp:hover { background: #F5B7B1 !important; }
.banned .btn-reset { background: #FDEDEC !important; color: #922B21 !important; }
.banned .badge-admin { background: linear-gradient(135deg, #C0392B, #7B241C) !important; }
.banned .admin-error { background: #4A1010 !important; color: #F5C6C6 !important; }
.banned .admin-msg { background: #FDEDEC !important; color: #922B21 !important; }
.banned .chat-mine { background: linear-gradient(135deg, #FDEDEC, #F5B7B1) !important; }
.banned .bottom-bar .footer-copyright::after { content: ' · 🚫 封禁中'; color: rgba(231,76,60,0.7); font-size: 11px; }
.footer-beian { font-weight: normal; font-size: 11px; margin-top: 2px; opacity: 0.7; }
.footer-beian a { color: inherit; text-decoration: none; }
.footer-beian a:hover { text-decoration: underline; }
.banned .header-subtitle::after { content: ' 🚫'; font-size: 13px; }
.banned .btn-like.liked { background: #C0392B !important; color: #fff !important; }
