/* ==========================================================================
   促新线报站 —— 全局样式（PC / 移动端响应式）
   设计：轻卡片 + 京东红主色，桌面居中 1200px，移动端单列 + 底部导航
   ========================================================================== */

:root {
    --brand: #e1251b;
    --brand-2: #ff6a3d;
    --brand-soft: #fff1ef;
    --text: #1f2329;
    --text-2: #5c6570;
    --text-3: #98a1ad;
    --line: #eceff3;
    --bg: #f5f6f8;
    --card: #ffffff;
    --green: #16a34a;
    --blue: #2f6fed;
    --orange: #f59e0b;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 2px 10px rgba(24, 32, 45, .06);
    --shadow-lg: 0 10px 30px rgba(24, 32, 45, .1);
    --header-h: 60px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html{
    /* 微信内置浏览器(X5/Chromium)默认启用文本自动放大(text autosizing)，
       加载完成后会把整页字体/按钮放大导致布局变大、offsetTop 偏移；
       部分安卓 WebView/X5 内核只认 none 不认 100%，故显式 none 禁用，html/body 双重声明增强兼容 */
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
    overflow-y:auto;
    scrollbar-gutter:stable;
}
html, body { margin: 0; padding: 0; }

body {
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    padding-bottom: env(safe-area-inset-bottom);

}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 8px; }
code { background: #f2f3f5; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* ---------- 布局骨架 ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { min-height: calc(100vh - var(--header-h) - 94px); padding: 18px 0 40px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; } .fs-22 { font-size: 22px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 顶部导航 ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px; flex: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(225, 37, 27, .28);
}
.logo-sub { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500;
    transition: all .18s;
}
.nav a:hover { color: var(--text); background: #f2f3f5; }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
/* 第四批：顶部「工具」菜单 hover 展开子项（点击不展开） */
.nav .nav-item { position: relative; }
.nav .nav-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 168px;
    padding: 6px;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(31, 35, 41, .12);
    z-index: 60;
}
.nav .nav-item:hover .nav-drop { display: block; }
.nav .nav-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}
.nav .nav-drop a:hover { color: var(--brand); background: var(--brand-soft); }
.header-right { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .18s; white-space: nowrap;
}
.btn:hover { border-color: #d8dce2; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 14px rgba(225, 37, 27, .24);
}
.btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.btn-ghost { background: #fff; color: var(--brand); border-color: #ffd6d2; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 卡片 ---------- */
.card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid rgba(236, 239, 243, .9); overflow: hidden;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.card-body { padding: 18px; }
.card-body.pad-0 { padding: 0; }


/* ---------- 首页 Hero ---------- */
.hero {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(120deg, #e1251b 0%, #ff6a3d 55%, #ffa43d 100%);
    color: #fff; padding: 30px 28px; box-shadow: var(--shadow-lg);
}
.hero::after {
    content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.hero::before {
    content: ''; position: absolute; right: 70px; bottom: -100px; width: 180px; height: 180px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.hero h1 { font-size: 27px; letter-spacing: .5px; }
.hero p { color: rgba(255, 255, 255, .9); margin: 8px 0 0; font-size: 14px; }
.hero .btn { margin-top: 18px; background: #fff; color: var(--brand); border: none; position: relative; z-index: 2; }

/* ---------- 统计块 ---------- */
.stat {
    background: #fff; border-radius: var(--radius); padding: 16px 18px;
    box-shadow: var(--shadow); border: 1px solid rgba(236, 239, 243, .9);
}
.stat .label { color: var(--text-3); font-size: 12.5px; }
.stat .num { font-size: 23px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.stat .num.brand { color: var(--brand); }
.stat .num.blue { color: var(--blue); }
.stat .num.green { color: var(--green); }
.stat .num.orange { color: var(--orange); }

/* 作者小头像（线报列表/详情用户昵称前） */
.avatar-mini {
    width: 16px; height: 16px; border-radius: 50%; object-fit: cover;
    vertical-align: -3px; margin-right: 3px;
}
a.news-author:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 线报列表 ---------- */
.news-item {
    display: block; padding: 15px 18px; border-bottom: 1px solid var(--line); transition: background .16s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafbfc; }
.news-item h3 { font-size: 15.5px; line-height: 1.5; margin-bottom: 4px; }
.news-item .sum { color: var(--text-2); font-size: 13.5px; }
.news-meta { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; margin-top: 7px; flex-wrap: wrap; }

.tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: var(--brand-soft); color: var(--brand);
}
.tag.gray { background: #f2f3f5; color: var(--text-2); }
.tag.green { background: #eaf7ef; color: var(--green); }
.tag.blue { background: #eef4ff; color: var(--blue); }
.tag.orange { background: #fff6e6; color: var(--orange); }

/* 中奖滚动 */
.luck-list { max-height: 330px; overflow-y: auto; }
.luck-item { display: flex; gap: 10px; padding: 11px 18px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.luck-item:last-child { border-bottom: none; }
.luck-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
}
.luck-body { min-width: 0; }
.luck-body .who { color: var(--text-2); font-size: 12.5px; }

/* 时段排期 */
.slot { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.slot:last-child { border-bottom: none; }
.slot-time {
    flex: none; width: 56px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
}
.slot-body { min-width: 0; flex: 1; }
.slot-body .t { font-size: 13.5px; font-weight: 600; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
    width: 100%; height: 42px; padding: 0 13px; border: 1px solid #dfe3e8; border-radius: 10px;
    background: #fff; font-size: 14px; color: var(--text); transition: all .18s; font-family: inherit;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 13px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(225, 37, 27, .1); }
.input::placeholder { color: #b6bcc5; }
.form-tip { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar .input { width: auto; min-width: 150px; height: 38px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: #fafbfc; color: var(--text-2); font-weight: 600; font-size: 13px; }
.table tbody tr:hover { background: #fafbfc; }
.table td.ellipsis { max-width: 240px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 16px; flex-wrap: wrap; justify-content: center; }
.pager-item {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; display: inline-flex;
    align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
    font-size: 13.5px; color: var(--text-2); transition: all .16s;
}
a.pager-item:hover { border-color: var(--brand); color: var(--brand); }
.pager-item.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager-item.disabled { color: var(--text-3); background: #f7f8fa; }
.pager-total { color: var(--text-3); font-size: 12.5px; margin-left: 6px; }

/* ---------- 用户中心顶部导航（精致胶囊菜单） ---------- */
.user-nav {
    /* PC：两行栅格平铺全部菜单，避免横滑溢出；移动端在 @media 内切换为单行横滑 */
    display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-bottom: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.user-nav-item {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 999px; text-decoration: none;
    font-size: 13px; font-weight: 600; color: var(--text-2);
    background: #f6f7f9; border: 1px solid transparent; transition: all .18s;
}
a.user-nav-item:hover { color: var(--brand); background: var(--brand-soft); }
.user-nav-item.active {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, #e1251b, #ff6a3d);
    box-shadow: 0 4px 12px rgba(225, 37, 27, .25);
}
.user-nav-ico { font-size: 14px; line-height: 1; }

/* ---------- 用户中心 ---------- */
.user-hero {
    display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
    background: linear-gradient(120deg, #2b3446, #4a5670); color: #fff; box-shadow: var(--shadow-lg);
}
.user-hero .avatar { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.16); flex: none; object-fit: cover; display: block; }
.user-hero .nick { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-hero .sub { color: rgba(255,255,255,.78); font-size: 13px; margin-top: 4px; }
.user-hero .vip {
    display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, #ffd66b, #ffab2e); color: #7a4b00;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.side-nav a {
    padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500;
    display: flex; align-items: center; justify-content: space-between; transition: all .16s;
}
.side-nav a:hover { background: #f5f6f8; color: var(--text); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.side-nav .ico { width: 18px; text-align: center; margin-right: 10px; }

/* ---------- 登录页 ---------- */
.auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 20px;
    background: linear-gradient(135deg, #e1251b 0%, #ff6a3d 50%, #ffb03d 100%);
}
.auth-card {
    width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 30px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 6px 0 22px; }
.auth-foot { text-align: center; color: var(--text-3); font-size: 12.5px; margin-top: 18px; }

/* ---------- 提示条 ---------- */
.flash {
    display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 11px;
    font-size: 13.5px; margin-bottom: 14px; border: 1px solid transparent;
}
.flash.success { background: #eaf7ef; color: #16794a; border-color: #cceadb; }
.flash.error { background: #fdeeed; color: #b3261e; border-color: #f7d4d1; }
.flash.info { background: #eef4ff; color: #1f56c4; border-color: #d6e3fb; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .ico { font-size: 34px; opacity: .5; margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--line); background: #fff; color: var(--text-3);
    font-size: 12.5px; padding: 22px 0; text-align: center;
}
.footer a { color: var(--text-2); }

/* ---------- 移动端底部导航 ---------- */
.tabbar { display: none; }
@media (max-width: 820px) {
    .header .wrap { padding: 0 12px; }
    .nav { display: none; }
    .wrap { padding: 0 12px; }
    .grid-side { grid-template-columns: minmax(0, 1fr); }
    /* 线报筛选：搜索框 / 时间选择 / 筛选按钮一行显示 */
    .filter-bar { flex-wrap: nowrap; gap: 8px; }
    .filter-bar .input[type="text"] { flex: 1 1 auto; min-width: 0; width: 0; }
    .filter-bar select.input { flex: none; width: 96px; min-width: 0; padding: 0 6px; }
    .filter-bar .btn { flex: none; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 24px 20px; }
    .hero h1 { font-size: 22px; }
    .user-hero { padding: 18px; }
    .card-body { padding: 14px; }
    .main { padding: 12px 0 84px; }

    /* 用户中心导航：移动端单行横滑（PC 默认两行平铺） */
    .user-nav { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .user-nav::-webkit-scrollbar { display: none; }

    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
        backdrop-filter: saturate(180%) blur(12px);
    }
    .tabbar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: 11px; color: var(--text-3); padding: 4px 0;
    }
    .tabbar a .ico { font-size: 19px; line-height: 1; }
    .tabbar a.active { color: var(--brand); font-weight: 600; }
    /* 底部「工具」弹层面板 */
    .tabbar-tool-backdrop {
        position: fixed; inset: 0; z-index: 59; background: rgba(15, 18, 24, .38);
        animation: tabbarFade .18s ease;
    }
    .tabbar-tool-panel {
        position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 61; background: #fff; border: 1px solid var(--line); border-radius: 16px;
        box-shadow: 0 -10px 34px rgba(0, 0, 0, .16); padding: 14px 14px 12px;
        animation: tabbarUp .2s ease;
    }
    .tabbar-tool-title { font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
    .tabbar-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
    .tabbar-tool-item {
        display: flex; flex-direction: column; align-items: center; gap: 5px;
        padding: 8px 2px; border-radius: 10px; text-decoration: none;
        font-size: 12px; color: var(--text-2); transition: all .16s;
    }
    .tabbar-tool-item:hover { background: var(--brand-soft); color: var(--brand); }
    .tabbar-tool-ico { font-size: 22px; line-height: 1; }
    @keyframes tabbarUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes tabbarFade { from { opacity: 0; } to { opacity: 1; } }
    .hide-sm { display: none !important; }
    .table { min-width: 560px; }
    .pager-total { display: none; }
}

/* 打印/极致小屏微调 */
@media (max-width: 380px) {
    .hero h1 { font-size: 20px; }
    .stat .num { font-size: 20px; }
}

/* ---------- SVIP 标识 ---------- */
.vip-tag {
    display: inline-block; margin-left: 6px; padding: 0 6px;
    font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: .5px;
    color: #5a3600; border-radius: 999px; vertical-align: middle;
    background: linear-gradient(135deg, #ffe082, #ffb300);
    box-shadow: 0 1px 2px rgba(255, 152, 0, .35);
}
.vip-tag-lg { font-size: 12px; line-height: 20px; padding: 0 9px; }

/* ---------- 首页线报：标题跳详情、正文完整显示 ---------- */
.news-item .news-title { color: inherit; text-decoration: none; }
.news-item .news-title:hover { color: var(--brand); text-decoration: underline; }
.news-item .sum {
    margin-top: 6px; font-size: 13.5px; line-height: 1.85; color: var(--text-2);
    word-break: break-word; white-space: normal;
}
.news-item .sum p { margin: 0 0 6px; }
.news-item .sum p:last-child { margin-bottom: 0; }
.news-item .sum a { color: var(--brand); word-break: break-all; }
.news-item .news-detail-link { margin-left: auto; color: var(--brand); text-decoration: none; }
.news-item .news-detail-link:hover { text-decoration: underline; }
/* 正文内链接统一为品牌色：首页 / 线报列表 / 线报详情三处一致 */
.sum a, .article-body a { color: var(--brand); word-break: break-all; }
.sum a:hover, .article-body a:hover { text-decoration: underline; }
/* ---------- 线报详情正文（与首页正文同样式） ---------- */
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); word-break: break-word; }
.article-body p { margin: 0 0 8px; }
.article-body p:last-child { margin-bottom: 0; }

/* ---------- SVIP 京东账号管理 ---------- */
.jd-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.jd-card + .jd-card { margin-top: 14px; }
.jd-card .jd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jd-card .jd-head .jd-nick { font-size: 15.5px; font-weight: 700; }
.jd-card .jd-state { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.jd-cookie {
    margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
    background: #f6f7f9; color: var(--text-3); font-size: 12px; word-break: break-all;
}
.jd-form { margin-top: 12px; }
.jd-form textarea {
    width: 100%; height: auto; min-height: 88px; padding: 10px; font-size: 13px; line-height: 1.7;
    border: 1px solid var(--line); border-radius: 8px; resize: vertical;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.jd-form .form-row + .form-row { margin-top: 10px; }
.jd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 线报图片（wz_article_data.images） ---------- */
.news-thumb {
    display: block; flex: none; overflow: hidden; border: 1px solid var(--line);
    border-radius: 10px; background: #f4f5f7;
}
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 列表项图片放正文下方：单图 180x120，多图 3 列栅格 */
.list-thumb { width: 180px; height: 120px; }
/* 列表项带图时不再左右分栏，改为上下布局 */
.news-item.news-item-media { display: block; }
.news-item .news-main { min-width: 0; flex: 1; }
.news-item .news-main h3 { margin-bottom: 2px; }
/* 列表项多图：正文下方 3 列栅格 */
.news-thumbs.list-thumbs { display: grid; grid-template-columns: repeat(3, 96px); gap: 8px; margin: 10px 0 4px; }
.news-thumbs.list-thumbs .news-thumb { width: 96px; height: 96px; }
/* 首页卡片内的图片缩略图组 */
.news-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.news-thumbs .news-thumb { width: 78px; height: 78px; }
.news-thumbs .news-thumb:hover { border-color: var(--brand); }
/* 详情页图片墙 */
.article-gallery-wrap { border-bottom: 1px dashed var(--line); }
.gallery-title { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.article-gallery {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.article-gallery a {
    display: block; overflow: hidden; border: 1px solid var(--line);
    border-radius: 10px; background: #f4f5f7;
}
.article-gallery a:hover { border-color: var(--brand); }
.article-gallery img { display: block; width: 100%; height: 150px; object-fit: cover; }
/* 直连与走代理均失败时的降级样式 */
img.img-broken { opacity: .18; }

/* ---------- 后台：京东账号行内「登录 / 检测在线」 ---------- */
.jd-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jd-row-form { display: flex; align-items: center; gap: 6px; }
.jd-row-cookie {
    width: 190px; height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 优惠券活动报名（SVIP） ---------- */
.sign-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.sign-entry .btn { flex: none; }

/* Tab（复用 pager-item 外观） */
.sign-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sign-tabs .pager-item { cursor: pointer; font-family: inherit; font-size: 13px; width: auto; padding: 0 12px; }
.sign-tabs .pager-item.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* 记录 / 优惠券条目 */
.sign-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sign-item + .sign-item { margin-top: 10px; }
.sign-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sign-item-title { font-size: 14.5px; font-weight: 700; word-break: break-word; }
.sign-item-meta {
    display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px;
    color: var(--text-3); font-size: 12.5px; word-break: break-all;
}
.sign-item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag.red { background: #fdeeed; color: #b3261e; }

/* 教程折叠区 */
.sign-fold-head { cursor: pointer; user-select: none; }
.sign-fold-arrow { color: var(--text-3); font-size: 13px; }
.sign-tutorial { font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.sign-tutorial p { margin: 0 0 6px; }
.sign-tutorial-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.sign-tutorial-fig { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f4f5f7; }
.sign-tutorial-fig img { width: 100%; height: auto; }
.sign-tutorial-fig figcaption { padding: 6px 10px; font-size: 12px; color: var(--text-3); background: #fff; border-top: 1px solid var(--line); }
.sign-tutorial-warn { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdeeed; color: #b3261e; font-size: 13px; line-height: 1.9; }

/* 弹窗 */
.sign-modal {
    position: fixed; inset: 0; z-index: 900; padding: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(24, 32, 45, .55);
}
.sign-modal[hidden] { display: none; }
.sign-modal-box {
    width: 100%; max-width: 620px; max-height: 86vh; overflow: auto;
    background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-lg);
}
.sign-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px; font-size: 16px; font-weight: 700;
}
.sign-modal-close {
    border: none; background: transparent; color: var(--text-3);
    font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.sign-modal-pre {
    margin: 0; max-height: 46vh; overflow: auto; padding: 12px;
    background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px;
    font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
}

@media (max-width: 980px) {
    .sign-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .sign-tutorial-imgs { grid-template-columns: minmax(0, 1fr); }
    .sign-modal-box { padding: 14px; }
}
/* 报名 Cookie 来源端选择 */
.sign-channel { display: flex; gap: 18px; padding: 9px 12px; background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; }
.channel-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; margin: 0; }
.channel-opt input { width: auto; height: auto; }

/* ---------- 线报投票：值 / 不值 ---------- */
.vote-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.vote-label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.vote-btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: all .18s;
}
.vote-btn:hover { border-color: var(--brand); color: var(--brand); }
.vote-btn .vote-num { font-weight: 800; }
.vote-btn.active { border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(225, 37, 27, .25); }
.vote-btn.up.active { background: linear-gradient(135deg, #e1251b, #ff6a3d); }
.vote-btn.down.active { background: linear-gradient(135deg, #4a5670, #2b3446); }
.vote-tip { color: var(--text-3); }

/* ---------- 评论盖楼 ---------- */
.comment-wrap { border-top: 1px solid var(--line); }
.comment-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.comment-login-tip {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 16px; border: 1px dashed var(--line); border-radius: 12px;
    color: var(--text-2); background: #fafbfc; margin-bottom: 14px;
}
.reply-tip {
    padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; font-size: 13px;
    background: var(--brand-soft); color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.reply-tip b { color: var(--brand); }
.reply-cancel { color: var(--text-3); }
.reply-cancel:hover { color: var(--brand); }
.comment-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.comment-list { margin-top: 6px; }
.comment-item {
    padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.8;
}
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.comment-avatar {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #f2f3f5;
    border: 1px solid var(--line);
}
.comment-name { color: var(--brand); font-weight: 600; font-size: 13px; }
.comment-floor { color: var(--text-3); }
.comment-time { color: var(--text-3); }
.comment-reply {
    margin-left: auto; border: none; background: transparent; color: var(--text-3);
    font-size: 12.5px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.comment-reply:hover { color: var(--brand); background: var(--brand-soft); }
.comment-content { margin-top: 5px; word-break: break-word; white-space: pre-wrap; }
.comment-replies {
    margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--line);
}
.comment-replies .comment-item { padding: 10px 0; }
.comment-replies .comment-item:first-child { padding-top: 2px; }
@media (max-width: 600px) {
    .comment-replies { margin-left: 10px; padding-left: 10px; }
}

/* batch11: 双栏 grid 左栏防溢出 */
.min-w-0 { min-width: 0; }


/* batch25: 全站购物车入口（顶部昵称前） */
.cart-entry { position: relative; color: var(--brand) !important; }
.cart-badge {
    position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
    background: #e1251b; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px;
    text-align: center; border-radius: 999px; box-sizing: border-box;
}
@media (max-width: 600px) { .cart-entry { font-size: 12px; } }
