/* ============================================================
   修锁网 · 天下无锁论坛 专属皮肤 v4.2
   设计语言：浅灰底 + 白卡片 + 铜金点缀（延续锁匠铺气质，但走浅色现代风）
   布局：首页版块卡片网格 + 右侧栏卡片
   By 道士 2026-12-04
   ============================================================ */

/* ---------- 全局基调 ---------- */
body {
    background: #f2f3f5;
    color: #333;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

a { color: #8a6d3b; text-decoration: none; }
a:hover { color: #c9a86a; text-decoration: none; }
.xi2 { color: #8a6d3b; }
.xi2:hover { color: #c9a86a; }

.wp { width: 1080px; }
#wp { padding: 14px 0 28px; }

/* ============================================================
   顶栏 + 头部 + 导航（浅色）
   ============================================================ */
#toptb {
    background: #6b5322;
    color: #f0e6c8;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    border-bottom: 1px solid #5a4516;
}
#toptb .wp { width: 1080px; }
#toptb a { color: #f5ead2; }
#toptb a:hover { color: #ffd98a; }
#toptb .z a, #toptb .y a { color: #f5ead2; }

#hd {
    background: #fff;
    border-bottom: 1px solid #e8eaee;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
#hd .wp { width: 1080px; }
#hd .hdc { padding: 10px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#hd h2 { float: none; padding: 0; flex-shrink: 0; }
#hd h2 a { color: #2a2e35; font-size: 26px; font-weight: 800; text-decoration: none; line-height: 1.2; letter-spacing: .5px; }
#hd h2 a:hover { color: #8a6d3b; }
#hd h2 img { max-height: 44px; width: auto; display: block; }
/* 用户信息条：深棕胶囊（不再白底），一行不换行 */
#hd .hdc #um {
    float: none;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
    background: #6b5322;
    border-radius: 12px;
    padding: 7px 16px 6px !important;
    color: #f5ead2;
    box-shadow: 0 2px 6px rgba(107,83,34,.25);
    line-height: 1.9 !important;
    white-space: nowrap;
}
#hd .hdc #um a { color: #f5ead2; }
#hd .hdc #um a:hover { color: #ffd98a; }
#hd .hdc #um .pipe { color: rgba(255,255,255,.35); margin: 0 2px; }
#hd .hdc #um strong a { color: #ffd98a; }
#hd .hdc #um .avt { float: right; margin: 0 0 0 10px; }
#hd .hdc #um .avt img { border-radius: 6px; }
#hd .hdc #um p { display: inline; text-align: right; margin: 0; line-height: 1.9; }
#hd .hdc #um p + p { display: inline; }
/* 头部副标语（隐藏——LOGO 内已含副标语，避免挤占用户条空间） */
.xiusuo-slogan { display: none !important; }

#nv {
    background: #8a6d3b !important;
    background-image: none !important;
    height: 48px;
    line-height: 48px;
    border-top: 1px solid #7a5f33;
    box-shadow: 0 2px 6px rgba(138,109,59,.25);
}
#nv ul { height: 48px; }
#nv ul li { float: left; margin-right: 4px; height: 48px; line-height: 48px; background: none; font-weight: 500; }
#nv ul li a {
    color: #fff !important;
    padding: 0 18px;
    font-size: 14px;
    display: block;
    transition: all .18s ease;
    font-weight: 500;
    height: 48px;
    line-height: 48px;
}
#nv ul li a:hover { color: #fff !important; background: rgba(255,255,255,.18); }
#nv li.a a, #nv li.current a {
    color: #fff !important;
    font-weight: 700;
    background: #f2d9a4;
    color: #6b5322 !important;
    border: none;
}
#nv li.a a:hover, #nv li.current a:hover { background: #f5e2b6; color: #6b5322 !important; }
#qmenu { color: #6b5322 !important; font-weight: 700; }
#mu { background: #fff !important; border: none; border-top: 1px solid #f0f1f4; padding: 4px 12px; }
#mu a { color: #555; font-size: 12px; margin: 0 8px; }
#mu a:hover { color: #8a6d3b; }

