/* 信息发布平台 · 浅色分类信息站风格 */
:root {
  --primary: #2b6fff;
  --primary-d: #1b54d6;
  --accent: #ff8a1e;
  --accent-d: #ef7910;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #2c2f38;
  --muted: #98a0b0;
  --border: #ebeef4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 简易图标 */
.ico-user, .ico-search, .ico-fire, .ico-loc, .ico-eye, .ico-person { display: inline-block; line-height: 1; }
.ico-user::before { content: "\1F464"; }
.ico-search::before { content: "\1F50D"; color: #fff; }
.ico-fire::before { content: "\1F525"; }
.ico-loc::before { content: "\1F4CD"; }
.ico-eye::before { content: "\1F441"; }
.ico-person::before { content: "\1F464"; }

/* 顶部条 */
.topbar { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; }
.logo-text { font-size: 24px; font-weight: 800; color: #d4322a; letter-spacing: 1px; }
.top-nav { display: flex; gap: 30px; }
.top-nav a { font-size: 16px; color: #4a5366; }
.top-nav a:hover, .top-nav a.active { color: var(--primary); }
.top-nav a.hl { color: var(--accent); font-weight: 600; }

/* 横幅 */
.hero {
  position: relative;
  height: 430px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(120,180,255,.55), transparent 60%),
    linear-gradient(120deg, #0f3b8c 0%, #1f5fd6 45%, #3b82f6 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
}
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-title { font-size: 50px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 4px 18px rgba(0,0,0,.25); }
.hero-sub { font-size: 26px; font-weight: 400; margin-top: 8px; opacity: .96; }
.hero-search {
  margin-top: 34px;
  max-width: 720px;
  display: flex;
  align-items: center;
  background: rgba(8, 22, 52, .42);
  padding: 12px;
  border-radius: 6px;
}
.hs-label { color: #fff; font-size: 16px; padding: 0 16px 0 6px; white-space: nowrap; }
.hero-search input {
  flex: 1; height: 50px; border: 0; outline: 0;
  padding: 0 16px; font-size: 15px; color: #333;
  border-radius: 4px 0 0 4px;
}
.hero-search button {
  width: 64px; height: 50px; border: 0; cursor: pointer;
  background: var(--accent); border-radius: 0 4px 4px 0;
  font-size: 20px; transition: background .2s;
}
.hero-search button:hover { background: var(--accent-d); }

/* 分类标签 */
.cat-tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  margin-top: 18px;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  flex-wrap: wrap;
}
.cat-tabs .tab {
  border: 1px solid transparent;
  background: transparent;
  color: #4a5366;
  font-size: 15px;
  padding: 8px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}
.cat-tabs .tab:hover { color: var(--primary); background: #f1f5ff; }
.cat-tabs .tab.active { background: var(--primary); color: #fff; }

/* 主体布局 */
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  margin-top: 22px;
  margin-bottom: 40px;
  align-items: start;
}

/* 左侧热门 */
.hot-side {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.hot-title { font-size: 17px; color: #e23b2e; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.hot-list { display: flex; flex-direction: column; gap: 14px; }
.hot-item { cursor: pointer; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.hot-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(43,111,255,.16); }
.hot-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hot-item .hot-cap {
  font-size: 13px; color: #444; padding: 8px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 右侧列表 */
.list-main { background: #fff; border-radius: 10px; padding: 6px 24px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 14px; border-bottom: 1px solid var(--border);
}
.list-cat { font-size: 22px; font-weight: 700; color: #2b3344; }
.sort { display: flex; gap: 18px; font-size: 14px; color: #8a93a6; }
.sort-opt { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sort-opt i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid #c6ccd8; display: inline-block; position: relative;
}
.sort-opt.active { color: var(--accent); }
.sort-opt.active i { border-color: var(--accent); }
.sort-opt.active i::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}

/* 信息行 */
.info-list { display: flex; flex-direction: column; }
.row-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.row-item:hover .row-title { color: var(--primary); }
.row-thumb { position: relative; flex: 0 0 200px; width: 200px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: #eef1f7; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.row-item:hover .row-thumb img { transform: scale(1.05); }
.row-badge {
  position: absolute; top: 0; left: 0;
  padding: 3px 12px; font-size: 12px; color: #fff;
  background: var(--accent); border-radius: 0 0 8px 0;
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title {
  font-size: 19px; font-weight: 600; color: #2b3344; margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s;
}
.row-desc {
  font-size: 14px; color: #6b7384; line-height: 1.7; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { margin-top: auto; display: flex; align-items: center; gap: 26px; font-size: 13px; color: #98a0b0; }
.row-meta .m { display: flex; align-items: center; gap: 5px; }
.row-meta .m-person { color: var(--accent); }
.row-fav {
  align-self: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  border: 0; cursor: pointer; border-radius: 50%;
  background: #f0f2f7; color: #b9c0cd; font-size: 18px;
  transition: all .2s;
}
.row-fav:hover { background: #fff0e3; color: var(--accent); }
.row-fav.on { background: var(--accent); color: #fff; }
.empty-tip { text-align: center; color: var(--muted); padding: 50px 0; }

/* 页脚 */
.site-footer { background: #232a38; color: #aeb6c6; font-size: 14px; }
.foot-cols {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 36px 20px 30px;
}
.foot-col h4 { font-size: 16px; color: #fff; margin-bottom: 16px; font-weight: 600; }
.foot-col a, .foot-col p { display: block; color: #9aa3b4; margin: 9px 0; font-size: 13px; }
.foot-col a:hover { color: #fff; }
.foot-qr { text-align: left; }
.qr-img { width: 110px; height: 110px; border-radius: 6px; background: #fff; }
.qr-ph {
  display: none;
  width: 110px; height: 110px;
  align-items: center; justify-content: center;
  background: #fff; color: #98a0b0; font-size: 12px;
  border-radius: 6px; text-align: center;
}
.foot-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #7e879a;
}
@media (max-width: 820px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: 1fr; }
}

/* ===== 详情弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 28, 48, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .2s;
}
.modal-mask[hidden] { display: none; }
.modal-mask.show { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 14px; padding: 34px 40px 32px;
  transform: translateY(14px); transition: transform .2s;
}
.modal-mask.show .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  width: 32px; height: 32px; line-height: 30px; text-align: center;
  font-size: 24px; color: #99a1b3; cursor: pointer; border-radius: 50%; transition: all .2s;
}
.modal-close:hover { background: #f0f2f7; color: #555; }
.d-title { font-size: 24px; font-weight: 700; color: #1f2533; padding-right: 30px; }
.d-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 14px 0 18px; padding: 12px 16px;
  background: #f4f7ff; border-radius: 8px; font-size: 14px; color: #4a566f;
}
.d-meta .mi {
  display: inline-block; margin-right: 8px; padding: 1px 8px;
  font-size: 12px; color: #fff; border-radius: 4px; background: var(--primary);
}
.d-img { border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.d-img img { width: 100%; }
.d-sec-title {
  font-size: 17px; font-weight: 600; color: #1f2533;
  margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary);
}
.d-desc { font-size: 15px; color: #51596b; line-height: 1.9; }
.d-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; list-style: none; }
.d-list li { position: relative; padding-left: 22px; font-size: 14px; color: #51596b; }
.d-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.d-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.d-step { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: #f4f7ff; border-radius: 20px; font-size: 13px; color: #4a566f; }
.d-step .no { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; color: #fff; background: var(--primary); }
.d-contact { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.d-note { flex: 1; min-width: 240px; font-size: 14px; color: #6b7384; line-height: 1.7; }
.d-btn { border: 0; cursor: pointer; padding: 12px 32px; font-size: 16px; color: #fff; border-radius: 6px; background: var(--accent); transition: background .2s; }
.d-btn:hover { background: var(--accent-d); }

/* 提示 */
.toast {
  position: fixed; top: 90px; left: 50%;
  transform: translateX(-50%) translateY(-10px); z-index: 2000;
  background: #1f2533; color: #fff; padding: 12px 26px; border-radius: 8px;
  font-size: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 920px) {
  .main-layout { grid-template-columns: 1fr; }
  .hot-side { display: none; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 20px; }
  .hero { height: 360px; }
}
@media (max-width: 600px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .member { display: none; }
  .row-item { flex-direction: column; gap: 12px; }
  .row-thumb { flex: none; width: 100%; }
  .row-fav { display: none; }
  .d-list { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
}

/* ===== 信息发布页 ===== */
.pub-wrap { margin-top: 18px; margin-bottom: 40px; }
.pub-tip {
  background: #eef5ff;
  border: 1px solid #d4e4ff;
  color: #5a6b86;
  font-size: 13px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.pub-tip strong { color: #2b6fff; }

.pub-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  padding: 8px 30px 30px;
}
.pub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.pub-head h2 { font-size: 19px; color: #2b3344; }
.pub-req { font-size: 13px; color: #98a0b0; }
.pub-req i { color: #ff5b5b; font-style: normal; }

.pf-row { display: flex; align-items: center; margin-bottom: 22px; }
.pf-row-top { align-items: flex-start; }
.pf-label {
  flex: 0 0 110px;
  text-align: right;
  padding-right: 14px;
  font-size: 14px;
  color: #4a5366;
}
.pf-label i { color: #ff5b5b; font-style: normal; margin-right: 3px; }
.pf-ctrl { flex: 0 0 560px; max-width: 560px; }
.pf-input {
  width: 100%;
  height: 40px;
  border: 1px solid #dfe3ec;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.pf-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(43,111,255,.12); }
.pf-textarea { height: 200px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.pf-select {
  height: 40px;
  border: 1px solid #dfe3ec;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
  color: #555;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.pf-select:focus { border-color: var(--primary); }
.pf-region { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-region .pf-select { flex: 0 0 auto; min-width: 120px; }
.pf-region .pf-addr { flex: 1 0 100%; }
.pf-cat { min-width: 160px; }

.pf-hint {
  margin-left: 16px;
  align-self: center;
  position: relative;
  background: #fff;
  border: 1px solid #cfe0ff;
  color: #4a78c8;
  font-size: 13px;
  padding: 7px 12px 7px 28px;
  border-radius: 6px;
  max-width: 230px;
  line-height: 1.5;
}
.pf-hint::before {
  content: "?";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  line-height: 15px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  border-radius: 50%;
  background: #5a93ff;
}
.pf-row-top .pf-hint { align-self: flex-start; margin-top: 4px; }

/* 错误态 */
.pf-row.err .pf-input, .pf-row.err .pf-select { border-color: #ff5b5b; }
.pf-row.err .pf-label { color: #ff5b5b; }

/* 上传 */
.pub-upload { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 24px; }
.pub-upload h3 { font-size: 16px; color: #2b3344; margin-bottom: 10px; }
.up-tip, .up-count { font-size: 13px; color: #8a93a6; margin-bottom: 8px; }
.up-box { display: flex; gap: 16px; margin-top: 6px; }
.up-add {
  width: 130px; height: 130px;
  border: 1px dashed #cfd5e0;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: #9aa3b4; font-size: 14px;
  cursor: pointer;
  background: #fafbfd;
  transition: all .2s;
}
.up-add:hover { border-color: var(--primary); color: var(--primary); background: #f4f8ff; }
.up-plus { font-size: 34px; line-height: 1; font-weight: 300; }
.up-preview { position: relative; width: 130px; height: 130px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.up-preview[hidden] { display: none; }
.up-preview img { width: 100%; height: 100%; object-fit: cover; }
.up-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; cursor: pointer; font-size: 16px;
}

/* 提交 */
.pub-submit { text-align: center; margin-top: 34px; }
.pub-btn {
  min-width: 220px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .2s;
}
.pub-btn:hover { background: var(--accent-d); }

@media (max-width: 820px) {
  .pf-row { flex-wrap: wrap; }
  .pf-label { flex-basis: 100%; text-align: left; margin-bottom: 8px; }
  .pf-ctrl { flex: 1 1 100%; max-width: 100%; }
  .pf-hint { display: none; }
}

/* 联系方式弹窗 */
.contact-pop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(20, 28, 48, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .2s;
}
.contact-pop.show { opacity: 1; }
.cp-box {
  position: relative;
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 12px;
  padding: 30px 34px 28px;
  text-align: center;
  transform: translateY(12px); transition: transform .2s;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.contact-pop.show .cp-box { transform: translateY(0); }
.cp-close {
  position: absolute; top: 12px; right: 16px;
  width: 30px; height: 30px; line-height: 28px; text-align: center;
  font-size: 22px; color: #99a1b3; cursor: pointer; border-radius: 50%;
}
.cp-close:hover { background: #f0f2f7; color: #555; }
.cp-title { font-size: 20px; color: #1f2533; margin-bottom: 8px; }
.cp-title::after {
  content: ""; display: block; width: 40px; height: 3px;
  margin: 10px auto 0; border-radius: 2px; background: var(--accent);
}
.cp-tip { font-size: 13px; color: #8a93a6; margin: 14px 0 18px; }
.cp-list { list-style: none; text-align: left; max-width: 300px; margin: 0 auto; }
.cp-list li {
  font-size: 15px; color: #2c3344; padding: 11px 0;
  border-bottom: 1px dashed #ebeef4; display: flex; align-items: center;
}
.cp-list li:last-child { border-bottom: 0; }
.cp-k {
  display: inline-block; width: 52px; flex: 0 0 52px;
  color: #fff; background: var(--accent);
  font-size: 12px; text-align: center; border-radius: 4px;
  padding: 3px 0; margin-right: 12px;
}
