/* ============================================================
   COL Media Center — 全局样式
   主题色由后台设置注入：--primary / --accent
   ============================================================ */

:root {
    --primary: #0E5C3F;
    --accent: #C6F52E;
    --ink: #14201a;
    --muted: #6b7280;
    --bg: #f5f7f6;
    --card: #ffffff;
    --line: #e5e9e7;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 42, 30, .06), 0 6px 24px rgba(16, 42, 30, .06);
    --shadow-lg: 0 12px 40px rgba(16, 42, 30, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: .85; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: #eef1ef; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.code-sample { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow: auto; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s ease;
    background: #eef1ef; color: var(--ink); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(14, 92, 63, .35); }
.btn-accent { background: var(--accent); color: #14201a; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.linklike { background: none; border: none; padding: 0; color: inherit; cursor: pointer; font: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }
.brand-mark { font-size: 24px; }
.brand-name { white-space: nowrap; }
.main-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
    padding: 8px 12px; border-radius: 8px; color: #374151; font-size: 14px; font-weight: 500;
    white-space: nowrap;
}
.nav-link:hover { background: #eef1ef; opacity: 1; }
.nav-link.active { color: var(--primary); font-weight: 700; position: relative; }
.nav-link.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
    border-radius: 3px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }
.lang-switch { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); opacity: 1; }
.bell { position: relative; font-size: 18px; color: var(--ink); }
.badge {
    position: absolute; top: -6px; right: -10px; background: #dc2626; color: #fff;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.badge[hidden] { display: none; }
.notif-item .badge { position: static; margin-right: 6px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; user-select: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 170px; padding: 8px; z-index: 200;
    display: flex; flex-direction: column;
}
.user-dropdown a, .user-dropdown button {
    padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); text-align: left; width: 100%;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: #eef1ef; opacity: 1; }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---------- 提示条 ---------- */
.alert { margin: 16px 0 0; padding: 12px 18px; border-radius: 12px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
/* 注册页：邮箱已存在提示块 + 输入框标红 */
.reg-email-exists-title { font-weight: 800; margin-bottom: 4px; }
.reg-email-exists-msg { margin: 0 0 10px; }
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #07271b 0%, var(--primary) 60%, #1a7a52 100%);
    color: #fff; background-size: cover; background-position: center;
}
.hero-inner { padding: 84px 20px 92px; }
.hero-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.hero-sub { font-size: clamp(15px, 2vw, 19px); opacity: .85; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 20px; font-weight: 800; }
.more-link { font-size: 14px; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.page { padding: 36px 20px 60px; min-height: 50vh; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font-size: 26px; font-weight: 800; margin: 0; }
.back-link { display: inline-block; margin: 26px 0 14px; font-weight: 600; font-size: 14px; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    color: var(--ink); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); opacity: 1; }
.card-cover { aspect-ratio: 16/10; overflow: hidden; background: #dde3df; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { font-size: 13.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* ---------- 通知列表 ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; box-sizing: border-box; }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { flex-shrink: 0; color: var(--muted); font-size: 12.5px; }

/* 首页官方通知：超过 3 条自动无缝滚动（视图输出双份内容，translateY -50% 循环），悬停暂停 */
.notice-roll { max-height: 156px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.notice-roll .notice-list { box-shadow: none; border-radius: 0; animation: noticeRoll linear infinite; }
.notice-roll:hover .notice-list { animation-play-state: paused; }
@keyframes noticeRoll { to { transform: translateY(-50%); } }
.notice-list a:hover { color: var(--primary); }
.notice-list time { color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- 发布会 ---------- */
.conf-list { display: flex; flex-direction: column; gap: 14px; }
.conf-card {
    display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.conf-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); opacity: 1; }
.conf-date {
    flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; background: var(--primary); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.conf-day { font-size: 24px; font-weight: 800; }
.conf-mon { font-size: 12px; opacity: .8; text-transform: uppercase; }
.conf-info { flex: 1; min-width: 0; }
.conf-info h3 { margin: 0 0 4px; font-size: 16.5px; }
.conf-info h3 a { color: var(--ink); }
.conf-info p { margin: 0; font-size: 13.5px; color: var(--muted); }
.conf-actions { flex-shrink: 0; }
.conf-list.past .conf-date { background: #9ca3af; }
.conf-list.past .conf-card:hover { transform: none; }
.conf-detail { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-bottom: 50px; }
.conf-detail-main h1 { font-size: 26px; }
.conf-meta { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; font-size: 15px; margin: 18px 0; }
.conf-meta dt { color: var(--muted); font-weight: 600; }
.conf-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.followers-count { font-size: 30px; font-weight: 800; }
.followers-count small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- 状态徽章 ---------- */
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-status.published, .badge-status.scheduled, .badge-status.replied, .badge-status.approved { background: #ecfdf5; color: #047857; }
.badge-status.draft, .badge-status.pending { background: #fffbeb; color: #b45309; }
.badge-status.finished, .badge-status.closed { background: #f3f4f6; color: #6b7280; }
.badge-status.cancelled, .badge-status.rejected { background: #fef2f2; color: #b91c1c; }
.badge-status.incomplete { background: #eff6ff; color: #1d4ed8; border: 1px dashed #93c5fd; }

/* 报名审核-机构 Tab：机构主行加粗上边框作分组，子账号行淡底色+缩进 */
tr.org-main td { border-top: 2px solid var(--line, #dfe5ea); background: #fff; }
tr.org-child td { background: #f8faf9; border-top: 1px dashed #eef1ef; font-size: 13.5px; }
tr.org-child .child-indent { color: var(--muted, #8a938f); margin-right: 6px; }
tr.org-no-staff td { color: var(--muted, #8a938f); font-size: 13px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1ef; color: #374151; }

/* ---------- 采访申请横幅 ---------- */
.req-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(120deg, #ecfdf5, #f7fee7); border: 1px solid #d1f2df;
    border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px;
}

/* ---------- 媒体服务信息卡 ---------- */
.help-section { padding-bottom: 30px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.help-card {
    position: relative; overflow: hidden;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px 24px; border-top: 4px solid var(--primary);
}
/* 大号浅色底图图标：靠左垂直居中作水印，内容让位到右侧 */
.help-icon-bg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 96px; line-height: 1; opacity: .12; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.help-card:hover .help-icon-bg { opacity: .38; transform: translateY(-50%) scale(1.06); }
.help-card-body { position: relative; padding-left: 108px; min-height: 96px; }
.help-icon { font-size: 30px; margin-bottom: 10px; }
.help-card h3 { font-size: 17px; margin-bottom: 10px; }
.help-body { font-size: 14.5px; color: #374151; line-height: 1.8; }
.help-body p { margin: 0 0 .6em; }
.help-map-img { border-radius: 10px; margin-bottom: 12px; width: 100%; }
/* 首页媒体服务卡片为整卡链接 */
a.help-card { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.help-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--primary); }
/* 媒体服务详情页 */
.help-detail { padding: 26px 30px; }
.help-detail-map { display: block; max-width: 100%; border-radius: 12px; margin-bottom: 18px; background: #f3f5f4; }
.rich-content h2, .rich-content h3 { margin: .8em 0 .4em; }
.rich-content ul, .rich-content ol { padding-left: 1.4em; margin: .4em 0 .8em; }
.rich-content a { color: var(--primary); }
/* 后台富文本编辑器（Quill） */
.richtext-editor { min-height: 160px; background: #fff; font-size: 14px; }
.richtext-editor img { max-width: 100%; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: #e2e8f0; background: #f8faf9; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: #e2e8f0; }

/* ---------- 图片/视频 ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-cell { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #dde3df; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-cell:hover img { transform: scale(1.05); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-item { margin: 0; cursor: zoom-in; }
.photo-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; background: #dde3df; transition: transform .25s ease; }
.photo-item:hover img { transform: scale(1.03); }
.photo-item figcaption { font-size: 13px; color: var(--muted); padding: 6px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.video-card:hover { opacity: 1; box-shadow: var(--shadow-lg); }
.video-thumb {
    aspect-ratio: 16/9; background: linear-gradient(135deg, #0f2a1e, var(--primary));
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
/* 视频封面：直接显示视频首帧（浏览器 preload=metadata 原生能力） */
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-icon { position: relative; z-index: 1; }
.play-icon {
    width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .18);
    border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.video-player-wrap { background: #000; border-radius: var(--radius); overflow: hidden; margin: 10px 0 20px; }
.video-player { width: 100%; max-height: 70vh; display: block; }
.video-info h1 { font-size: 22px; }

/* ---------- 灯箱 ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 500; background: rgba(5, 15, 10, .92);
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #d1d5db; font-size: 14px; padding: 14px 0 0; display: flex; gap: 14px; align-items: center; justify-content: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- 文章 ---------- */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-item {
    display: flex; gap: 20px; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px; color: var(--ink); transition: transform .18s ease;
}
.article-item:hover { transform: translateY(-2px); opacity: 1; }
.article-thumb { flex-shrink: 0; width: 220px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #dde3df; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { min-width: 0; display: flex; flex-direction: column; }
.article-info h2 { font-size: 18px; margin: 0 0 6px; }
.article-info p { margin: 0 0 8px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-page { max-width: 860px; }
.article h1 { font-size: 28px; margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: 13.5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.article-cover { border-radius: var(--radius); margin-bottom: 24px; }
.article-body { font-size: 16.5px; line-height: 1.9; }
.article-body img { border-radius: 10px; max-width: 100%; height: auto; }
/* Quill 对齐 class 前台同步生效（图文混排） */
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }

/* ---------- 默认封面（无封面图时：主题色渐变底 + 中网 LOGO） ---------- */
.cover-default {
    /* 兜底固定渐变（不支持 color-mix 的旧浏览器） */
    background: linear-gradient(135deg, #07231a 0%, #0E5C3F 62%, #157954 100%);
    /* 主题色派生渐变：深色 ← --primary → 微亮，随后台 theme.primary 设置联动 */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary), #000 58%) 0%,
        var(--primary) 62%,
        color-mix(in srgb, var(--primary), #fff 16%) 100%);
    display: flex; align-items: center; justify-content: center;
}
.cover-default img { object-fit: contain; opacity: .92; }
.article-thumb.cover-default img { width: 74%; height: 74%; }
.card-cover.cover-default img { width: 68%; height: 68%; }
.article-cover.cover-default { aspect-ratio: 16/6; }
.article-cover.cover-default img { width: min(44%, 380px); }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.article-nav a { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 文章附件下载区（正文开头/末尾） ---------- */
.attachment-list { margin: 22px 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.attachment-title { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin-bottom: 10px; text-transform: uppercase; }
.attachment-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .15s ease; }
.attachment-item:hover { background: var(--line); }
.attachment-icon { flex-shrink: 0; }
.attachment-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.attachment-size { flex-shrink: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- 占位页 / 空状态 ---------- */
.placeholder-box { text-align: center; padding: 80px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.placeholder-icon { font-size: 52px; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; background: var(--card); border-radius: var(--radius); font-size: 14.5px; }

/* ---------- 搜索/筛选/分页/页签 ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input { width: 220px; }
.filter-bar, .upload-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.upload-bar input[type="file"] { flex: 1; min-width: 200px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 30px 0 10px; font-size: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
    border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 18px;
    font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.tab small { color: var(--muted); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab.active small { color: rgba(255, 255, 255, .75); }
a.tab:hover { opacity: 1; }

/* ---------- PDF 预览 ---------- */
.pdf-viewer { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.pdf-viewer iframe { width: 100%; height: 78vh; border: none; border-radius: 8px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 700; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea.form-control { resize: vertical; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.form-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.check-row { flex-direction: row !important; flex-wrap: wrap; gap: 18px; }
.color-input { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.edit-form { max-width: 100%; }

/* ---------- 采访申请表单（日期/时间/方式三列 + 联想输入） ---------- */
.req-form { max-width: 760px; padding: 26px 28px; }
.req-grid3 { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 14px; }
.req-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-target-wrap { position: relative; }
.req-suggest { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .14); max-height: 264px; overflow-y: auto; }
.req-suggest-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; cursor: pointer; font-size: 14.5px; }
.req-suggest-item:hover { background: rgba(14, 92, 63, .08); }
.req-suggest-item .code { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
@media (max-width: 720px) { .req-grid3, .req-grid2 { grid-template-columns: 1fr; } }

/* ---------- 面板 / 卡片容器 ---------- */
.card-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.att-upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.att-upload-form input[type="file"] { flex: 1; min-width: 220px; }
.att-upload-form select { width: 160px; }

/* ---------- 邮件设置 ---------- */
.mail-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; }
.mail-preview-modal { position: fixed; inset: 0; z-index: 500; background: rgba(10, 20, 16, .55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.mail-preview-modal[hidden] { display: none; }
.mail-preview-dialog { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(760px, 96vw); height: min(600px, 88vh); display: flex; flex-direction: column; overflow: hidden; }
.mail-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mail-preview-dialog iframe { flex: 1; border: 0; width: 100%; }

/* ---------- 系统设置（分组页签 + 友好标签） ---------- */
.settings-group.hidden { display: none; }
.settings-tabs { margin-bottom: 16px; }
.setting-label { font-weight: 600; display: block; margin-bottom: 6px; }
.setting-key { color: var(--muted); font-size: 11.5px; font-weight: 400; margin-left: 6px; }

/* ---------- 账号板块权限 ---------- */
.perm-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 4px 0; }
.perm-grid .form-check { display: flex; align-items: center; gap: 6px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(160deg, #07271b, var(--primary)); }
.login-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px; width: 100%; max-width: 400px; }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 22px; }

/* ---------- 反馈 / 通知 ---------- */
.feedback-layout { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.feedback-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; }
.feedback-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
.feedback-item p { margin: 6px 0; font-size: 14.5px; white-space: pre-wrap; }
.feedback-reply { margin-top: 12px; background: #f0faf4; border-left: 3px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item { display: flex; align-items: flex-start; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.notif-item.unread { border-left: 4px solid var(--accent); }
.notif-body { flex: 1; }
.notif-body p { margin: 6px 0; font-size: 14px; color: var(--muted); white-space: pre-line; }

/* ---------- 通知页公告板块（弹窗公告存档，含已「不再提示」的） ---------- */
.ann-board { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.ann-board-title { margin: 0 0 2px; font-size: 16px; }
.ann-board-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; border-left: 4px solid var(--primary); }
.ann-board-item-title { margin: 0 0 6px; font-size: 15.5px; }
.ann-board-body { margin: 6px 0; font-size: 14px; color: var(--muted); white-space: pre-wrap; line-height: 1.7; }
.ann-board-img { display: block; max-width: min(100%, 560px); max-height: 320px; object-fit: contain; border-radius: 10px; margin: 6px 0; background: #f3f5f4; }
/* 公告归档手风琴：折叠为标题行，点击展开详情 */
.ann-acc-item { padding: 0; }
.ann-acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 14px 20px; border: none; background: none; cursor: pointer;
    text-align: left; font: inherit; color: inherit;
}
.ann-acc-head .ann-board-item-title { margin: 0; flex: 1; min-width: 0; }
.ann-acc-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ann-acc-arrow { color: var(--muted); font-size: 16px; transition: transform .18s ease; }
.ann-acc-head.open .ann-acc-arrow { transform: rotate(90deg); }
.ann-acc-detail { padding: 0 20px 16px; }
.ann-acc-detail .ann-board-body, .ann-acc-detail .ann-board-img { margin-top: 0; }
/* 已过期紧急通知：整体灰显 */
.ann-expired { border-left-color: #c7cfcb; }
.ann-expired .ann-acc-head, .ann-expired .ann-acc-detail { opacity: .55; }
.badge-status.ann-cat-expired { background: #eef1ef; color: #8a938f; }

/* ---------- 采访申请卡片 ---------- */
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 16px 20px; border-left: 4px solid var(--line);
}
.req-card.pending { border-left-color: #f59e0b; }
.req-card.approved { border-left-color: #10b981; }
.req-card.rejected { border-left-color: #ef4444; }
.req-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.req-target { font-size: 17px; font-weight: 800; margin: 0; }
.req-submitted { font-size: 12px; color: var(--muted); margin-top: 3px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.req-meta-item em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.req-note { margin-top: 10px; padding: 8px 14px; border-left: 3px solid #cbd5d1; background: #f8faf9; border-radius: 8px; font-size: 13.5px; white-space: pre-wrap; }

/* 组委会回复条：按状态着色（pending 琥珀 / approved 绿 / rejected 红），突出回复状态 */
.req-reply { margin-top: 12px; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; background: #fffbeb; border: 1px solid #f3e3b3; }
.req-reply.approved { background: #f0faf4; border-color: #cbeedd; }
.req-reply.rejected { background: #fef2f2; border-color: #f3cfcf; }
.req-reply-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; flex-wrap: wrap; }
.req-reply-head time { font-size: 12px; color: var(--muted); font-weight: 400; }
.req-reply-waiting { margin: 0; color: #92660a; font-size: 13px; }
.req-reply-item { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.1); }
.req-reply-head + .req-reply-item { margin-top: 2px; padding-top: 0; border-top: none; }
.req-reply-item-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.req-reply-item p { margin: 0; white-space: pre-wrap; }
.badge-status.sm { padding: 1px 8px; font-size: 11px; }

/* ---------- 后台批复历史 ---------- */
.reply-history { display: flex; flex-direction: column; }
.reply-history-item { padding: 10px 0; border-top: 1px dashed var(--line); }
.reply-history-item:first-child { padding-top: 0; border-top: none; }
.reply-history-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.reply-history-head time { font-size: 12.5px; color: var(--muted); }
.reply-history-item p { margin: 0; font-size: 14px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; background: #f3f5f4; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafbfa; }
.table .actions { display: flex; gap: 8px; align-items: center; }
.table .actions form { display: inline; }

/* ---------- 后台布局 ---------- */
.admin-body { background: #f0f2f1; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 232px; flex-shrink: 0; background: #0d1f16; color: #cbd5d1;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { padding: 20px 22px; font-size: 17px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; color: #cbd5d1; font-size: 14.5px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; opacity: 1; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-side-foot { padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; }
.admin-side-foot a { color: #9ca3af; }
.admin-ver { color: #6b7a72; font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; height: 56px;
    position: sticky; top: 0; z-index: 50; font-size: 14px;
}
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-content { padding: 26px 28px 60px; }
.admin-content > .alert { margin: 0 0 16px; }
.admin-main > .alert { margin: 16px 24px 0; }

/* ---------- 仪表盘 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; color: var(--ink); transition: transform .18s ease; }
.stat-card:hover { transform: translateY(-3px); opacity: 1; }
.stat-card.warn .stat-num { color: #b45309; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 媒体库 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.media-cell { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.media-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #dde3df; }
.media-cell-video, .media-cell-poster { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #0f2a1e; }
.media-cell-poster { width: 100%; object-fit: cover; display: block; }

/* 媒体上传：图片/视频分入口 + 视频逐文件元数据 */
.upload-entries { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.video-meta-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.video-meta-name { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; word-break: break-all; }
.video-meta-name small { color: var(--muted); font-weight: 400; }
.video-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.media-cell-info { padding: 10px 12px; }
.media-cell-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; }
.media-cell-actions { display: flex; gap: 6px; }
.setting-image { display: flex; align-items: center; gap: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 20px; font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; }
    .feedback-layout { grid-template-columns: 1fr; }
    .conf-detail { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
    .help-icon-bg { font-size: 76px; left: 12px; }
    .help-card-body { padding-left: 88px; min-height: 76px; }
    .side-card { position: static; }
    .article-thumb { width: 140px; }

    /* 移动端导航：抽屉 */
    .user-menu .user-name { display: none; } /* 长用户名只留人物图标，避免撑开顶栏 */
    .main-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 10px; gap: 2px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 14px; font-size: 15px; }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: #eef1ef; }
    .hamburger { display: block; }

    /* 后台侧边栏：抽屉 */
    .admin-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 300; transform: translateX(-100%); transition: transform .22s ease; }
    .admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
    .admin-content { padding: 18px 14px 50px; }
}

@media (max-width: 640px) {
    .news-grid, .video-grid, .photo-strip { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { padding: 56px 20px 64px; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .search-form input { width: 100%; }
    .search-form { width: 100%; }
    .table { font-size: 13px; display: block; overflow-x: auto; }
    .conf-card { flex-wrap: wrap; }
    .brand-name { display: none; }
    .req-card { padding: 14px 16px; }
    .req-card-head { flex-direction: column; gap: 8px; }
}

/* ============================================================
   实时比分 / 赛程
   ============================================================ */
.date-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.date-nav {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--card); font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink);
}
.date-nav:hover { border-color: var(--primary); color: var(--primary); }
.date-display {
    border: 1px solid var(--line); background: var(--card); border-radius: 999px;
    padding: 7px 16px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.date-display:hover { border-color: var(--primary); color: var(--primary); }
.date-hidden { position: absolute; opacity: 0; width: 1px; height: 1px; border: none; padding: 0; }

.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.score-empty {
    grid-column: 1 / -1; text-align: center; color: var(--muted);
    padding: 70px 0; background: var(--card); border-radius: var(--radius); font-size: 32px;
}
.score-empty p { font-size: 14.5px; margin: 6px 0 0; }
.score-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; transition: transform .18s ease, box-shadow .18s ease;
}
.score-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.score-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    margin-bottom: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary);
}
.score-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.court-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-badge { display: inline-block; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: .3px; flex-shrink: 0; }
.tour-atp { background: #004483; }
.tour-wta { background: #b01e28; }
.tour-itf { background: #4b5563; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; color: #dc2626; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.muted-sm { color: var(--muted); font-size: 11px; }
.score-players { display: flex; flex-direction: column; gap: 12px; }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score-row.lost { opacity: .45; }
.player-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-name { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag-img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.flag-emoji { font-size: 18px; }
.score-sets { display: flex; gap: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; flex-shrink: 0; }
.set-win { color: var(--primary); font-weight: 800; }
.set-lose { color: #9ca3af; }
.set-empty { color: #d1d5db; }
.tb { font-size: 10px; margin-left: 1px; }
.score-foot {
    margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-size: 12.5px; color: var(--muted);
}
.winner-mark { color: #d4a017; font-weight: 800; margin-left: 4px; }
.won-text { color: #d4a017; font-weight: 800; }

/* ---------- 赛程表 ---------- */
.sched-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.sched-dates-hint { color: var(--muted); font-size: 13.5px; padding: 10px 2px; }
.sched-date {
    flex: none; min-width: 58px; border: 1px solid var(--line); background: var(--card);
    border-radius: 12px; padding: 8px 12px; text-align: center; cursor: pointer;
    color: var(--muted); transition: all .15s ease;
}
.sched-date:hover { border-color: var(--primary); color: var(--primary); }
.sched-date.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14, 92, 63, .3); }
.sd-month { display: block; font-size: 10px; text-transform: uppercase; opacity: .75; }
.sd-day { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.sched-filters { margin-bottom: 16px; }
.sched-time-main { font-weight: 700; }
.session-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-top: 3px; }
.session-day { background: #fef3c7; color: #b45309; }
.session-night { background: #e0e7ff; color: #4338ca; }
.sched-court { color: var(--primary); font-weight: 600; white-space: nowrap; }
.sched-match { min-width: 200px; }
.sched-match .tour-badge { margin-right: 6px; }
.sched-names { display: inline-block; line-height: 1.35; vertical-align: middle; }
.sched-name { font-weight: 700; font-size: 13.5px; }
.sched-name.dim { color: var(--muted); font-weight: 600; }
.sched-vs { color: #9ca3af; font-size: 10px; font-style: italic; }
.sched-round { color: var(--muted); white-space: nowrap; }
.sched-status { text-align: right; white-space: nowrap; }
.sched-score { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 12.5px; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; }
.pill-live { background: #fee2e2; color: #dc2626; }
.pill-upcoming { background: #eef1ef; color: var(--muted); }
.sched-cell-empty { text-align: center; color: var(--muted); padding: 46px 0 !important; }
.sched-pdf-title { margin-top: 40px; font-size: 19px; }

@media (max-width: 1024px) {
    .score-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .score-grid { grid-template-columns: 1fr; }
    .sched-court, .sched-round { display: none; }
}

/* ---------- 赛程日期栏（日期条 + 日历） ---------- */
.sched-bar { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.sched-bar .sched-dates { flex: 1; min-width: 0; margin-bottom: 0; }
.sched-tools { display: flex; gap: 8px; align-items: center; position: relative; padding-top: 3px; flex-shrink: 0; }
.sd-week { display: block; font-size: 10px; opacity: .75; margin-top: 1px; }
.sched-date.is-today:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   记者报名（reg- 前缀）：注册卡片、日期 chips、状态横幅、
   证件照预览、回复时间线、机构记者管理
   ============================================================ */
.reg-page { max-width: 1080px; }
.reg-errors ul { margin: 0; padding-left: 18px; }
.reg-subsection { font-size: 16px; font-weight: 800; margin: 26px 0 12px; }

/* 账号类型卡片 */
.reg-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.reg-type-card {
    border: 2px solid var(--line); border-radius: var(--radius); background: var(--card);
    padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
    transition: border-color .15s ease, background .15s ease;
}
.reg-type-card:hover { border-color: var(--primary); }
.reg-type-card.active { border-color: var(--primary); background: #f1f8f4; box-shadow: var(--shadow); }
.reg-type-card input { display: none; }
.reg-type-name { font-size: 16px; font-weight: 800; }
.reg-type-desc { font-size: 13px; color: var(--muted); }

/* 表单：中文大 label + 英文小 label（中网风格） */
.reg-section { font-size: 17px; font-weight: 800; margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reg-req { color: #dc2626; font-style: normal; }
/* 资料缺失提示：横幅 + 照片字段高亮 */
.reg-missing-banner { margin: 0 0 16px; padding: 12px 14px; }
.reg-missing-title { font-weight: 800; margin-bottom: 6px; }
.reg-missing-photo { font-weight: 800; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 6px; padding: 6px 10px; margin-bottom: 6px; }
.reg-missing-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-missing-item { background: #fff; border: 1px solid #fca5a5; color: #b91c1c; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.reg-field-missing { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 10px; padding: 12px; }
.reg-missing-tag { color: #b91c1c; font-style: normal; font-weight: 800; font-size: 12px; margin-left: 8px; background: #fee2e2; border-radius: 999px; padding: 1px 8px; }
.reg-radio-row { display: flex; gap: 18px; align-items: center; min-height: 38px; }
.reg-radio-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }

/* 申请采访日期 chips：灰底块，选中=主题绿+白字+✓ */
.reg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-chip input { display: none; }
.reg-chip span {
    display: inline-block; padding: 8px 16px; border-radius: 10px; background: #eef1ef;
    color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all .15s ease;
}
.reg-chip span:hover { border-color: var(--primary); color: var(--primary); }
.reg-chip input:checked + span { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14, 92, 63, .25); }
.reg-chip input:checked + span::before { content: "✓ "; }
.reg-chip input:disabled + span { opacity: .6; cursor: not-allowed; }

/* 审核状态横幅（黄/绿/红） */
.reg-banner { padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin: 14px 0; border: 1px solid transparent; }
.reg-banner.pending { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.reg-banner.approved { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.reg-banner.rejected { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* 证明材料（报名第二步） */
.cred-template { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* 后台证明模板列表（每类可多份） */
.tpl-list { list-style: none; margin: 0 0 14px; padding: 0; }
.tpl-item {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 0; border-bottom: 1px dashed var(--line, #e5e7eb); font-size: 14px;
}
.tpl-item:last-child { border-bottom: 0; }
.tpl-item a { word-break: break-all; }
.tpl-item .muted { font-size: 12.5px; }
.tpl-item .inline-form { margin: 0 0 0 auto; }
.inline-form { display: inline; }
.cred-current {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
    border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin: 10px 0;
}
.cred-current a { color: var(--primary); word-break: break-all; }
.cred-current .muted { font-weight: 400; }
.cred-none, .org-gate {
    background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
    border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 10px 0;
}
/* 机构审核通过后：记者管理卡突出显示（核心功能） */
.jcard-featured {
    border: 1.5px solid var(--primary) !important;
    box-shadow: 0 6px 24px rgba(14, 92, 63, .12) !important;
}
.jcard-featured .jlist-head {
    background: linear-gradient(120deg, #ecfdf5, #f7fee7);
    border: 1px solid #d1f2df; border-radius: 12px;
    padding: 12px 16px; margin-bottom: 12px;
}
.cred-form { margin-top: 12px; }
.cred-form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cred-form-row input[type="file"] { flex: 1; min-width: 220px; }
.cred-req-badge {
    background: #fef2f2; color: #b91c1c; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em;
}
.cred-required {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin: 10px 0;
}

/* 报名第一步：已填资料默认折叠 */
.reg-collapsed-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reg-collapsed-title { font-weight: 700; font-size: 15px; }
.reg-collapsed-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reg-collapsed-file { font-size: 13px; color: var(--muted); word-break: break-all; }
.reg-collapsed-file:hover { color: var(--primary); }
.collapse-panel { display: none; }
.collapse-panel.open { display: block; margin-top: 14px; }

/* 报名状态面板：步骤进度 + 审核状态 */
.reg-status {
    display: flex; gap: 16px; align-items: flex-start;
    border-radius: 14px; padding: 20px 22px; margin-bottom: 18px;
    border: 1px solid var(--line); background: #fff;
}
.reg-status-icon { font-size: 30px; line-height: 1.1; flex: none; }
.reg-status-main { min-width: 0; }
.reg-status-title { font-size: 18px; font-weight: 700; }
.reg-status-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.reg-status.submitted { background: #eff6ff; border-color: #bfdbfe; }
.reg-status.submitted .reg-status-title { color: #1d4ed8; }
.reg-status.incomplete { background: #fffbeb; border-color: #fde68a; }
.reg-status.incomplete .reg-status-title { color: #b45309; }
.reg-status.approved { background: #ecfdf5; border-color: #a7f3d0; }
.reg-status.approved .reg-status-title { color: #047857; }
.reg-status.rejected { background: #fef2f2; border-color: #fecaca; }
.reg-status.rejected .reg-status-title { color: #b91c1c; }
.reg-steps { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.reg-step {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--muted);
}
.reg-step.done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.reg-step.todo { background: #f8fafc; color: #94a3b8; }
.reg-step.current { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.reg-step.rejected { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* 证件照圆形预览 */
.reg-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: #eef1ef; flex: none; }
.reg-photo-row { display: flex; gap: 18px; align-items: center; }
.reg-photo-row > div { flex: 1; min-width: 0; }

/* 组委会回复时间线 */
.reg-timeline { list-style: none; margin: 0; padding: 0; }
.reg-msg { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.reg-msg:last-child { padding-bottom: 0; }
.reg-msg::before {
    content: ""; position: absolute; left: -7px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
}
.reg-msg-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.reg-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.reg-kind.reply { background: #eef1ef; color: var(--muted); }
.reg-kind.approve { background: #ecfdf5; color: #047857; }
.reg-kind.reject { background: #fef2f2; color: #b91c1c; }
.reg-msg-body { font-size: 14px; white-space: pre-wrap; }
.reg-mail { color: var(--primary); }

/* 机构信息卡 + 记者表格 */
.reg-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.reg-info dt { font-size: 12.5px; color: var(--muted); }
.reg-info dd { margin: 2px 0 0; font-weight: 700; word-break: break-all; }
.reg-table { margin-bottom: 8px; }

@media (max-width: 640px) {
    .reg-types { grid-template-columns: 1fr; }
    .reg-info { grid-template-columns: 1fr; }
    .reg-photo-row { flex-direction: column; align-items: flex-start; }
    .reg-photo-row > div { width: 100%; }
}

/* ============================================================
   报名页 / 报名门户 — 移动端优先重设计（v2）
   ============================================================ */

/* 页面骨架：表单 + 侧栏流程说明（桌面），移动端单栏 */
.reg-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.reg-side { position: sticky; top: 84px; }
@media (min-width: 960px) {
    .reg-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* 页头 */
.reg-hero { display: flex; gap: 16px; align-items: center; margin: 8px 0 20px; }
.reg-hero-icon {
    width: 52px; height: 52px; border-radius: 16px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: linear-gradient(135deg, var(--primary), #0a4030); color: #fff;
    box-shadow: 0 8px 20px rgba(14, 92, 63, .28);
}
.reg-hero h1 { font-size: clamp(22px, 4.6vw, 28px); font-weight: 800; margin: 0; }
.reg-hero p { margin: 2px 0 0; font-size: 14px; }

/* 账号类型卡片：大点击区域 */
.reg-types { gap: 12px; margin: 18px 0; }
.reg-type-card { padding: 16px 18px; gap: 4px; position: relative; }
.reg-type-card .reg-type-icon { font-size: 24px; margin-bottom: 4px; }
.reg-type-card.active::after {
    content: "✓"; position: absolute; top: 10px; right: 12px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* 表单卡片与分节序号 */
.reg-form { counter-reset: regsec; padding: clamp(16px, 4vw, 26px); }
.reg-form > .reg-section { display: flex; align-items: center; gap: 10px; }
.reg-form > .reg-section::before {
    counter-increment: regsec; content: counter(regsec);
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
/* 嵌套在弹窗里的表单同样编号 */
.modal-form .reg-section { display: flex; align-items: center; gap: 10px; }

/* 字段栅格：桌面两列，≤720px 单列（替代 auto-fit 造成的中间态挤压） */
.reg-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 721px) {
    .reg-grid { grid-template-columns: 1fr 1fr; }
}

/* 输入控件：防止 iOS 文件框溢出 + 文件选择按钮美化 */
.reg-form .form-control, .modal-form .form-control { min-height: 44px; }
input[type="file"].form-control { padding: 8px 12px; height: auto; min-height: 44px; max-width: 100%; }
input[type="file"].form-control::file-selector-button {
    margin-right: 10px; padding: 6px 14px; border: none; border-radius: 999px;
    background: #eef1ef; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
input[type="file"].form-control:hover::file-selector-button { background: #e2e8e4; }

/* 证件照行：圆形预览 + 上传区 */
.reg-photo-row { flex-wrap: wrap; }
.reg-photo { width: 88px; height: 88px; box-shadow: var(--shadow); }
.reg-photo[hidden] { display: none; }
.reg-photo-row > div { min-width: 200px; }

/* 单选行：触控友好 */
.reg-radio-row { gap: 10px; flex-wrap: wrap; }
.reg-radio-row label {
    padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
    min-height: 40px; display: inline-flex; align-items: center; gap: 7px;
}
.reg-radio-row label:has(input:checked) { border-color: var(--primary); background: #f1f8f4; font-weight: 700; }
.reg-radio-row input { accent-color: var(--primary); width: 16px; height: 16px; }

/* 日期 chips：更大的触控目标 */
.reg-chip span { padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; font-size: 13.5px; }

/* 提交区：桌面行内，移动端整宽 + 吸底 */
.reg-submit {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.reg-submit .btn { min-height: 46px; padding: 12px 34px; font-size: 15px; }
.reg-submit .muted { font-size: 13px; }
@media (max-width: 720px) {
    .reg-submit {
        position: sticky; bottom: 0; z-index: 50;
        background: var(--card); margin: 22px -16px -16px; padding: 14px 16px;
        box-shadow: 0 -6px 20px rgba(16, 42, 30, .08);
    }
    .reg-submit .btn { flex: 1; }
}

/* 侧栏流程卡 */
.reg-flow { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.reg-flow h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.reg-flow ol { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.reg-flow li {
    counter-increment: flow; position: relative; padding: 0 0 16px 34px;
    font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--line); margin-left: 11px;
}
.reg-flow li:last-child { padding-bottom: 0; }
.reg-flow li::before {
    content: counter(flow); position: absolute; left: -12px; top: 0;
    width: 22px; height: 22px; border-radius: 50%; background: #eef1ef; color: var(--primary);
    font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.reg-flow .reg-flow-mail { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }

/* ---------- 机构记者列表（替代表格，移动端自动换行） ---------- */
.jlist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.jlist-head h2 { margin: 0; }
.jlist-head .muted { font-size: 13px; }
.jlist { display: flex; flex-direction: column; gap: 10px; }
.jrow {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.jrow:hover { border-color: #cfd8d2; }
.javatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eef1ef; flex: none; }
.jmain { flex: 1; min-width: 180px; }
.jname { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jsub { font-size: 13px; color: var(--muted); word-break: break-all; }
.jsub span + span::before { content: "·"; margin: 0 6px; }
.jactions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.jactions form { display: inline; }
@media (max-width: 560px) {
    .jactions { width: 100%; margin-left: 60px; }
}
/* 本人记者行：淡绿底区别于普通记者 */
.jrow-self { background: #f4fbf6; border-color: #d1e7d8; }
.reg-self-badge {
    background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px; letter-spacing: .02em;
}
.jlist-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* 报名类型切换条（我的报名页） */
.reg-switch {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: -6px 0 16px; font-size: 13.5px;
}

/* ---------- 弹窗（添加记者） ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(10, 24, 18, .55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay[hidden] { display: none; }

/* ---------- 通用预览弹窗（审核页照片/证明材料，js 动态生成） ---------- */
.preview-overlay {
    position: fixed; inset: 0; z-index: 700;
    background: rgba(10, 24, 18, .72); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.preview-box {
    background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg);
    max-width: min(92vw, 1100px); max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: modal-in .18s ease;
}
.preview-box.preview-pdf { width: min(92vw, 1100px); height: 92vh; }
.preview-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.preview-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-close {
    border: none; background: none; font-size: 16px; cursor: pointer; color: var(--muted);
    width: 30px; height: 30px; border-radius: 8px; flex: none;
}
.preview-close:hover { background: var(--bg); color: var(--text); }
.preview-body { overflow: auto; display: flex; align-items: center; justify-content: center; background: #11182714; flex: 1; min-height: 0; }
.preview-body img { max-width: 100%; max-height: calc(92vh - 51px); display: block; object-fit: contain; }
.preview-body iframe { width: 100%; height: 100%; border: none; flex: 1; }
.cred-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cred-file-name { word-break: break-all; }
.modal {
    background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
    width: 100%; max-width: 760px; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: modal-in .18s ease;
}
@keyframes modal-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 22px; border-bottom: 1px solid var(--line); flex: none;
}
.modal-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
.modal-close {
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: #eef1ef; color: var(--muted); font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #e2e8e4; color: var(--ink); }
.modal-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 10px; flex: none;
    padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfa;
}
.modal-foot .btn { min-height: 42px; }
/* 移动端：弹窗近乎全屏 */
@media (max-width: 720px) {
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal { max-width: none; max-height: 96vh; border-radius: 18px 18px 0 0; }
    .modal-foot .btn { flex: 1; }
}


/* ---------- 弹窗公告（登录用户，见 js/announcements.js） ---------- */
.ann-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(10, 24, 18, .6); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ann-overlay[hidden] { display: none; }
.ann-card {
    position: relative; width: min(92vw, 640px);
    background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 16px; animation: modal-in .18s ease;
}
.ann-stage { position: relative; }
/* 内容区固定 16:9：图片等大 contain，文字同尺寸渲染、超长内部滚动 */
.ann-viewport {
    overflow: hidden; aspect-ratio: 16 / 9;
    border-radius: 12px; background: #f3f5f4;
}
.ann-track { display: flex; height: 100%; transition: transform .28s ease; }
.ann-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.ann-slide img { width: 100%; height: 100%; object-fit: contain; }
.ann-text {
    display: flex; flex-direction: column; height: 100%;
    padding: 22px 48px; background: var(--card); /* 两侧留白避开左右箭头 */
}
.ann-text h3 { margin: 0 0 8px; font-size: 18px; }
.ann-text-body {
    flex: 1; min-height: 0; overflow-y: auto;
    white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--ink);
}
.ann-close {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: #eef1ef; color: var(--muted); box-shadow: var(--shadow);
    font-size: 17px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.ann-close:hover { color: var(--ink); }
.ann-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow);
    font-size: 19px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.ann-arrow:hover { background: #fff; }
.ann-prev { left: 10px; }
.ann-next { right: 10px; }
.ann-dots { display: flex; gap: 7px; justify-content: center; padding: 12px 0 2px; }
.ann-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
    background: #d3dad6; cursor: pointer;
}
.ann-dot.active { background: var(--primary); }
.ann-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; }
.ann-hide { display: none !important; }
/* 紧急通知：红色徽标 + 卡片红色描边 */
.ann-card.ann-urgent-mode { box-shadow: 0 0 0 2px #d8342c, var(--shadow-lg); }
.ann-slide { position: relative; }
.ann-urgent-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 6px;
    background: #d8342c; color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
/* 文字型紧急通知：徽标转为标题上方的行内块（不遮挡标题） */
.ann-urgent-badge.ann-urgent-badge-inline {
    position: static; align-self: flex-start; margin-bottom: 10px;
}
/* 后台公告列表的「紧急通知」徽标（badge-status 红色变体） */
.badge-status.ann-cat-urgent { background: #fdeceb; color: #c02d26; }
/* 移动端：收紧内边距，缩小箭头，按钮等宽撑满 */
@media (max-width: 560px) {
    .ann-card { padding: 10px; border-radius: 14px; }
    .ann-text { padding: 14px 40px; }
    .ann-text h3 { font-size: 16px; }
    .ann-arrow { width: 30px; height: 30px; font-size: 16px; }
    .ann-prev { left: 6px; }
    .ann-next { right: 6px; }
    .ann-close { width: 30px; height: 30px; font-size: 15px; }
    .ann-foot .btn { flex: 1; }
}

/* ========== 导入预览（紧凑表格） ========== */
.import-summary { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.import-stat { font-size:13px; padding:4px 10px; background:var(--bg, #f8fafc); border-radius:6px; }
.import-stat b { color:var(--primary, #2563eb); }
.import-stat.ok b { color:#047857; }
.import-stat.warn b { color:#b45309; }
.import-stat.err b { color:#dc2626; }
.ipt-wrap { overflow-x:auto; margin-top:14px; border:1px solid #e5e7eb; border-radius:8px; }
.ipt-table { width:100%; border-collapse:collapse; font-size:12.5px; white-space:nowrap; }
.ipt-table th { position:sticky; top:0; background:#f1f5f9; font-weight:600; padding:7px 8px; border-bottom:2px solid #e2e8f0; text-align:left; }
.ipt-table td { padding:5px 8px; border-bottom:1px solid #f1f5f9; max-width:160px; overflow:hidden; text-overflow:ellipsis; }
.ipt-table tr:hover td { background:#f8fafc; }
.ipt-table tr.row-exists td { background:#fffbeb; }
.ipt-table tr.row-noprofile td { opacity:.55; }
.c-idx { color:#9ca3af; width:28px; }
.c-email { max-width:180px; font-family:monospace; font-size:12px; }
.c-name { font-weight:500; }
.c-center { text-align:center; }
.c-mobile { font-family:monospace; font-size:12px; }
.c-media { max-width:140px; }
.c-idnum { font-family:monospace; font-size:11.5px; color:#6b7280; }
.c-photo { max-width:120px; font-family:monospace; font-size:11px; color:#6b7280; }
.c-status { white-space:nowrap; }
.badge-warn { background:#fef3c7; color:#92400e; font-size:11px; padding:2px 7px; border-radius:4px; }
.badge-ok { background:#d1fae5; color:#065f46; font-size:11px; padding:2px 7px; border-radius:4px; }
.badge-muted { background:#f3f4f6; color:#6b7280; font-size:11px; padding:2px 7px; border-radius:4px; }

/* ---------- 图形验证码 + 注册蜜罐 ---------- */
.captcha-row { display:flex; gap:10px; align-items:center; }
.captcha-row .form-control { flex:1; min-width:0; }
.captcha-img { height:44px; width:auto; border-radius:8px; border:1px solid #d9e0dc; cursor:pointer; flex:none; background:#f4f7f5; }
.reg-captcha { max-width:420px; margin-top:18px; }
/* 蜜罐字段：移出视口隐藏（不用 display:none，部分机器人会跳过） */
.hp-field { position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; }