/* 搜索条 */
#scbar {
    background: #fff !important;
    border: 1px solid #dfe2e8 !important;
    border-radius: 18px !important;
    height: 34px !important;
    margin: 8px 0 0 !important;
    overflow: hidden;
}
#scbar_txt { border: none !important; background: transparent !important; color: #333 !important; }
#scbar_btn { background: #c9a86a !important; color: #fff !important; border-radius: 0 17px 17px 0 !important; font-weight: 700; border: none; }

#pt { border: none !important; background: transparent !important; box-shadow: none !important; padding: 10px 0 6px !important; }
#pt .z a { color: #9aa1ad; }

/* ---------- 统计条 ---------- */
#chart {
    background: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 12px 18px !important;
    margin: 0 0 16px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
}
#chart .chart { font-size: 13px; color: #666; }
#chart .chart em { color: #8a6d3b; font-style: normal; font-weight: 700; }

/* ============================================================
   Hero+轮播 一体式：全宽大图 + 渐变遮罩 + 文案按钮叠加
   ============================================================ */
.xiusuo-hero.xiusuo-slider {
    position: relative;
    background: #2a2e35;
    border-radius: 14px;
    margin: 0 0 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    border: none;
    height: 300px;
    padding: 0;
}
.xiusuo-hero.xiusuo-slider .xiusuo-slider-track {
    display: flex;
    transition: transform .5s ease;
    height: 100%;
}
.xiusuo-hero.xiusuo-slider .xiusuo-slide {
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}
.xiusuo-hero.xiusuo-slider .xiusuo-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
/* 左渐暗遮罩（给文案让位） */
.xiusuo-hero.xiusuo-slider .xiusuo-slide::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    background: linear-gradient(90deg, rgba(20,22,28,.85) 0%, rgba(20,22,28,.55) 55%, transparent 100%);
}
/* 文案叠加层 */
.xiusuo-hero-overlay {
    position: absolute;
    left: 44px;
    top: 0;
    bottom: 0;
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
    color: #fff;
    pointer-events: none;
}
.xiusuo-hero-overlay h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: .5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.xiusuo-hero-overlay h2 .hero-accent { color: #e8b04b; }
.xiusuo-hero-overlay p {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    margin: 0 0 18px;
    line-height: 1.8;
    max-width: 520px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.xiusuo-hero-overlay .xiusuo-hero-btns {
    pointer-events: auto;
    margin: 0;
}
.xiusuo-hero-overlay .hero-btn {
    display: inline-block;
    background: #e8b04b;
    color: #1c1e24;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 30px;
    border-radius: 24px;
    margin-right: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    transition: all .18s ease;
}
.xiusuo-hero-overlay .hero-btn:hover { background: #f2bd5f; color: #1c1e24; transform: translateY(-1px); }
.xiusuo-hero-overlay .hero-btn.ghost {
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: none;
}
.xiusuo-hero-overlay .hero-btn.ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.xiusuo-hero.xiusuo-slider .xiusuo-slider-dots {
    position: absolute;
    right: 18px;
    bottom: 14px;
    left: auto;
    text-align: right;
    z-index: 5;
}
.xiusuo-hero.xiusuo-slider .xiusuo-slider-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.55);
}
.xiusuo-hero.xiusuo-slider .xiusuo-slider-dots span.active { background: #e8b04b; }
.xiusuo-hero.xiusuo-slider .xiusuo-slider-arrow {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.3);
    color: #fff;
}
.xiusuo-hero.xiusuo-slider .xiusuo-slider-arrow:hover { background: rgba(0,0,0,.55); color: #fff; }

@media (max-width: 760px) {
    .xiusuo-hero.xiusuo-slider { height: 200px; }
    .xiusuo-hero.xiusuo-slider .xiusuo-slide img { height: 200px; }
    .xiusuo-hero-overlay { left: 20px; width: 80%; }
    .xiusuo-hero-overlay h2 { font-size: 20px; }
    .xiusuo-hero-overlay p { display: none; }
    .xiusuo-hero-overlay .hero-btn { font-size: 12px; padding: 8px 18px; }
}

/* ============================================================
   版块卡片网格：等高卡片
   ============================================================ */

/* ============================================================
   双栏布局：flex 自适应，右栏固定，左列填满
   ============================================================ */
#ct.ct2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
#ct.ct2 > .mn {
    flex: 1;
    min-width: 0;
    float: none;
    margin-right: 0;
    width: auto;
}
#ct.ct2 > .sd {
    flex: 0 0 300px;
    width: 300px;
    float: none;
}
#ct:after { content: ""; display: block; clear: both; }

