
/* ===================== 全局变量 & 基础重置 ===================== */
:root {
    --color-primary: #6b5cff;
    --color-primary-hover: #836aff;
    --color-primary-active: #372ab9;
    --color-white: #ffffff;
    --color-primary-title: #1d2b5f;
    --color-second-title: #5a5e6b;
    --color-third-title: #8b8f9e;
    --color-fifth-title: #232529;
    --color-third-line: #e5e6eb;
    --color-fourth-fill: #eef2fa;
    --color-fifth-fill: #f0f2f5;
    --color-danger: #f54545;
    --color-red: #f54545;
    --color-primary-disabled-bg: #d6c9ff;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    /* ---- 卡片令牌(2026-10-28 加)----
     * ⚠ 之前装机页 / 我的配置页 / 个人中心页各写各的圆角(20/18/16)、
     *   边框(rgba(0,0,0,.02) / #eef2fa)、阴影(变量 / 硬编码),
     *   三个页面来回跳时"卡片描边感和圆角"对不上 → 立成变量统一。
     *   分层:
     *     --radius-card   页面级大卡(装机页主卡、配置卡、个人中心用户卡/导航卡)
     *     --radius-inner  卡内嵌套面板 / 统计小卡
     *     --border-card   卡片描边(统一 #eef2fa,别再用近乎看不见的 rgba(0,0,0,.02)) */
    --radius-card: 20px;
    --radius-inner: 14px;
    --border-card: #eef2fa;
}

* {
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
}
.xinyue_wp {
    width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}
.xinyue_wp_left {
    width: 740px;
}
.xinyue_wp_right {
    width: 320px;
}
@media screen and (max-width: 680px) {
    .xinyue_wp_left {
        width: 100%;
    }
    .xinyue_wp_right {
        width: 100%;
    }
    .xinyue_wp {
        width: 100%;
        gap: 0;
        flex-direction: column!important;
    }
    .pc{
        display: none;
    }
}
.tang_alayer .layui-layer-setwin {
    left: 6px;
    top: 6px;
    right: auto;
}
.tang_alayer .layui-layer-title {
    padding: 0 16px 0 16px;
    text-align: center;
    height: 44px;
    line-height: 44px;
}
.tang_alayer .layui-layer-setwin .layui-icon-close:before {
    content: '\e603';
}
.tang_alayer .layui-layer-setwin span{
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin-left: 0;
    font-size: 20px;
}
.tang_alayer .layui-layer-setwin .layui-layer-close2 {
    right: -32px;
    top: 0;
    line-height: 26px;
    border: 0;
    color: #2a2a2a;
    background-color: #ffffff;
}

.tang_layer{
    border-radius: 0;
    overflow: hidden;
}
.tang_layer.slideUp{
    border-radius: 28px 28px 0 0;
}

.tang_layer.radius{
    border-radius: 18px;
}

.tang_layer .layui-layer-title{
    padding: 0 81px 0 23px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.tang_layer .layui-layer-setwin {
    position: absolute;
    right: 12px;
    top: 10px;
}
.tang_layer .layui-layer-setwin .layui-layer-close {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

.tang_container {
    width: 100%;
    height: 100%;
    display: flex;
    background: #f4f2f6;
}
.layui-layer-dialog {
    border-radius: 28px;
    overflow: hidden;
}
.layui-layer-dialog .layui-layer-setwin {
    position: absolute;
    right: 12px;
    top: 10px;
}
.layui-layer-dialog .layui-layer-title {
    padding: 0 81px 0 23px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.layui-layer-dialog .layui-layer-setwin .layui-layer-close {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}
.layui-layer-dialog .layui-layer-btn .layui-layer-btn0 {
    background: var(--color-primary);
}
.layui-layer-dialog .layui-layer-btn {
    padding: 0 15px 15px;
}
.layui-layer-dialog .layui-layer-btn a {
    height: 34px;
    line-height: 34px;
    padding: 0 20px;
    border-radius: 100px;
}
.layui-layer-dialog .layui-layer-content {
    padding: 20px 23px;
    font-size: 15px;
    max-width: 400px;
}
/* layer 的提示图标是绝对定位(left:16px, 32px 宽),上面这条 padding 简写把
 * layer 自带的 55px 左内边距一起覆盖掉了 → 图标压在文字上(2026-11-12 站主截图报障)。
 * 只对带图标的弹框把左内边距补回来,纯文字弹框不变。 */
.layui-layer-dialog .layui-layer-content.layui-layer-padding {
    padding-left: 58px;
}
.layui-layer-msg .layui-layer-padding {
    padding: 18px 24px 18px 58px;
}



/* ============ 侧栏 2026-11-16 ============
 * 只收窄宽度 200→172：字号 14 / 行高 38 / 图标 18 / logo 32 全部保持原尺寸，别改小。
 * >=1000px 常驻展开；760~999px 浮起占 68px、悬停滑开 172px（不挤内容）；<760px 保持抽屉。
 * 已删 trial-badge / subtitle / draft-item / member-wrapper / divider-small（对应 HTML 均为注释态，恢复功能需补回）。
 * 防挤压：flex-shrink:0 + white-space:nowrap + overflow:hidden + sbIn 延迟淡入 —— 别删，删了品牌名会被挤成两行。*/
.zhuang_side_bar{width:172px;height:100%;padding:20px 12px 12px;box-sizing:border-box;background:#f4f2f6;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}
.zhuang_side_bar .logo{width:100%;height:36px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.zhuang_side_bar .logo .logo-brand{display:flex;align-items:center}
.zhuang_side_bar .logo .logo-brand img{width:32px;height:32px;margin:0 8px 0 6px}
.zhuang_side_bar .logo .logo-brand .brand-text{font-size:18px;font-weight:600;color:#232529;margin-top:2px}
.zhuang_side_bar .logo .operate-btn{width:30px;height:30px;border-radius:50%;background:#fffc;border:1px solid #bdbdce33;display:flex;align-items:center;justify-content:center;cursor:pointer}
.zhuang_side_bar .logo .operate-btn:hover{border-color:var(--color-primary-hover)}
.zhuang_side_bar .logo .operate-btn i{color:#4e5969;font-weight:700}
.zhuang_side_bar .content{position:relative;width:100%;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.zhuang_side_bar .content::-webkit-scrollbar{display:none}
.zhuang_side_bar .content:hover{scrollbar-width:unset}
.zhuang_side_bar .content:hover::-webkit-scrollbar{display:block}
.zhuang_side_bar .menu-group{width:100%;display:flex;flex-direction:column;gap:4px}
.zhuang_side_bar .menu-group .menu-item,.zhuang_side_bar .user-popover .pop-item{height:42px;padding:8px 14px;display:flex;align-items:center;border-radius:12px;cursor:pointer}
.zhuang_side_bar .menu-group .menu-item{width:100%;position:relative}
.zhuang_side_bar .menu-group .menu-item:hover:not(.active){background:#bdbdce24}
.zhuang_side_bar .menu-group .menu-item .item-icon{width:18px;height:18px;margin-right:10px}
.zhuang_side_bar .menu-group .menu-item .item-label{height:22px;line-height:22px;font-size:14px;color:#232529}
.zhuang_side_bar .menu-group .menu-item .item-badge{position:absolute;top:50%;transform:translateY(-50%);right:12px;min-width:17px;height:17px;line-height:17px;text-align:center;box-sizing:border-box;background:#f54545;color:#fff;font-size:10.5px;font-weight:700;border-radius:9px;padding:0 4px;display:none}
.zhuang_side_bar .menu-group .menu-item .item-badge:not(:empty){display:block}
.zhuang_side_bar .menu-group .menu-item.active{background:var(--color-white);box-shadow:0 1px 4px #d9d8e580;cursor:default}
.zhuang_side_bar .menu-group .menu-item.active .item-label{font-weight:700}
.zhuang_side_bar .divider{width:100%;border-top:1px solid #bdbdce33;margin:10px 0}
.zhuang_side_bar .user-wrapper{width:100%;background:#f4f2f6}
.zhuang_side_bar .user-popover{width:172px;margin-left:-12px;height:155px;padding:0 12px;box-sizing:border-box;background:#f4f2f6;transition:all .5s;overflow:hidden}
.zhuang_side_bar .user-popover.hidden{height:0;padding-top:0;padding-bottom:0}
.zhuang_side_bar .user-popover .shadow-top{position:relative;left:-12px;top:-12px;width:172px;height:18px;background:linear-gradient(0deg, #ececee, #f9f9fb00)}
.zhuang_side_bar .user-popover .pop-item{width:100%}
.zhuang_side_bar .user-popover .pop-item:hover{background:#bdbdce24}
.zhuang_side_bar .user-popover .pop-item i{margin-right:10px;font-weight:600;color:#232529}
.zhuang_side_bar .user-popover .pop-item span{font-size:14px;color:#232529}
.zhuang_side_bar .user-popover .pop-divider{width:100%;border-top:1px solid #bdbdce33;margin-top:10px}
.zhuang_side_bar .user-card{width:100%;padding:5px 10px;border-radius:12px;cursor:pointer}
.zhuang_side_bar .user-card:hover{background:#bdbdce24}
.zhuang_side_bar .user-card .user-row{width:100%;display:flex;justify-content:space-between;align-items:center}
.zhuang_side_bar .user-card .user-info{display:flex;flex:1;min-width:0;align-items:center;margin-bottom:10px}
.zhuang_side_bar .user-card .avatar{width:32px;height:32px;border-radius:50%;margin-right:10px}
.zhuang_side_bar .user-card .avatar img{width:100%;height:100%;border-radius:50%}
.zhuang_side_bar .user-card .user-name{position:relative;top:2px;height:24px;line-height:24px;font-size:14px;font-weight:700;color:#232529;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.zhuang_side_bar .user-card .user-arrow{flex-shrink:0}

/* === 760~999px：侧栏浮起来，68px 占位，悬停滑开（不挤内容） === */
@media (min-width:761px) and (max-width:999px){
.tang_container{position:relative}
.zhuang_side_bar{position:absolute;left:0;top:0;z-index:20;transition:width .22s,padding .22s,box-shadow .22s}
.zhuang_side_bar:hover{box-shadow:12px 0 32px rgba(20,28,45,.13)}
.xinyue_container{margin-left:68px}
.zhuang_side_bar:not(:hover){width:68px;padding:20px 6px 12px}
.zhuang_side_bar:not(:hover) .logo{flex-direction:column;justify-content:center;gap:4px;height:56px;margin-bottom:0}
.zhuang_side_bar:not(:hover) .logo .logo-brand img{width:28px;height:28px;margin:0}
.zhuang_side_bar:not(:hover) .logo .logo-brand .brand-text{display:none}
.zhuang_side_bar:not(:hover) .logo .operate-btn{width:24px;height:24px}
.zhuang_side_bar:not(:hover) .menu-group{align-items:center;gap:4px}
.zhuang_side_bar:not(:hover) .menu-group .menu-item{width:42px;height:42px;padding:0;justify-content:center}
.zhuang_side_bar:not(:hover) .menu-group .menu-item .item-icon{width:22px;height:22px;margin-right:0}
.zhuang_side_bar:not(:hover) .menu-group .menu-item .item-label{display:none}
.zhuang_side_bar:not(:hover) .menu-group .menu-item .item-badge{top:2px;right:2px;transform:none;min-width:8px;height:8px;line-height:8px;font-size:0;padding:0;border-radius:50%}
.zhuang_side_bar:not(:hover) .user-card{width:42px;padding:5px;margin:0 auto}
.zhuang_side_bar:not(:hover) .user-card .user-info{justify-content:center}
.zhuang_side_bar:not(:hover) .user-card .avatar{margin-right:0}
.zhuang_side_bar:not(:hover) .user-card .user-name,.zhuang_side_bar:not(:hover) .user-card .user-arrow{display:none}
/* 展开过程中防挤压 */
.zhuang_side_bar .logo .logo-brand,.zhuang_side_bar .logo .operate-btn,.zhuang_side_bar .user-card .user-arrow{flex-shrink:0}
.zhuang_side_bar .logo .logo-brand .brand-text,.zhuang_side_bar .menu-group .menu-item .item-label{white-space:nowrap}
.zhuang_side_bar .logo,.zhuang_side_bar .menu-group .menu-item,.zhuang_side_bar .user-card{overflow:hidden}
.zhuang_side_bar:hover .logo .logo-brand .brand-text{animation:sbIn .12s .12s both}
@keyframes sbIn{from{opacity:0}to{opacity:1}}
}

/* 主内容区 */
.xinyue_container {
    flex: 1;
    background: #ffffff;
    overflow-y: auto;
    padding: 24px 32px;
    min-width: 0;
}

/* 响应式 */
@media screen and (max-width: 760px) {
    .zhuang_side_bar {
        position: fixed;
        left: -200px;
    }
    .xinyue_container {
        padding: 0;
    }
}

/* ========== 翻页组件样式（保持不变） ========== */
.tang_pagelink {
    margin-top: 32px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.tang_pagelink-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.tang_pagelink-box a,
.tang_pagelink-box .tang_page,
.tang_pagelink-box .tang_current,
.tang_pagelink-box .tang_prev,
.tang_pagelink-box .tang_next,
.tang_pagelink-box .tang_first,
.tang_pagelink-box .tang_last {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    color: #5b6e8c;
    border: 1px solid transparent;
}
.tang_pagelink-box a.tang_page {
    color: #2d3e50;
}
.tang_pagelink-box a.tang_page:hover {
    background: #f0f2f8;
    border-color: #e2e8f0;
    color: #6c5ce7;
}
.tang_pagelink-box .tang_current {
    background: #6c5ce7;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
    border: none;
}
.tang_pagelink-box .tang_prev,
.tang_pagelink-box .tang_next,
.tang_pagelink-box .tang_first,
.tang_pagelink-box .tang_last {
    background: #f8f9fc;
    border: 1px solid #eef2f8;
    font-size: 16px;
}
.tang_pagelink-box .tang_prev:hover,
.tang_pagelink-box .tang_next:hover,
.tang_pagelink-box .tang_first:hover,
.tang_pagelink-box .tang_last:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: white;
}
.tang_pagelink-box .tang_prev i,
.tang_pagelink-box .tang_next i {
    font-style: normal;
    font-size: 18px;
    font-weight: 500;
}
.tang_pagelink-box .tang_disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    color: #a0b3cc;
}
.tang_pagelink-box .tang_disabled:hover {
    background: #f8fafc;
    border-color: #eef2f8;
    color: #a0b3cc;
    transform: none;
}
.tang_pagelink-box .tang_ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 14px;
    color: #8a9bb0;
    letter-spacing: 2px;
    user-select: none;
}
.tang_pagelink-box .tang_first,
.tang_pagelink-box .tang_last {
    font-weight: 600;
}
.tang_pagelink-box .tang_total {
    margin-left: 12px;
    padding-left: 12px;
    font-size: 13px;
    color: #8a9bb0;
    border-left: 1px solid #e2e8f0;
    font-weight: 400;
}
.xinyue_yczk {
    max-height: 380px;
    overflow: hidden;
    position: relative;
}
.xinyue_yczk .yczkqb {
    text-align: center;
    color: #5b4bc4;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 15px;
    z-index: 1;
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0px;
    height: 50px;
    line-height: 55px;
    background: linear-gradient(0deg, #fff, hsla(0, 0%, 100%, 0.6));
}
.xinyue_yczk .yczkqb span {
    display: inline-block;
    height: 24px;
    line-height: 25px;
    padding: 0 5px;
    cursor: pointer;
}
.tang-vip-topbar { background:linear-gradient(90deg,#fef7e6,#fdfaf3); border:1px solid #e0c890; border-radius:16px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tang-vip-topbar-left { display:flex; align-items:center; gap:10px; font-size:13px; color:#9f7114; font-weight:600; }
.tang-vip-topbar-icon { width:32px; height:32px; background:linear-gradient(135deg,#f6c66b,#d4a04a); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
.tang-vip-topbar-btn { background:linear-gradient(135deg,#f6c66b,#d4a04a); color:#fff; font-size:12px; font-weight:700; padding:6px 16px; border-radius:20px; border:none; cursor:pointer; box-shadow:0 2px 6px rgba(212,160,74,0.3); }
.layui-layer-iframe.radius12 {
    border-radius: 12px;
}
.layui-layer-iframe.radius12 iframe {
    border-radius: 12px;
}
@media (max-width: 640px) {
    .tang_pagelink-box {
        padding: 4px 10px;
        gap: 4px;
    }
    .tang_pagelink-box a,
    .tang_pagelink-box .tang_page,
    .tang_pagelink-box .tang_current,
    .tang_pagelink-box .tang_prev,
    .tang_pagelink-box .tang_next {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .tang_pagelink-box .tang_first,
    .tang_pagelink-box .tang_last {
        display: none;
    }
    .tang_pagelink-box .tang_total {
        display: none;
    }
    .tang_pagelink-box .tang_page:nth-child(n+7) {
        display: none;
    }
    .tang_pagelink-box .tang_ellipsis {
        display: inline-flex;
    }
}
