/* 花沐林官网 — 企业官网风格（桌面优先，响应式）
   深绿主色 / 白底卡片 / 通栏导航 / 信息板块网格 */

:root {
  --green-900: #0f3d2a;
  --green-800: #11583a;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22a85a;
  --green-50:  #f3f9f5;
  --green-100: #e6f4ec;
  --green-200: #cfe8da;
  --ink:      #16221c;
  --ink-2:    #4b5a52;
  --ink-3:    #8a978f;
  --line:     #e6ece7;
  --bg:       #f4f7f3;
  --white:    #ffffff;
  --price:    #d2691e;
  --danger:   #d9534f;
  --radius:   14px;
  --radius-lg: 20px;
  --shadow:   0 6px 22px rgba(15,61,42,.08);
  --shadow-sm:0 2px 10px rgba(15,61,42,.06);
  --maxw:     1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部通栏导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 22px; font-weight: 800; color: var(--green-800);
  white-space: nowrap;
}
.logo-mark { font-size: 24px; }
.logo-sub { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--green-700); background: var(--green-50); }
.main-nav a.active { color: var(--green-700); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 3px; background: var(--green-500); border-radius: 3px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-cta {
  background: var(--green-600); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(22,163,74,.28); transition: transform .12s, background .15s;
}
.btn-cta:hover { background: var(--green-700); transform: translateY(-1px); }
.user-btn {
  background: transparent; color: var(--green-700);
  border: 1.5px solid var(--green-200); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.user-btn:hover { background: var(--green-50); border-color: var(--green-500); }
.user-btn.logged { background: var(--green-50); color: var(--green-800); border-color: var(--green-200); }

/* ============ 首页 Hero ============ */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34,168,90,.35), transparent 60%),
    linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 72px 24px 80px;
}
.hero-text h1 {
  margin: 0 0 16px; font-size: 44px; line-height: 1.18; font-weight: 800; letter-spacing: 1px;
}
.hero-text p { margin: 0 0 28px; font-size: 18px; opacity: .92; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 13px; opacity: .82; margin-top: 2px; }

.hero-visual {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }

