/* 佰企特 — PC/手机同一套自适应布局 */
:root {
  --brand: #dc4a0f;
  --brand-dark: #b83b0a;
  --ink: #222;
  --muted: #666;
  --line: #e5e5e5;
  --bg: #f4f4f4;
  --card: #fff;
  --top: #1a1a1a;
  --max: 1200px;
  --pad: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 14px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; }
.clear { clear: both; }
.vip-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  padding: 0 5px;
  line-height: 16px;
  border-radius: 2px;
  vertical-align: middle;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

/* ===== Top bar ===== */
.site-top {
  background: var(--top);
  color: #ddd;
  font-size: 12px;
}
.site-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 12px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}
.site-top a { color: #fff; }
.site-top-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.site-top-login input[type=text],
.site-top-login input[type=password] {
  width: 96px;
  height: 26px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  padding: 0 6px;
}
.site-top-login input[type=submit],
.site-top-login .btn-mini {
  height: 26px;
  padding: 0 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
}
.site-top-user { display: flex; gap: 12px; align-items: center; }

/* ===== Header brand row ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 12px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}
.site-logo img { height: 56px; width: auto; display: block; }
.site-search form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}
.site-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 2px solid var(--brand);
  border-right: 0;
  padding: 0 12px;
  outline: none;
}
.site-search button {
  width: 88px;
  height: 40px;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
.site-header-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.site-header-actions a {
  display: inline-block;
  min-width: 88px;
  text-align: center;
  background: var(--brand);
  color: #fff !important;
  line-height: 28px;
  border-radius: 2px;
  font-size: 13px;
}
.site-header-ad { display: none; }
@media (min-width: 980px) {
  .site-header-inner { grid-template-columns: auto 1fr auto auto; }
  .site-header-ad { display: block; }
  .site-header-ad img { width: 190px; height: 70px; object-fit: cover; border: 1px solid var(--line); }
}

/* ===== Nav ===== */
.site-nav {
  background: #2b2b2b;
}
.site-nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
}
.site-nav li { flex: 1 1 auto; text-align: center; min-width: 72px; }
.site-nav a {
  display: block;
  color: #fff !important;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: bold;
}
.site-nav a:hover,
.site-nav .current a { background: var(--brand); }

.site-hot {
  width: 100%;
  max-width: var(--max);
  margin: 8px auto;
  background: var(--card);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  box-sizing: border-box;
}
.site-hot strong { color: #c00; margin-right: 6px; }
.site-hot a { color: var(--muted); margin: 0 2px; }
.site-hot a:hover { color: var(--brand); }

/* ===== Layout shells ===== */
.area,
.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 12px;
  padding: 0 12px;
  box-sizing: border-box;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  background: transparent;
  padding-bottom: 24px;
}
@media (max-width: 979px) {
  .page { grid-template-columns: 1fr; }
  .page-side { display: none; }
}
/* 兼容旧模板 class */
.content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 12px;
  padding: 0 12px 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
}
.content > .enav { grid-column: 1 / -1; }
.content > .left,
.content > .page-main { min-width: 0; background: var(--card); padding: 12px; }
.content > .right,
.content > .page-side { min-width: 0; background: var(--card); padding: 12px; }
@media (max-width: 979px) {
  .content { grid-template-columns: 1fr; }
  .content > .right,
  .content > .page-side { display: none; }
}
.page-main,
.page-side {
  background: var(--card);
  min-width: 0;
}
.page-main { padding: 12px; }
.page-side { padding: 12px; }
.enav {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0 2px;
}
.enav a { color: var(--muted); }
.area-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  font-size: 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.area-title strong { color: var(--ink); }
.ad-rent { color: #c00; font-size: 12px; }
.add_area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: #fff;
  font-weight: bold;
  margin: 0;
  flex: 0 0 auto;
}

