/* ============================================================
   乐闪快印资源站 · 前台全站圆角统一
   2026-11-28
   只覆盖视觉圆角/轻量阴影，不改布局和功能逻辑
   ============================================================ */

:root {
    --lsr-card: 12px;
    --lsr-card-lg: 16px;
    --lsr-control: 10px;
    --lsr-line: #f0d8ae;
    --lsr-paper: #fffdf8;
}

/* ---------- 通用卡片容器 ---------- */
.bm,
.bmw,
.bmw .bm,
.bm_h,
.bm_c,
.tl,
#threadlist,
.a_mu,
.sttl,
.slst,
.f_c,
.f_c.altw,
#uhd,
#ct.ct1,
#ct.ct2_a,
.ct2_a,
#postlist,
.post,
.sysx-body,
.dx-flash-frame,
.block,
.subforumshow,
.sub-forum,
.threadlist_box,
.threadlist,
.viewthread,
.view_tit,
.forumlist,
#login_unusual .bm {
    border-radius: var(--lsr-card);
}

/* 大卡片使用更明显的圆角，保持与授权页/签到页一致 */
.bm.bmw,
.bm.fl,
#threadlist,
#postlist,
#uhd,
#ct.ct1,
#ct.ct2_a,
.f_c.altw,
.searchform,
.slst,
.dx-flash-frame,
.threadlist_box,
.viewthread,
.forumlist {
    box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
}

/* 卡片头尾圆角，避免内部白底盖住外框 */
.bm > .bm_h:first-child,
.tl > .th:first-child,
#threadlist > .th:first-child,
.threadlist_box > .threadlist > ul > li:first-child,
.viewthread > .view_tit {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
}

.bm > .bm_c:last-child,
.ct2_a > .mn:last-child {
    border-radius: 0 0 var(--lsr-card) var(--lsr-card);
}

/* ---------- 个人资料 / 设置 ---------- */
#uhd {
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

#uhd .tb {
    border-radius: 0 0 var(--lsr-card-lg) var(--lsr-card-lg);
    overflow: hidden;
}

#ct.ct1,
#ct.ct2_a {
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card-lg);
    background: var(--lsr-paper);
    overflow: hidden;
}

#ct .tb,
#uhd .tb {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

#ct .tb li a,
#ct .tb li.a,
#uhd .tb li a,
#uhd .tb li.a {
    border-radius: 8px;
}

#ct .tb li,
#uhd .tb li {
    border-radius: 8px;
    overflow: hidden;
}

/* 首页 DIY 框架与标题条 */
.dx-hd {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
    overflow: hidden;
}

.frame,
.frame-title {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

.frame .frame-title {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
}

/* 用户组/积分表头横幅 */
.tdat h4 {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
}

/* 设置/消息/提醒等左侧菜单：每行单独圆角 */
#ct .appl li,
#ct .appl li.a,
#ct .appl li a {
    border-radius: 8px;
}

#ct .appl li {
    overflow: hidden;
}

/* ---------- 帖子列表 ---------- */
#threadlist {
    border: 1px solid var(--lsr-line);
    background: var(--lsr-paper);
    overflow: hidden;
}

#threadlist .th {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
}

/* 板块帖子列表底部“下一页”+分页条：合并为一张圆角卡片 */
#autopbn {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

#autopbn + script + .pgs {
    padding: 3px 12px;
    border: 1px solid var(--lsr-line);
    border-top: 0;
    border-radius: 0 0 var(--lsr-card) var(--lsr-card);
    background: #fcf6e6;
    overflow: hidden;
    box-sizing: border-box;
}

/* 筛选标签上方原生分隔线：去掉，保留标签本身描边 */
ul#thread_types.ttp.bm {
    border-top: 0 !important;
    border-radius: var(--lsr-card);
    overflow: hidden;
}

/* ---------- 帖子详情 ---------- */
#postlist {
    border: 1px solid var(--lsr-line);
    background: var(--lsr-paper);
}

#postlist .post {
    border-radius: var(--lsr-card);
}

