@charset "utf-8";

/* ======== 从 user.css 迁移的公共布局样式 (2026-03-11) ======== */

blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0)
}


/* ---- smallnav 顶部导航条 ---- */
.smallnav { width: 100%; height: 40px; background: #3266a0; }
.smallnav .cont { width: 1000px; height: 40px; line-height: 40px; margin: 0 auto; color: #fff; }
.smallnav .cont a { color: #fff; }
.smallnav .cont .r a:hover { text-decoration: none; }
.smallnav .cont .l { float: left; }
.smallnav .cont .r { float: right; }

/* ---- top 头部区域 ---- */
.top {  width: 100%; height: 62px; background: #fff; }
.top .cont { width: 1000px; height: 60px; color: #ccc; margin: 0 auto; border-bottom: 2px solid #3266a0; }
.top .cont .l { float: left; margin-top: 7px; }
.top .cont .m { float: left; font-size: 20px; font-weight: bold; line-height: 30px; padding-left: 10px; margin: 18px 0 0 15px; color: #053158; border-left: 1px solid #d1d1d1; }
.top .cont .m a { color: #3266a0; }
.top .cont .r { float: right; margin-top: 5px; }

/* ---- mb 面包屑基础 ---- */
.mb {  color: #0066cc; line-height: 32px; width: 1000px; margin: 15px auto 0 auto; }
.mb a { color: #3266a0; }

/* ---- content 主布局 ---- */
.content {  width: 1000px; margin: 0 auto; }
.content .contL { float: left; width: 181px; }
.content .contR { float: right; }

/* ---- footer 页脚 ---- */
.footer {  width: 100%; height: 80px; margin-top: 20px; }
.footer .cont { width: 1000px; text-align: center; height: 80px; color: #666; margin: 0 auto; }
.footer .c1 a, .footer .c2 a { color: #666; }
.footer .cont .c2 { padding-top: 10px; font-size: 12px; }

/* ======== 原有页面组件样式 ======== */

/* 页面风格统一强一致性重置 */
.home-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}
.home-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.home-card-title i {
    margin-right: 8px;
    color: #6B8FBC;
    font-size: 18px;
}
.contR a {
    text-decoration: none !important;
}
.status-tag {
    display: inline-block;
    padding: 0 6px;
    background: #f5f5f5;
    color: #888;
    border-radius: 4px;
    font-size: 11px;
    height: 18px;
    line-height: 18px;
    margin-right: 8px;
}
.status-tag.active {
    background: #F0F2F5;
    color: #6B8FBC;
}
.status-tag.active i {
    color: #6B8FBC;
}
/* 统一按钮风格 */
.btn-custom {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f5ff;
    border: 1px solid #d6e4ff;
    border-radius: 6px;
    color: #4688C0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
}
.btn-custom:hover {
    background: #e6f0ff;
    border-color: #adc6ff;
    color: #2D649F;
    transform: translateY(-1px);
}
.btn-custom-primary {
    background: linear-gradient(135deg, #5b9bd5, #4688C0);
    border: none;
    color: #fff;
    box-shadow: 0 4px 10px rgba(70,136,192,0.2);
}
.btn-custom-primary:hover {
    background: linear-gradient(135deg, #6aa5db, #5b9bd5);
    color: #fff;
    box-shadow: 0 6px 14px rgba(70,136,192,0.3);
}
.action-link {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    font-size: 12px;
    margin-left: 5px;
    background: #fff;
}
.action-link:hover {
    border-color: #4688C0;
    color: #4688C0;
}
.action-link-orange {
    color: #CB0003;
    border-color: #ffd2c2;
    background: #fff9f7;
}
.action-link-orange:hover {
    border-color: #CB0003;
    background: #CB0003;
    color: #fff;
}

/* 签到特效 */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(70, 136, 192, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(70, 136, 192, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(70, 136, 192, 0);
        transform: scale(1);
    }
}
.btn-qiandao {
    padding: 0 16px; 
    height: 34px;
    line-height: 34px;
    font-size: 13px; 
    color: #fff !important; 
    border-color: #4688C0 !important; 
    background: linear-gradient(90deg, #5b9bd5, #4688C0) !important; 
    font-weight: bold;
    border-radius: 20px;
    animation: pulseGlow 1.2s infinite;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.btn-qiandao:hover {
    background: linear-gradient(90deg, #6aa5db, #5b9bd5) !important; 
    border-color: #5b9bd5 !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-qiandao-signed {
    padding: 0 16px; 
    height: 34px;
    line-height: 34px;
    font-size: 13px; 
    color: #52c41a !important; 
    border-color: #b7eb8f !important; 
    background: #f6ffed !important; 
    font-weight: 500;
    border-radius: 20px;
    cursor: default;
    animation: none !important;
    box-shadow: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.btn-qiandao-signed i {
    color: #52c41a !important;
    font-size: 16px !important;
    margin-right: 6px;
}

/* 等高对齐布局 */
@media screen and (min-width: 992px) {
    .home-flex-row {
        display: flex !important;
        align-items: stretch !important;
        flex-wrap: wrap;
    }
    .home-flex-row::before,
    .home-flex-row::after {
        display: none !important;
    }
    .home-flex-row > .layui-col-md8,
    .home-flex-row > .layui-col-md4 {
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .home-flex-col-left .home-card:last-child {
        flex: 1 !important; /* 让最近发布模块吃满高度 */
        margin-bottom: 0 !important;
    }
    .home-flex-col-right .home-card:last-child {
        margin-bottom: 0 !important;
    }
}

/* 左侧列：用户资料模块 */
.home-user-profile {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.home-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.home-user-avatar i {
    font-size: 36px;
    color: #c0c4cc;
}
.home-user-info {
    line-height: 28px;
}
.home-user-name {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}
.home-user-nickname {
    color: #888;
    font-size: 13px;
}
.home-user-level {
    margin-left: 15px;
    color: #E06100;
    font-weight: bold;
    font-size: 13px;
}
.home-user-expire {
    margin-left: 10px;
    color: #999;
    font-size: 12px;
}
.home-user-expire-warn {
    color: #CB0003;
    font-size: 12px;
    margin-left: 5px;
}
.home-user-auth {
    margin-top: 5px;
}
.home-user-auth-label {
    color: #888;
    font-size: 13px;
    margin-right: 5px;
}
/* ----------------VIP与特权视觉强化---------------- */
.vip-avatar {
    border: 2px solid #fadb14;
    background: linear-gradient(135deg, #fffbe6, #fff1b8);
    box-shadow: 0 4px 12px rgba(250, 219, 20, 0.2);
}
.vip-avatar i {
    color: #E06100 !important;
}
.vip-level {
    color: #E06100 !important;
    font-size: 13px !important;
    margin-left: 10px !important;
}
.home-user-expire-badge {
    background-color: #ffecec;
    color: #CB0003;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    border: 1px solid #ffccc7;
    white-space: nowrap;
}

/* ----------------互动式状态标签---------------- */
.status-btn-warning {
    display: inline-block;
    padding: 0 8px;
    background: #fffbe6;
    color: #fa8c16;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 11px;
    height: 20px;
    line-height: 18px;
    transition: all 0.2s;
    text-decoration: none !important;
}
.status-btn-warning:hover {
    background: #e0a800;
    color: #fff;
    border-color: #e0a800;
}

/* ----------------新资产看板---------------- */
.home-asset-board {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
.home-asset-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}
.home-asset-divider {
    width: 1px;
    background-color: #f0f2f5;
    margin: 15px 0;
}
.asset-title {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}
.asset-value {
    font-size: 22px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222;
    margin-bottom: 14px;
}
.asset-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.asset-value a:hover {
    color: #4688C0;
}
.asset-value.highlight {
    color: #E66C00;
}
.asset-value.v-normal, .asset-value.v-normal a {
    font-weight: normal;
}
.asset-unit {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
.asset-action {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.action-link-text {
    color: #4688C0;
    font-size: 13px;
}
.action-link-text:hover {
    color: #2D649F;
    text-decoration: underline !important;
}
.btn-sm {
    padding: 3px 12px !important;
    font-size: 12px !important;
}

/* ----------------右侧签到与快捷服务---------------- */
.home-signin-card {
    background: linear-gradient(to bottom right, #ffffff, #f4f9ff);
    border: 1px solid #dcebfe;
}
.home-signin-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-signin-info {
    flex: 1;
}
.home-signin-days {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap; /* 不换行 */
}
.home-signin-days b {
    color: #4688C0;
    font-weight: bold;
    font-size: 18px;
    margin: 0 4px; /* 两边加点间距 */
}
.home-signin-tips {
    color: #888;
    font-size: 12px;
}
.home-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.quick-link-item {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    padding: 14px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f2f5;
}
.quick-link-item i {
    font-size: 18px;
    margin-right: 10px;
}
.quick-link-item:hover {
    border-color: #d6e4ff;
    color: #2D649F;
    box-shadow: 0 4px 12px rgba(70,136,192,0.08);
    transform: translateY(-2px);
}

/* 最近发布hover变色 */
.layui-table tbody tr:hover {
    background-color: #fafafa;
}

.home-msg-card {
    padding: 14px 20px;
    background: #fffbe6;
    border-color: #ffe58f;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.05);
    transition: all 0.3s ease;
}
.home-msg-card:hover {
    background: #fff1b8;
    border-color: #ffd666;
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.1);
}
.home-msg-link {
    color: #d46b08;
    font-weight: 500;
    display: block;
    font-size: 14px;
    transition: color 0.3s ease;
}
.home-msg-link i {
    color: #fa8c16;
    margin-right: 6px;
    font-size: 15px;
}
.home-msg-card:hover .home-msg-link {
    color: #ad4e00;
}

.home-miniapp-card {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}
.home-miniapp-img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}
.home-miniapp-info {
    margin-left: 10px;
    overflow: hidden;
}
.home-miniapp-title {
    font-weight: bold;
    color: #333;
    font-size: 15px; /* 恢复原大标题字体 */
    margin-bottom: 6px;
}
.home-miniapp-desc {
    color: #888;
    font-size: 13px; /* 稍微调大一点点 */
    line-height: 1.5;
}
.home-miniapp-desc span.block-line {
    display: block; /* 强制换行 */
}
.home-miniapp-hl {
    color: #CB0003;
    font-weight: bold;
}

.home-banner-ad {
    margin-top: 20px;
}
.home-banner-ad img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* 最近发布的标题控制 */
.home-post-title {
    margin-bottom: 0;
}
.home-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.home-post-help {
    color: #999;
    margin-right: 15px;
}
.home-post-more {
    color: #999;
    font-size: 13px;
    transition: color 0.2s;
}
.home-post-more:hover {
    color: #666;
}

/* 小程序码动画与提示 */
.miniapp-img-wrapper {
    position: relative;
    z-index: 10;
}
.hover-zoom {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left center;
    position: relative;
    z-index: 11;
}
.home-miniapp-card:hover .hover-zoom {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
}
.miniapp-hover-tip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin-left: 0; /* 调大一点，避免初始状态重叠 */
    pointer-events: none;
}
.home-miniapp-card:hover .miniapp-hover-tip {
    opacity: 1;
    visibility: visible;
    margin-left: 15px; /* Offset to clear scaled image */
}

/* =========================================================================
   会员中心侧边栏及面包屑现代风格重构 (2026-03)
   ========================================================================= */

/* 面包屑重构 */
.modern-mb {
    width: 1000px;
    box-sizing: border-box;
    margin: 15px auto 20px auto;
    background-color: #f7f9fc;
    border-radius: 6px;
    padding: 8px 20px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    border: 1px solid #eef1f6;
}
.modern-mb a {
    color: #4688C0;
    text-decoration: none;
    transition: color 0.3s;
}
.modern-mb a:hover {
    color: #2D649F;
    text-decoration: underline;
}
.modern-mb .separator {
    margin: 0 10px;
    color: #ccc;
    font-size: 12px;
}

/* 侧边导航外壳重构 */
.modern-sidebar {
    width: 200px !important;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 0;
    border: 1px solid #efefef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    min-height: 600px;
}

/* 覆盖老版 content 的背景与边框，采用透明壳，实现 左右分离双卡片 结构 */
.content {
    background: transparent !important;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.content:after {
    display: none; /* Flex布局下不再需要清除浮动 */
}

/* 根据总宽1000px，左侧200px，右侧780px，留下20px呼吸缝隙 */
.content > .contR {
    width: 780px !important;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #efefef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    min-height: 600px;
    overflow: hidden; /* 防止内部带有 margin 的容器引发高度塌陷与下坠 */
}
.modern-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 导航项目 */
.modern-sidebar-item {
    display: block;
    margin: 4px 12px; /* 增加外边距，形成圆角块状感 */
}
.modern-sidebar-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* 调整内边距适应块状化 */
    color: #444;
    font-size: 15px;
    font-weight: 400; /* 原先有点单薄，如果是块状这粗细可以再观察 */
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 8px; /* 圆角化 */
    background-color: transparent; /* 默认无背景 */
    position: relative; /* 为红点定位提供基准 */
}
.modern-sidebar-item a i.layui-icon {
    font-size: 20px; /* 图标放大增强体量感 */
    margin-right: 12px;
    color: #888;
    transition: all 0.25s ease;
}

/* 导航项目 Hover 态 */
.modern-sidebar-item a:hover {
    background-color: #f5f8fc;
    color: #4688C0;
    transform: translateX(2px); /* 轻微右移效果 */
}
.modern-sidebar-item a:hover i.layui-icon {
    color: #4688C0;
}

/* 导航项目 选中态 (.active 将在 nav.asp 动态挂载) */
.modern-sidebar-item a.active {
    background-color: #eef5fb; /* 柔和浅蓝色底色 */
    color: #4688C0;
    font-weight: 500; /* 字重提升 */
    box-shadow: inset 3px 0 0 #4688C0; /* 内阴影代替左边框 */
}
.modern-sidebar-item a.active i.layui-icon {
    color: #4688C0;
}

/* 侧边栏分组虚线分隔 - 稍微弱化一点，或者删掉 */
.modern-sidebar-divider {
    border-top: 1px dashed #f0f0f0;
    margin: 10px 20px;
}

/* ======== 全局密码明文/密文切换组件 (2026-03-13) ======== */
.pwd-input-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.pwd-input-wrap .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 20;
    padding: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.toggle-password::before {
    content: "" !important;
    display: block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 默认灰色小眼睛图标 (#94a3b8) */
.layui-icon-eye-invisible::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.82l2.92 2.92C21.03 15.34 22.18 13.74 23 12c-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E") !important;
}

.layui-icon-eye::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") !important;
}

.pwd-input-wrap .toggle-password:hover::before {
    filter: brightness(0) saturate(100%) invert(50%) sepia(35%) saturate(836%) rotate(167deg) brightness(89%) contrast(92%); /* 悬浮由灰色转为蓝色 #4688C0 */
}

/* ======== “我的发布”空状态视觉增强样式 (2026-03-13) ======== */
.home-post-empty-wrap {
    background-color: #f7f9fc; /* 现代浅灰色背景 */
    border: 1px dashed #e2e8f0; /* 虚线增加引导感 */
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.home-post-empty-wrap:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}
.home-post-empty-wrap .empty-icon {
    font-size: 64px;
    color: #e2e8f0; /* 稍微调浅一点，避免图标过大显得太突兀 */
    margin-bottom: 12px;
}
.home-post-empty-wrap .empty-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 18px;
}
.home-post-empty-wrap .btn-empty-action {
    padding: 6px 20px !important;
    font-size: 13px !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(70,136,192,0.15);
}

/* ---------------- 侧边栏消息提醒小红点 ---------------- */
.nav-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #FF4D4F;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(255, 77, 79, 0.4);
    margin-left: 4px;
    vertical-align: 8px; /* 向上偏移，使其位于文字右上角 */
    position: relative;
    z-index: 5;
}