/* ===== Ads：CSS Grid 均分，避免 inline-block 百分比取整换行 ===== */
.ad-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--card);
  padding: 8px 0;
  margin-bottom: 10px;
  overflow: hidden;
}
/* 角标 + 标题同一行；广告行/资讯组独占下一行 */
.ad-zone > .ad-row,
.ad-zone > .ad-banner,
.ad-zone > .ad-news {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* A 区资讯在 zone 外单独成块，保证可见 */
.area-a .ad-news {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 0 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  box-sizing: border-box;
}
.area-a .ad-zone {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 8px 10px;
}
.ad-row {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 8px 10px;
  box-sizing: border-box;
}
.ad-row > a {
  display: block;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fafafa;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.ad-row > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 60px;
  color: #c00 !important;
  font-weight: bold;
  font-size: 13px;
  line-height: 1.2;
  background: #fff7e6 !important;
  border: 0 !important;
  box-sizing: border-box;
}

/* PC 列数 */
.ad-190x70 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ad-290x80 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-390x80 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-190x160 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ad-593x80 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-210x120 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ad-160x160 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ad-232x230 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ad-150x60 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.ad-190x70 > a { aspect-ratio: 190 / 70; }
.ad-290x80 > a { aspect-ratio: 290 / 80; }
.ad-390x80 > a { aspect-ratio: 390 / 80; }
.ad-190x160 > a { aspect-ratio: 190 / 160; }
.ad-593x80 > a { aspect-ratio: 593 / 80; }
.ad-210x120 > a { aspect-ratio: 210 / 120; }
.ad-160x160 > a { aspect-ratio: 1 / 1; }
.ad-232x230 > a { aspect-ratio: 232 / 230; }
.ad-150x60 > a { aspect-ratio: 150 / 60; }

.ad-banner {
  margin: 8px 0;
  overflow: hidden;
  background: var(--card);
}
.ad-banner a { display: block; }
.ad-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 120px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .ad-row { gap: 6px; }
  .ad-190x70,
  .ad-290x80,
  .ad-190x160,
  .ad-210x120,
  .ad-232x230,
  .ad-150x60 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-390x80,
  .ad-593x80 { grid-template-columns: 1fr; }
  .ad-160x160 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ad-latest {
  background: var(--card);
  padding: 8px;
}
.ad-latest ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 700px) {
  .ad-latest ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .ad-latest ul { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.ad-latest li {
  background: #f5f5f5;
  padding: 8px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ad-latest a { color: var(--ink); }
.ad-latest a:hover { color: var(--brand); }

/* 广告行下方资讯组 */
.ad-news {
  flex: 0 0 100%;
  width: 100%;
  margin: 2px 0 8px;
  padding: 6px 0 2px;
  border-top: 1px dashed #eee;
}
.ad-news ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .ad-news ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .ad-news ul { grid-template-columns: 1fr 1fr 1fr; }
}
.ad-news li {
  position: relative;
  padding: 4px 8px 4px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.ad-news li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--brand);
  border-radius: 50%;
}
.ad-news a { color: var(--ink); }
.ad-news a:hover { color: var(--brand); }

/* ===== Single pages: 关于我们 / 联系方式 ===== */
.spage {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 0 12px 28px;
  box-sizing: border-box;
}
.spage .enav { margin-bottom: 10px; }
.spage-hero {
  background:
    linear-gradient(135deg, rgba(220,74,15,0.12), rgba(255,255,255,0.9) 48%),
    linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 28px 24px 24px;
  margin-bottom: 14px;
}
.spage-brand {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.spage-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
}
.spage-lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.spage-body {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 24px 26px;
}
.spage-content {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}
.spage-content h2 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: var(--ink);
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}
.spage-content h2:first-child { margin-top: 0; }
.spage-content p { margin: 0 0 12px; }
.spage-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink);
}
.spage-list li { margin: 6px 0; }
.spage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.spage-card {
  border: 1px solid #edd5c8;
  background: #fffaf7;
  padding: 16px 14px;
}
.spage-card-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.spage-card-value {
  font-size: 22px;
  font-weight: bold;
  color: var(--brand);
  word-break: break-all;
}
.spage-card-value a { color: var(--brand); }
.spage-card-tip {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
}
.spage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #eee;
}
@media (max-width: 720px) {
  .spage-hero { padding: 20px 16px; }
  .spage-hero h1 { font-size: 24px; }
  .spage-body { padding: 16px; }
  .spage-cards { grid-template-columns: 1fr; }
  .spage-card-value { font-size: 20px; }
}

.zone-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 640px;
}
.zone-option {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  cursor: pointer;
  width: auto !important;
  color: var(--ink) !important;
}
.zone-option input {
  width: auto !important;
  max-width: none !important;
  margin: 0;
}
.zone-option .zone-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.zone-option .zone-name { font-weight: bold; }
.zone-option .zone-point { margin-left: auto; color: var(--brand); font-size: 13px; }
.zone-option:has(input:checked) {
  border-color: var(--brand);
  background: #fff7f2;
  box-shadow: inset 0 0 0 1px var(--brand);
}
@media (max-width: 720px) {
  .zone-options { grid-template-columns: 1fr; }
}

