/* ==========================================================================
   布局层：后台管理外壳 + 前台站点
   外观对齐原系统设计：深色顶栏 #23262E + 深色左侧树形菜单 + 青绿主色点缀。
   ========================================================================== */

/* ---------- 后台外壳 ---------- */
.admin {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--header-h) 1fr;
    grid-template-areas: "brand header" "side main";
    min-height: 100vh;
}

.admin-brand {
    grid-area: brand;
    display: flex; align-items: center; gap: 10px;
    padding: 0 var(--gap);
    background: var(--c-dark); color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: .5px;
    overflow: hidden; white-space: nowrap;
}
.admin-brand a {
    display: flex; align-items: center; gap: 9px;
    color: #fff; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis;
}
.admin-brand a:hover { text-decoration: none; }
/* 品牌图标沿用前台那枚渐变圆角方块，缩小到 26px */
.admin-brand .brand-mark {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: var(--c-primary-grad);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.admin-brand .brand-mark .ico { width: 15px; height: 15px; }

.admin-header {
    grid-area: header;
    display: flex; align-items: center; gap: var(--gap);
    padding: 0 var(--gap-lg);
    background: var(--c-dark);
    color: var(--c-dark-text);
}
.admin-header .crumb { color: var(--c-dark-text); font-size: var(--fs); }
.admin-header .user-box { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-header .user-box .name { color: #fff; font-weight: 500; display: flex; align-items: center; gap: 6px; }
/* 顶栏里的按钮改成描边胶囊，配深色底 */
.admin-header .btn {
    height: 30px; padding: 0 14px;
    border-radius: var(--radius-pill);
    background: transparent; color: var(--c-dark-text);
    border-color: rgba(255, 255, 255, .22);
}
.admin-header .btn:hover {
    background: rgba(255, 255, 255, .1); color: #fff;
    border-color: rgba(255, 255, 255, .4);
}
.admin-header #sideToggle {
    border-color: transparent; font-size: 18px;
    padding: 0 8px;
}

.admin-side {
    grid-area: side;
    background: var(--c-dark);
    padding: 8px 0 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .05);
}
.admin-side .menu-group > .menu-title {
    display: flex; align-items: center; gap: 8px;
    padding: 12px var(--gap) 8px;
    color: #7d8494; font-size: 12px; font-weight: 600;
    letter-spacing: .06em;
}
.admin-side a {
    display: flex; align-items: center; gap: 9px;
    padding: 10px var(--gap) 10px 34px;
    color: var(--c-dark-text); text-decoration: none;
    border-left: 3px solid transparent;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.admin-side a .ico { color: #6f7789; transition: color var(--ease); }
.admin-side a:hover { background: var(--c-dark-2); color: #fff; text-decoration: none; }
.admin-side a:hover .ico { color: var(--c-primary); }
.admin-side a[aria-current="page"] {
    background: var(--c-dark-3); color: #fff;
    border-left-color: var(--c-primary);
}
.admin-side a[aria-current="page"] .ico { color: var(--c-primary); }
.admin-side .menu-group > a { padding-left: 34px; }
/* 顶层直挂的菜单项（无分组）左边距小一些 */
.admin-side > a { padding-left: var(--gap); }

.admin-main {
    grid-area: main;
    padding: var(--gap-lg);
    overflow-x: hidden;
}
.page-hd {
    display: flex; align-items: center; gap: var(--gap-sm);
    margin-bottom: var(--gap);
    flex-wrap: wrap;
}
.page-hd h1 {
    font-size: 20px; font-weight: 600;
    display: flex; align-items: center; gap: 9px;
}
.page-hd h1 .ico { color: var(--c-primary); }

/* 工具条：搜索 + 筛选 + 操作 */
.toolbar {
    display: flex; align-items: flex-end; gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--gap);
}
.toolbar .field { min-width: 160px; }
.toolbar .grow { flex: 1 1 auto; }

/* 统计卡 */
.stat-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
    padding: var(--gap-lg);
    background: #fff; border: 1px solid var(--c-border-2);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stat .num { font-size: 28px; font-weight: 600; color: var(--c-primary); line-height: 1.2; }
.stat .label { color: var(--c-text-2); font-size: var(--fs-sm); margin-top: 4px; }

@media (max-width: 900px) {
    .admin {
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "header" "main";
    }
    .admin-side {
        position: fixed; inset: var(--header-h) auto 0 0;
        width: var(--sidebar-w); z-index: 500;
        transform: translateX(-100%);
        transition: transform var(--ease);
    }
    .admin.side-open .admin-side { transform: none; }
    .admin-main { padding: var(--gap); }
}

/* ---------- 登录页（对齐旧站：深蓝渐变底 + 白卡 + 绿按钮 + 验证码） ---------- */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--gap);
    background: linear-gradient(135deg, #1f3a68 0%, #2b5ea8 100%);
}
.login-card {
    width: 460px; max-width: calc(100vw - 32px);
    padding: 44px 42px 30px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.login-card h1 { font-size: 26px; color: #1f2d3d; text-align: center; margin: 0 0 5px; font-weight: 600; }
.login-card .sub { text-align: center; color: #98a6ad; font-size: 15px; margin: 0 0 28px; }
.login-card .field { margin-bottom: 18px; }
/* 登录页输入框放大到旧站的 48px 高 */
.login-card .input { height: 48px; font-size: 16px; padding: 0 14px; }
.login-card .field .err { min-height: 0; }
.login-card .field .err:empty { display: none; }

/* 验证码行：输入框自适应 + 右侧固定宽度图片，两者同一行并与上面输入框左右对齐。
   这里每一条都写死，不留给继承：这个 div 同时挂着 .field，而 components.css 里
   .field 是 flex-direction: column，只写 display:flex 的话方向会被它带成纵向，
   输入框和图片就变成上下两行。 */
.login-card .captcha-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
}
/* 必须显式压过上面那条 display:flex —— [hidden] 的选择器权重比 .login-card .captcha-row 低，
   不写这条的话「未达阈值时隐藏验证码」会失效 */
.login-card .captcha-row[hidden] { display: none; }
/* min-width:0 是关键：表单控件的 min-width 默认解析成自身固有宽度（约 20 字符），
   不压成 0 的话输入框收不下去，整行会比其他输入框短一截、右侧留个豁口。 */
.login-card .captcha-row .input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.login-card .captcha-row img {
    flex: 0 0 150px;
    /* 与输入框同高：border-box 让 1px 边框算在 48px 内，两者顶底才齐平 */
    box-sizing: border-box;
    width: 150px; height: 48px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    cursor: pointer; background: #f2f4f8; object-fit: cover;
    display: block;
}

/* 通用验证码行：快捷入口口令弹窗（App.modal）和 /go/{id} 页复用。
   逻辑跟上面登录页那套一样，只是不挂在 .login-card 下 —— 弹窗里的 .field
   同样是 flex-direction:column，所以这里也要把整行强制成横排，并给
   [hidden] 一条显式的 display:none 压过 display:flex（[hidden] 权重更低）。
   图片高度按普通输入框的 40px 走（弹窗/页面里的 .input 不是登录页的 48px）。 */
.captcha-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}
.captcha-row[hidden] { display: none; }
.captcha-row .input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.captcha-row img {
    flex: 0 0 130px;
    box-sizing: border-box;
    width: 130px; height: 40px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    cursor: pointer; background: #f2f4f8; object-fit: cover;
    display: block;
}

/* 绿色登录按钮（旧站主色），整宽 */
.login-card .btn-login {
    width: 100%; height: 48px; margin-top: 4px;
    font-size: 17px; letter-spacing: 4px;
    color: #fff; background: #159f88; border-color: #159f88;
}
.login-card .btn-login:hover { background: #128975; border-color: #128975; }
.login-card .btn-login.is-loading { letter-spacing: 0; }

.login-card .login-foot {
    margin-top: 20px; text-align: center;
    color: #a6a6a6; font-size: 14px;
}

/* ---------- 前台站点 ---------- */
.site-header {
    height: var(--site-header-h);
    background: #fff;
    border-bottom: 1px solid var(--c-border-2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    flex-shrink: 0;
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--site-header-h);
    max-width: 1200px;
}
.site-header .brand { display: flex; align-items: center; }
/* 渐变圆角方块 + 竖分隔线 + 标题，完全照原系统页头 */
.site-header .brand-mark {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--c-primary-grad);
    box-shadow: 0 4px 12px rgba(47, 175, 188, .25);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.site-header .brand-mark .ico { width: 21px; height: 21px; }
.site-header .brand-sep { width: 1px; height: 28px; background: var(--c-border); margin: 0 18px; }
.site-header .brand-titles { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.site-header .logo {
    font-size: 24px; font-weight: 700; color: var(--c-text);
    letter-spacing: 1px; line-height: 1.15; text-decoration: none;
}
.site-header .logo:hover { text-decoration: none; }
/* 后台「头部标题文字」写成 HTML 时，内部链接继承标题外观 */
.site-header .logo-html { font-size: 24px; font-weight: 700; color: var(--c-text); letter-spacing: 1px; line-height: 1.15; }
.site-header .logo-html a { color: inherit; text-decoration: none; }
.site-header .logo-html a:hover { color: var(--c-primary); }
.site-header .subtitle {
    margin-top: 3px; font-size: 15px; color: var(--c-text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 右侧导航：渐变胶囊按钮 */
.site-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    font-size: var(--fs); font-weight: 500;
    color: #fff; text-decoration: none;
    border-radius: var(--radius-pill);
    background: var(--c-primary-grad);
    box-shadow: 0 2px 8px var(--c-primary-glow);
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
    color: #fff; text-decoration: none;
    transform: translateY(-1px);
    background: var(--c-primary-grad-hover);
    box-shadow: 0 4px 14px rgba(47, 175, 188, .4);
}

/* 主体：外层留白 + 一张白色大圆角卡片 */
.site-main { flex: 1; padding: 32px 24px; }
.site-main > .container {
    background: #fff;
    max-width: 1200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
}
.site-section { padding: 40px 36px 8px; }
.site-section:last-child { padding-bottom: 44px; }
.site-footer {
    padding: 24px 0 32px; text-align: center;
    color: #aaa; font-size: 12px; line-height: 1.8;
    border-top: 1px solid var(--c-border-2); background: #fff;
    flex-shrink: 0;
}
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); }
/* 版权信息支持 HTML：段落不额外留白，备案图标与文字对齐 */
.site-footer p { margin: 0; }
.site-footer img { height: 16px; width: auto; vertical-align: -3px; margin-right: 4px; }

/* 居中的板块标题 */
.section-hd {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.section-hd h2 { font-size: 24px; font-weight: 600; color: var(--c-text); }
.section-hd .ico { width: 24px; height: 24px; color: var(--c-primary); }
.section-hd .more { margin-left: auto; font-size: var(--fs-sm); }

/* 卡片网格（填报项目 / 快捷入口）
   造型照原系统 .project-card：斜向渐变底 + 左侧 4px 主色竖条
   + 渐变图标方块 + 右侧圆形箭头，hover 整卡上浮。 */
.entry-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* 快捷入口（compact）PC 端固定一行 2 个，超过自动换行。
   原来用 auto-fit minmax(200px) 时，宽屏一行能挤进 4~5 个，卡片被压得很窄。
   手机端在下面 768px 断点里改回单列。 */
.entry-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.entry-card {
    position: relative;
    display: block;
    padding: 25px;
    background: var(--c-card-grad);
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: inherit; text-decoration: none;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.entry-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--c-primary-bar);
}
.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
    text-decoration: none;
}
.entry-card:active { transform: scale(.98); }
/* 未开放的卡片不做交互反馈 */
.entry-card.is-static { cursor: default; }
.entry-card.is-static:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--c-border-2); }

.entry-card .card-icon {
    width: 50px; height: 50px;
    margin-bottom: 15px;
    /* 图标在文字左侧时（手机端 .entry-card 是 flex 横排）留 3px 间距。
       PC 上是竖排块布局，右外边距看不出来，所以放在基础样式里就够，
       不用再写一份手机覆盖；.inline-card 有自己的 15px，不受影响。 */
    margin-right: 3px;
    border-radius: 10px;
    background: var(--c-primary-grad);
    box-shadow: 0 4px 12px var(--c-primary-glow);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.entry-card .card-icon .ico { width: 24px; height: 24px; }
/* 快捷入口图标换成素材中心的图时，去掉渐变底色让图片自己占满方块 */
.entry-card .card-icon.has-img { background: #fff; box-shadow: none; overflow: hidden; }
.entry-card .card-icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-card .body { min-width: 0; padding-right: 40px; }
.entry-card .title {
    display: block;
    font-size: 17px; font-weight: 600; color: var(--c-text);
    margin-bottom: 8px; line-height: 1.4;
}
.entry-card .title .tag { vertical-align: middle; margin-left: 4px; }
.entry-card .desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--fs); color: #888; line-height: 1.5;
}
.entry-card .meta { display: block; margin-top: 6px; color: var(--c-text-3); font-size: var(--fs-sm); }

/* 右侧圆形箭头：hover 时填主色 */
.entry-card .go {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    color: #999;
    transition: background .3s ease, color .3s ease;
}
.entry-card:hover .go { background: var(--c-primary); color: #fff; }

/* 快捷入口：图标与文字横排 */
.entry-card.inline-card { display: flex; align-items: center; padding: 20px 24px; }
.entry-card.inline-card .card-icon { margin-bottom: 0; margin-right: 15px; }
.entry-card.inline-card .body { flex: 1; padding-right: 50px; }
.entry-card.inline-card .title { margin-bottom: 0; }

/* 新闻卡片列表：与项目卡片同一造型，横排带缩略图 */
.news-cards { display: flex; flex-direction: column; gap: 6px; }
.news-card {
    position: relative;
    display: flex; align-items: center;
    padding: 20px 24px 20px 32px;
    background: var(--c-card-grad);
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: inherit; text-decoration: none;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.news-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--c-primary-bar);
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    border-color: var(--c-primary);
    text-decoration: none;
}
.news-card .thumb {
    width: 140px; height: 90px; flex-shrink: 0;
    border-radius: 8px; overflow: hidden;
    background: var(--c-primary-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.news-card .thumb .ico { width: 34px; height: 34px; }
/* 有缩略图时换成中性底色，避免透明区透出品牌渐变 */
.news-card .thumb.has-img { background: #f2f4f7; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { flex: 1; min-width: 0; padding: 0 20px; }
.news-card .t {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px; font-weight: 500; color: var(--c-text); line-height: 1.5;
    word-break: break-word;
}
.news-card:hover .t { color: var(--c-primary); }
.news-card .d { margin-top: 6px; color: var(--c-text-3); font-size: var(--fs-sm); }
.news-card .go {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 50%; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    color: #999;
    transition: background .3s ease, color .3s ease;
}
.news-card:hover .go { background: var(--c-primary); color: #fff; }

/* 首页两栏里的紧凑新闻列表 */
.news-list li {
    display: flex; align-items: center; gap: var(--gap);
    padding: 12px 0; border-bottom: 1px dashed var(--c-border-2);
}
.news-list li:last-child { border-bottom: none; }
.news-list .t { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .d { color: var(--c-text-3); font-size: var(--fs-sm); white-space: nowrap; }

.empty-hint { text-align: center; color: var(--c-text-3); padding: 50px 0; }

/* 新闻页搜索条：PC 端把整条加宽到原来的两倍（420→840），
   搜索按钮也加宽约一半并强制「搜索」两字横排不换行。 */
.search-bar { display: flex; gap: 8px; max-width: 840px; }
.search-bar .input { flex: 1 1 auto; }
.search-bar .btn { flex: 0 0 auto; min-width: 96px; white-space: nowrap; }

/* 文章详情 */
.article-detail { max-width: 900px; margin: 0 auto; padding: 40px 48px; }
.article-hd { border-bottom: 1px solid var(--c-border-2); padding-bottom: 20px; margin-bottom: 24px; }
.article-hd h1 { font-size: 26px; font-weight: 600; color: #222; line-height: 1.4; word-break: break-word; }
.article-meta { margin-top: 8px; font-size: var(--fs); color: var(--c-text-3); }
.article-meta span { margin-right: 20px; display: inline-flex; align-items: center; gap: 5px; }
.article-meta .ico { color: var(--c-primary); }
.article-ft { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--c-border-2); }

/* 文章正文 */
.article-body {
    font-size: var(--fs-lg); line-height: 1.8; color: var(--c-text);
    word-break: break-word; overflow-wrap: break-word;
}
.article-body p { margin: 0 0 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.article-body td, .article-body th { border: 1px solid var(--c-border); padding: 8px; }
.article-body th { background: var(--c-bg-hover); font-weight: 600; }
/* 富文本编辑器产出的其余块级元素 */
.article-body h2 { font-size: 22px; font-weight: 600; margin: 26px 0 12px; }
.article-body h3 { font-size: 19px; font-weight: 600; margin: 22px 0 10px; }
.article-body ul, .article-body ol { padding-left: 26px; margin: 0 0 16px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
    margin: 0 0 16px; padding: 10px 16px;
    border-left: 3px solid var(--c-primary);
    background: var(--c-bg-hover); color: var(--c-text-2);
}
.article-body pre {
    margin: 0 0 16px; padding: 12px 14px; overflow-x: auto;
    background: #f6f8fa; border-radius: var(--radius);
    font-family: ui-monospace, Consolas, monospace; font-size: var(--fs);
}
.article-body hr { border: none; border-top: 1px solid var(--c-border-2); margin: 20px 0; }
.article-body a { color: var(--c-primary); text-decoration: underline; }

/* 填报表单页：顶部渐变提示条 + 居中表单 */
.tips-box {
    padding: 20px 36px;
    background: var(--c-primary-grad);
    color: #fff; line-height: 1.8;
}
.tips-box h2 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.tips-box .tips-detail { margin: 5px 0 0; font-size: var(--fs); text-align: justify; opacity: .95; }
.tips-box .tips-detail a { color: #fff; text-decoration: underline; }

.fill-form { max-width: 760px; margin: 0 auto; padding: 28px 24px 40px; }
/* 提交按钮 PC/手机都居中 */
.fill-actions { margin-top: 8px; text-align: center; }
/* 提交按钮尺寸 PC 与手机同一套：宽度在上一轮的 90px 基础上再加 10px，
   高度在 .btn 的 34px 基础上加 4px。两端统一，省得再写一份手机覆盖。 */
.fill-actions .btn { min-width: 100px; height: 38px; }

/* 填报页字段行：标题与填写框同一行，PC 与手机同一套规则。
 *
 * 所有控件一律 flex:1 1 0 + width:100%，左右边缘严格对齐 —— 关键在
 * flex-basis 必须是 0：留 auto 的话 select 与 input[type=date] 会按各自的
 * 固有宽度参与分配，同一列里就会比文本框窄一截（看着像"宽度不统一"）。
 * min-width:0 是另一半，否则固有最小宽度顶着，长选项的 select 会被撑宽。
 * 错误提示单独占一行，并缩进到与控件左边缘齐平。
 */
.fill-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.fill-row > label { flex: 0 0 96px; line-height: 1.4; }
.fill-row > .input,
.fill-row > .select,
.fill-row > .textarea,
.fill-row > .check-list { flex: 1 1 0; width: 100%; min-width: 0; }
.fill-row > .err { flex: 1 1 100%; margin-left: 106px; }


/* 填报页顶部两格页签（录入 / 查询）：项目开了查询页才渲染。
   做成两颗蓝色按钮：hover 变浅，选中态压深并在按钮下沿加一条黄线。
   黄线用 border-bottom 而不是伪元素，选中/未选中都占同样高度，切换时不跳行。
   rp-list / rp-item 是查询结果的卡片列表。 */
.rp-tabs { display: flex; gap: 10px; padding: 4px 0 14px; }
.rp-tabs .rp-tab {
    flex: 1 1 0; padding: 12px 0; text-align: center;
    font-size: 16px; font-family: inherit; cursor: pointer;
    color: #fff; background: #2b5ea8;
    border: 0; border-radius: var(--radius);
    border-bottom: 3px solid transparent;
    transition: background var(--ease), border-color var(--ease);
}
.rp-tabs .rp-tab:hover { background: #3671c4; }
.rp-tabs .rp-tab.is-on { background: #1f3a68; border-bottom-color: #f5c518; font-weight: 500; }
.rp-list { display: flex; flex-direction: column; gap: 10px; }
.rp-item { border: 1px solid var(--c-border-2); border-radius: 8px; padding: 12px 14px; }
.rp-item .rp-hd { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; }
.rp-item .rp-bd { margin-top: 6px; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.7; }

/* 扫码字段：输入框 + 右侧「扫码」按钮同一行，按钮不参与压缩。
   配色跟提交按钮一致（同一套主色渐变），再加一点微弱立体感：
   顶部一道内高光 + 底部一道内阴影，按下时高光去掉，看着像真的被压下去。 */
.scan-box { display: flex; gap: 8px; flex: 1 1 0; min-width: 0; }
.scan-box > .input { flex: 1 1 0; min-width: 0; }
.scan-box > .btn {
    flex: 0 0 auto;
    color: #fff;
    background: var(--c-primary-grad);
    border-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -1px 0 rgba(0, 0, 0, .12),
        0 1px 3px var(--c-primary-glow);
}
.scan-box > .btn:hover { background: var(--c-primary-grad-hover); }
.scan-box > .btn:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18);
}





/* /go/{id} 单独进入页：PC 上口令框和按钮一起居中；手机端只居中按钮（见下方媒体查询） */
.go-field { max-width: 420px; margin: 0 auto; }
.go-actions { margin-top: 16px; text-align: center; }


/* 前台整页竖向弹性布局，页脚永远贴底 */
body.site { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
    .site-section { padding: 36px 28px 8px; }
    .site-section:last-child { padding-bottom: 40px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
    /* 移动端把页头页脚收起，内容占满整屏，和原系统一致 */
    .site-header, .site-footer { display: none !important; }
    .site-main { padding: 0; }
    .site-main > .container {
        max-width: 100%; border-radius: 0;
        box-shadow: none; margin: 0;
    }
    .site-section { padding: 20px 14px 8px; }
    .site-section:last-child { padding-bottom: 28px; }

    .section-hd {
        margin-bottom: 14px;
        padding: 14px 0;
        border-bottom: 1px solid var(--c-border-2);
    }
    .section-hd h2 { font-size: 20px; font-weight: 500; }
    .section-hd .ico { width: 22px; height: 22px; }

    .entry-grid, .entry-grid.compact { grid-template-columns: 1fr; gap: 8px; }
    .entry-card { display: flex; align-items: center; padding: 15.5px 16px; }
    .entry-card .card-icon .ico { width: 20px; height: 20px; }
    .entry-card .body { flex: 1; padding-right: 40px; }
    .entry-card .title { font-size: 17px; margin-bottom: 2px; line-height: 1.3; }
    .entry-card .desc { font-size: var(--fs); line-height: 1.3; -webkit-line-clamp: 1; }

    .news-card { padding: 16px 14px; }
    .news-card .thumb { width: 70px; height: 70px; border-radius: 10px; }
    .news-card .thumb .ico { width: 28px; height: 28px; }
    .news-card .body { padding: 0 14px; }
    .news-card .t { font-size: 17px; }
    .news-card .go { width: 32px; height: 32px; }

    /* /go 页：手机端口令框恢复整宽左对齐，只保留按钮居中 */
    .go-field { max-width: none; margin: 0; }

    /* 填报页手机端：同行布局在基础样式里已生效。这里把标题两侧的留白全压掉
       （容器左右内边距 24→12，标题列 96→72，间距 10→8），省下的宽度由
       控件的 flex:1 自动吃掉，填写框因此变宽；控件对齐规则不动。 */
    .fill-form { padding: 16px 12px 28px; }
    .fill-row { gap: 8px; }
    .fill-row > label { flex: 0 0 72px; }
    .fill-row > .err { margin-left: 80px; }

    /* 页眉（渐变提示条）压扁；填报说明手机端不显示，只留标题与简介 */
    .tips-box { padding: 12px 14px; }
    .tips-box h2 { font-size: 17px; margin-bottom: 4px; }
    .tips-box .tips-detail { margin-top: 3px; }
    .tips-notice { display: none; }

    /* 提交按钮尺寸已在基础样式里统一（100px × 38px），手机端不再单独覆盖 */
}

@media print {
    .admin-side, .admin-header, .admin-brand, .toolbar, .btn, .pager { display: none !important; }
    .admin { display: block; }
    body { background: #fff; }
}
