/* 发布站 · 前台样式（参考开服表/发布网风格，移动端优先） */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: #1f2933;
  background-color: #f6f7f9;
  background-image: radial-gradient(1100px 420px at 50% -160px, #ffffff 0%, rgba(255,255,255,0) 70%);
  font: 16px/1.65 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 12px 56px; }

/* 顶栏 */
.hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
      padding: 18px 0 16px; border-bottom: 1px solid #e9ecef; margin-bottom: 24px; }
.hd .logo { font-size: 22px; font-weight: 700; color: #1f2933; display: flex; align-items: center; gap: 10px; }
.hd .logo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.10); }
.hd nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.hd nav a { color: #495057; font-size: 15px; padding: 6px 13px; border-radius: 8px; transition: color .15s, background-color .15s; }
.hd nav a:hover { color: #c0392b; background: #f1f3f5; text-decoration: none; }
.hd nav a.on { color: #c0392b; background: #fdecea; font-weight: 600; }
.hd nav a.qun-btn { background: #1f2933; color: #fff; margin-left: 6px; }
.hd nav a.qun-btn:hover { background: #0f1620; color: #fff; text-decoration: none; }

/* 标题区 */
.hero { margin: 0 0 20px; }
.hero h1 { font-size: 24px; margin: 0 0 6px; }
.hero p { margin: 0; color: #8b95a1; font-size: 14px; }

/* 筛选 */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter select, .filter input[type=text] { padding: 9px 11px; border: 1px solid #e3e7eb; border-radius: 10px;
  background: #fff; font-size: 15px; font-family: inherit; color: #1f2933; transition: border-color .15s, box-shadow .15s; }
.filter select:focus, .filter input[type=text]:focus { outline: none; border-color: #cdd5dd; box-shadow: 0 0 0 3px rgba(31,41,51,.05); }
.filter input[type=text] { flex: 1; min-width: 180px; }
.filter button { padding: 9px 18px; border: 0; border-radius: 10px; background: #1f2933; color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; }
.filter button:hover { background: #0f1620; }

/* 列表行 */
.list { display: block; }
.row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eceff2; border-radius: 14px;
  padding: 14px; margin-bottom: 10px; transition: border-color .16s, box-shadow .16s; }
.row:hover { border-color: #dde3e8; box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.row-main { flex: 1; min-width: 0; }
.row h2 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.row h2 a { color: #1f2933; }
.row h2 a:hover { color: #c0392b; text-decoration: none; }
.meta { color: #8b95a1; font-size: 14px; }
.meta span { margin-right: 12px; white-space: nowrap; display: inline-block; }
.meta .memo { white-space: normal; color: #216d7a; background: #f0fafc; padding: 1px 7px; border-radius: 6px; }
.meta b { font-weight: 600; color: #1f2933; }
.meta .ver { background: #fdecea; color: #c0392b; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.meta .zone { background: #eaf2fb; color: #2b6cb0; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.meta .feat { background: #f4ecfb; color: #7d3c98; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.meta .clk { color: #a2aab4; }
.meta .clk b { color: #c0392b; font-size: 16px; font-weight: 700; }
.meta .tclk { color: #a2aab4; }
.row-act { display: flex; gap: 8px; flex-shrink: 0; }

/* 按钮 */
.btn { display: inline-block; padding: 8px 16px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 15px;
  white-space: nowrap; border: 1px solid #c0392b; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; }
.btn:hover { background: #a93226; border-color: #a93226; color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: #495057; border: 1px solid #e0e5ea; }
.btn-ghost:hover { background: #f7f8fa; color: #1f2933; border-color: #d3dae1; }
.btn-dark { background: #1f2933; border-color: #1f2933; }
.btn-dark:hover { background: #0f1620; border-color: #0f1620; }
.btn-big { padding: 11px 30px; font-size: 17px; border-radius: 11px; }
.btn-sm { padding: 5px 12px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 状态标签 */
.tag { display: inline-block; font-size: 13px; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; font-weight: 400; }
.tag-top { background: #c0392b; color: #fff; }
.st-today { background: #e8f6ec; color: #1e8449; }
.st-soon { background: #fdf4e3; color: #b9770e; }
.st-open { background: #eef1f5; color: #5d6d7e; }
.st-unk { background: #eef1f5; color: #8b95a1; }

.empty { background: #fff; border: 1px dashed #e3e7eb; border-radius: 14px; padding: 44px 40px; text-align: center; color: #8b95a1; }

/* 详情 */
.detail { background: #fff; border: 1px solid #eceff2; border-radius: 16px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.detail h1 { font-size: 22px; margin: 0 0 16px; }
.tb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb th { text-align: left; width: 110px; color: #8b95a1; font-weight: 400; padding: 7px 10px 7px 0; vertical-align: top; white-space: nowrap; }
.tb td { padding: 7px 0; border-bottom: 1px solid #f2f4f6; word-break: break-all; }
.tb tr:last-child td { border-bottom: 0; }
.tb td.intro { color: #495057; line-height: 1.95; }
.act { margin: 18px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sec { font-size: 17px; margin: 22px 0 12px; padding-left: 10px; border-left: 3px solid #c0392b; }
.body-text { white-space: pre-wrap; word-break: break-word; color: #495057; font-size: 15px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eceff2; border-radius: 10px; background: #fafbfc; margin-bottom: 8px; }
.file .fn { flex: 1; min-width: 0; word-break: break-all; font-size: 14.5px; }
.file .fs { color: #8b95a1; font-size: 13px; white-space: nowrap; }

/* 分页 */
.pager { text-align: center; margin: 22px 0; color: #8b95a1; }
.pager a, .pager span { margin: 0 4px; padding: 6px 12px; border: 1px solid #e3e7eb; border-radius: 8px; background: #fff; display: inline-block; }
.pager a:hover { border-color: #c0392b; color: #c0392b; text-decoration: none; }
.pager span.cur { background: #1f2933; color: #fff; border-color: #1f2933; }

.ft { text-align: center; color: #a2aab4; font-size: 13px; padding: 24px 0 0; line-height: 1.9; }
.ft a { color: #c0392b; }

/* ---------------- 管理后台 ---------------- */
.box { background: #fff; border: 1px solid #eceff2; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.box > h3 { margin: 0 0 14px; font-size: 17px; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: #7b8794; margin-bottom: 6px; }
label.field input, label.field select, label.field textarea { width: 100%; padding: 9px 11px; border: 1px solid #e3e7eb; border-radius: 10px; font-size: 15px; font-family: inherit; color: #1f2933; background: #fff; }
label.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
label.field input:focus, label.field select:focus, label.field textarea:focus { outline: none; border-color: #cdd5dd; box-shadow: 0 0 0 3px rgba(31,41,51,.05); }
.dropzone { border: 1.5px dashed #d7dde3; border-radius: 12px; padding: 22px; text-align: center; color: #8b95a1; background: #fafbfc; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: #c0392b; color: #c0392b; background: #fdf6f5; }
.progress { height: 6px; background: #eef1f4; border-radius: 999px; overflow: hidden; margin-top: 10px; display: none; }
.progress.show { display: block; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c0392b, #e05a4a); transition: width .15s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: #fafbfc; border: 1px solid #eceff2; border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font-size: 22px; color: #1f2933; }
.stat span { font-size: 13px; color: #8b95a1; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #eceff2; border-radius: 10px; background: #fff; margin-bottom: 8px; }
.lrow .grow { flex: 1; min-width: 0; }
.lrow .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .s { color: #8b95a1; font-size: 13px; margin-top: 2px; }
.hint { color: #8b95a1; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); background: #1f2933; color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 99; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; bottom: 48px; }
.hidden { display: none !important; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 640px) {
  .hd { padding: 14px 0 12px; margin-bottom: 18px; }
  .hd .logo { font-size: 19px; }
  .hd nav { width: 100%; }
  .hd nav a { padding: 6px 10px; font-size: 14px; }
  .hero h1 { font-size: 20px; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .row-act { justify-content: stretch; }
  .row-act .btn { flex: 1; text-align: center; }
  .btn-big { width: 100%; text-align: center; }
  .detail { padding: 16px; }
  .detail h1 { font-size: 19px; }
  .tb th { width: 84px; font-size: 14px; }
  .media-hide { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 找技术 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; z-index: 100; overflow: auto; padding: 24px 16px; }
.mask.show { display: block; }
.modal { max-width: 560px; margin: 40px auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.25); overflow: hidden; }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eef1f4; }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-head .close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #8b95a1; cursor: pointer; }
.modal-body { padding: 18px 20px 22px; }
.tech-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech-opt { border: 1px solid #e9ecef; background: #fafbfc; border-radius: 12px; padding: 18px 16px; text-align: left; cursor: pointer; transition: .15s; font-family: inherit; }
.tech-opt:hover { border-color: #c0392b; background: #fdf6f5; }
.tech-opt b { display: block; font-size: 17px; color: #1f2933; margin-bottom: 6px; }
.tech-opt span { font-size: 13px; color: #8b95a1; }
.tech-form .field { margin-bottom: 12px; }
.tech-form label > span { display: block; font-size: 13px; color: #7b8794; margin-bottom: 6px; }
.tech-form input { width: 100%; padding: 9px 11px; border: 1px solid #e3e7eb; border-radius: 10px; font-size: 15px; font-family: inherit; }
.tech-form input:focus { outline: none; border-color: #cdd5dd; box-shadow: 0 0 0 3px rgba(31,41,51,.05); }
.tech-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tech-list { display: grid; gap: 10px; }
.tech-item { border: 1px solid #eef1f4; border-radius: 12px; padding: 12px 14px; background: #fafbfc; }
.tech-item .ti-name { font-weight: 700; color: #1f2933; }
.tech-item .ti-meta { color: #8b95a1; font-size: 13.5px; margin-top: 4px; }
.tech-item .ti-contact { margin-top: 8px; color: #c0392b; font-size: 14px; }
.tech-empty { color: #8b95a1; text-align: center; padding: 26px 0; }
@media (max-width: 640px) {
  .tech-menu { grid-template-columns: 1fr; }
  .modal { margin: 16px auto; }
}
/* ---------- 移动端增强（找技术弹窗 / 后台 / 列表） ---------- */
@media (max-width: 640px) {
  /* 防止 iOS 聚焦输入框自动放大 */
  input, select, textarea { font-size: 16px !important; }

  /* 筛选栏控件占满整行 */
  .filter { gap: 8px; }
  .filter select, .filter input[type="text"], .filter button { width: 100%; min-width: 0; }

  /* 触控目标更大 */
  .btn { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; padding: 8px 12px; }
  .tag { font-size: 12px; }

  /* 弹窗自适应 */
  .mask { padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .modal { margin: 8px auto; border-radius: 14px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 14px 16px 18px; overflow: auto; }
  .tech-opt { padding: 16px 14px; }
  .tech-opt b { font-size: 16px; }
  .tech-actions .btn { flex: 1; }
  .tech-item { padding: 11px 12px; }

  /* 后台行内操作按钮换行铺满 */
  .lrow { flex-wrap: wrap; }
  .lrow .grow { flex-basis: 100%; }
  .lrow .btn { flex: 1; }

  /* 详情表格与附件更紧凑 */
  .tb { font-size: 14px; }
  .tb th { width: 76px; padding: 6px 8px 6px 0; }
  .file { flex-wrap: wrap; }
  .file .fn { flex-basis: 100%; }
  .file .btn { flex: 1; }

  /* 顶部与页脚间距 */
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 13px; }
  .ft { font-size: 12px; padding-top: 18px; }
  .wrap { padding: 0 10px 40px; }

  /* 后台表单与统计 */
  .box { padding: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hd .logo { font-size: 17px; }
  .hd nav a { padding: 5px 8px; font-size: 13px; }
}
/* 技术报名：详细介绍 */
.tech-form textarea { width: 100%; padding: 9px 11px; border: 1px solid #e3e7eb; border-radius: 10px; font-size: 15px; font-family: inherit; line-height: 1.7; min-height: 96px; resize: vertical; }
.tech-form textarea:focus { outline: none; border-color: #cdd5dd; box-shadow: 0 0 0 3px rgba(31,41,51,.05); }
.tech-item .ti-intro { margin-top: 8px; color: #495057; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.admin-tech-intro { white-space: pre-wrap; color: #495057; font-size: 13px; margin-top: 4px; line-height: 1.6; }
.tech-item .ti-intro b { color: #7b8794; font-weight: 600; }

/* 后台：开服列表 与 技术报名 并列 */
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.admin-cols > .box { margin-bottom: 0; min-width: 0; }
.admin-cols .list-row, .admin-cols .lrow { flex-wrap: wrap; }
.admin-cols .lrow .grow { min-width: 0; }
@media (max-width: 900px) {
  .admin-cols { grid-template-columns: 1fr; }
}
/* 滑动开关 */
.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; user-select: none; }
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .slider { position: absolute; inset: 0; background: #cfd6de; border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch .slider::before { content: ""; position: absolute; height: 21px; width: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: #c0392b; }
.switch input:checked + .slider::before { transform: translateX(21px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(192,57,43,.25); }
/* ---------- 前台背景图 ---------- */
body.front {
  background-image: linear-gradient(rgba(246,247,249,.50), rgba(246,247,249,.50)), url('/assets/beijing.jpg');
  background-size: cover, cover;
  background-position: center center, center center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}
@media (max-width: 640px) {
  body.front { background-attachment: scroll, scroll; }
}