:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #0f1c24;
  --ink-2: #3d4f5c;
  --muted: #8a9aa6;
  --line: #e8eef2;
  --primary: #0d7377;
  --primary-deep: #095456;
  --primary-soft: #e6f4f4;
  --accent: #e8a838;
  --danger: #d64545;
  --shadow: 0 8px 24px rgba(15, 28, 36, 0.06);
  --radius: 16px;
  --header: 118px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.head-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #12999e, var(--primary));
  color: #fff; font-weight: 700; font-size: 18px;
}
.brand strong { display: block; font-size: 16px; letter-spacing: 0.02em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 999px;
  padding: 0 16px; height: 44px; color: var(--muted);
  border: 1px solid transparent;
}
.search:focus-within { border-color: var(--primary); background: #fff; color: var(--primary); }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  height: 42px; color: var(--ink); min-width: 0;
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.download-link { white-space: nowrap; }
.city {
  font-size: 13px; color: var(--primary); background: var(--primary-soft);
  border-radius: 999px; padding: 6px 10px; font-weight: 600;
}
.who { font-size: 14px; color: var(--ink-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:hover { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 14px;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-deep); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn.light { background: #fff; color: var(--primary-deep); }
.btn.light:hover { background: var(--primary-soft); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0d0d0; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(13,115,119,.28); outline-offset: 2px; }

.catbar {
  display: flex; gap: 6px; overflow: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
  background: #f5f8f9; border: 1px solid #e5edef;
  box-shadow: 0 2px 7px rgba(15, 28, 36, .05);
  scroll-snap-align: start;
}
.catbar a.on, .catbar a:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 5px 12px rgba(13, 115, 119, .18); }

.subcat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 0;
}
.subcat-nav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.subcat-nav a.on, .subcat-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.decoration-subnav {
  display: grid;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 20px;
}
.decoration-subnav > .decoration-all {
  justify-self: start;
  padding: 10px 18px;
  border: 1px solid #dcebed;
  box-shadow: 0 5px 14px rgba(15, 28, 36, .05);
  font-weight: 700;
}
.decoration-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8fbfb);
  box-shadow: var(--shadow);
}
.decoration-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.decoration-section-head strong { color: var(--ink); font-size: 18px; }
.decoration-section-head span { color: var(--muted); font-size: 12px; }
.decoration-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.decoration-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6eff0;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}
.decoration-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}
.decoration-group-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.decoration-group-links { display: flex; flex-wrap: wrap; gap: 7px; }
.decoration-group a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #e6eff0;
  border-radius: 999px;
  background: #f8fbfb;
  color: var(--ink-2);
  font-size: 13px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.decoration-group a:hover { transform: translateY(-1px); border-color: #b9dfe0; color: var(--primary); }
.decoration-group a.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  padding: 22px 0 28px;
  min-width: 0;
}
.layout > #view, .layout > #side { min-width: 0; max-width: 100%; }
body[data-page="auth"] .layout,
body[data-page="post"] .layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
body[data-page="auth"] #side,
body[data-page="post"] #side { display: none; }