/* ============ 通用区块 ============ */
.main { padding: 44px 24px 60px; }
.block-section { margin-bottom: 46px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-head .title {
  display: flex; align-items: center;
  font-size: 22px; font-weight: 800; color: var(--ink);
}
.section-head .title .bar,
.section-head .title .dot {
  display: inline-block; width: 5px; height: 20px; border-radius: 3px;
  background: var(--green-500); margin-right: 12px; font-size: 0;
}
.section-head .more {
  font-size: 14px; color: var(--green-700); font-weight: 700;
  padding: 6px 12px; border-radius: 999px; transition: background .15s;
}
.section-head .more:hover { background: var(--green-50); }

/* ============ 业务入口（一体化面板 + 6 色主题 + 渐变分隔） ============ */
.entry-panel {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: linear-gradient(135deg, #f5faf6 0%, #fafbf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 8px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.entry-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 14% 50%, rgba(95,208,138,.08), transparent 55%),
    radial-gradient(circle at 86% 50%, rgba(168,85,46,.06), transparent 55%);
}
.entry {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 6px; border-radius: 14px; text-align: center;
  transition: background .2s, transform .2s;
}
.entry:not(:last-child)::after {
  content: ""; position: absolute; top: 18%; bottom: 18%; right: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(46,138,81,.18) 50%, transparent 100%);
}
.entry:hover { background: rgba(255,255,255,.85); transform: translateY(-3px); }
.entry-ico {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--ico-bg);
  color: var(--ico-fg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 2px rgba(15,40,25,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.entry-ico svg { width: 30px; height: 30px; stroke-width: 1.7; }
.entry:hover .entry-ico { transform: rotate(-4deg) scale(1.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 14px rgba(15,40,25,.10); }
.entry-title { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.entry-sub   { font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: .2px; }

/* 6 个主题色：背景淡 + 描边深；统一靠 stroke-width 与圆角保持风格一致 */
.entry.t1 { --ico-bg: #e6f4ec; --ico-fg: #2e8a51; } /* 苗木货源 - 绿 */
.entry.t2 { --ico-bg: #e6f1f7; --ico-fg: #2a6e94; } /* 求购信息 - 蓝 */
.entry.t3 { --ico-bg: #fdf2dd; --ico-fg: #9a6516; } /* 用工招工 - 金 */
.entry.t4 { --ico-bg: #efe7f4; --ico-fg: #6d4694; } /* 找活上工 - 紫 */
.entry.t5 { --ico-bg: #fae7d8; --ico-fg: #b35a23; } /* 农具农资 - 橙 */
.entry.t6 { --ico-bg: #f6e3e6; --ico-fg: #a8334a; } /* 工程报价 - 玫红 */

@media (max-width: 980px) {
  .entry-panel { grid-template-columns: repeat(3, 1fr); padding: 14px 6px; }
  .entry:nth-child(3n)::after { display: none; }
}

/* ============ 公告 / 天气 ============ */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff8e6; border: 1px solid #ffe2a8; color: #8a6a13;
  border-radius: 12px; padding: 11px 16px; margin-bottom: 24px; font-size: 14px;
}
.notice-bar .icon { font-size: 17px; }
.notice-bar .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar.warn { background: #fdecec; border-color: #f3b6b6; color: #b22; }

.weather-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green-500);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 36px; box-shadow: var(--shadow-sm);
}
.weather-card .temp { font-size: 26px; font-weight: 800; color: var(--green-800); }
.weather-card .meta { font-size: 13px; color: var(--ink-2); text-align: right; }

/* ============ 卡片网格（首页板块 + 列表页共用） ============ */
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-200); }
.card .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .variety { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.card .price { color: var(--price); font-weight: 800; font-size: 16px; white-space: nowrap; }
.card .price small { font-size: 12px; font-weight: 600; }
.card .specs { display: flex; flex-wrap: wrap; gap: 7px; }
.card .spec {
  background: var(--green-50); color: var(--green-800);
  font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--green-100);
}
.card .spec.qty { background: #fff3e6; color: var(--price); border-color: #ffe2c4; }
.card .remark {
  color: var(--ink-2); font-size: 13.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.card .foot .publisher { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card .foot .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--green-800); overflow: hidden; flex: 0 0 auto;
}
.card .foot .avatar img { width: 100%; height: 100%; object-fit: cover; }
.card .credit { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.card .phone-mask { color: var(--ink-3); }

/* ============ 子页 Hero（与首页同源视觉） ============ */
.page-hero {
  background:
    radial-gradient(1000px 420px at 88% -25%, rgba(34,168,90,.38), transparent 60%),
    linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; overflow: hidden;
}
.page-hero .container { padding: 50px 24px 48px; }
.page-hero .eyebrow { font-size: 13px; letter-spacing: 2px; opacity: .82; margin-bottom: 12px; }
.page-hero h1 { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: .5px; }
.page-hero .sub { margin-top: 12px; opacity: .92; font-size: 16px; max-width: 620px; line-height: 1.65; }
.page-hero .hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .hero-cta .btn-ghost { padding: 11px 26px; font-size: 15px; }

/* 面包屑 / 返回（浅底页面用深色） */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); padding: 20px 0 6px; flex-wrap: wrap; }
.crumb a { color: var(--green-700); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { opacity: .5; }

.search-wrap { background: var(--white); border-bottom: 1px solid var(--line); }
.search-bar {
  display: flex; align-items: center; gap: 10px; max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
}
.search-bar .s-ico { font-size: 18px; color: var(--ink-3); }
.search-bar input {
  flex: 1; border: 1.5px solid var(--green-100); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; outline: none; transition: border-color .15s; background: var(--green-50);
}
.search-bar input:focus { border-color: var(--green-500); background: #fff; }
.search-bar .btn {
  background: var(--green-600); color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.search-bar .btn:hover { background: var(--green-700); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 0 6px; }
.chips .chip {
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  transition: all .15s;
}
.chips .chip:hover { border-color: var(--green-200); }
.chips .chip.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* ============ 详情页 ============ */
.detail-wrap { padding: 32px 24px 60px; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.detail-hero {
  background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff;
  border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow);
}
.detail-hero .title { font-size: 28px; font-weight: 800; }
.detail-hero .sub { opacity: .92; margin-top: 8px; font-size: 15px; }
.detail-body { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.detail-body .block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.detail-body .block h3 { margin: 0 0 12px; font-size: 16px; color: var(--green-800); display: flex; align-items: center; gap: 8px; }
.detail-body .block h3::before { content: ""; width: 4px; height: 16px; background: var(--green-500); border-radius: 2px; }
.detail-body .kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.detail-body .kv:last-child { border-bottom: none; }
.detail-body .kv .k { color: var(--ink-2); }
.detail-body .kv .v { font-weight: 600; color: var(--ink); text-align: right; }
.detail-body .photos { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-body .photos .ph { width: 92px; height: 92px; border-radius: 12px; background: var(--green-100); display: flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 13px; }

.publisher { display: flex; align-items: center; gap: 12px; }
.publisher .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; color: var(--green-800); font-size: 18px; overflow: hidden;
}
.publisher .avatar img { width: 100%; height: 100%; object-fit: cover; }
.publisher .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.publisher .badge { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

#phone-btn { display: flex; width: 100%; justify-content: center; margin-top: 18px; }
#to-login { display: inline-flex; }

.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.side-card h4 { margin: 0 0 12px; font-size: 15px; color: var(--green-800); }
.side-meta div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.side-meta div:last-child { border-bottom: none; }
.side-meta .k { color: var(--ink-2); }

/* ============ 按钮（通用） ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green-600); color: #fff; border: none; border-radius: 12px;
  padding: 13px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(22,163,74,.28); transition: transform .12s, background .15s;
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary.lg { padding: 15px 30px; font-size: 16px; border-radius: 999px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 999px; padding: 13px 28px; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-block { display: flex; width: 100%; }
.btn-block { justify-content: center; }

/* ============ 发布页 ============ */
.publish-wrap { padding: 36px 24px 64px; }
.publish-card {
  max-width: 820px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px 36px;
}
.publish-card h2 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.publish-tip { font-size: 13.5px; color: var(--ink-2); margin: 0 0 20px; }
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.type-tabs button {
  border: 1.5px solid var(--green-100); background: var(--green-50); color: var(--green-800);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.type-tabs button:hover { border-color: var(--green-200); }
.type-tabs button.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }

.publish-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--green-100); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; font-family: inherit; background: var(--green-50);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-500); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 84px; }
.publish-actions { grid-column: 1 / -1; margin-top: 6px; }
.modal-err, #publish-msg { color: var(--danger); font-size: 13.5px; min-height: 18px; margin: 10px 0; }

/* ============ 我的 ============ */
.mine-wrap { padding: 36px 24px 64px; }
.mine-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.profile-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff;
  border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); text-align: center;
}
.profile-card .avatar.lg {
  width: 72px; height: 72px; font-size: 30px; margin: 0 auto 14px;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
}
.profile-card .avatar.lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .p-name { font-size: 21px; font-weight: 800; }
.profile-card .p-sub { font-size: 13px; opacity: .92; margin-top: 5px; line-height: 1.5; }
.profile-card .p-counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 16px; font-size: 13px; }
.profile-card .p-points { margin-top: 12px; font-size: 13px; background: rgba(255,255,255,.2); display: inline-block; padding: 4px 14px; border-radius: 999px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 800; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.mine-main .section-head .title { font-size: 20px; }

/* ============ 空态 / 加载 ============ */
.empty { text-align: center; color: var(--ink-3); padding: 50px 20px; font-size: 15px; grid-column: 1 / -1; }
.loading { text-align: center; color: var(--ink-3); padding: 30px; font-size: 14px; }
.tag-mock { display: inline-block; background: #fff3e6; color: var(--price); font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }

/* ============ 页脚 ============ */
.site-footer { background: #0f2419; color: #cfe0d6; margin-top: 50px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 48px 24px 30px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; opacity: .8; margin: 0; }
.footer-col h5 { margin: 0 0 14px; font-size: 15px; color: #fff; font-weight: 700; }
.footer-col a { display: block; font-size: 13.5px; opacity: .82; padding: 5px 0; transition: opacity .15s; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 12.5px; opacity: .7; padding: 18px 24px; line-height: 1.8; }

/* 返回链接（详情/发布页，浅底用深色） */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.back-link:hover { color: var(--green-700); }
.back-link.on-dark { color: #fff; }
.back-link.on-dark:hover { opacity: .85; }

/* ============ 登录弹窗 ============ */
.modal {
  position: fixed; inset: 0; background: rgba(8,20,14,.5); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 380px; padding: 28px 26px 20px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 26px; color: #b6c2bb; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ink-2); }
.modal-title { font-size: 21px; font-weight: 800; color: var(--ink); }
.modal-tip { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 18px; }
.modal-box input {
  width: 100%; border: 1.5px solid var(--green-100); border-radius: 12px; padding: 13px; font-size: 16px; margin-bottom: 12px; background: var(--green-50);
}
.modal-box input:focus { border-color: var(--green-500); background: #fff; outline: none; }
.modal-box button {
  width: 100%; background: var(--green-600); color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.modal-box button:hover { background: var(--green-700); }
.modal-box button:disabled { opacity: .6; }
.modal-err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.modal-foot { font-size: 11.5px; color: #aab4ac; text-align: center; margin-top: 10px; }

.login-tabs { display: flex; background: var(--green-50); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.login-tabs .ltab {
  flex: 1; width: auto; background: transparent; color: var(--ink-2); border: none; border-radius: 9px;
  padding: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.login-tabs .ltab.active { background: #fff; color: var(--green-800); box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.login-pane { display: block; }
.btn-wx {
  width: 100%; background: #07c160 !important; color: #fff; border: none; border-radius: 12px; padding: 14px !important;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.btn-wx:active { opacity: .9; }
.wx-hint { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 10px; }
#wx-mock { text-align: center; margin-top: 12px; }
#wx-mock .link { color: var(--green-700); font-size: 13px; text-decoration: underline; cursor: pointer; }
.sms-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.sms-row #code-input { flex: 1; margin-bottom: 0; }
.sms-row #sms-send-btn {
  flex: 0 0 auto; width: auto; white-space: nowrap; background: var(--green-100) !important; color: var(--green-800) !important;
  border: none; border-radius: 12px; padding: 0 16px !important; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ============ 响应式 ============ */
/* —— 平板：适度收敛 —— */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .hero-text h1 { font-size: 40px; }
  .list, #list { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .mine-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* —— 手机版：单列、大按钮、拇指友好，与桌面版明显区分 —— */
@media (max-width: 768px) {
  :root { font-size: 16px; }
  /* 手机端：只允许上下滑动，禁止左右滑动（触摸横滑手势 + 横向溢出滚动条均禁用） */
  body { font-size: 16px; line-height: 1.6; overflow-x: hidden; touch-action: pan-y; }

  .container { padding: 0 16px; }
  .main { padding: 22px 16px 44px; }

  /* 顶部导航：第一行 Logo+操作，第二行导航换行显示（禁止横滑） */
  .header-inner {
    height: auto; min-height: var(--header-h);
    flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 12px; padding: 8px 0;
  }
  .logo { font-size: 19px; flex: 1 1 auto; }
  .logo-mark { font-size: 21px; }
  .header-actions { order: 2; gap: 8px; }
  .btn-cta { padding: 9px 15px; font-size: 13.5px; }
  .user-btn { padding: 8px 15px; font-size: 13.5px; }
  .main-nav {
    order: 3; flex: 1 1 100%;
    display: flex; flex-wrap: wrap; gap: 6px 8px;
    margin: 4px 0 0; padding: 6px 0 2px;
    border-top: 1px solid var(--line);
  }
  .main-nav a { white-space: nowrap; flex: 0 0 auto; padding: 7px 12px; font-size: 13.5px; border-radius: 999px; background: var(--green-50); }
  .main-nav a.active { background: var(--green-700); color: #fff; }
  .main-nav a.active::after { display: none; }

  /* Hero：竖排、隐藏装饰图、整宽 CTA */
  .hero-inner { padding: 38px 16px 46px; gap: 22px; }
  .hero-text h1 { font-size: 30px; line-height: 1.2; }
  .hero-text p { font-size: 15.5px; max-width: none; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary.lg, .hero-actions .btn-ghost.lg { width: 100%; }
  .hero-stats { gap: 20px; margin-top: 24px; }
  .hero-stats strong { font-size: 22px; }

  /* 业务入口：3 列（继承 980 段） */
  .entry-panel { padding: 12px 4px; }
  .entry { padding: 14px 4px; gap: 8px; }
  .entry-ico { width: 50px; height: 50px; }
  .entry-ico svg { width: 27px; height: 27px; }
  .entry-title { font-size: 14px; }
  .entry-sub { font-size: 11px; }

  /* 公告 / 天气 */
  .notice-bar { font-size: 13px; }
  .weather-card { padding: 14px 16px; }
  .weather-card .temp { font-size: 22px; }

  /* 列表/卡片：单列大卡 */
  .list, #list { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 16px; }
  .card-cover { margin: -16px -16px 12px; height: 150px; }
  .card .variety { font-size: 17px; }
  .card .foot { font-size: 12.5px; }

  /* 子页 Hero */
  .page-hero .container { padding: 34px 16px; }
  .page-hero h1 { font-size: 27px; }
  .page-hero .sub { font-size: 14.5px; }
  .page-hero .hero-cta { flex-direction: column; }
  .page-hero .hero-cta .btn-ghost, .page-hero .hero-cta .btn-primary { width: 100%; }
  .search-bar { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .search-bar input { flex: 1 1 100%; }
  .search-bar .btn { flex: 1 1 auto; }
  .chips { padding: 14px 0 4px; }

  /* 详情：单列 */
  .detail-wrap { padding: 16px 16px 44px; }
  .detail-layout { grid-template-columns: 1fr; gap: 16px; }
  .detail-hero { padding: 22px; }
  .detail-hero .title { font-size: 23px; }
  .detail-side { position: static; }
  #phone-btn .btn-primary, #to-login .btn-primary { width: 100%; }

  /* 发布：单列大表单 */
  .publish-wrap { padding: 18px 16px 48px; }
  .publish-card { padding: 22px 18px; }
  .publish-card h2 { font-size: 21px; }
  .publish-form { grid-template-columns: 1fr; gap: 14px; }
  .field input, .field select, .field textarea { padding: 13px; font-size: 16px; }
  #submit-btn { width: 100%; padding: 15px; font-size: 16px; }

  /* 我的：单列 */
  .mine-wrap { padding: 18px 16px 48px; }
  .mine-grid { grid-template-columns: 1fr; gap: 16px; }
  .profile-card { padding: 24px 20px; }
  .profile-card .avatar.lg { width: 64px; height: 64px; font-size: 26px; }

  /* 页脚：2 列 */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; padding: 36px 16px 24px; }
  .footer-bottom { padding: 16px; font-size: 12px; }

  /* 按钮通用：加大点按区（拇指友好） */
  .btn-cta, .user-btn, .btn-primary, .btn-ghost { min-height: 44px; }
  .btn-primary.lg, .btn-ghost.lg { padding: 14px 26px; }

  /* 面包屑 */
  .crumb { padding: 14px 0 4px; font-size: 13px; }
}

/* —— 超小屏（<380px）微调 —— */
@media (max-width: 380px) {
  .entry-panel { grid-template-columns: repeat(2, 1fr); }
  .entry:nth-child(3n)::after { display: none; }
  .entry:nth-child(2n)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* —— 卡片封面（图片 / 视频缩略） —— */
.card-cover {
  margin: -18px -18px 14px;
  height: 158px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  position: relative;
  background: #eef1e8;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; padding-left: 3px;
  pointer-events: none;
}

/* —— 详情页 图片 / 视频 图廊 —— */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo {
  display: block; position: relative;
  border-radius: 12px; overflow: hidden;
  background: #eef1e8; aspect-ratio: 1 / 1;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.video { aspect-ratio: 16 / 10; }
.photo.video video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
