/* 华人通 huarentong.net */
:root {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --brand-soft: #e6f4f1;
  --accent: #f97316;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6f8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page-pad { padding-top: 24px; padding-bottom: 32px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo strong { font-size: 22px; color: var(--brand-dark); letter-spacing: 1px; }
.logo small { font-size: 11px; color: var(--muted); }
.head-search { flex: 1; display: flex; max-width: 520px; }
.head-search input, .hero-search input { flex: 1; min-width: 0; border: 2px solid var(--brand); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font: inherit; outline: none; }
.head-search button, .hero-search button { border: 0; background: var(--brand); color: #fff; padding: 0 22px; border-radius: 0 999px 999px 0; font: inherit; font-weight: 600; cursor: pointer; }
.loc-picker { position: relative; }
.loc-picker summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.loc-picker summary::-webkit-details-marker { display: none; }
.loc-menu { position: absolute; right: 0; top: 46px; width: 460px; max-height: 70vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(15,23,42,.18); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.loc-menu a { padding: 4px 6px; border-radius: 6px; font-size: 14px; }
.loc-menu a:first-child { grid-column: 1 / -1; color: var(--brand); }
.loc-menu a:hover { background: var(--brand-soft); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; width: 24px; margin: 5px auto; background: var(--ink); }
.main-nav { background: var(--brand); }
.main-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a { color: #e6fffb; padding: 11px 16px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: var(--brand-dark); }
.main-nav a:last-child { margin-left: auto; color: #fff; background: var(--accent); }

.crumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs span { color: #cbd5e1; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #0b4f4a 0%, #0f766e 55%, #14b8a6 100%); color: #fff; padding: 46px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: 2px; margin-bottom: 6px; }
.hero-sub { opacity: .92; margin: 0 0 20px; font-size: 16px; }
.hero-search { display: flex; max-width: 680px; }
.hero-search input { border-color: #fff; padding: 13px 20px; font-size: 16px; }
.hero-search button { background: var(--accent); padding: 0 30px; font-size: 16px; }
.hero-cities { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.hero-cities a { background: rgba(255,255,255,.14); padding: 4px 12px; border-radius: 999px; }
.hero-cities a:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(135deg, #0b4f4a, #0f766e); color: #fff; padding: 30px 0 26px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); }
.page-head p { margin: 0 0 12px; opacity: .92; }
.page-head .hero-search { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: rgba(255,255,255,.15); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.chips a.on, .chips a:hover { background: #fff; color: var(--brand-dark); }
.chips em { font-style: normal; opacity: .75; font-size: 12px; }
.chips-light { margin-bottom: 18px; }
.chips-light a { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select { padding: 8px 10px; border-radius: 8px; border: 0; font: inherit; min-width: 150px; }
.filters button { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 20px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Home grid ---------- */
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 22px; padding-bottom: 32px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.panel { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.home-grid .panel { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col .panel { margin-bottom: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--brand-soft); margin-bottom: 12px; padding-bottom: 8px; }
.sec-head h2 { font-size: 18px; margin: 0; padding-left: 10px; border-left: 4px solid var(--accent); }
.sec-head a { font-size: 13px; color: var(--brand); white-space: nowrap; }

/* ---------- Lists & cards ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row-item a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.row-item:last-child a { border-bottom: 0; }
.row-title { font-weight: 600; flex: 1 1 100%; }
.row-meta { font-size: 13px; color: var(--muted); }
.row-meta b { color: var(--accent); font-weight: 600; }
.article-row a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.article-row img { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-row p { margin: 4px 0; font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.1); color: var(--ink); }
.card img, .card .ph { width: 100%; height: auto; aspect-ratio: 400 / 260; object-fit: cover; }
.card .ph { display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, var(--brand-soft), #fff7ed); }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 16px; margin: 6px 0 4px; }
.card-body p { margin: 0; font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); margin-right: 4px; }
.tag-hot { background: #ffedd5; color: #c2410c; }
.tag-gov { background: #dbeafe; color: #1d4ed8; }
.price { float: right; color: var(--accent); font-weight: 700; }
.empty { padding: 26px; text-align: center; color: var(--muted); background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; }
.empty a { color: var(--brand); font-weight: 600; }
.empty.soon { background: #fffbeb; border-color: #fcd34d; }
.empty-big { text-align: center; padding: 80px 16px; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ind-grid a { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 2px; position: relative; }
.ind-grid a:hover { border-color: var(--brand); background: var(--brand-soft); }
.ind-icon { font-size: 26px; }
.ind-grid small { color: var(--muted); font-size: 12px; }
.ind-grid em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 12px; color: var(--accent); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.topic-grid a { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.topic-grid span { font-size: 30px; }
.topic-grid small { color: var(--muted); }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list a { background: var(--brand-soft); color: var(--brand-dark); padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.topic-list a:hover { background: var(--brand); color: #fff; }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.city-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.city-index section { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.city-index h2 { font-size: 17px; }
.city-index h2 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.city-index p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.city-index p a { color: var(--brand-dark); }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.detail-main, .detail-side { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-side { position: sticky; top: 130px; }
.detail-main h1 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 8px; }
.detail-main h1 small { font-size: 60%; color: var(--muted); font-weight: 500; }
.detail-cover { width: 100%; height: auto; border-radius: 10px; margin-bottom: 16px; }
.lead { font-size: 17px; color: #334155; border-left: 4px solid var(--brand); padding-left: 14px; }
.prose { font-size: 16px; }
.prose h2 { font-size: 20px; margin-top: 1.4em; color: var(--brand-dark); }
.prose a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.prose ul { padding-left: 1.3em; }
.facts { margin: 0 0 14px; }
.facts div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.facts a { color: var(--brand); }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 600; }
.btn:hover { color: #fff; background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-block { display: block; text-align: center; margin-bottom: 10px; background: var(--accent); }
.map { margin-top: 18px; border-radius: 10px; overflow: hidden; }
.map iframe { width: 100%; height: 320px; border: 0; }
.side-title { font-size: 16px; margin: 0 0 10px; }
.side-list { padding-left: 1.1em; margin: 0 0 18px; font-size: 14px; }
.side-list li { margin-bottom: 6px; }
.pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 22px; }
.pager a { background: #fff; border: 1px solid var(--line); padding: 6px 16px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2b29; color: #b6d4d0; margin-top: 20px; padding-top: 36px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer-brand { font-size: 22px; color: #fff; font-weight: 700; margin: 0 0 6px; }
.site-footer h3 { color: #fff; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding: 16px 16px 22px; text-align: center; color: #8fb3ae; }
.footer-bottom p { margin: 4px 0; }
.footer-partner a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .head-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .loc-picker { margin-left: auto; }
  .loc-menu { width: 300px; grid-template-columns: repeat(2, 1fr); right: -50px; }
  .nav-toggle { display: block; margin-left: 0; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .wrap { flex-direction: column; }
  .main-nav a:last-child { margin-left: 0; }
  .site-header { position: static; }
  .home-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .two-col, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-row img { width: 100px; height: 72px; }
  .hero { padding: 30px 0; }
  .hero-search button { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 会员 ---------- */
.head-member { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.head-login { color: var(--brand-dark); font-weight: 600; padding: 6px 10px; }
.head-post { background: var(--accent); color: #fff !important; padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.head-user { display: flex; align-items: center; gap: 6px; font-weight: 600; max-width: 140px; overflow: hidden; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 72px; height: 72px; font-size: 32px; background: #fff; color: var(--brand); }
.user-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.user-badge .avatar { width: 24px; height: 24px; font-size: 12px; }
.user-badge em { font-style: normal; font-size: 11px; font-weight: 500; background: #fff7ed; color: #c2410c; padding: 0 6px; border-radius: 999px; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 14px 0; background: #f1f5f9; }
.notice-ok { background: #dcfce7; color: #166534; }
.notice-err { background: #fee2e2; color: #991b1b; }
.notice-info { background: #e0f2fe; color: #075985; }
.notice a, .notice .linkbtn { color: inherit; font-weight: 700; text-decoration: underline; }
.auth-box { max-width: 440px; margin: 20px auto; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 24px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.auth-alt a { color: var(--brand); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form label i { color: #dc2626; font-style: normal; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=password], .form input:not([type]), .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form .check a { color: var(--brand); }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form .btn-block { justify-self: stretch; }
.form fieldset.geo { border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.form fieldset.geo legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.form .thumb { max-width: 220px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { border: 0; cursor: pointer; font: inherit; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #ea580c; }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff; }
.btn-done { background: #dcfce7; color: #166534; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.head-actions { margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.me-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.me-head h1 { margin: 0; }
.me-head p { margin: 4px 0 0; }
.me-head a { text-decoration: underline; }
.me-actions { margin-left: auto; }
.me-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.checkin-msg { padding: 9px 12px; border-radius: 999px; border: 0; font: inherit; min-width: 220px; }
.quick-post { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.my-list { list-style: none; padding: 0; margin: 0; }
.my-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.my-list .ops { display: flex; gap: 12px; white-space: nowrap; }
.my-list .ops a, .my-list .ops .linkbtn { color: var(--brand); font-size: 13px; }
.my-list form { display: inline; }
.plus { color: #15803d; font-weight: 700; } .minus { color: #dc2626; font-weight: 700; }
.st { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; }
.st-ok { background: #dcfce7; color: #166534; } .st-wait { background: #fef9c3; color: #854d0e; } .st-no { background: #fee2e2; color: #991b1b; }
.logout { margin-top: 10px; text-align: right; }
.comments { margin-top: 28px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-head form, .comment-head details { margin-left: auto; }
.comment-body { margin-top: 6px; white-space: normal; word-break: break-word; }
.comment-form { margin-top: 16px; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.rating-avg { color: #b45309; font-size: 14px; }
.rate-input { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 500; }
.rate-input label { display: flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 500; }
.report { display: inline-block; font-size: 13px; }
.report summary { cursor: pointer; color: var(--muted); list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report form { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.report select { font: inherit; font-size: 13px; padding: 4px; }
.item-tools { margin-top: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.item-tools a { color: var(--brand); }
.verified { color: #15803d; }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank li b { margin-left: auto; color: var(--accent); }
.rank-no { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #f1f5f9; font-size: 13px; font-weight: 700; }
.rank-1 { background: #fde68a; } .rank-2 { background: #e2e8f0; } .rank-3 { background: #fed7aa; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.levels li { background: #fff7ed; border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.checkin-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 20px; }
.checkin-feed li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.checkin-feed q { flex-basis: 100%; color: #334155; }
@media (max-width: 760px) {
  .head-member { order: 2; }
  .form fieldset.geo { grid-template-columns: 1fr; }
  .me-actions { margin-left: 0; width: 100%; }
  .checkin-msg { min-width: 0; flex: 1; }
}
