:root {
  --orange: #ff552e;
  --orange-deep: #e64520;
  --orange-soft: #fff1ec;
  --link: #0066cc;
  --ink: #333;
  --muted: #666;
  --line: #e5e5e5;
  --bg: #f5f5f5;
  --hot: #ff0000;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 12px;
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
img { border: 0; vertical-align: middle; }

/* ===== top utility ===== */
.topbar {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  height: 32px;
  line-height: 32px;
  font-size: 12px;
  color: #666;
}
.topbar .wrap, .wrap {
  width: 1190px;
  margin: 0 auto;
}
.topbar .wrap { display: flex; justify-content: space-between; }
.topbar a { color: #666; margin-left: 14px; }
.topbar a:hover { color: var(--orange); }
.topbar .left a { margin-left: 0; margin-right: 10px; }
.city { color: var(--orange); font-weight: 700; }

/* ===== logo + search ===== */
.head {
  background: #fff;
  padding: 18px 0 12px;
}
.head .wrap { display: flex; align-items: center; gap: 24px; }
.logo {
  width: 210px;
  flex: none;
  text-decoration: none !important;
}
.logo .mark {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -1px;
  line-height: 1;
}
.logo .mark span { color: #222; }
.logo .sub {
  margin-top: 4px;
  color: #999;
  font-size: 12px;
}
.search-box { flex: 1; }
.search-row {
  display: flex;
  border: 2px solid var(--orange);
  height: 42px;
  background: #fff;
}
.search-row select {
  border: 0; outline: 0; padding: 0 10px; background: #fff; color: #333; width: 90px;
  border-right: 1px solid #eee;
}
.search-row input {
  flex: 1; border: 0; outline: 0; padding: 0 12px; font-size: 14px;
}
.search-row button {
  width: 90px; border: 0; background: var(--orange); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.search-row button:hover { background: var(--orange-deep); }
.hot-words { margin-top: 8px; color: #999; }
.hot-words a { color: #666; margin-right: 12px; }
.hot-words a.hot { color: var(--hot); }
.post-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 2px;
  white-space: nowrap;
}
.post-btn:hover { background: var(--orange-deep); text-decoration: none !important; }

/* ===== orange nav ===== */
.nav {
  background: var(--orange);
  height: 40px;
}
.nav .wrap { display: flex; height: 40px; }
.nav a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 0 18px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 700;
}
.nav a:hover, .nav a.active { background: var(--orange-deep); }

/* ===== category icons ===== */
.cats {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.cats .wrap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  text-align: center;
}
.cat-item {
  display: block;
  color: #333 !important;
  text-decoration: none !important;
  padding: 8px 4px;
  border-radius: 4px;
}
.cat-item:hover { background: var(--orange-soft); text-decoration: none !important; }
.cat-ico {
  width: 48px; height: 48px; margin: 0 auto 8px;
  border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 20px; font-weight: 800;
}
.cat-item b { display: block; font-size: 13px; }
.cat-item span { color: #999; font-size: 12px; }
.c1 { background: linear-gradient(135deg,#ff7a45,#ff552e); }
.c2 { background: linear-gradient(135deg,#4dabf7,#228be6); }
.c3 { background: linear-gradient(135deg,#69db7c,#2f9e44); }
.c4 { background: linear-gradient(135deg,#da77f2,#9c36b5); }
.c5 { background: linear-gradient(135deg,#ffd43b,#f59f00); }
.c6 { background: linear-gradient(135deg,#66d9e8,#0c8599); }
.c7 { background: linear-gradient(135deg,#ffa8a8,#fa5252); }
.c8 { background: linear-gradient(135deg,#adb5bd,#495057); }

/* ===== main portal grid ===== */
.main { padding: 16px 0 40px; }
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.panel {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px 14px 16px;
}
.panel h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  font-size: 16px;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel h3 .more { font-size: 12px; font-weight: 400; color: #999; }
.dir-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.dir-row:last-child { border-bottom: 0; }
.dir-label {
  flex: none;
  width: 72px;
  color: #222;
  font-weight: 700;
  font-size: 13px;
}
.dir-links { flex: 1; line-height: 1.9; }
.dir-links a { margin-right: 10px; white-space: nowrap; }
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.list-item:last-child { border-bottom: 0; }
.list-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { color: #999; flex: none; }
.tag {
  display: inline-block;
  padding: 0 5px;
  margin-right: 4px;
  border: 1px solid #ffd8cc;
  color: var(--orange);
  background: #fff7f4;
  font-size: 12px;
  line-height: 18px;
  border-radius: 2px;
}
.tag.blue { border-color: #cce0ff; color: #1c7ed6; background: #f1f7ff; }
.tag.green { border-color: #c3e6cb; color: #2b8a3e; background: #ebfbee; }
.side-block { margin-bottom: 12px; }
.side-block:last-child { margin-bottom: 0; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.icon-grid a {
  display: block;
  color: #333 !important;
  text-decoration: none !important;
  padding: 10px 4px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.icon-grid a:hover { border-color: var(--orange); color: var(--orange) !important; }
.icon-grid i {
  display: block;
  width: 36px; height: 36px; margin: 0 auto 6px;
  border-radius: 8px; line-height: 36px; color: #fff; font-style: normal; font-weight: 700;
}
.rank-item {
  display: flex; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.rank-item .n {
  width: 18px; height: 18px; border-radius: 2px;
  background: #ddd; color: #fff; text-align: center; line-height: 18px; font-size: 12px;
}
.rank-item:nth-child(-n+3) .n { background: var(--orange); }
.login-box {
  background: linear-gradient(180deg, #fff7f4, #fff);
  border: 1px solid #ffd8cc;
  padding: 14px;
  margin-bottom: 12px;
}
.login-box h4 { margin: 0 0 8px; font-size: 14px; }
.login-box .btns { display: flex; gap: 8px; margin-top: 10px; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  border: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  border-radius: 2px;
}
.btn:hover { background: var(--orange-deep); text-decoration: none !important; }
.btn.outline {
  background: #fff;
  color: var(--orange) !important;
  border: 1px solid var(--orange);
}
.btn.gray { background: #f5f5f5; color: #333 !important; border: 1px solid #ddd; }

/* ===== inner pages ===== */
.breadcrumb {
  padding: 12px 0;
  color: #999;
}
.breadcrumb a { color: #666; }
.content-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.content-card h1 {
  margin: 0 0 12px;
  font-size: 20px;
  border-left: 4px solid var(--orange);
  padding-left: 10px;
}
.content-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.filter-bar {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.filter-bar .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.filter-bar .lab { color: #999; width: 56px; }
.filter-bar a, .filter-bar span.linkish {
  margin-right: 8px; color: #333; padding: 2px 8px; border-radius: 2px;
}
.filter-bar a.on, .filter-bar a:hover { background: var(--orange); color: #fff !important; text-decoration: none; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  background: #fafafa; color: #666; font-weight: 700;
  padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left;
}
.table td { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.listing {
  display: grid; gap: 0;
}
.listing .item {
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}
.listing .item:hover { background: #fffaf8; }
.listing .title { font-size: 15px; font-weight: 700; color: #222; }
.listing .title a { color: #222; }
.listing .title a:hover { color: var(--orange); }
.listing .desc { color: #666; margin-top: 6px; line-height: 1.7; }
.listing .price { color: var(--orange); font-size: 18px; font-weight: 800; text-align: right; }
.listing .side { text-align: right; color: #999; }
.form-grid { display: grid; gap: 12px; max-width: 760px; }
.form-grid .row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.form-grid label { color: #666; padding-top: 8px; text-align: right; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid #ddd; padding: 8px 10px; font: inherit; border-radius: 2px;
}
.form-grid textarea { min-height: 88px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.flash { padding: 10px 12px; margin-bottom: 12px; border: 1px solid #eee; }
.flash.ok { background: #ebfbee; border-color: #c3e6cb; color: #2b8a3e; }
.flash.err { background: #fff5f5; border-color: #ffc9c9; color: #c92a2a; }
.footer {
  background: #fff; border-top: 1px solid #eee; color: #999;
  text-align: center; padding: 24px 0; margin-top: 20px; font-size: 12px;
}
.footer a { color: #666; margin: 0 8px; }
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: grid; place-items: center; padding: 40px 16px;
  background: linear-gradient(180deg, #fff1ec, #f5f5f5);
}
.auth-card {
  width: 420px; background: #fff; border: 1px solid #eee; padding: 28px 30px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 22px; color: #222; }
.auth-card .sub { color: #999; margin-bottom: 18px; }
.auth-card .form-grid .row { grid-template-columns: 70px 1fr; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 0 0 12px 14px; border-left: 2px solid #ffe0d6; margin-left: 4px; position: relative; }
.timeline li::before {
  content: ""; width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
  position: absolute; left: -5px; top: 4px;
}
.muted { color: #999; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== pagination ===== */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.pager-info { color: #999; font-size: 12px; }
.pager-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager-links a, .pager-links span {
  display: inline-block;
  min-width: 32px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  padding: 0 8px;
  border: 1px solid #eee;
  border-radius: 2px;
  color: #333;
  background: #fff;
  text-decoration: none !important;
  font-size: 13px;
}
.pager-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.pager-links .current {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.pager-links .disabled {
  color: #ccc;
  background: #fafafa;
  cursor: default;
}
.pager-side .pager {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}
.pager-side .pager-info { font-size: 11px; }
.pager-side .pager-links { justify-content: flex-start; }
.pager-side .pager-links a,
.pager-side .pager-links span {
  min-width: 26px;
  height: 26px;
  line-height: 26px;
  padding: 0 6px;
  font-size: 12px;
}

@media (max-width: 1220px) {
  .wrap, .topbar .wrap { width: auto; margin: 0 12px; }
  .portal-grid, .cols-3 { grid-template-columns: 1fr; }
  .cats .wrap { grid-template-columns: repeat(4, 1fr); }
  .listing .item { grid-template-columns: 1fr; }
}