.a_mu {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

.sysx-body {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

/* 帖子内联的橙色“免费技术支持”条 */
#postlist div[style*="background:#FEA526"],
#postlist div[style*="background: #FEA526"] {
    border-radius: 10px;
    overflow: hidden;
}

#postlist div[style*="border:1px solid #fea526"],
#postlist div[style*="border: 1px solid #fea526"] {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

/* ---------- 搜索页 ---------- */
body#nv_search #ct > .mw {
    background: var(--lsr-paper);
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card-lg);
    padding: 16px;
    box-sizing: border-box;
}

body#nv_search .searchform {
    background: #fff;
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card);
    padding: 14px 16px;
    box-sizing: border-box;
}

body#nv_search #scform {
    margin: 0;
}

body#nv_search #scform_srchtxt {
    border-radius: var(--lsr-control) 0 0 var(--lsr-control) !important;
}

body#nv_search #scform_submit {
    border-radius: 0 var(--lsr-control) var(--lsr-control) 0 !important;
}

body#nv_search .sttl {
    background: #fff7ed;
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-control);
    padding: 10px 14px;
}

body#nv_search #threadlist.slst {
    width: 100%;
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card);
    background: #fff;
    padding: 4px 14px;
    box-sizing: border-box;
    overflow: hidden;
}

body#nv_search #threadlist.slst li {
    padding: 12px 0;
}

/* ---------- 登录页 ---------- */
body#nv_member .f_c,
body#nv_member .f_c.altw {
    border: 1px solid var(--lsr-line);
    border-radius: var(--lsr-card-lg);
    background: var(--lsr-paper);
    overflow: hidden;
}

/* ---------- 异常登录提醒 ---------- */
#login_unusual,
#login_unusual .bm {
    border-radius: var(--lsr-card);
    overflow: hidden;
}

#login_unusual .bm_h {
    border-radius: var(--lsr-card) var(--lsr-card) 0 0;
}

#login_unusual .bm_c {
    border-radius: 0 0 var(--lsr-card) var(--lsr-card);
}

/* ---------- 输入与按钮 ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.sele,
.px,
.ps {
    border-radius: var(--lsr-control) !important;
}

button,
input[type="submit"],
input[type="button"],
.btn,
.pn,
.pnc,
.pgsbtn {
    border-radius: var(--lsr-control) !important;
}

/* ---------- 提示信息页 ---------- */
.jump_c,
.tip {
    border-radius: var(--lsr-card-lg);
    overflow: hidden;
}

