
/* ===================== 全局变量 & 基础重置 ===================== */
: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);
}

* {
    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: 28px;
}

.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;
}
.layui-layer-msg .layui-layer-padding {
    padding: 18px 24px 18px 58px;
}



/* ===================== 侧边栏（精简类名版） ===================== */
.zhuang_side_bar {
    width: 200px;
    height: 100%;
    padding: 20px 12px 12px;
    box-sizing: border-box;
    background-color: #f4f2f6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* 顶部 Logo 区域 */
.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-right: 8px;
    margin-left: 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 rgba(189, 189, 206, 0.2);
    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;
    left: 2px;
    width: calc(100% + 10px);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.zhuang_side_bar .content::-webkit-scrollbar {
    display: none;
}
.zhuang_side_bar .content:hover {
    scrollbar-width: unset;
    -ms-overflow-style: auto;
}
.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 {
    width: 216px;
    height: 38px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    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 .trial-badge {
    position: absolute;
    top: 10px;
    left: 120px;
    padding: 1px;
    height: 18px;
    border-radius: 140px;
    background: linear-gradient(270deg, #e46680, #9944e7 49%, #9162f9 95%);
    display: flex;
    align-items: center;
}
.zhuang_side_bar .menu-group .menu-item .trial-badge span {
    padding: 2px 6px;
    height: 16px;
    border-radius: 140px;
    background: white;
    font-size: 11px;
    background: linear-gradient(270deg, #ea6480 5%, #9644e1 51%, #7941f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* 激活菜单项 */
.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 rgba(189, 189, 206, 0.2);
    margin: 10px 0;
}
.zhuang_side_bar .divider-small {
    margin: 6px 0;
}

/* 副标题（近期创作区域，未启用但保留） */
.zhuang_side_bar .subtitle {
    position: relative;
    padding: 0 14px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    color: var(--color-third-title);
    margin-bottom: 4px;
}
.zhuang_side_bar .subtitle .more {
    position: absolute;
    top: 0;
    left: 182px;
    width: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}
.zhuang_side_bar .draft-list .draft-item {
    width: 216px;
    height: 38px;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--color-fifth-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zhuang_side_bar .draft-list .draft-item:hover {
    background: #bdbdce24;
}

/* 用户区域 */
.zhuang_side_bar .user-wrapper {
    background-color: #f4f2f6;
}
/* 用户下拉弹窗（默认隐藏） */
.zhuang_side_bar .user-popover {
    width: 200px;
    /*height: 244px;*/
    height: 104px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #f4f2f6;
    transition: all 0.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: 200px;
    height: 18px;
    background: linear-gradient(0deg, #ececee, #f9f9fb00);
}
.zhuang_side_bar .user-popover .pop-item {
    width: 188px;
    height: 38px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
}
.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 rgba(189, 189, 206, 0.2);
    margin-top: 10px;
}
/* 用户卡片 */
.zhuang_side_bar .user-card {
    width: 176px;
    padding: 5px 10px;
    margin-left: 12px;
    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 {
    width: 100%;
    display: flex;
    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;
}
/* 会员/积分卡片（未启用） */
.zhuang_side_bar .member-wrapper {
    position: relative;
    height: 55px;
}
.zhuang_side_bar .member-wrapper.compact {
    height: 30px;
}
.zhuang_side_bar .member-wrapper .member-card {
    width: 100%;
    height: 30px;
    padding: 8px 12px;
    border-radius: 100px;
    background: linear-gradient(137deg, #f7f4ff 4%, #fff 22%);
    border: 1px solid #efe7ff;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 0;
}
.zhuang_side_bar .member-wrapper .member-card img {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}
.zhuang_side_bar .member-wrapper .member-card .points-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-fifth-title);
}
.zhuang_side_bar .member-wrapper .upgrade-btn {
    position: absolute;
    right: 3px;
    top: 2px;
    padding: 0 10px;
    height: 24px;
    line-height: 24px;
    border-radius: 100px;
    background: linear-gradient(277deg, #6d82ff, #8964ff 44%, #b759ff 97%);
    text-align: center;
    font-size: 12px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* 主内容区 */
.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;
}
@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;
    }
}
