@CHARSET "UTF-8";
/* =========================================================
   商家联盟 公共主题 (theme.css)
   现代简洁风 · 移动优先 · 响应式
   修改 :root 中的变量即可全局换肤
   ========================================================= */

:root {
    /* 主色 */
    --primary: #2E7CF6;          /* 主色 - 清爽蓝 */
    --primary-dark: #1E5FBF;     /* 主色深 */
    --primary-light: #EAF2FE;    /* 主色浅底 */
    --accent: #FF6B35;           /* 强调色 - 橙 */
    --success: #34B675;          /* 成功 */
    --danger: #F43630;           /* 危险 */
    --warning: #FFB100;          /* 警告 */

    /* 文字 */
    --text-main: #1A1A2E;        /* 主文字 */
    --text-sub: #6B7280;         /* 次要文字 */
    --text-light: #9CA3AF;       /* 弱化文字 */

    /* 背景 */
    --bg-page: #F4F6FA;          /* 页面底色 */
    --bg-card: #FFFFFF;          /* 卡片底色 */
    --bg-mask: rgba(0,0,0,.45);  /* 遮罩 */

    /* 边框/分割线 */
    --border-color: #E5E7EB;
    --divider: #F0F1F4;
    --border-light: #CBD9F0;     /* 卡片/列表项统一边框，改这里即可全局调整 */

    /* 辅助底色（条纹/子区块，comment 等模块使用） */
    --bg-tint: #F6FAFF;
    --bg-sub: #F8FBFE;
    --bg-sub-hover: #EAF2FC;

    /* 危险/警示淡底（当前价高亮等） */
    --danger-tint: #FFF3E6;

    /* 圆角 / 阴影 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.12);

    /* 间距 */
    --gap-sm: 8px;
    --gap-md: 12px;
    --gap-lg: 16px;
    --gap-xl: 24px;

    /* 尺寸 */
    --header-h: 52px;
    --container-max: 720px;      /* 内容最大宽度（PC居中） */
}

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font: 400 15px/1.6 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", "Segoe UI", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { border: 0; vertical-align: middle; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
input:focus:not(:focus-visible), textarea:focus:not(:focus-visible), select:focus:not(:focus-visible) { outline: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }

/* ============ 布局容器 ============ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}
.page-body {
    min-height: 60vh;
    padding-top: var(--header-h);
    padding-bottom: 80px;  /* 预留底部导航空间 */
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============ 公共头部 ============ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; width: 100%; }
.site-header .header-logo { font-size: 18px; font-weight: 700; color: var(--primary); flex: 1; }
.site-header .header-logo .logo-mark {
    display: inline-block; width: 28px; height: 28px; line-height: 28px;
    text-align: center; color: #fff; background: var(--primary);
    border-radius: var(--radius-sm); margin-right: 6px; font-size: 15px;
}
.site-header .header-nav { display: flex; align-items: center; gap: var(--gap-sm); }
.site-header .header-nav .nav-spacer { flex: 1; }
.site-header .header-nav a {
    padding: 7px 14px; color: var(--text-sub); border-radius: var(--radius-full);
    font-size: 14px; transition: all .2s; font-weight: 500;
}
.site-header .header-nav a:hover { color: var(--primary); background: var(--primary-light); }
.site-header .header-nav a.active {
    color: #fff; background: var(--primary);
    box-shadow: 0 2px 8px rgba(46,124,246,.35);
    font-weight: 600;
}
.site-header .header-nav a.active:hover { color: #fff; opacity: .9; }
.site-header .header-nav a.avatar { padding: 0; }
.site-header .header-nav a.avatar img {
    width: 30px; height: 30px; border-radius: var(--radius-full);
    object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.header-nav .btn-login { color: #fff; background: var(--primary); padding: 6px 14px; border-radius: var(--radius-full); font-size: 14px; }
.header-nav .btn-login:hover { opacity: .9; }

/* 汉堡按钮（移动端） */
.menu-toggle {
    display: none; border: none; background: none; padding: 6px;
    font-size: 20px; color: var(--text-main); line-height: 1;
}

/* 移动端抽屉导航 */
.drawer-mask {
    display: none; position: fixed; inset: 0; z-index: 1100;
    background: var(--bg-mask); opacity: 0; transition: opacity .25s;
}
.drawer-mask.show { display: block; opacity: 1; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200;
    width: 78%; max-width: 300px;
    background: var(--bg-card); box-shadow: var(--shadow-lg);
    transform: translateX(-100%); transition: transform .28s ease;
    display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer .drawer-head {
    padding: var(--gap-lg) var(--gap-lg) var(--gap-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.drawer .drawer-head .user-name { font-size: 16px; font-weight: 600; margin-top: 4px; }
.drawer .drawer-head .user-score { font-size: 13px; opacity: .85; margin-top: 2px; }
.drawer .drawer-nav { flex: 1; overflow-y: auto; padding: var(--gap-sm) 0; }
.drawer .drawer-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px var(--gap-lg); color: var(--text-main); font-size: 15px;
    border-bottom: 1px solid var(--divider);
}
.drawer .drawer-nav a .nav-icon { width: 22px; text-align: center; margin-right: 10px; color: var(--primary); }
.drawer .drawer-nav a:hover { background: var(--primary-light); }
.drawer .drawer-foot { padding: var(--gap-md) var(--gap-lg); border-top: 1px solid var(--divider); }

/* ============ 公共底部 ============ */
.site-footer {
    background: linear-gradient(180deg, var(--bg-page), var(--primary-light));
    border-top: 2px solid var(--primary);
    padding: var(--gap-xl) var(--gap-md) 0;
    text-align: center; color: var(--text-light); font-size: 13px;
}
.site-footer .footer-links { margin-bottom: var(--gap-md); }
.site-footer .footer-links a {
    color: var(--text-sub); margin: 0 8px; font-size: 14px;
    display: inline-block; padding: 4px 10px; border-radius: var(--radius-full);
}
.site-footer .footer-links a:hover { color: var(--primary); background: #fff; }
.site-footer .footer-copy { margin-top: var(--gap-md); }
.site-footer .footer-copy-inner {
    background: #DCEBFF; color: var(--text-sub);
    margin: 0 -12px; padding: 16px 12px; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.site-footer .footer-copy-inner a { color: var(--primary); }
.site-footer .footer-copy-inner a:hover { color: var(--primary-dark); }
.site-footer .footer-copy-inner .footer-links-line { margin-top: 4px; }
.site-footer .footer-copy-inner .footer-dot { margin: 0 6px; opacity: .4; }

/* ============ 底部 Tab 导航（移动端） ============ */
.bottom-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-card); border-top: 1px solid var(--divider);
    display: flex; box-shadow: 0 -2px 12px rgba(0,0,0,.05);
}
.bottom-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 7px 0 6px; color: var(--text-light); font-size: 11px;
}
.bottom-tabbar a .tab-icon { font-size: 20px; line-height: 1.2; }
.bottom-tabbar a.active { color: var(--primary); }

/* ============ 卡片 ============ */
.card {
    background: var(--bg-card); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.card .card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px var(--gap-md);
    font-size: 15px; font-weight: 600;
}
.card .card-header .card-title { display: flex; align-items: center; }
.card .card-header .card-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: var(--primary); margin-right: 8px;
}
.card .card-header .card-more { font-size: 13px; font-weight: 400; color: var(--text-light); }

/* 区块标题 */
.section-title {
    display: flex; align-items: center; padding: var(--gap-lg) var(--gap-md) var(--gap-sm);
    font-size: 16px; font-weight: 700;
}
.section-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--primary); margin-right: 8px; }
.section-title .section-title-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-title .section-more {
    flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: 2px;
    padding: 3px 10px; border-radius: var(--radius-full);
    background: var(--primary-light); transition: all .2s;
}
.section-title .section-more::after { content: '›'; font-size: 14px; transition: transform .2s; }
.section-title .section-more:hover { color: #fff; background: var(--primary); }
.section-title .section-more:hover::after { transform: translateX(3px); }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px; border: none; border-radius: var(--radius-full);
    font-size: 14px; transition: all .2s; gap: 4px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .9; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost { background: var(--primary-light); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============ 表单 ============ */
.form-group { margin-bottom: var(--gap-lg); }
.form-label { display: block; font-size: 14px; color: var(--text-sub); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: var(--bg-card);
    font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { min-height: 100px; resize: vertical; }

/* ============ 列表 ============ */
.cell-list { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light); overflow: hidden; }
.cell-list .cell {
    display: flex; align-items: center; padding: 14px var(--gap-md);
    border-bottom: 1px solid var(--divider); color: var(--text-main); gap: 10px;
}
.cell-list .cell:last-child { border-bottom: none; }
.cell-list .cell .cell-icon { font-size: 20px; color: var(--primary); width: 26px; text-align: center; }
.cell-list .cell .cell-body { flex: 1; min-width: 0; }
.cell-list .cell .cell-title { font-size: 15px; }
.cell-list .cell .cell-desc { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.cell-list .cell .cell-arrow { color: var(--text-light); font-size: 16px; }

/* ============ 商品网格 ============ */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 var(--gap-md) var(--gap-md); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid-item {
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.grid-item .item-img-wrap { position: relative; aspect-ratio: 1; background: var(--bg-page); overflow: hidden; }
.grid-item .item-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-item:hover .item-img-wrap img { transform: scale(1.05); }
.grid-item .item-tag {
    position: absolute; top: 8px; left: 8px; padding: 2px 8px;
    background: rgba(244,54,48,.9); color: #fff; font-size: 11px; border-radius: 4px;
}
.grid-item .item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.grid-item .item-title {
    font-size: 14px; line-height: 1.4; height: 39px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.grid-item .item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.grid-item .item-price { color: var(--danger); font-size: 15px; font-weight: 600; }
.grid-item .item-buy {
    font-size: 12px; padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--primary-light); color: var(--primary);
}

/* ============ 焦点图轮播 ============ */
.banner { position: relative; overflow: hidden; height: 180px; background: var(--bg-card); }
.banner .hiSlider-wrap { width: 100% !important; height: 180px !important; }
.banner .hiSlider { width: 100%; height: 180px; overflow: hidden; background: var(--bg-card); }
.banner li {
    height: 100%; float: left;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
}
.banner li img { height: 100%; max-width: 100%; object-fit: contain; display: block; }
@media (min-width: 600px) {
    .banner, .banner .hiSlider-wrap, .banner .hiSlider { height: 280px !important; }
}
.banner .hiSlider-pages { bottom: 10px; right: 0; left: 0; text-align: center; z-index: 3; }
.banner .hiSlider-pages a {
    width: 8px; height: 8px; margin: 0 4px; display: inline-block; overflow: hidden;
    text-indent: -100px; font-size: 0; border-radius: 50%; background: rgba(255,255,255,.5);
    transition: all .3s;
}
.banner .hiSlider-pages a.active { background: #fff; transform: scale(1.3); }
.banner .hiSlider-title { display: none; }
.banner .hiSlider-btn-prev, .banner .hiSlider-btn-next { display: none; }

/* ============ 快捷入口 ============ */
.quick-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin: var(--gap-md); padding: var(--gap-md) 0;
    background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.quick-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-main); font-size: 13px; }
.quick-nav a .quick-icon {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); font-size: 22px;
    background: var(--primary-light); color: var(--primary);
}
.quick-nav a:nth-child(2) .quick-icon { background: #FFF3E6; color: var(--accent); }
.quick-nav a:nth-child(3) .quick-icon { background: #E8F7F0; color: var(--success); }
.quick-nav a:nth-child(4) .quick-icon { background: #FFEFEF; color: var(--danger); }

/* ============ 跑马灯新闻 ============ */
.marquee-card {
    margin: var(--gap-md);
    padding: 12px var(--gap-md);
    background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
}
.marquee-card .marquee-title {
    flex-shrink: 0; padding: 3px 10px; font-size: 12px; color: #fff;
    background: var(--accent); border-radius: 4px; margin-right: 10px;
}
.marquee-card .marquee-body { flex: 1; min-width: 0; overflow: hidden; }
.marquee-card .marquee-body .animateScroll { overflow: hidden; }
.marquee-card .animateScroll ul li {
    display: block; float: none; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    height: 30px; line-height: 30px; font-size: 14px;
}
.marquee-card .animateScroll ul li a { color: var(--text-main); }
.marquee-card .animateScroll ul li.marquee-empty { color: var(--text-light); font-size: 13px; }
.marquee-card .animateScroll ul li .news-date { font-size: 12px; color: var(--text-light); margin-right: 8px; }
.marquee-card .marquee-more {
    flex-shrink: 0; font-size: 13px; color: var(--text-light); margin-left: 10px;
}

/* ============ 图文新闻列表（同城） ============ */
.news-list { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); overflow: hidden; }
.news-list .news-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px var(--gap-md); border-bottom: 1px solid var(--divider);
    color: var(--text-main);
}
.news-list .news-item:last-child { border-bottom: none; }
.news-list .news-item .news-thumb {
    flex-shrink: 0; width: 74px; height: 74px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-page);
}
.news-list .news-item .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list .news-item .news-info { flex: 1; min-width: 0; }
.news-list .news-item .news-info .news-title {
    font-size: 15px; line-height: 1.5; color: var(--text-main);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list .news-item .news-meta {
    display: flex; align-items: center; gap: 8px; margin-top: 6px;
    font-size: 12px; color: var(--text-light);
}
.news-list .news-item .news-meta .news-cat {
    padding: 1px 6px; border-radius: 3px; font-size: 11px;
    background: var(--primary-light); color: var(--primary);
}
.news-list .news-item .news-meta .news-views { margin-left: auto; }

/* ============ 比赛卡片 ============ */
.match-list { padding: 0 var(--gap-md) var(--gap-md); display: flex; flex-direction: column; gap: 10px; }
.match-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 14px var(--gap-md);
}
.match-card .match-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--text-sub); margin-bottom: 10px;
}
.match-card .match-head .match-name { font-weight: 600; color: var(--text-main); }
.match-card .match-head .match-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.match-card .match-status.ongoing { background: #E8F7F0; color: var(--success); }
.match-card .match-status.upcoming { background: var(--primary-light); color: var(--primary); }
.match-card .match-status.finished { background: var(--divider); color: var(--text-light); }
.match-card .match-teams { display: flex; align-items: center; }
.match-card .match-team { flex: 1; text-align: center; min-width: 0; }
.match-card .match-team .team-logo {
    width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%;
    overflow: hidden; background: var(--bg-page); border: 2px solid var(--divider);
}
.match-card .match-team .team-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-card .match-team .team-logo .team-logo-text {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; color: #fff; background: var(--primary);
}
.match-card .match-team .team-name {
    font-size: 13px; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-card .match-vs {
    flex-shrink: 0; margin: 0 8px; display: flex; flex-direction: column;
    align-items: center; font-size: 22px; font-weight: 700; color: var(--primary);
}
.match-card .match-vs .match-score { font-size: 18px; }
.match-card .match-vs .match-vs-label { font-size: 11px; color: var(--text-light); font-weight: 400; }
.match-card .match-foot {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-light);
}
.match-card .match-foot a { font-size: 13px; color: var(--primary); }

/* ============ 积分活动卡片 ============ */
.activity-list { padding: 0 var(--gap-md) var(--gap-md); display: flex; flex-direction: column; gap: 10px; }
.activity-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden; display: flex;
}
.activity-card .activity-icon {
    flex-shrink: 0; width: 76px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
}
.activity-card .activity-icon .icon-emoji { font-size: 26px; }
.activity-card .activity-icon .icon-type { font-size: 11px; opacity: .9; }
.activity-card .activity-body { flex: 1; padding: 12px; min-width: 0; }
.activity-card .activity-name {
    font-size: 15px; font-weight: 600; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-card .activity-desc {
    font-size: 13px; color: var(--text-sub); margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.activity-card .activity-meta {
    display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-light);
}
.activity-card .activity-meta .score-tag { color: var(--danger); font-weight: 600; }

/* ============ 分割线 ============ */
.divider { height: 8px; background: var(--bg-page); }

/* ============ 工具类 ============ */
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-sub { color: var(--text-sub); }
.text-light { color: var(--text-light); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-sm { margin-top: var(--gap-sm); } .mt-md { margin-top: var(--gap-md); } .mt-lg { margin-top: var(--gap-lg); }
.mb-sm { margin-bottom: var(--gap-sm); } .mb-md { margin-bottom: var(--gap-md); } .mb-lg { margin-bottom: var(--gap-lg); }
.hide { display: none !important; }

/* ============ 响应式 ============ */
@media (min-width: 768px) {
    body { font-size: 15px; }
    .menu-toggle { display: none; }
    .site-header .header-nav { gap: var(--gap-md); }
}
@media (max-width: 767.98px) {
    .site-header .header-nav .nav-link { display: none; }
    .menu-toggle { display: block; }
}

/* ============ 过渡动画 ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-in-up { animation: fadeInUp .4s ease both; }

/* ============ 分类横向滚动栏 ============ */
.cat-bar {
    position: sticky; top: var(--header-h); z-index: 20;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
}
.cat-bar .cat-scroll {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 8px var(--gap-md);
    /* 细滚动条常显：隐藏滚动条会让桌面端看起来“不能滚动”（与职业联赛栏统一） */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .35) transparent;
}
.cat-bar .cat-scroll::-webkit-scrollbar { height: 5px; }
.cat-bar .cat-scroll::-webkit-scrollbar-track { background: transparent; }
.cat-bar .cat-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .35); border-radius: var(--radius-full);
}
[data-theme="dark"] .cat-bar .cat-scroll { scrollbar-color: rgba(255, 255, 255, .35) transparent; }
[data-theme="dark"] .cat-bar .cat-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .35);
}
.cat-bar .cat-chip {
    flex-shrink: 0; padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 13px; color: var(--text-sub); background: var(--bg-page);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: all .2s ease;
}
.cat-bar .cat-chip.active {
    color: #fff; background: var(--primary); border-color: var(--primary);
    font-weight: 600; box-shadow: 0 2px 8px rgba(46,124,246,.35);
}
.cat-bar .cat-chip .cat-count {
    font-size: 11px; margin-left: 4px; opacity: .85;
}