/* ---------- 手机端 ---------- */
@media (max-width: 760px) {
    body#forum {
        background: #f7f4ed;
    }

    /* 手机端个人资料卡 */
    .myinfo_list,
    .myinfo_list_ico {
        border-radius: var(--lsr-card-lg) !important;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    /* 手机端搜索页 */
    .search {
        width: calc(100% - 24px) !important;
        box-sizing: border-box;
        margin: 10px 12px;
        padding: 10px;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    #scform_srchtxt,
    .search .mtxt {
        border: 1px solid var(--lsr-line) !important;
        border-right: 0 !important;
        border-radius: var(--lsr-control) 0 0 var(--lsr-control) !important;
    }

    .search .mbtn,
    #scform_submit {
        border-radius: 0 var(--lsr-control) var(--lsr-control) 0 !important;
    }

    .search-hot {
        width: calc(100% - 24px) !important;
        box-sizing: border-box;
        margin: 10px 12px;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    /* 手机端登录页 */
    #loginform {
        margin: 15px;
        padding: 15px;
        box-sizing: border-box;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    #loginform .px {
        width: 100% !important;
        box-sizing: border-box;
        border: 1px solid #e8dfcf !important;
        background: #fffdf8 !important;
    }

    #loginform .pn {
        width: 100% !important;
    }

    .tip {
        border-radius: var(--lsr-card-lg) !important;
        overflow: hidden;
    }

    /* 手机端底部固定导航 */
    .foot.flex-box {
        border-radius: var(--lsr-card-lg) var(--lsr-card-lg) 0 0;
        box-shadow: 0 -2px 12px rgba(167, 96, 0, .06);
    }

    body#forum .threadlist_box {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        box-sizing: border-box;
        margin: 10px 12px;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    /* 手机端首页轮播图 */
    body#forum .dx-imagefold-contents,
    body#forum .dx-flashbox {
        border-radius: var(--lsr-card-lg);
        overflow: hidden;
    }

    /* 手机端首页各内容块 */
    body#forum .dx-fold-contents {
        width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        box-sizing: border-box;
        border-radius: var(--lsr-card-lg);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    body#forum .viewthread div[style*="background:#FEA526"],
    body#forum .viewthread div[style*="background: #FEA526"],
    body#forum .viewthread div[style*="border:1px solid #fea526"],
    body#forum .viewthread div[style*="border: 1px solid #fea526"] {
        border-radius: 10px;
        overflow: hidden;
    }

    body#forum .threadlist {
        border-radius: 0;
        background: transparent;
    }

    body#forum .viewthread {
        margin: 10px 12px;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    body#forum .viewthread .view_tit {
        border-radius: var(--lsr-card-lg) var(--lsr-card-lg) 0 0;
    }

    body#forum .forumlist {
        margin: 10px 12px;
        border: 1px solid var(--lsr-line);
        border-radius: var(--lsr-card-lg);
        background: var(--lsr-paper);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(167, 96, 0, .045);
    }

    body#forum .forumlist .subforumshow {
        border-radius: var(--lsr-card-lg) var(--lsr-card-lg) 0 0;
    }

    body#forum .footer-nv,
    body#forum .footer-copy {
        border-radius: var(--lsr-card);
    }

    .mrbar-list,
    .mrbar-showbox,
    .mrbar-list-content {
        border-radius: var(--lsr-card-lg);
    }
}

/* ---------- 补充：发新帖下拉菜单、主题分类选择器、发帖额外选项 ---------- */
#newspecial_menu {
    border-radius: var(--lsr-card) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(167, 96, 0, .08);
}

#typeid_ctrl {
    border: 1px solid #e5edf2 !important;
    border-radius: var(--lsr-control) !important;
    background-clip: padding-box;
}

#typeid_ctrl_menu {
    border-radius: var(--lsr-control) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(167, 96, 0, .08);
}

#postbox label[id^="extra_"][id$="_b"] {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* ---------- 首页顶部标签胶囊与分类图标圆角（桌面端） ---------- */
@media (min-width: 761px) {
    #dx-images-hd li,
    #dx-threads-hd li,
    #dx-ranks-hd li {
        background: #fff !important;
        border-radius: 9px !important;
        overflow: hidden !important;
    }

    #dx-threads-hd li:not(.dx-first) {
        margin-left: 6px;
    }

    .fl_tb .fl_icn_g img[style*="width: 70px"] {
        border-radius: 14px !important;
    }
}


/* 搜索页：删除最外层底色圈，结果图片圆角 */
body#nv_search #ct > .mw {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body#nv_search #threadlist img {
    border-radius: 12px !important;
}