/* ===== Product list ===== */
.zs-list { display: flex; flex-direction: column; }
.zs-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 110px;
  gap: 10px 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.zs-item:hover { background: #fafafa; }
.zs-pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eee;
}
.zs-body h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: bold;
}
.zs-body h4 a { color: var(--brand); }
.zs-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.zs-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
}
@media (max-width: 719px) {
  .zs-item { grid-template-columns: 96px minmax(0, 1fr); }
  .zs-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-self: start;
  }
}
.zs-actions a {
  display: block;
  text-align: center;
  line-height: 30px;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
}
.zs-actions .daili { border: 1px solid #ce0000; color: #ce0000; }
.zs-actions .lianxi { border: 1px solid #027cca; color: #027cca; }

/* news list */
.news-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.news-item h3 { font-size: 16px; margin-bottom: 6px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--brand); }
.news-item p { color: var(--muted); font-size: 13px; }
.news-item .date { color: #999; font-size: 12px; margin-top: 6px; }

/* ===== Detail panels ===== */
.panel {
  border: 1px solid var(--brand);
  margin-bottom: 12px;
  background: #fff;
}
.panel-hd {
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 12px;
}
.panel-bd { padding: 12px; line-height: 1.8; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
}
@media (max-width: 719px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-kv { font-size: 14px; }
.detail-kv div { padding: 4px 0; }
.detail-cover {
  text-align: center;
}
.detail-cover img {
  width: min(100%, 245px);
  height: auto;
  aspect-ratio: 245 / 190;
  object-fit: cover;
  border: 1px solid var(--line);
}
.wxts {
  border: 1px solid #ffbe78;
  background: #fff4e8;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.7;
}
.wxts b { color: #c00; }

/* member center */
.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 14px;
}
.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  width: 120px;
  background: #fafafa;
  color: var(--muted);
  font-weight: normal;
  white-space: nowrap;
}
.data-table tr:hover td { background: #fffdf9; }

/* ===== Forms ===== */
.inquiry-form .form-row,
.form-row {
  margin: 0 0 12px;
}
.inquiry-form label,
.form-row > label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}
.inquiry-form input[type=text],
.inquiry-form input[type=password],
.inquiry-form textarea,
.inquiry-form select,
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  max-width: 520px;
  border: 1px solid #ccc;
  padding: 8px 10px;
}
.inquiry-form .channels label {
  display: inline-block;
  width: auto;
  margin: 4px 10px 4px 0;
  color: var(--ink);
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  padding: 10px 18px;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  font-size: 14px;
}
.btn.ghost {
  background: #fff;
  color: var(--brand) !important;
  border: 1px solid var(--brand);
}
.btn-reg-submit {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 36px;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.reg_title {
  background: #f5f5f5;
  border-left: 4px solid var(--brand);
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  margin: 16px 0 8px;
}
.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}
.role-option {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  background: #fff;
  cursor: pointer;
  width: auto !important;
  color: var(--ink) !important;
}
.role-option input {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 2px;
}
.role-option .role-name {
  font-weight: bold;
  font-size: 15px;
}
.role-option .role-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.role-option:has(input:checked) {
  border-color: var(--brand);
  background: #fff7f2;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 20px;
  max-width: 720px;
}
.upgrade-plan {
  border: 1px solid #e5e5e5;
  padding: 16px 18px;
  background: #fafafa;
}
.upgrade-plan.featured {
  border-color: var(--brand);
  background: #fff7f2;
}
.upgrade-plan h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.upgrade-plan .plan-quota {
  margin: 0 0 10px;
  color: var(--brand);
}
.upgrade-plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.upgrade-plan .plan-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #999;
}
@media (max-width: 720px) {
  .role-options,
  .upgrade-plans {
    grid-template-columns: 1fr;
  }
}
.tl { text-align: left; color: var(--ink); }
.f_red { color: #c00; }
.f_gray { color: var(--muted); }
.f_b { font-weight: bold; }
.tips { color: #999; font-size: 12px; margin-top: 4px; }
.form-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 520px;
}
.form-code input {
  width: 140px !important;
  max-width: 140px !important;
}
.form-code img {
  height: 36px;
  cursor: pointer;
  vertical-align: middle;
}
.form-agree .agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: normal;
}
.form-agree input[type=checkbox] {
  width: auto;
  max-width: none;
  margin-top: 4px;
}

/* sidebar */
.side-block { margin-bottom: 16px; }
.side-block .name {
  display: block;
  font-weight: bold;
  border-left: 3px solid var(--brand);
  padding-left: 8px;
  margin-bottom: 8px;
}
.side-block li {
  border-bottom: 1px dashed #e0e0e0;
  line-height: 32px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.side-block a { color: var(--ink); }
.side-block a:hover { color: var(--brand); }

/* pages */
.pages {
  text-align: center;
  padding: 18px 0 8px;
}
.pages a, .pages span {
  display: inline-block;
  margin: 2px;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: #333;
}
.pages .current, .pages a:hover {
  background: #027cca;
  color: #fff;
  border-color: #0469aa;
}

/* footer */
.site-footer {
  background: #2a2a2a;
  color: #bbb;
  font-size: 12px;
  line-height: 1.8;
  padding: 20px 0 28px;
  margin-top: 20px;
}
.site-footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
  box-sizing: border-box;
}
.site-footer a { color: #ff8080; }
.message-box {
  background: var(--card);
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 100%;
  background: #2b2b2b;
  color: #fff;
  border: 0;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav ul { display: none; }
  .site-nav.is-open ul { display: flex; }
  .site-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-header-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .site-search form { max-width: 100%; }
  .site-top-login input[type=text],
  .site-top-login input[type=password] { width: 78px; }
  .site-logo img { height: 48px; margin: 0 auto; }
}