/* ============ 板块容器（本地赛事 / 职业赛事，结构统一、可收缩） ============ */
.match-block-body { display: block; }
.match-block.is-collapsed .match-block-body { display: none; }
.section-title.has-toggle {
    cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
}
.section-title.has-toggle .block-toggle {
    display: inline-block; margin-left: 6px; font-size: 12px;
    color: var(--text-sub); transition: transform .2s ease;
}
.section-title.has-toggle.collapsed .block-toggle { transform: rotate(-90deg); }

/* 职业赛事日期切换 */
.ext-date-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px var(--gap-md) 0;
}
.ext-date-bar .ext-nav {
    flex-shrink: 0; padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 12px; color: var(--text-sub); background: var(--bg-page);
    border: 1px solid var(--border-color); cursor: pointer; white-space: nowrap;
}
.ext-date-bar .ext-nav:active { background: var(--bg-card); }
.ext-date-bar .ext-date-label {
    font-size: 13px; font-weight: 600; color: var(--text-main);
    white-space: nowrap;
}
.ext-date-bar .ext-today-btn {
    margin-left: auto; padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 12px; color: var(--primary); background: var(--primary-light);
    cursor: pointer; white-space: nowrap;
}

/* ============ 悬浮操作按钮 FAB ============ */
.fab {
    position: fixed; right: 16px; bottom: 28px; z-index: 30;
    display: flex; align-items: center; gap: 6px;
    padding: 12px 20px; border-radius: var(--radius-full);
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(46,124,246,.4);
    cursor: pointer; border: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.fab:active { transform: scale(.96); }
.fab .fab-plus {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1; font-weight: 700;
}

/* ============ 空状态 ============ */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; color: var(--text-light);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 8px; opacity: .5; }
.empty-state .empty-text { font-size: 14px; }