.hero {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background-image: linear-gradient(90deg, rgba(8,48,53,.88), rgba(8,48,53,.42) 58%, rgba(8,48,53,.12)), url('/assets/home-hero.jpg?v=20261025i');
  background-size: cover; background-position: center;
  color: #fff; border-radius: var(--radius); padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(13, 115, 119, 0.18);
}
.hero .eyebrow { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.hero h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: 0.01em; }
.hero p { margin: 0; opacity: 0.9; }
.hero-carousel { position:relative; width:100%; max-width:100%; min-height:260px; padding:0; overflow:hidden; }
.hero-image-carousel { min-height:0; aspect-ratio:2.29; }
.carousel-track, .carousel-slide { position:absolute; inset:0; }
.carousel-slide { display:none; align-items:center; justify-content:space-between; gap:24px; padding:28px 64px 42px 32px; color:#fff; background-image:linear-gradient(90deg,rgba(8,48,53,.84),rgba(8,48,53,.38) 60%,rgba(8,48,53,.16)),url('/assets/home-hero.jpg?v=20261025i'); background-size:cover; background-position:center; }
.carousel-slide.on { display:flex; }
.carousel-copy { position:relative; z-index:1; max-width:68%; }
.carousel-copy h1 { margin:0 0 8px; font-size:28px; line-height:1.35; }
.carousel-copy p { margin:0; opacity:.9; }
.carousel-slide img { width:32%; max-height:196px; object-fit:cover; border-radius:14px; opacity:.94; box-shadow:0 12px 30px rgba(0,0,0,.16); }
.carousel-slide.image-ad { padding:0; background:none; }
.carousel-slide.image-ad .carousel-full-image { display:block; width:100%; height:100%; max-height:none; object-fit:contain; border-radius:0; opacity:1; box-shadow:none; background:#062e34; }
.carousel-slide.image-ad .carousel-label { z-index:2; background:rgba(8,48,53,.38); }
.carousel-label { position:absolute; top:18px; right:22px; border:1px solid rgba(255,255,255,.65); border-radius:5px; padding:2px 6px; font-size:11px; opacity:.9; }
.carousel-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:34px; height:34px; border:1px solid rgba(255,255,255,.6); border-radius:50%; background:rgba(0,0,0,.16); color:#fff; font-size:26px; line-height:24px; }
.carousel-arrow:hover { background:rgba(0,0,0,.3); }
.carousel-arrow.prev { left:16px; }
.carousel-arrow.next { right:16px; }
.carousel-dots { position:absolute; z-index:2; left:32px; bottom:18px; display:flex; gap:7px; }
.carousel-dot { width:22px; height:4px; padding:0; border:0; border-radius:99px; background:rgba(255,255,255,.45); }
.carousel-dot.on { background:#fff; }
.ios-install-card {
  display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 18px;
  align-items: center; margin: 0 0 18px; padding: 18px 20px; border-radius: var(--radius);
  color: #fff; background: linear-gradient(135deg, #0d7377, #1599a0);
  box-shadow: 0 10px 26px rgba(13, 115, 119, .15); overflow: hidden;
}
.ios-install-card h2 { margin: 6px 0 8px; font-size: 22px; }
.ios-install-card p { margin: 0 0 16px; color: rgba(255,255,255,.82); line-height: 1.7; }
.ios-install-card .btn.light { color: var(--primary-deep); }
.ios-install-card img { width: 100%; border-radius: 14px; background: #f4f8f8; }
.ios-guide-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(9, 34, 38, .58); }
.ios-guide-modal[hidden] { display: none; }
.ios-guide-dialog { position: relative; width: min(760px, 100%); max-height: min(760px, 92vh); overflow: auto; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.ios-guide-dialog img { width: 100%; border-radius: 14px; }
.ios-guide-dialog .btn { margin-top: 12px; }
.ios-guide-close { position: absolute; top: 22px; right: 22px; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(15, 28, 36, .62); font-size: 25px; line-height: 1; }
.download-page { display: grid; gap: 18px; }
.download-head { padding: 26px 28px; border-radius: var(--radius); color: #fff; background-image: linear-gradient(90deg, rgba(8,48,53,.88), rgba(8,48,53,.42)), url('/assets/download-hero.jpg?v=20261025j'); background-size: cover; background-position: center; box-shadow: 0 12px 28px rgba(13, 115, 119, .16); }
.download-head h1 { margin: 6px 0 8px; font-size: 30px; }
.download-head p { margin: 0; color: rgba(255,255,255,.84); }
.download-option { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 20px; align-items: center; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.download-option h2 { margin: 6px 0 8px; font-size: 23px; }
.download-option p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.8; }
.download-option small { display: block; margin-top: 12px; color: var(--muted); }
.download-option img { width: 100%; border-radius: 14px; }
.download-icon { width: 150px; height: 150px; margin: auto; display: grid; place-items: center; border-radius: 36px; color: #fff; background: linear-gradient(145deg, #0d7377, #1599a0); font-size: 30px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 12px 24px rgba(13, 115, 119, .2); }
@media (max-width:640px) {
  .hero-carousel { min-height:230px; }
  .hero-image-carousel { min-height:0; aspect-ratio:2.29; }
  .hero-image-carousel .carousel-slide.image-ad { aspect-ratio:2.29; }
  .hero-image-carousel .carousel-slide.image-ad .carousel-full-image { object-fit:contain; background:#062e34; }
  .carousel-slide { padding:24px 48px 38px 24px; }
  .carousel-copy { max-width:100%; }
  .carousel-copy h1 { font-size:23px; }
  .carousel-slide img { display:none; }
  .carousel-dots { left:24px; }
}

.cat-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.cat-grid a, .tile-grid a {
  position: relative; background: #fff; border-radius: 16px; text-align: center;
  padding: 14px 6px 12px; box-shadow: var(--shadow); border: 1px solid rgba(232,238,242,.8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-grid a:hover, .tile-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,28,36,.1); }
.ci {
  width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.c1 { background: #2a5a8a; } .c2 { background: #0d7377; } .c3 { background: #e8a838; }
.c4 { background: #2d6a4f; } .c5 { background: #c46b4a; } .c6 { background: #3d4f5c; }
.c7 { background: #5a3d7a; } .c8 { background: #8a9aa6; } .c9 { background: #8a5a44; }
.c10 { background: #4c7a34; } .c11 { background: #7a5b3a; }
.cat-grid em, .tile-grid em { font-style: normal; font-size: 13px; color: var(--ink-2); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head span, .muted { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0;
  border: 1px solid rgba(232,238,242,.8); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 28, 36, 0.1); }
.cover { position: relative; height: 210px; aspect-ratio: auto; background: var(--primary-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .cover img { transform: scale(1.035); }
.cover .ph { display: none; position: absolute; inset: 0; place-items: center; font-size: 28px; color: var(--primary); font-weight: 700; }
.cover.no-image .ph { display: grid; }
.cover.no-image { background: linear-gradient(135deg, #dff3f1, #f8edda); }
.cover.broken img { display: none; }
.cover.broken .ph { display: grid; }
.pin {
  position: absolute; left: 10px; top: 10px;
  background: var(--accent); color: #3a2a08; font-size: 12px; font-style: normal;
  border-radius: 999px; padding: 2px 8px; font-weight: 700;
}
.review-badge {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 248, 224, .94); color: #9a6514; font-size: 11px; font-style: normal;
  border: 1px solid #f0d28a; border-radius: 999px; padding: 3px 8px; font-weight: 700;
}
.fav {
  position: absolute; right: 8px; top: 8px;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.92); color: var(--ink-2);
}
.fav.on { color: var(--danger); }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: #c4841d; font-weight: 700; font-size: 16px; }
.meta { margin-top: 6px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.news-source { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-card, .panel, .detail, .auth, .msg-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.side-card + .side-card { margin-top: 14px; }
.side-card h3 { margin: 0 0 10px; font-size: 15px; }
.side-card ol, .side-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.side-links { display: flex; flex-direction: column; gap: 6px; }
.side-links a { color: var(--primary); font-size: 14px; }

.empty { padding: 36px 10px; text-align: center; color: var(--muted); }

.detail-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.gallery { border-radius: 14px; overflow: hidden; background: #dfecee; min-height: 240px; }
.gallery-viewport { position: relative; overflow: hidden; background: #dfecee; }
.gallery-track { display: flex; width: 100%; transition: transform .28s ease; touch-action: pan-y; }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 320px; object-fit: contain; background: #dfecee; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(13,48,53,.48); font-size: 28px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.gallery-arrow:hover { background: rgba(13,48,53,.72); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 0; color: var(--muted); font-size: 12px; }
.gallery-hint { color: #8da2a6; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; padding: 0 10px 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 auto; padding: 2px; border: 2px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.gallery-thumb.on { border-color: var(--primary); }
.gallery-thumb img { display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 7px; }
.detail h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.4; }
.review-notice { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #f0d28a; border-radius: 12px; background: #fff8e6; color: #8a6118; font-size: 13px; }
.review-notice span { color: #7d6b43; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tags span { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.desc { white-space: pre-wrap; line-height: 1.75; color: var(--ink-2); margin: 8px 0 16px; }
.author { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ask { margin-top: 16px; display: flex; gap: 8px; }
.ask input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.ask input:focus { border-color: var(--primary); }

.field { margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; outline: none;
}
.field input[type="file"] {
  min-height: 74px; padding: 18px 14px; border-style: dashed;
  background: linear-gradient(135deg, #fbfefe, #f2f8f8); color: var(--ink-2);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 10px; border: 0; border-radius: 999px; padding: 8px 12px;
  color: #fff; background: var(--primary); font-weight: 700; cursor: pointer;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.upload-note { color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 1.2em; }
.sort-label { margin-left: auto; color: var(--muted); font-size: 13px; }
.sort-label select { margin-left: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--ink); }
.feed-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.feed-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.feed-filters label { color:var(--muted); font-size:13px; display:flex; align-items:center; gap:5px; }
.feed-filters input, .feed-filters select { border:1px solid var(--line); border-radius:8px; padding:7px 9px; background:#fff; min-width:118px; }
.btn.tiny { height:32px; padding:0 10px; font-size:12px; }
.notice-list { display:grid; gap:8px; margin-bottom:14px; }
.notice-item { display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:center; padding:9px 10px; background:var(--primary-soft); border-radius:10px; font-size:13px; }
.notice-item span { color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-item small { color:var(--muted); }
.merchant-cases { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:14px; }
.merchant-cases img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; }
@media (max-width:640px) { .merchant-cases { grid-template-columns:repeat(2,1fr); } }
.report-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.report-form select, .report-form input { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; }

.auth { max-width: 460px; margin: 42px auto; padding: 32px; }
.auth h1 { margin: 0 0 6px; font-size: 24px; }
.auth::before { content: "昌"; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#1599a0,var(--primary)); font-size: 24px; font-weight: 800; box-shadow: 0 10px 20px rgba(13,115,119,.18); }
.tabs { display: flex; gap: 8px; margin: 14px 0; }
.tabs button { border: 0; background: var(--bg); border-radius: 999px; padding: 8px 14px; }
.tabs button.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stats a { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.stats strong { display: block; font-size: 20px; color: var(--primary); }
.stats em { font-style: normal; color: var(--muted); font-size: 12px; }
.menu { display: flex; flex-direction: column; }
.menu a, .menu button {
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 14px 2px; font-size: 15px;
}
.me-head { display: flex; gap: 12px; align-items: center; }

.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px;
  padding: 10px; border-radius: 12px; background: var(--bg); border: 0; text-align: left; width: 100%;
}
.msg b { font-weight: 600; }
.msg p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 6px; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile-grid a { padding: 22px 10px; }
.tile-grid .ci { width: 52px; height: 52px; font-size: 20px; }

.agri-board-hero {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  padding: 28px; margin-bottom: 18px; border-radius: 18px;
  color: #fff; background-image: linear-gradient(90deg, rgba(8,54,48,.84), rgba(8,54,48,.38) 62%, rgba(8,54,48,.12)), url('/assets/agri-hero.jpg?v=20261025i'); background-size: cover; background-position: center;
  box-shadow: 0 14px 30px rgba(15, 119, 119, .16);
}
.agri-board-hero h1 { margin: 8px 0; font-size: 32px; letter-spacing: .02em; }
.agri-board-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.86); line-height: 1.75; }
.agri-board-hero .eyebrow { color: rgba(255,255,255,.72); }
.agri-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.agri-module {
  display: flex; align-items: center; gap: 10px; min-height: 92px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.agri-module:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 28, 36, .08); }
.agri-module .module-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--primary); font-weight: 700; }
.agri-module b, .agri-module small { display: block; }
.agri-module b { font-size: 15px; }
.agri-module small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.agri-module i { margin-left: auto; color: var(--muted); font-size: 22px; font-style: normal; }
.agri-section { margin: 22px 0; }
.agri-section .section-head { margin-bottom: 10px; }
.agri-price-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.agri-price-mini { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.agri-price-mini span, .agri-price-mini small { display: block; }
.agri-price-mini strong { display: block; margin: 8px 0 4px; color: var(--primary); font-size: 20px; }
.agri-price-mini small { color: var(--muted); font-size: 12px; }
.agri-price-note { margin: 10px 0 0; font-size: 12px; }

.price-group { margin: 18px 0; }
.price-group h2 { font-size: 18px; margin-bottom: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.price-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.price-card h3 { margin: 0; font-size: 16px; }
.price-card strong { color: var(--primary); font-size: 20px; }
.price-card p { margin: 8px 0 0; font-size: 13px; }
.trend { height: 70px; display: flex; align-items: end; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.trend span { flex: 1; min-width: 5px; background: var(--primary); border-radius: 3px 3px 0 0; opacity: .75; }
.trend-empty { color: var(--muted); font-size: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.source-note { margin-top: 18px; }
.ad-banner { display: flex; gap: 12px; align-items: center; margin: 4px 0 16px; padding: 10px 14px; border: 1px solid #d9e8e8; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.ad-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,28,36,.1); }
.ad-banner span { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; font-size: 11px; }
.ad-banner img { width: 84px; height: 42px; object-fit: cover; border-radius: 7px; }
.ad-banner b { min-width: 0; flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 156px; margin: 0 0 18px; padding: 24px 26px; border-radius: 18px; overflow: hidden; color: #fff; background-size: cover; background-position: center; box-shadow: 0 12px 28px rgba(20,54,62,.14); }
.category-hero h1 { margin: 7px 0; font-size: 27px; }
.category-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.86); line-height: 1.7; }
.category-hero .eyebrow { color: rgba(255,255,255,.82); }
.category-hero-mark { display: grid; place-items: center; flex: 0 0 auto; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.48); border-radius: 24px; background: rgba(255,255,255,.13); color: #fff; font-size: 32px; font-weight: 800; }
.news-hero { background-image: linear-gradient(90deg, rgba(8,42,55,.88), rgba(8,42,55,.42) 58%, rgba(8,42,55,.08)), url('/assets/news-hero.jpg?v=20261025j'); }
.restaurant-hero { background-image: linear-gradient(90deg, rgba(72,43,21,.86), rgba(72,43,21,.42) 58%, rgba(72,43,21,.08)), url('/assets/restaurant-hero.jpg?v=20261025j'); }
.quote-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #dce9e4; border-radius: 14px; background: #f1f8f4; }
.quote-cta b, .quote-cta span { display: block; }
.quote-cta span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.recycle-cta, .recycle-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid #dce9e4; background: linear-gradient(135deg, #effaf5, #f7fbf8); }
.recycle-cta b, .recycle-cta span { display: block; }
.recycle-cta span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.recycle-hero { color: #fff; border: 0; background-image: linear-gradient(90deg, rgba(7,54,54,.86), rgba(7,54,54,.42) 58%, rgba(7,54,54,.08)), url('/assets/recycle-hero.jpg?v=20261025i'); background-size: cover; background-position: center; box-shadow: 0 12px 28px rgba(13, 115, 119, .16); }
.recycle-hero h1 { margin: 6px 0; font-size: 28px; }
.recycle-hero p { margin: 0; color: rgba(255,255,255,.86); }
.recycle-hero .eyebrow { color: rgba(255,255,255,.78); }
.recycle-badge { flex: 0 0 auto; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-weight: 600; }
.detail-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.detail-fields div { padding: 12px; border-radius: 10px; background: var(--bg); }
.detail-fields span, .detail-fields b { display: block; }
.detail-fields span { color: var(--muted); font-size: 12px; }
.detail-fields b { margin-top: 5px; font-size: 14px; }
.verified-link { display: block; margin-top: 5px; color: var(--primary); font-size: 12px; }
.verified-badge { display: inline-block; vertical-align: middle; padding: 4px 8px; border-radius: 999px; color: #176b57; background: #dff4e9; font-size: 12px; font-weight: 600; }
.merchant-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; padding: 26px; border-radius: 18px; color: #fff; background-image: linear-gradient(90deg, rgba(8,45,51,.86), rgba(8,45,51,.4) 58%, rgba(8,45,51,.08)), url('/assets/merchant-hero.jpg?v=20261025i'); background-size: cover; background-position: center; }
.merchant-head h1 { margin: 8px 0; }
.merchant-head p { margin: 0; color: rgba(255,255,255,.82); }
.merchant-head .eyebrow { color: rgba(255,255,255,.72); }
.merchant-desc { white-space: pre-wrap; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.board-admin-panel { overflow-x: auto; }
.board-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.board-category-tabs .btn { white-space: nowrap; }
.board-ad-form { max-width: 760px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfefe; }
.board-ad-form .btn { margin-right: 8px; }
.moments-page { display: grid; gap: 16px; }
.moments-hero { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 168px; overflow: hidden; padding: 24px 26px; border-radius: 20px; color: #fff; background-image: linear-gradient(90deg, rgba(11,39,44,.78) 0%, rgba(11,39,44,.47) 46%, rgba(11,39,44,.12) 100%), url('/assets/moments-hero.jpg?v=20261025i'); background-size: cover; background-position: center; box-shadow: 0 12px 28px rgba(20,54,62,.18); }
.moments-hero h1 { margin: 6px 0; font-size: 28px; }
.moments-hero p { margin: 0; color: rgba(255,255,255,.86); }
.moments-hero .eyebrow { color: rgba(255,255,255,.82); }
.moments-mark { display: grid; place-items: center; flex: 0 0 auto; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; font-size: 48px; line-height: 1; }
.moment-compose-trigger { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; padding: 9px 14px; color: #fff; background: rgba(255,255,255,.14); font-weight: 800; cursor: pointer; }
.moment-compose-trigger span { font-size: 20px; line-height: 1; }
.moment-compose-trigger:hover { background: rgba(255,255,255,.24); }
.moment-compose-modal { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; padding: 16px; background: rgba(20,35,40,.42); }
.moment-compose-modal[hidden] { display: none; }
.moment-compose-sheet { width: min(720px, 100%); max-height: min(88vh, 760px); overflow: auto; margin: 0 auto; padding: 18px; border-radius: 20px 20px 12px 12px; background: #fff; box-shadow: 0 20px 60px rgba(20,35,40,.24); }
.moment-compose-sheet .moment-form { padding-top: 12px; }
body.modal-open { overflow: hidden; }
.moment-form, .moment-feed { margin: 0; }
.moment-head { display: flex; align-items: center; gap: 10px; }
.moment-head > div { min-width: 0; flex: 1; }
.moment-head b, .moment-head small { display: block; }
.moment-head small { color: var(--muted); margin-top: 3px; }
.moment-head .btn { padding: 6px 9px; font-size: 12px; }
.moment-card { padding: 18px 14px; border: 1px solid #edf2f3; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(15,28,36,.04); }
.moment-card + .moment-card { margin-top: 12px; }
.moment-card:first-child { padding-top: 2px; }
.moment-card:first-child { padding-top: 14px; }
.moment-card:last-child { padding-bottom: 14px; }
.moment-card p { margin: 12px 0; line-height: 1.8; white-space: normal; }
.moment-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-width: 520px; }
.moment-images img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bg); }
.moment-feed .section-head select { min-width: 110px; }
.moment-comments { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.comment-title { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.comment-title span { color: var(--primary); }
.comment-list { display: grid; gap: 8px; }
.moment-comment { position: relative; padding: 8px 10px; border-radius: 9px; background: #fff; font-size: 13px; }
.moment-comment > div { display: flex; gap: 8px; align-items: center; }
.moment-comment small { color: var(--muted); }
.moment-comment > span { display: block; margin-top: 4px; line-height: 1.6; white-space: pre-wrap; }
.comment-delete { position: absolute; top: 7px; right: 8px; border: 0; padding: 0; color: var(--danger); background: transparent; font-size: 12px; cursor: pointer; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input { min-width: 0; flex: 1; margin: 0; }
.comment-form .btn { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }

.detail-bottom-bar { display: none; }

.site-foot { color: var(--muted); font-size: 12px; padding: 8px 0 32px; }
.tabbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #0f1c24; color: #fff; border-radius: 999px; padding: 10px 16px;
  z-index: 50; font-size: 14px;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cover { height: 180px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .layout { grid-template-columns: 1fr; }
  #side { display: none; }
  .detail-top { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 22px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .agri-modules { grid-template-columns: repeat(2, 1fr); }
  .agri-price-strip { grid-template-columns: repeat(2, 1fr); }
  .detail-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .subcat-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subcat-nav::-webkit-scrollbar { display: none; }
  .decoration-subnav { display: grid; flex-wrap: wrap; overflow: visible; gap: 10px; }
  .decoration-section { padding: 13px; border-radius: 16px; }
  .decoration-section-head { margin-bottom: 10px; }
  .decoration-section-head strong { font-size: 16px; }
  .decoration-group-grid { grid-template-columns: 1fr; gap: 8px; }
  .decoration-group { padding: 10px; }
  .decoration-group a { padding: 7px 10px; font-size: 12px; }
  .site-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .head-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; gap: 8px; padding-top: 6px; }
  .brand { min-width: 0; gap: 8px; }
  .brand > span:last-child { min-width: 0; }
  .brand strong { white-space: nowrap; font-size: 14px; }
  .brand em { white-space: nowrap; font-size: 10px; }
  .head-actions { min-width: 0; gap: 4px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 8px; }
  .city, #logout { display: none; }
  .head-actions .download-link { display: inline-flex; max-width: 72px; height: 36px; padding: 0 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .who { display: inline-flex; align-items: center; max-width: 66px; padding: 8px 8px; border: 1px solid #cde8e8; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .head-actions .btn.primary { height: 38px; max-width: 80px; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .catbar { gap: 8px; padding: 10px 2px 12px; scroll-snap-type: x proximity; }
  .catbar a { min-height: 40px; padding: 8px 15px; font-size: 14px; background: #f2f7f8; }
  .cards, .cat-grid { grid-template-columns: 1fr 1fr; }
  .cover { height: 150px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  body { padding-bottom: 82px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20,54,62,.08); height: 68px; padding: 5px 6px max(5px, env(safe-area-inset-bottom)); gap: 4px;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; border-radius: 14px; font-size: 13px; color: var(--muted); position: relative; font-weight: 600;
  }
  .tabbar a.on { color: var(--primary); font-weight: 800; background: var(--primary-soft); }
  .tab-glyph { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 8px; font-size: 21px; line-height: 1; font-weight: 700; }
  .tabbar a[data-tab="moments"] { color: #b87418; }
  .tabbar a[data-tab="moments"].on { color: #a55f0b; background: #fff4dc; }
  .tabbar em {
    position: absolute; top: 6px; right: calc(50% - 18px);
    background: var(--danger); color: #fff; border-radius: 99px;
    font-style: normal; font-size: 10px; min-width: 16px; height: 16px;
    display: grid; place-items: center; padding: 0 4px;
  }
  .site-foot { padding-bottom: 16px; }
  .moments-hero { align-items: flex-start; min-height: 180px; padding: 20px; background-position: 58% center; }
  .moments-hero h1 { font-size: 24px; }
  .moment-compose-trigger { align-self: flex-start; padding: 8px 12px; }
  .moment-compose-sheet { padding: 16px; }
  .hero { flex-direction: column; align-items: flex-start; min-height: 230px; padding: 20px; background-position: 62% center; }
  .ios-install-card { grid-template-columns: 1fr; padding: 16px; }
  .ios-install-card img { order: -1; }
  .download-option { grid-template-columns: 1fr; padding: 18px; }
  .download-option img { order: -1; }
  .download-icon { width: 110px; height: 110px; margin: 0; }
  .gallery-slide { height: 220px; }
  .gallery-arrow { width: 34px; height: 34px; font-size: 24px; }
  .gallery-hint { display: inline; }
  .detail h1 { font-size: 20px; }
  .detail-bottom-bar { position: fixed; left: 0; right: 0; bottom: 68px; z-index: 28; display: flex; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,54,62,.1); }
  .detail-bottom-bar .btn { flex: 1; }
  body[data-page="detail"] { padding-bottom: 150px; }
  .price-grid { grid-template-columns: 1fr; }
  .agri-board-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .agri-board-hero h1 { font-size: 26px; }
  .agri-modules, .agri-price-strip { grid-template-columns: 1fr; }
  .quote-cta, .merchant-head { align-items: flex-start; flex-direction: column; }
  .recycle-cta, .recycle-hero { align-items: flex-start; flex-direction: column; }
  .category-hero { align-items: flex-start; min-height: 180px; padding: 20px; background-position: 62% center; }
  .category-hero h1 { font-size: 23px; }
  .category-hero-mark { width: 54px; height: 54px; border-radius: 18px; font-size: 24px; }
  .detail-fields, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand em { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand strong { font-size: 13px; }
  .head-actions .btn.primary { padding: 0 9px; font-size: 12px; }
  .cat-grid a { padding-left: 3px; padding-right: 3px; }
  .cat-grid em { font-size: 12px; }
  .moment-images { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