/* 登录页会员权益卡 */
.ls-vip-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 14px;
    padding: 14px 18px;
    border: 1px solid #ffd8a6;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf3 0%, #fff1dc 100%);
    box-shadow: 0 6px 18px rgba(255, 152, 0, .08);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.ls-vip-promo::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -48px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 77, .18), rgba(255, 183, 77, 0) 70%);
    pointer-events: none;
}
.ls-vip-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb340 0%, #ff8a00 100%);
    box-shadow: 0 4px 12px rgba(255, 138, 0, .32);
    position: relative;
    z-index: 1;
}
.ls-vip-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}
.ls-vip-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.2;
    color: #9a7355;
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.ls-vip-tag {
    display: inline-flex;
    align-items: center;
    height: 19px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff0d6;
    border: 1px solid #ffdfb0;
    color: #d97800;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}
.ls-vip-title {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: #ff7d00;
    letter-spacing: .2px;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .ls-vip-promo { padding: 12px 13px; gap: 10px; border-radius: 12px; }
    .ls-vip-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
    .ls-vip-title { font-size: 18px; }
    .ls-vip-tag { display: none; }
}


/* 搜索页：去掉搜索表单最外层白色边框 */
body#nv_search .searchform {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* 系统版块版本选择权益卡 */
.ls-sys-guide {
    padding: 17px 18px 16px;
    border: 1px solid #ffd8a6;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf3 0%, #fff1dc 100%);
    box-shadow: 0 6px 18px rgba(255, 152, 0, .08);
    position: relative;
    overflow: hidden;
}
.ls-sys-guide::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -55px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 77, .18), rgba(255, 183, 77, 0) 70%);
    pointer-events: none;
}
.ls-sg-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.ls-sg-icon {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffb340, #ff8a00);
    box-shadow: 0 4px 12px rgba(255, 138, 0, .3);
}
.ls-sg-heading { min-width: 0; }
.ls-sg-kicker { font-size: 11px; line-height: 1.2; color: #a47c5d; letter-spacing: 1px; margin-bottom: 3px; }
.ls-sg-title { font-size: 18px; line-height: 1.25; color: #5b3a1c; font-weight: 800; }
.ls-sg-tag {
    margin-left: auto; display: inline-flex; align-items: center; height: 24px;
    padding: 0 10px; border-radius: 999px; background: #fff0d6;
    border: 1px solid #ffdfb0; color: #d97800; font-size: 12px; font-weight: 600; letter-spacing: .4px;
}
.ls-sg-lead {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 13px 0 11px; padding: 9px 12px; border-radius: 10px;
    background: #fffdf9; border: 1px solid #f0dcc1; color: #79563a;
    font-size: 13px; position: relative; z-index: 1;
}
.ls-sg-lead-icon { color: #ff9a00; font-size: 14px; }
.ls-sg-lead b { color: #e87500; font-weight: 800; }
.ls-sg-stars { margin-left: auto; color: #ff9a00; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.ls-sg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; position: relative; z-index: 1; }
.ls-sg-item {
    padding: 10px 11px; border: 1px solid #f1dfc9; border-radius: 11px;
    background: #fffdf9; min-height: 84px; box-sizing: border-box;
}
.ls-sg-item.is-recommended {
    background: linear-gradient(135deg, #fff8ec, #ffefd4);
    border-color: #ffc56d; box-shadow: 0 3px 10px rgba(255, 152, 0, .08);
}
.ls-sg-item.is-note { background: #fdfbf6; border-style: dashed; }
.ls-sg-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #5b3a1c; }
.ls-sg-pill {
    display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
    border-radius: 999px; background: #fff0d6; border: 1px solid #ffdfb0;
    color: #d97800; font-size: 10px; font-weight: 600; line-height: 1;
}
.ls-sg-pill.gray { background: #f8f3ea; border-color: #ead8c2; color: #9b7658; }
.ls-sg-pill.purple { background: #f4edff; border-color: #e0d2f7; color: #8a62bd; }
.ls-sg-desc { margin-top: 5px; font-size: 12px; line-height: 1.6; color: #806048; text-align: left; }
.ls-sg-desc a { color: #e87500; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
    .ls-sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-sg-title { font-size: 17px; }
    .ls-sg-tag { display: none; }
}
@media (max-width: 560px) {
    .ls-sg-grid { grid-template-columns: 1fr; }
    .ls-sys-guide { padding: 13px 12px; }
    .ls-sg-lead { font-size: 12px; }
    .ls-sg-stars { display: none; }
    .ls-sg-item { min-height: 0; }
}


/* 帮助页搜索输入框：与右侧搜索按钮一致 */
body.pg_faq .pns .px {
    border: 1px solid #ffcc99 !important;
    box-sizing: border-box;
    height: 23px;
    background: #fff;
}
body.pg_faq .pns .px:focus {
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, .10);
}


/* 发帖/编辑页：标题行与底部积分规则留出安全边距 */
#postbox .pbt {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
#postbox .pbt .z {
    margin-left: 16px;
}
#postbox .pnpost {
    padding-right: 72px;
    box-sizing: border-box;
}