/* ============ 信息列表项（同城/新闻通用） ============ */
.local-list { padding: 0 var(--gap-md) var(--gap-md); display: flex; flex-direction: column; gap: 10px; }
.local-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.local-card .local-body { padding: 12px var(--gap-md); }
.local-card .local-title {
    font-size: 15px; font-weight: 600; color: var(--text-main); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.local-card .local-desc {
    font-size: 13px; color: var(--text-sub); margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.local-card .local-meta {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
    font-size: 12px; color: var(--text-light);
}
.local-card .local-meta .tag-chip {
    padding: 1px 8px; border-radius: 4px; font-size: 11px;
    background: var(--primary-light); color: var(--primary);
}
.local-card .local-meta .tag-chip.hot { background: #FFF1EC; color: var(--accent); }
.local-card .local-meta .local-views { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ============ 分页器（覆盖 jquery.page.css） ============ */
#page {
    padding: 4px 0 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto !important;
    flex-wrap: nowrap;
    margin: 0 auto;
}
#page .pagingUl {
    float: none !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    height: auto;
    flex-wrap: nowrap;
}
#page .pagingUl li {
    float: none !important; width: auto; min-width: 32px; height: 32px; line-height: 32px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    margin-right: 0; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-sub);
    white-space: nowrap;
}
#page .pagingUl li.current {
    background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}
#page .pagingUl li a { color: inherit; display: block; padding: 0 10px; }
#page .first, #page .prv, #page .next, #page .last {
    float: none !important;
    display: flex !important;
    align-items: center; justify-content: center;
    height: 32px; min-width: 32px; padding: 0 10px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 13px; color: var(--text-sub);
    margin: 0; white-space: nowrap;
}

/* ============ 详情页 ============ */
.detail-slider { padding: 0; }
.detail-slider .hiSlider {
    height: 180px !important;
    overflow: hidden; background: var(--bg-card);
}
.detail-slider .hiSlider li { height: 100%; }
.detail-slider .hiSlider li img { height: 100%; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.detail-slider .hiSlider .hiSlider-btn-prev,
.detail-slider .hiSlider .hiSlider-btn-next { display: none; }
.detail-slider .hiSlider .hiSlider-pages { bottom: 8px; left: 0; right: 0; text-align: center; }
.detail-slider .hiSlider .hiSlider-pages a {
    height: 6px; width: 6px; margin: 0 3px; background: rgba(0,0,0,.25);
}
.detail-slider .hiSlider .hiSlider-pages a.active { background: var(--primary); transform: scale(1.3); }
.detail-slider .hiSlider .hiSlider-title { display: none; }
.detail-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 16px var(--gap-md); margin-bottom: 10px;
}
.detail-card .detail-title { font-size: 17px; font-weight: 600; color: var(--text-main); line-height: 1.5; }
.detail-card .detail-meta {
    display: flex; align-items: center; gap: 14px; margin-top: 8px;
    font-size: 12px; color: var(--text-light);
}
.detail-card .detail-meta .detail-views { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.detail-card .detail-block-title {
    display: flex; align-items: center; font-size: 15px; font-weight: 600;
    color: var(--text-main); margin: 4px 0 10px;
}
.detail-card .detail-block-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: var(--primary); margin-right: 8px;
}
.detail-attr { display: flex; padding: 7px 0; border-bottom: 1px dashed var(--divider); font-size: 14px; }
.detail-attr:last-child { border-bottom: none; }
.detail-attr .detail-attr-title { color: var(--text-sub); width: 84px; flex-shrink: 0; }
.detail-attr .detail-attr-content { color: var(--text-main); flex: 1; word-break: break-all; }
.detail-content { color: var(--text-main); font-size: 15px; line-height: 1.8; word-break: break-word; }
.detail-content img { max-width: 100%; border-radius: var(--radius-sm); }
.detail-tip { display: flex; align-items: center; justify-content: space-between; }
.detail-tip .tip-link { color: var(--primary); cursor: pointer; }