/* ============================================================
   版块卡片网格
   ============================================================ */
.xiusuo-cat {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
    border: 1px solid #eef0f4;
    overflow: hidden;
}
.xiusuo-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 8px;
    border-bottom: 1px solid #f3f4f7;
}
.xiusuo-cat-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.xiusuo-cat-head h3 a { color: #2a2e35; }
.xiusuo-cat-head h3 a:hover { color: #8a6d3b; }
.xiusuo-cat-total { font-size: 12px; color: #a5abb6; }
.xiusuo-cat-total em { color: #b08d3e; font-style: normal; font-weight: 700; }

/* 版块卡片网格：等高卡片 */
.xiusuo-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: transparent;
}
.xiusuo-fcard {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    transition: background .15s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.xiusuo-fcard:hover { background: #fdfbf5; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.xiusuo-fcard-top { display: flex; align-items: flex-start; }
.xiusuo-fcard-icon { flex-shrink: 0; margin-right: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.xiusuo-fcard-title { min-width: 0; flex: 1; }
.xiusuo-fcard-title h4 { margin: 0 0 3px; font-size: 14px; }
.xiusuo-fcard-title h4 a { color: #2a2e35; font-weight: 700; }
.xiusuo-fcard-title h4 a:hover { color: #8a6d3b; }
.xiusuo-fcard-title h4 .xs-today {
    display: inline-block;
    background: #c9a86a;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    padding: 0 7px;
    border-radius: 9px;
    margin-left: 6px;
    line-height: 18px;
}
.xiusuo-fcard-desc {
    margin: 0;
    font-size: 12px;
    color: #9aa1ad;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.xiusuo-fcard-stats {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eef0f4;
    font-size: 12px;
    color: #a5abb6;
    display: flex;
    gap: 10px;
    align-items: center;
}
.xiusuo-fcard-stats b { color: #666; font-weight: 600; }
.xiusuo-fcard-stats .xs-last { margin-left: auto; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xiusuo-fcard-stats .xs-last a { color: #8a6d3b; }

/* ============================================================
   右侧栏卡片
   ============================================================ */
.xiusuo-side-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
    border: 1px solid #eef0f4;
    margin-bottom: 14px;
    overflow: hidden;
}
.xiusuo-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f3f4f7;
}
.xiusuo-side-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: #2a2e35; position: relative; padding-left: 10px; }
.xiusuo-side-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: #c9a86a;
}
.xiusuo-side-more { font-size: 12px; color: #a5abb6; }
.xiusuo-side-more:hover { color: #8a6d3b; }
.xiusuo-side-body { padding: 8px 14px 12px; }
.xiusuo-side-list { list-style: none; margin: 0; padding: 0; }
.xiusuo-side-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f6f9;
    line-height: 1.5;
}
.xiusuo-side-list li:last-child { border-bottom: none; }
.xiusuo-side-title {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xiusuo-side-title:hover { color: #8a6d3b; }
.xiusuo-side-meta { font-size: 11px; color: #a5abb6; }
.xiusuo-side-meta b.xs-hotnum { color: #b08d3e; font-weight: 700; }
.xiusuo-online-num { font-size: 12px; color: #888; margin: 4px 0 8px; }
.xiusuo-online-num b { color: #b08d3e; }
.xiusuo-online-list { list-style: none; margin: 0; padding: 0; }
.xiusuo-online-list li { float: left; margin: 0 8px 6px 0; font-size: 12px; color: #666; }
.xiusuo-online-list li a { color: #555; }
.xiusuo-online-list li a:hover { color: #8a6d3b; }

/* 侧栏 diy 区 */
#sd .drag { background: transparent; }
#sd .area { width: auto; }

/* ============================================================
   轮播图：横向滑动卡片
   ============================================================ */
.xiusuo-slider {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
    border: 1px solid #eef0f4;
    margin: 0 0 16px;
    overflow: hidden;
}
.xiusuo-slider-track {
    display: flex;
    transition: transform .45s ease;
}
.xiusuo-slide {
    flex: 0 0 25%;   /* 每屏 4 张 */
    max-width: 25%;
    position: relative;
    overflow: hidden;
}
.xiusuo-slide a { display: block; position: relative; }
.xiusuo-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.xiusuo-slide-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 22px 10px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xiusuo-slider-dots {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}
.xiusuo-slider-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    margin: 0 3px;
    cursor: pointer;
    pointer-events: auto;
    transition: background .2s, transform .2s;
}
.xiusuo-slider-dots span.active { background: #c9a86a; transform: scale(1.3); }
.xiusuo-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 16px;
    z-index: 6;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none;
    border-radius: 4px;
}
.xiusuo-slider-arrow.prev { left: 6px; }
.xiusuo-slider-arrow.next { right: 6px; }
.xiusuo-slider:hover .xiusuo-slider-arrow { opacity: 1; }
.xiusuo-slider-arrow:hover { background: rgba(0,0,0,.6); color: #fff; }

@media (max-width: 760px) {
    .xiusuo-slide { flex: 0 0 50%; max-width: 50%; }
    .xiusuo-slide img { height: 140px; }
}

/* ============================================================
   页脚：暖灰深色
   ============================================================ */
#ft {
    background: #565d66;
    color: #dfe2e6;
    margin-top: 24px;
    border-radius: 0;
    border-top: 1px solid #4b525b;
    padding: 28px 0 14px;
}
.xiusuo-ft-cols { display: flex; justify-content: space-between; padding: 0 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.xiusuo-ft-col { flex: 1; padding-right: 30px; }
.xiusuo-ft-col h4 { color: #f0f2f5; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.xiusuo-ft-col p { font-size: 12px; color: #b8bec7; line-height: 1.9; margin: 2px 0; }
.xiusuo-ft-col a { color: #ccd2da; }
.xiusuo-ft-col a:hover { color: #e8b04b; }
.xiusuo-ft-col .ft-accent { color: #e8b04b; }
.xiusuo-ft-bottom { text-align: center; padding: 0 24px; }
.xiusuo-ft-bottom #flk p { color: #b8bec7; font-size: 12px; }
.xiusuo-ft-bottom a { color: #ccd2da; }
.xiusuo-ft-bottom a:hover { color: #e8b04b; }
.xiusuo-ft-bottom strong a { color: #e8b04b; }
#ft .pipe { color: #7d858f; }

/* ---------- 通用 ---------- */
.pn { border-radius: 6px !important; }
#lsform .px { border-radius: 6px !important; border: 1px solid #dfe3ea !important; }
#lsform .pn { background: #b08d3e !important; border-color: #b08d3e !important; border-radius: 6px !important; }
#lsform .pn em { color: #fff !important; }

@media (max-width: 760px) {
    .wp { width: 96% !important; }
    #hd .wp, #toptb .wp { width: 96% !important; }
    .xiusuo-hero { padding: 22px 18px; }
    .xiusuo-hero h2 { font-size: 20px; }
    .xiusuo-slogan { display: none; }
    #ct.ct2 > .mn { float: none; width: 100%; margin-right: 0; }
    #ct.ct2 > .sd { float: none; width: 100%; }
    .xiusuo-cat-grid { grid-template-columns: 1fr; }
    .xiusuo-ft-cols { flex-direction: column; gap: 14px; }
}