:root {
  --brand: #0b7a75;
  --brand-dark: #173e39;
  --orange: #e46d3c;
  --cream: #fff4dd;
  --ink: #172422;
  --muted: #74817f;
  --line: #e5ecea;
  --surface: #fff;
  --background: #f4f7f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #dce8e5;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #f4fbf9, #cbdcd8); }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { position: relative; width: min(100%, 520px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--background); box-shadow: 0 0 70px rgba(20, 64, 59, .2); }
.preview-ribbon { position: sticky; top: 0; z-index: 50; padding: 7px 14px; background: #f8dd9f; color: #5f4716; font-size: 11px; text-align: center; letter-spacing: .3px; }
.screen { display: none; min-height: calc(100vh - 30px); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.screen.active { display: block; }
.hero { position: relative; overflow: hidden; padding: 32px 20px 22px; background: linear-gradient(145deg, #075e5a, #0b7a75 55%, #169a8d); color: #fff; }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.orb-a { width: 190px; height: 190px; top: -70px; right: -50px; }
.orb-b { width: 150px; height: 150px; left: -80px; bottom: 0; }
.eyebrow { position: relative; font-size: 12px; letter-spacing: 2px; opacity: .76; }
.hero h1 { position: relative; margin: 10px 0 0; font-size: clamp(27px, 7vw, 36px); line-height: 1.25; }
.hero h1 em { color: #ffe3a4; font-style: normal; }
.hero > p { position: relative; margin: 9px 0 0; font-size: 13px; opacity: .8; }
.search-box { position: relative; height: 50px; display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-left: 14px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 9px 25px rgba(0,45,41,.16); color: #596865; }
.search-box input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box button { align-self: stretch; padding: 0 17px; color: var(--brand); background: #fff; font-weight: 700; }
.search-box.light { margin-top: 0; background: #eef3f2; box-shadow: none; }
.search-box.light button { background: var(--brand); color: #fff; }
.stats { position: relative; display: flex; margin-top: 19px; }
.stats div { flex: 1; display: flex; flex-direction: column; }
.stats strong { font-size: 20px; }
.stats span { margin-top: 2px; font-size: 10px; opacity: .65; }
.safety-strip { width: calc(100% - 28px); display: flex; align-items: center; gap: 9px; margin: 14px; padding: 12px; border: 1px solid #f0e0bb; border-radius: 12px; background: #fffbf0; color: #695d42; text-align: left; }
.safety-strip b { padding: 3px 7px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 10px; }
.safety-strip span { min-width: 0; flex: 1; font-size: 12px; }
.safety-strip i { font-size: 20px; font-style: normal; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 24px 16px 12px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading p { margin: 4px 0 0; color: #8a9693; font-size: 11px; }
.section-heading button { padding: 5px; background: transparent; color: #667370; font-size: 12px; }
.feature-heading { margin-top: 20px; }
.feature-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 14px; }
.feature-board button { min-width: 0; display: flex; align-items: center; flex-direction: column; padding: 14px 5px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 7px 20px rgba(24,64,59,.04); }
.feature-board i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #b45f3e; color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.feature-board button:nth-child(2) i { background: #365b96; }
.feature-board button:nth-child(3) i { background: #d46a27; }
.feature-board b { margin-top: 8px; font-size: 12px; }
.feature-board span { margin-top: 5px; color: #8a9693; font-size: 9px; line-height: 1.45; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 14px; padding: 16px 4px 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(24,64,59,.045); }
.category-grid button { display: flex; align-items: center; flex-direction: column; gap: 7px; margin-bottom: 13px; background: transparent; color: #43514e; font-size: 11px; }
.category-grid i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-size: 20px; font-style: normal; }
.post-list { margin: 0 14px; }
.post-card { width: 100%; display: block; margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: inherit; box-shadow: 0 7px 20px rgba(24,64,59,.04); text-align: left; }
.post-top, .post-meta, .post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 7px; border-radius: 999px; background: #e9f6f4; color: var(--brand); font-size: 10px; }
.tag.official { background: #ebefff; color: #3a56a5; }
.tag.urgent { background: #ffede3; color: #bd4d1c; }
.post-time { flex-shrink: 0; color: #8b9694; font-size: 10px; }
.post-card h3 { margin: 11px 0 0; font-size: 17px; line-height: 1.4; }
.post-card > p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: #596764; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-meta { margin-top: 10px; color: #667370; font-size: 11px; }
.post-meta b { color: #d05d2d; }
.post-foot { margin-top: 11px; padding-top: 10px; border-top: 1px solid #edf1f0; color: #8b9694; font-size: 10px; }
.trust-card { margin: 18px 14px 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg,#fff,#effaf8); }
.trust-card h3 { margin: 0 0 13px; font-size: 17px; }
.trust-card > div { display: flex; align-items: center; margin-top: 10px; }
.trust-card > div > b { width: 31px; height: 31px; display: grid; place-items: center; margin-right: 10px; border-radius: 50%; background: #dff2ef; color: var(--brand); font-size: 10px; }
.trust-card p { display: flex; flex-direction: column; margin: 0; }
.trust-card p strong { font-size: 13px; }
.trust-card p span { margin-top: 2px; color: #7a8784; font-size: 11px; }
.publish-cta { display: flex; align-items: center; justify-content: space-between; margin: 14px; padding: 17px; border-radius: 16px; background: var(--brand-dark); color: #fff; }
.publish-cta h3 { margin: 0; font-size: 17px; }
.publish-cta p { margin: 5px 0 0; font-size: 10px; opacity: .7; }
.publish-cta button { padding: 10px 13px; border-radius: 999px; background: #ffe0a1; color: #4b3912; font-size: 11px; font-weight: 700; }
.plain-header { padding: 23px 18px 18px; background: linear-gradient(135deg,var(--brand),#165b56); color: #fff; }
.plain-header h1 { margin: 0; font-size: 24px; }
.plain-header p { margin: 5px 0 0; font-size: 12px; opacity: .72; }
.sticky-filters { position: sticky; top: 29px; z-index: 10; padding: 13px 14px 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.filter-scroll { display: flex; gap: 7px; margin-top: 10px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.filter-scroll button { flex-shrink: 0; padding: 8px 13px; border-radius: 999px; background: #f0f4f3; color: #60706d; font-size: 11px; }
.filter-scroll button.active { background: var(--brand); color: #fff; font-weight: 700; }
.minor-filter { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.minor-filter button { padding: 5px 0; background: transparent; color: #50605d; font-size: 11px; }
.minor-filter span { margin-left: auto; color: #98a29f; font-size: 10px; }
.list-page-posts { padding-top: 13px; }
.publish-intro { display: flex; flex-direction: column; gap: 7px; margin: 14px; padding: 17px; border-radius: 15px; background: #173e39; color: #fff; }
.publish-intro span { width: fit-content; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 10px; }
.publish-intro b { font-size: 13px; }
.publish-form { padding: 0 14px 25px; }
.form-card { margin-top: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.form-card h2 { margin: 0 0 13px; padding-bottom: 12px; border-bottom: 1px solid #edf1f0; font-size: 17px; }
.form-card > label { display: block; margin-top: 15px; color: #344641; font-size: 12px; font-weight: 650; }
.form-card label i { color: #da572d; font-style: normal; }
.form-card label small { float: right; color: #96a19f; font-size: 10px; font-weight: 400; }
.form-card input:not([type="checkbox"]), .form-card select, .form-card textarea { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #dce5e2; border-radius: 9px; outline-color: var(--brand); background: #fbfcfc; color: #253734; font-size: 13px; }
.form-card textarea { min-height: 100px; resize: vertical; }
.risk-tip { margin-top: 12px; padding: 11px; border-left: 4px solid var(--orange); border-radius: 7px; background: #fff5ed; color: #775441; font-size: 11px; line-height: 1.5; }
.photo-placeholder { width: 110px; height: 80px; display: block; margin-top: 7px; border: 1px dashed #b9c8c5; border-radius: 10px; background: #f7f9f8; color: #768581; font-size: 11px; }
.toggle-row { display: flex !important; align-items: center; justify-content: space-between; }
.toggle-row span { display: flex; flex-direction: column; }
.toggle-row small { float: none !important; margin-top: 4px; }
.toggle-row input { width: 40px; height: 22px; accent-color: var(--brand); }
.agreement { display: block; margin: 15px 4px; color: #65726f; font-size: 11px; }
.agreement input { accent-color: var(--brand); }
.submit-button { width: 100%; padding: 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.profile { display: flex; align-items: center; padding: 23px 18px; background: linear-gradient(135deg,var(--brand),#174d49); color: #fff; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; margin-right: 12px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; background: #ffe1a6; color: #564114; font-size: 22px; font-weight: 800; }
.profile h1 { margin: 0; font-size: 20px; }
.profile p { margin: 4px 0 0; font-size: 11px; opacity: .7; }
.profile button { margin-left: auto; padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: #fff; font-size: 10px; }
.mine-stats { display: flex; margin: 14px; padding: 15px 5px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.mine-stats div { flex: 1; display: flex; align-items: center; flex-direction: column; border-right: 1px solid #edf1f0; }
.mine-stats div:last-child { border-right: 0; }
.mine-stats strong { font-size: 20px; }
.mine-stats span { margin-top: 3px; color: #85918e; font-size: 10px; }
.share-box { display: flex; align-items: center; justify-content: space-between; margin: 14px; padding: 14px; border-radius: 14px; background: var(--cream); color: #624f29; }
.share-box div { display: flex; flex-direction: column; }
.share-box b { font-size: 12px; }
.share-box span { margin-top: 4px; font-size: 9px; opacity: .75; }
.share-box button { flex-shrink: 0; margin-left: 8px; padding: 8px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; }
.menu-card { margin: 14px; padding: 5px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.menu-card h2 { margin: 0; padding: 12px 0 8px; color: #8d9896; font-size: 11px; font-weight: 500; }
.menu-card button { width: 100%; min-height: 52px; display: flex; align-items: center; border-top: 1px solid #edf1f0; background: transparent; color: #334541; font-size: 13px; text-align: left; }
.menu-card button i { width: 27px; height: 27px; display: grid; place-items: center; margin-right: 9px; border-radius: 8px; background: #eaf5f3; color: var(--brand); font-size: 10px; font-style: normal; font-weight: 700; }
.menu-card button b { margin-left: auto; color: #a1aaa8; font-size: 20px; font-weight: 400; }
.menu-card button em { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: #fff0e7; color: #bd5a23; font-size: 9px; font-style: normal; }
.menu-card button em + b { margin-left: 8px; }
.version { color: #a1aaa8; font-size: 10px; text-align: center; }
.tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; width: min(100%, 520px); display: flex; margin: auto; padding: 7px 5px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e9e7; background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(30,63,59,.06); }
.tabbar button { flex: 1; display: flex; align-items: center; flex-direction: column; gap: 2px; background: transparent; color: #7a8584; font-size: 10px; }
.tabbar button.active { color: var(--brand); font-weight: 700; }
.tabbar i { font-size: 19px; font-style: normal; line-height: 1; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(8,25,22,.5); }
.detail-sheet { position: fixed; right: 50%; bottom: 0; z-index: 80; width: min(100%, 520px); max-height: 91vh; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 22px 22px 0 0; background: var(--background); transform: translate(50%,110%); transition: transform .25s ease; }
.detail-sheet.open { transform: translate(50%,0); }
.sheet-close { position: sticky; top: 0; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; margin: 0 0 0 auto; border-radius: 50%; background: rgba(23,36,34,.08); color: #52605e; font-size: 22px; }
.detail-head { padding: 4px 2px 16px; }
.detail-head h2 { margin: 12px 0 0; font-size: 24px; line-height: 1.35; }
.detail-head p { margin: 10px 0 0; color: #81908d; font-size: 11px; }
.detail-block { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.detail-block h3 { margin: 0 0 10px; font-size: 15px; }
.detail-block > p { margin: 0; color: #50605d; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.source-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 10px; background: #edf3fb; color: #4c6380; font-size: 10px; }
.source-box a { flex-shrink: 0; color: #315d86; font-weight: 700; text-decoration: none; }
.coupon-box { margin-top: 10px; padding: 16px; border: 1px solid #f0dbc6; border-radius: 15px; background: linear-gradient(135deg,#fff7e9,#fff); }
.coupon-box small { color: #b16427; }
.coupon-box strong { display: block; margin-top: 5px; color: #bd4f22; font-size: 23px; }
.coupon-box p { margin: 6px 0 0; color: #7d6b5c; font-size: 10px; }
.coupon-box button { width: 100%; margin-top: 11px; padding: 10px; border-radius: 9px; background: var(--orange); color: #fff; font-weight: 700; }
.detail-facts { margin-top: 14px; border-top: 1px solid #edf1f0; }
.detail-facts div { display: flex; justify-content: space-between; gap: 20px; padding-top: 11px; color: #7d8a87; font-size: 11px; }
.detail-facts b { color: #31413e; text-align: right; }
.contact-preview { width: 100%; margin-top: 12px; padding: 12px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 700; }
.sheet-actions { display: flex; gap: 8px; margin-top: 10px; }
.sheet-actions button { flex: 1; padding: 11px; border: 1px solid #d7e1df; border-radius: 11px; background: #fff; color: #50605d; font-size: 11px; }
.sheet-actions button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.doc-list { margin: 0; padding-left: 19px; color: #50605d; font-size: 13px; line-height: 1.75; }
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 100; max-width: 80%; padding: 10px 14px; border-radius: 9px; background: rgba(20,36,33,.9); color: #fff; font-size: 12px; transform: translateX(-50%); text-align: center; }
.empty { padding: 70px 20px; color: #84908e; font-size: 13px; text-align: center; }
@media (min-width: 521px) { .app-shell { margin-top: 18px; margin-bottom: 18px; min-height: calc(100vh - 36px); border-radius: 24px; } .tabbar { bottom: 18px; border-radius: 0 0 24px 24px; } }