/* 底部联系操作栏 */
.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bg-card); border-top: 1px solid var(--border-color);
    display: flex; align-items: center;
    padding: 10px var(--gap-md);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.bottom-bar .contact-info { flex: 1; min-width: 0; }
.bottom-bar .contact-name { font-size: 13px; color: var(--text-sub); }
.bottom-bar .contact-phone { font-size: 17px; font-weight: 700; color: var(--text-main); }
.bottom-bar .call-btn {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 22px; border-radius: var(--radius-full);
    background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(46,124,246,.35);
}
.bottom-bar .call-btn:active { transform: scale(.97); }
.bottom-bar .call-btn .call-icon {
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    color: var(--primary); font-size: 12px; line-height: 16px; text-align: center; font-weight: 700;
}
body.has-bottom-bar { padding-bottom: 64px; }

/* ============ 轮播广告（覆盖 jquery.hiSlider.css，与首页 .banner 一致） ============ */
.banner-slider { padding: 0; margin-top: var(--header-h); }  /* 本页无 .page-body 偏移：给 sticky 分类栏让出头部高度，轮播恰好贴其下沿 */
.banner-slider .hiSlider {
    height: 180px !important; border-radius: 0;
    overflow: hidden; background: var(--bg-card); border: none;
}
.banner-slider .hiSlider li { height: 100%; }
.banner-slider .hiSlider li img { height: 100%; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.banner-slider .hiSlider .hiSlider-btn-prev,
.banner-slider .hiSlider .hiSlider-btn-next { display: none; }
.banner-slider .hiSlider .hiSlider-pages { bottom: 8px; left: 0; right: 0; text-align: center; }
.banner-slider .hiSlider .hiSlider-pages a {
    height: 6px; width: 6px; margin: 0 3px; background: rgba(0,0,0,.25);
}
.banner-slider .hiSlider .hiSlider-pages a.active { background: var(--primary); transform: scale(1.3); }
.banner-slider .hiSlider .hiSlider-title { display: none; }

/* ============ 比赛详情 ============ */
.match-detail { padding: var(--gap-md); display: flex; flex-direction: column; gap: 10px; max-width: var(--container-max); margin: 0 auto; }
.match-detail .match-detail-head {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); padding: 16px var(--gap-md);
}
.match-detail .match-detail-head .md-title {
    font-size: 17px; font-weight: 600; color: var(--text-main); text-align: center; line-height: 1.5;
}
.match-detail .match-detail-head .md-sub {
    text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.match-detail .match-detail-head .md-status {
    text-align: center; margin-top: 10px;
}
.match-detail .md-status .match-status { font-size: 12px; padding: 3px 12px; border-radius: var(--radius-full); }
.match-detail .md-time {
    text-align: center; margin-top: 8px; font-size: 12px; color: var(--text-light);
}
.match-detail .match-scoreboard {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); padding: 20px var(--gap-md);
}
.match-scoreboard .teams { display: flex; align-items: center; }
.match-scoreboard .team { flex: 1; text-align: center; min-width: 0; }
.match-scoreboard .team .team-logo {
    width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%;
    overflow: hidden; background: var(--bg-page); border: 2px solid var(--divider);
}
.match-scoreboard .team .team-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-scoreboard .team .team-logo .team-logo-text {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600; color: #fff; background: var(--primary);
}
.match-scoreboard .team .team-name {
    font-size: 14px; font-weight: 600; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-scoreboard .team .team-support {
    display: flex; flex-direction: column; align-items: center; margin-top: 10px;
    font-size: 12px; color: var(--text-sub);
}
.match-scoreboard .team .team-support .support-btn {
    margin-bottom: 4px; padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; transition: all .2s ease;
}
.match-scoreboard .team .team-support .support-btn:active { transform: scale(.96); }
.match-scoreboard .team .team-support .support-btn.mine { background: var(--accent); color: #fff; }
.match-scoreboard .team .team-support .support-count { font-size: 16px; font-weight: 700; color: var(--primary); }
.match-scoreboard .team .team-support .support-rate { font-size: 12px; color: var(--text-light); }
.match-scoreboard .score {
    flex-shrink: 0; margin: 0 10px; display: flex; flex-direction: column; align-items: center;
}
.match-scoreboard .score .score-num {
    font-size: 34px; font-weight: 700; color: var(--text-main); letter-spacing: 2px;
}
.match-scoreboard .score .score-label { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.match-scoreboard .score-line { margin-top: 16px; }
.match-scoreboard .score-line .line-inner {
    height: 8px; border-radius: 4px; overflow: hidden; background: var(--divider);
    display: flex;
}
.match-scoreboard .score-line .line-home { background: var(--primary); height: 100%; transition: width .4s ease; }
.match-scoreboard .score-line .line-visit { background: var(--accent); height: 100%; transition: width .4s ease; }
.match-scoreboard .score-line .line-legend {
    display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-light);
}
.match-scoreboard .score-line .line-legend .lg-home { color: var(--primary); }
.match-scoreboard .score-line .line-legend .lg-visit { color: var(--accent); }
.match-detail .match-detail-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); padding: 14px var(--gap-md);
}
.match-detail .match-detail-card .detail-block-title {
    display: flex; align-items: center; font-size: 15px; font-weight: 600;
    color: var(--text-main); margin-bottom: 10px;
}
.match-detail .match-detail-card .detail-block-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: var(--primary); margin-right: 8px;
}
.match-detail .match-detail-card .detail-declare { font-size: 13px; color: var(--text-sub); line-height: 1.9; word-break: break-word; }
.match-detail .match-detail-card .md-auto-reload {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--primary); cursor: pointer;
}
.match-detail .match-detail-card .md-voting-status { font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.match-detail .match-detail-card .md-concede { font-size: 12px; color: var(--warning); margin-top: 6px; }

/* ============ 验证码图片（统一 130x48，与生成尺寸一致不拉伸） ============ */
.vcode-img { width: 130px; height: 48px; border-radius: 8px; border: 1px solid var(--border-light); cursor: pointer; object-fit: fill; flex-shrink: 0; }
.weui-vcode-img { width: 130px !important; height: 48px !important; border-radius: 8px; cursor: pointer; object-fit: fill; }

/* ============ 发布页 ============ */
.publish-page { padding: var(--gap-md); padding-top: calc(var(--header-h) + 12px); max-width: var(--container-max); margin: 0 auto; }
.publish-section { margin-bottom: 20px; }
.publish-section-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; padding-left: 2px; }
.publish-field { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.publish-field input, .publish-field textarea, .publish-field select {
    width: 100%; border: none; outline: none; font-size: 15px; padding: 14px 16px; background: transparent; box-sizing: border-box;
}
.publish-field input::placeholder, .publish-field textarea::placeholder { color: var(--text-muted); }
.publish-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.publish-textarea-counter { text-align: right; padding: 0 16px 10px; font-size: 12px; color: var(--text-muted); }
.publish-field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 36px; cursor: pointer; }
.publish-captcha-row { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.publish-captcha-row input { flex: 1; border: none; outline: none; font-size: 15px; padding: 14px 0; background: transparent; }
.publish-captcha-img { height: 48px; width: 130px; border-radius: 8px; border: 1px solid var(--border-light); cursor: pointer; object-fit: fill; flex-shrink: 0; }
.publish-btn { width: 100%; height: 48px; border-radius: 10px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; color: #fff; background: var(--primary); transition: opacity .2s; }
.publish-btn:active { opacity: .85; }
#pics-list { display: flex; flex-wrap: wrap; gap: 10px; }
#pics-list > div { width: 96px; margin: 0 !important; border: 1px solid var(--border-light) !important; border-radius: 8px; overflow: hidden; }
#pics-list > div > img { width: 100% !important; height: 96px !important; object-fit: cover; display: block; }
#pics-list > div > div { text-align: center; padding: 4px 0; font-size: 12px !important; color: var(--danger) !important; background: var(--bg-light); }
#pics-list > div > input { display: none; }
#customizeForm .publish-field { border: 1px dashed var(--border); background: var(--bg-light); }

/* ---- 上传组件（weui-uploader 兼容样式） ---- */
#pics-list .weui-cells { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
#pics-list .weui-uploader { width: 100%; }
#pics-list .weui-uploader__hd { margin-bottom: 10px; }
#pics-list .weui-uploader__title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
#pics-list .weui-uploader__bd { display: flex; flex-wrap: wrap; gap: 10px; }
#pics-list .weui-uploader__files { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; width: 100%; }
#pics-list .weui-uploader__file { width: 96px; height: 96px; border-radius: 8px; background-size: cover; background-position: center; position: relative; }
#pics-list .weui-uploader__file_status { position: relative; }
#pics-list .weui-uploader__input-box { width: 96px; height: 96px; border: 1.5px dashed var(--border); border-radius: 8px; position: relative; cursor: pointer; }
#pics-list .weui-uploader__input-box::before, #pics-list .weui-uploader__input-box::after { content: ''; position: absolute; background: var(--text-muted); }
#pics-list .weui-uploader__input-box::before { width: 2px; height: 28px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
#pics-list .weui-uploader__input-box::after { width: 28px; height: 2px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
#pics-list .weui-uploader__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ============ weui 兼容现代化（未改造页面通用） ============ */
.weui-cells__title { padding: 18px 16px 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.weui-cells { background: #fff; border-radius: 10px; margin: 0 12px 12px; overflow: hidden; }
.weui-cells_form { margin-top: 0; }
.weui-cell { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-light); min-height: 48px; }
.weui-cell:last-child { border-bottom: none; }
.weui-cell__bd { flex: 1; min-width: 0; }
.weui-cell__bd p { font-size: 15px; color: var(--text-primary); }
.weui-cell__ft { color: var(--text-muted); font-size: 14px; }
.weui-cell_access { cursor: pointer; }
.weui-cell_access:active { background: var(--bg-light); }
.weui-cell_access .weui-cell__ft::after { content: '›'; margin-left: 6px; font-size: 16px; color: var(--text-muted); }
.weui-input { width: 100%; border: none; outline: none; font-size: 15px; padding: 8px 0; background: transparent; box-sizing: border-box; }
.weui-input::placeholder, .weui-textarea::placeholder { color: var(--text-muted); }
.weui-textarea { width: 100%; border: none; outline: none; font-size: 15px; padding: 8px 0; background: transparent; resize: vertical; line-height: 1.6; min-height: 80px; }
.weui-textarea-counter { text-align: right; font-size: 12px; color: var(--text-muted); padding-top: 6px; }
.weui-btn-area { margin: 16px 12px; }
.weui-btn-area[style*="inline-block"], .weui-btn-area[style*="inline"] { margin: 8px; }
.weui-btn { display: block; height: 46px; line-height: 46px; border-radius: 10px; text-align: center; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.weui-btn_primary { background: var(--primary); color: #fff; }
.weui-btn_default { background: var(--bg-light); color: var(--text-secondary); border: 1px solid var(--border-light); }
.weui-btn_warn { background: var(--danger); color: #fff; }
.weui-btn_plain-primary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.weui-btn_plain-default { background: #fff; color: var(--text-secondary); border: 1.5px solid var(--border); }
.weui-btn_mini { height: 36px; line-height: 36px; font-size: 14px; border-radius: 8px; padding: 0 14px; display: inline-block; }
.weui-grid { display: block; padding: 18px 8px; text-align: center; cursor: pointer; }
.weui-grid:active { background: var(--bg-light); }
.weui-grids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #fff; border-radius: 12px; margin: 0 12px; overflow: hidden; }
.weui-grid__label { font-size: 13px; color: var(--text-secondary); margin: 0; }
.weui-grid__label:first-child { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.weui-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; background: var(--danger); color: #fff; font-size: 12px; }
.weui-vcode-img { width: 130px !important; height: 48px !important; border-radius: 8px; cursor: pointer; object-fit: fill; }
.weui-cell_vcode .weui-cell__ft { padding-left: 10px; }
.weui-select { width: 100%; border: none; outline: none; font-size: 15px; padding: 8px 0; background: transparent; -webkit-appearance: none; }

/* 通用 weui-uploader（item-add 等页面） */
.ia-field .weui-cells, .ia-field .weui-cell { background: transparent; margin: 0; padding: 0; border: none; }
.ia-field .weui-cells_form { display: block; }
.ia-field .weui-cell__bd { padding: 0; }
.ia-field .weui-uploader { width: 100%; }
.ia-field .weui-uploader__title { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-bottom: 10px; }
.ia-field .weui-uploader__bd { display: flex; flex-wrap: wrap; }
.ia-field .weui-uploader__files { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; width: 100%; }
.ia-field .weui-uploader__file { width: 84px; height: 84px; border-radius: 10px; background-size: cover; background-position: center; position: relative; }
.ia-field .weui-uploader__file_status { position: relative; }
.ia-field .weui-uploader__input-box { width: 84px; height: 84px; border: 1.5px dashed var(--border); border-radius: 10px; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ia-field .weui-uploader__input-box::before { content: '+'; font-size: 28px; color: var(--border); }
.ia-field .weui-uploader__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ia-field .weui-uploader__file-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ia-field .weui-icon-warn { font-style: normal; font-size: 22px; color: var(--danger); }

/* 图片预览大图模态（全局） */
.uploader-preview-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.85); z-index: 1500; display: none; }
.uploader-preview-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1501; display: none; max-width: 92vw; max-height: 88vh; }
.uploader-preview-close { position: fixed; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: var(--radius-full); background: rgba(255,255,255,.2); color: #fff; border: none; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1502; }
.uploader-preview-close:active { transform: scale(.94); background: rgba(255,255,255,.35); }
.uploader-preview-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); display: block; }
.uploader-del-btn { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: var(--radius-full); background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 22px; text-align: center; cursor: pointer; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.uploader-del-btn:active { transform: scale(.9); background: var(--danger); }

/* ============ 评论/留言输入模态（全局） ============ */
.comment-modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 1500; display: none; }
.comment-modal { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82%; background: var(--bg-page); z-index: 1501; overflow-y: auto; display: none; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.2); }
.comment-modal-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 18px 18px 0 0; padding: 12px 16px; box-shadow: 0 1px 0 var(--border-light); }
.comment-modal-bar-title { font-size: 15px; font-weight: 700; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 10px; }
.comment-modal-close { width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--bg-light); color: var(--text-secondary); border: none; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comment-modal-close:active { transform: scale(.94); background: var(--border-light); }
.comment-modal-body { padding: 16px 16px 24px; }
.comment-modal .comment-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.comment-modal .comment-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.comment-modal .comment-field input, .comment-modal .comment-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid var(--border-light); border-radius: 10px;
	padding: 12px 14px; font-size: 15px; background: #fff; outline: none; color: var(--text-primary);
	font-family: inherit; resize: none; transition: border-color .2s;
}
.comment-modal .comment-field input:focus, .comment-modal .comment-field textarea:focus { border-color: var(--primary); }
.comment-modal .comment-field textarea { min-height: 100px; }
.comment-modal .comment-captcha-row { display: flex; align-items: center; gap: 10px; }
.comment-modal .comment-captcha-row .comment-field { flex: 1; min-width: 0; }
.comment-modal .comment-captcha-row .comment-field input { min-width: 0; }
.comment-modal .comment-captcha-img { height: 48px; width: 120px; border-radius: 8px; border: 1px solid var(--border-light); cursor: pointer; object-fit: fill; flex-shrink: 0; }
.comment-modal .comment-pic-area { margin-bottom: 12px; }
.comment-modal .comment-submit-btn { width: 100%; height: 46px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; color: #fff; background: var(--primary); cursor: pointer; }
.comment-modal .comment-submit-btn:active { opacity: .85; }

/* ============ 二级返回导航栏（子页面通用） ============ */
.sub-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
    padding: 0 var(--gap-md);
}
.sub-header .sub-header-inner {
    display: flex; align-items: center; width: 100%;
    max-width: var(--container-max); margin: 0 auto; position: relative;
}
.sub-header .sub-back {
    display: inline-flex; align-items: center; gap: 2px;
    color: var(--text-primary); font-size: 15px; font-weight: 500;
    cursor: pointer; background: none; border: none; padding: 8px 10px;
    margin-left: -10px; border-radius: var(--radius-full);
    transition: background .2s;
}
.sub-header .sub-back:active { background: var(--bg-light); }
.sub-header .sub-back .back-arrow {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    background: var(--primary-light); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; margin-right: 6px;
    transition: background .2s;
}
.sub-header .sub-back:active .back-arrow { background: var(--primary); color: #fff; }
.sub-header .sub-title {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    white-space: nowrap;
}
.sub-header .sub-action {
    margin-left: auto; color: var(--text-sub); font-size: 14px;
    background: none; border: none; cursor: pointer; padding: 8px;
}

/* ============ 储物柜/储物格/物品 添加页 ============ */
.locker-add-page { padding: var(--gap-md); padding-top: var(--header-h); max-width: var(--container-max); margin: 0 auto; }
.locker-add-page .weui-cells { margin-left: 0; margin-right: 0; }
.locker-add-page .weui-btn-area { margin-left: 0; margin-right: 0; }
.locker-add-page #buttons { margin-top: 8px; }

/* =========================================================
   夜间模式（在 <html data-theme="dark"> 时生效）
   ========================================================= */
html[data-theme="dark"] {
    /* 主色 */
    --primary: #4E8BFF;
    --primary-dark: #2E7CF6;
    --primary-light: #1E2A44;
    --accent: #FF8A5C;
    --success: #4CC98A;
    --danger: #FF5C57;
    --warning: #FFC53D;

    /* 文字 */
    --text-main: #E6E8EE;
    --text-sub: #9CA3AF;
    --text-light: #6B7280;

    /* 背景 */
    --bg-page: #12141A;
    --bg-card: #1C1F28;
    --bg-mask: rgba(0,0,0,.6);

    /* 边框/分割线 */
    --border-color: #2A2E3A;
    --divider: #262A34;

    /* 辅助底色 */
    --bg-tint: #20242F;
    --bg-sub: #232733;
    --bg-sub-hover: #262A35;

    /* 危险淡底 */
    --danger-tint: rgba(244,54,48,.2);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.6);

    /* 兼容个别页面用到的旧别名 */
    --border-light: #2A2E3A;
    --bg-light: #262A34;
    --text-primary: #E6E8EE;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #2A2E3A;
}

/* 硬编码浅色元素适配暗色 */
html[data-theme="dark"] body { background: var(--bg-page); color: var(--text-main); }

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .sub-header,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] .cat-bar,
html[data-theme="dark"] .bottom-tabbar,
html[data-theme="dark"] .bottom-bar,
html[data-theme="dark"] .comment-modal-bar { background: var(--bg-card); }

/* 卡片淡蓝边框 */
html[data-theme="dark"] .grid-item,
html[data-theme="dark"] .news-list,
html[data-theme="dark"] .match-card,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .local-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .match-detail .match-detail-head,
html[data-theme="dark"] .match-detail .match-scoreboard,
html[data-theme="dark"] .match-detail .match-detail-card { border-color: var(--border-color); }

/* 头像描边 / 轮播指示点 */
html[data-theme="dark"] .site-header .header-nav a.avatar img { border-color: var(--border-color); }
html[data-theme="dark"] .banner .hiSlider-pages a.active,
html[data-theme="dark"] .detail-slider .hiSlider .hiSlider-pages a.active,
html[data-theme="dark"] .banner-slider .hiSlider .hiSlider-pages a.active { background: var(--primary); }

/* footer */
html[data-theme="dark"] .site-footer .footer-copy-inner { background: var(--primary-light); }
html[data-theme="dark"] .site-footer .footer-links a:hover { background: var(--bg-card); }

/* 快捷入口浅色底 */
html[data-theme="dark"] .quick-nav a:nth-child(2) .quick-icon { background: rgba(255,107,53,.16); }
html[data-theme="dark"] .quick-nav a:nth-child(3) .quick-icon { background: rgba(52,182,117,.16); }
html[data-theme="dark"] .quick-nav a:nth-child(4) .quick-icon { background: rgba(244,54,48,.16); }

/* 标签/状态浅色底 */
html[data-theme="dark"] .match-card .match-status.ongoing { background: rgba(52,182,117,.18); }
html[data-theme="dark"] .local-card .local-meta .tag-chip.hot { background: rgba(255,107,53,.16); }

/* 表单 / 单元格 / 评论区硬编码白底 */
html[data-theme="dark"] .form-input, html[data-theme="dark"] .form-textarea, html[data-theme="dark"] .form-select,
html[data-theme="dark"] .publish-field,
html[data-theme="dark"] .weui-cells,
html[data-theme="dark"] .weui-grids,
html[data-theme="dark"] .comment-modal .comment-field input,
html[data-theme="dark"] .comment-modal .comment-field textarea { background: var(--bg-card); color: var(--text-main); }

html[data-theme="dark"] .comment-modal { background: var(--bg-page); color: var(--text-main); }
html[data-theme="dark"] .comment-modal .comment-field label { color: var(--text-secondary); }

/* 透明底按钮文字保持可读 */
html[data-theme="dark"] .weui-btn_plain-primary,
html[data-theme="dark"] .weui-btn_plain-default { background: transparent; }
html[data-theme="dark"] .fab .fab-plus,
html[data-theme="dark"] .bottom-bar .call-btn .call-icon { background: var(--bg-card); }

/* 输入占位文字 */
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--text-muted); }

/* 过渡平滑 */
html[data-theme="dark"] body,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .sub-header,
html[data-theme="dark"] .card,
html[data-theme="dark"] .grid-item,
html[data-theme="dark"] .local-card,
html[data-theme="dark"] .cell-list { transition: background .25s ease, color .25s ease, border-color .25s ease; }

/* =========================================================
   骨架屏（数据加载占位）
   ========================================================= */
@keyframes skeleton-glow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.09) 37%, rgba(0,0,0,.05) 63%);
    background-size: 400% 100%;
    animation: skeleton-glow 1.3s ease infinite;
    border-radius: 6px;
}
html[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.05) 63%);
    background-size: 400% 100%;
}

/* 商品网格骨架 */
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 var(--gap-md) var(--gap-md); }
@media (min-width: 600px) { .sk-grid { grid-template-columns: repeat(3, 1fr); } }
.sk-grid .sk-item {
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border-color); overflow: hidden;
}
.sk-grid .sk-item .sk-img { aspect-ratio: 1; width: 100%; border-radius: 0; }
.sk-grid .sk-item .sk-line { height: 14px; margin: 10px 12px 0; }
.sk-grid .sk-item .sk-line.short { width: 45%; margin-bottom: 12px; }

/* 横向列表骨架（本地新闻/比赛/活动） */
.sk-list { padding: 0 var(--gap-md) var(--gap-md); display: flex; flex-direction: column; gap: 10px; }
.sk-list .sk-row {
    display: flex; gap: 12px;
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border-color); padding: 12px;
}
.sk-list .sk-row .sk-thumb { width: 74px; height: 74px; flex-shrink: 0; border-radius: 8px; }
.sk-list .sk-row .sk-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sk-list .sk-row .sk-line { height: 14px; border-radius: 6px; }
.sk-list .sk-row .sk-line.short { width: 50%; }