:root{--blue:#456349;--ink:#30392f;--surface:#fff}html,body{height:100%;overflow:hidden;background:#eeefe3}body{font-size:14px}.phone-screen{max-width:480px;width:100%;height:100dvh;margin:0 auto;border-radius:0;box-shadow:0 0 50px #162e4910;background:white}.mobile-app{height:100%;min-height:0}.mobile-scroll{padding:18px 16px 32px}.mobile-status{display:none}.bottom-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}.mobile-header{min-height:52px;margin-bottom:12px}.mobile-header h3{font-size:18px}.mobile-input,.mobile-textarea{font-size:16px;padding:12px;line-height:1.5}.form-label{font-size:14px;margin:16px 0 7px}.primary-button,.ghost-button{font-size:14px;min-height:42px}.small-icon{min-width:36px;min-height:36px}.text-button{font-size:14px;min-height:40px}.mobile-card h4{font-size:15px;line-height:1.55}.meta-line,.post-extra,.post-card-footer strong,.metric,.tag,.event-meta,.event-card-footer,.nav-item,.mobile-tab{font-size:12px}.search-box{min-height:46px;font-size:14px}.mobile-tabs{margin-top:12px}.mobile-tab{font-size:15px;min-height:44px}.feed-grid{gap:12px}.feed-column{gap:12px}.post-card-copy{padding:12px}.post-card-footer{padding:10px 12px}.post-thumb{min-height:130px}.login-scroll{padding:0}.login-photo{position:relative;height:265px;overflow:hidden}.login-photo:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#fff)}.login-photo img{width:100%;height:100%;object-fit:cover}.login-photo a{position:absolute;left:24px;top:24px;background:#456349;color:white;border-radius:9px;padding:10px;text-decoration:none;font-weight:700;font-size:14px}.login-photo a span{margin-left:8px}.login-content{padding:20px 28px 32px;font-size:14px}.login-content h2{font-size:28px}.login-content p{font-size:15px;line-height:1.7}.auth-consent{font-size:12px!important;line-height:1.6}input[type=checkbox]{min-width:18px;min-height:18px;accent-color:var(--blue)}.auth-panel-heading strong{font-size:20px}.auth-panel-heading small{font-size:13px}.state-banner{font-size:13px;line-height:1.65}.event-detail-title,.detail-title{font-size:23px;line-height:1.5}.event-detail-body,.detail-body,.secondary-lead p,.rule-list p{font-size:15px;line-height:1.8}.event-card-copy p{font-size:13px}.profile-head h4{font-size:22px}.profile-head p{font-size:13px;line-height:1.6}.menu-list button{font-size:14px;min-height:54px}.settings-row strong,.preference-option strong,.secondary-lead strong{font-size:15px}.settings-row small,.preference-option small,.toggle-row small{font-size:12px}.toast{z-index:999;max-width:90vw;font-size:14px;bottom:90px}.detail-bottom-bar{flex-shrink:0;padding:12px}.detail-bottom-bar button{font-size:14px;min-height:38px}.detail-body{white-space:pre-wrap}.comment-compose{display:flex;gap:8px;padding:16px 0}.comment-compose input{flex:1;min-width:0}.comments-list p{font-size:14px;line-height:1.6}.empty-view{text-align:center;padding:80px 20px;color:var(--muted)}.empty-view strong{display:block;font-size:18px;color:var(--ink);margin-bottom:12px}.order-card strong,.checkout-row{font-size:14px}.order-card-meta,.order-card-foot{font-size:12px}.event-list{gap:16px}.notification strong{font-size:15px}.notification p{font-size:13px}.login-content label[style]{font-size:12px!important}.stats strong{font-size:23px}.stats span{font-size:13px}.upload-cell{position:relative}.upload-cell .remove-image{position:absolute;top:0;right:0;background:white;border:0;border-radius:50%;font-size:20px}.form-actions{display:flex;gap:10px}.form-actions>*{flex:1}.status-line{font-size:12px;color:var(--muted);padding:12px 0}.detail-hero{height:240px}.avatar-fallback{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e6edda;color:#456349}.list-title{font-size:18px}.policy-link{color:var(--blue)}:focus-visible{outline:3px solid #74a6f1;outline-offset:3px}button:disabled{cursor:wait;opacity:.6}@media(min-width:600px){.phone-screen{height:calc(100dvh - 40px);margin:20px auto;border-radius:22px;border:1px solid #dce3eb}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mobile-app{display:flex;flex-direction:column}.mobile-scroll{height:auto;flex:1;min-height:0;padding-bottom:28px}.bottom-nav{position:static;flex:none;min-height:64px;padding:9px 4px max(10px,env(safe-area-inset-bottom))}.bottom-nav button{font-size:12px;min-height:42px}.detail-bottom-bar{position:static;flex:none}.collection-actions{padding:5px 8px 14px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.collection-actions .text-button{margin:0}.status-tag{font-size:12px}.login-app .mobile-header{padding:0 24px}.city-option strong{font-size:16px}.city-option small{font-size:12px}.city-option{min-height:60px}.permission-row strong{font-size:15px}.permission-row small{font-size:12px}.toggle-row strong{font-size:15px}.report-reason{font-size:14px;min-height:55px}.search-box input{font-size:16px}.event-detail-meta span{font-size:13px}.event-host small{font-size:12px}.post-card-top img{object-fit:cover}.event-thumb{object-fit:cover}

/* Post detail: one reading column, one persistent composer. */
.phone-screen.is-post-detail { max-width: 720px; }
.post-detail { --post-ink: #30392f; --post-muted: #697064; --post-line: #d8dbc9; --post-blue: #456349; --post-soft: #eeefe3; background: #fff; color: var(--post-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.post-detail button { -webkit-tap-highlight-color: transparent; }
.post-detail .post-icon { width: 20px; height: 20px; flex: none; }
.post-topbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 8px 24px; border-bottom: 1px solid var(--post-line); background: #fff; }
.post-topbar-title { display: grid; gap: 3px; text-align: center; font-size: 15px; line-height: 1.4; font-weight: 650; }
.post-topbar-title span { color: var(--post-muted); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.post-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--post-line); border-radius: 50%; background: #fff; color: var(--post-ink); }
.post-detail .post-scroll { padding: 0; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #d3dde9 transparent; }
.post-scroll::-webkit-scrollbar { display: block; width: 4px; }
.post-scroll::-webkit-scrollbar-thumb { background: #d3dde9; border-radius: 4px; }
.post-scroll > .state-banner { margin: 16px 28px 0; font-size: 12px; }
.post-author { display: flex; align-items: center; gap: 12px; padding: 24px 32px 20px; }
.post-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #dfe9f7; border-radius: 50%; background: #e6edda; color: #456349; font-size: 18px; font-weight: 600; }
.post-author-info { display: grid; gap: 4px; flex: 1; min-width: 0; }
.post-author-info strong { font-size: 15px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.post-author-info > span { color: var(--post-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.post-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 44px; padding: 0 15px; border: 1px solid var(--post-line); border-radius: 12px; color: var(--post-ink); background: #fff; font-size: 13px; line-height: 1.4; font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.post-follow { min-width: 86px; min-height: 40px; border-color: #ced6bc; color: var(--post-blue); background: #eef1e3; }
.post-follow .post-icon { width: 16px; height: 16px; }
.post-follow.is-active { border-color: var(--post-line); color: var(--post-muted); background: #eeefe3; }
.post-gallery { margin: 0 24px; overflow: hidden; border-radius: 16px; background: var(--post-soft); }
.post-gallery { touch-action: auto; }
.post-gallery .gallery-track { display: flex; align-items: flex-start; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; }
.post-gallery .gallery-track::-webkit-scrollbar { display: none; }
.post-gallery .gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.post-gallery .gallery-slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.post-gallery .detail-hero { user-select: none; -webkit-user-drag: none; }
.post-gallery .gallery-tap-zone { position: absolute; z-index: 1; top: 0; bottom: 0; width: 50%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.post-gallery .gallery-tap-prev { left: 0; }
.post-gallery .gallery-tap-next { right: 0; }
.post-gallery .gallery-tap-zone:focus-visible { outline: 3px solid #236caf; outline-offset: -4px; }
.post-gallery .gallery-count { z-index: 2; pointer-events: none; }
.post-detail .detail-hero { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; object-position: center; }
.post-gallery .gallery-count { right: 14px; bottom: 14px; padding: 5px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.post-gallery .gallery-prev, .post-gallery .gallery-next { display: grid; place-items: center; width: 44px; height: 44px; background: #17283f99; }
.post-gallery .gallery-prev { left: 10px; }
.post-gallery .gallery-next { right: 10px; }
.post-gallery .gallery-next .post-icon { transform: rotate(180deg); }
.post-copy { padding: 16px 32px 0; }
.post-context { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-category { padding: 5px 10px; border-radius: 6px; background: #e6edda; color: #456349; font-size: 12px; font-weight: 600; line-height: 1.5; }
.post-translate { min-height: 40px; padding: 0 4px 0 12px; border-color: transparent; border-radius: 8px; color: var(--post-muted); font-size: 12px; font-weight: 500; }
.post-translate .post-icon { width: 18px; height: 18px; }
.post-detail .detail-title { margin: 12px 0 16px; font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif; font-size: 30px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: pretty; }
.post-detail .detail-body { color: #4d5849; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.post-detail .detail-body p { margin: 0; }
.post-contact, .post-service { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 18px; border: 1px solid var(--post-line); border-radius: 12px; background: var(--post-soft); }
.post-contact > div, .post-service > div { display: grid; min-width: 0; gap: 6px; }
.post-contact span, .post-service span { color: var(--post-muted); font-size: 12px; }
.post-contact strong, .post-service strong { font-size: 16px; overflow-wrap: anywhere; }
.post-service p { margin: 0; color: var(--post-muted); font-size: 13px; line-height: 1.7; }
.post-reactions { display: flex; align-items: center; gap: 10px; padding: 24px 0; margin-top: 8px; }
.post-reaction { color: #57677d; min-width: 88px; font-variant-numeric: tabular-nums; }
.post-reaction.is-active { color: var(--post-blue); border-color: #ced6bc; background: #eef1e3; }
.post-reaction.is-active .post-icon { fill: #d3dfbd; }
.post-share { margin-left: auto; }
.post-comments { border-top: 8px solid var(--post-soft); padding: 26px 32px 30px; }
.post-comments-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.post-comments-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 19px; line-height: 1.4; font-weight: 650; }
.post-comments-heading h2 span { padding: 2px 8px; border-radius: 7px; background: #eff3f8; color: #697064; font-size: 12px; font-weight: 500; }
.post-comments-heading > span { color: var(--post-muted); font-size: 12px; }
.post-comment { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px 0; }
.post-comment-thread + .post-comment-thread { border-top: 1px solid var(--post-line); }
.post-comment-thread:first-child > .post-comment { padding-top: 0; }
.post-comment-replies { margin: 0 0 4px 22px; padding-left: 12px; border-left: 2px solid var(--post-line); }
.post-comment-replies .post-comment { padding: 12px 0; }
.post-comment-avatar { width: 36px; height: 36px; font-size: 14px; background: #eeefe3; border-color: #e5ebf2; color: #62738b; }
.post-comment-main { min-width: 0; }
.post-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 16px; row-gap: 4px; }
.post-comment-meta strong { min-width: 0; font-size: 13px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.post-comment-reply-to { min-width: 0; color: var(--post-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.post-comment-meta time { flex: none; color: var(--post-muted); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.post-comment-foot { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 2px -4px -8px; }
.post-comment-like { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--post-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.post-comment-like .post-icon { width: 17px; height: 17px; }
.post-comment-like.is-active { color: var(--post-blue); }
.post-comment-like.is-active .post-icon { fill: #d3dfbd; }
.post-comment-delete, .post-comment-translate, .post-comment-reply { flex: none; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--post-muted); font-size: 12px; font-weight: 650; }
.post-detail .post-comment p { margin: 7px 0 0; color: #4d5849; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-comments-empty { display: grid; justify-items: center; gap: 10px; padding: 16px 0 24px; text-align: center; }
.post-comments-empty .post-icon { box-sizing: content-box; width: 24px; height: 24px; padding: 14px; border-radius: 50%; color: #879bb5; background: var(--post-soft); }
.post-comments-empty strong { margin-top: 2px; color: #52647c; font-size: 14px; font-weight: 500; }
.post-detail .post-comments-empty p { margin: 0; color: var(--post-muted); font-size: 12px; }
.post-composer { flex: none; padding: 14px 24px max(16px,env(safe-area-inset-bottom)); border-top: 1px solid var(--post-line); background: #fff; box-shadow: 0 -6px 24px #17283f04; }
.post-composer-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.post-composer-reply { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 8px; }
.post-composer-reply span { min-width: 0; color: var(--post-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.post-composer-reply-cancel { flex: none; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--post-muted); font-size: 12px; font-weight: 650; }
.post-compose-row { display: flex; align-items: flex-end; gap: 12px; }
.post-compose-row textarea { display: block; min-width: 0; flex: 1; height: 48px; min-height: 48px; max-height: 120px; padding: 12px 15px; resize: none; border: 1px solid #d8dbc9; border-radius: 12px; background: #f2f2e8; color: var(--post-ink); font-size: 16px; line-height: 22px; }
.post-compose-row textarea::placeholder { color: #77869a; }
.post-compose-row textarea:focus { background: #fff; border-color: #8aafe9; }
.post-button-primary { border-color: var(--post-blue); background: var(--post-blue); color: #fff; }
.post-send { height: 48px; padding: 0 18px; }
.post-send:disabled { cursor: default; opacity: 1; border-color: #edf1f7; background: #edf1f7; color: #95a3b6; }
.post-send[aria-busy="true"] { cursor: wait; }
@media (hover: hover) { .post-icon-button:hover, .post-button:not(:disabled):hover { border-color: #bed1ec; background: #eef1e3; } .post-button-primary:not(:disabled):hover { border-color: #334d37; background: #334d37; } }
@media (max-width: 599px) {
 .post-topbar { min-height: 64px; padding: 8px 16px; padding-top: max(8px,env(safe-area-inset-top)); }
 .post-author { padding: 18px 20px; }
 .post-gallery { margin: 0 12px; border-radius: 12px; }
 .post-detail .detail-hero { height: auto; max-height: none; aspect-ratio: auto; }
 .post-copy { padding: 12px 20px 0; }
 .post-detail .detail-title { font-size: 25px; line-height: 1.45; letter-spacing: -.02em; margin: 10px 0 14px; }
 .post-detail .detail-body { font-size: 15px; line-height: 1.85; }
 .post-reactions { gap: 8px; padding: 20px 0; }
 .post-reaction { min-width: 76px; padding: 0 12px; }
 .post-comments { padding: 22px 20px 28px; }
 .post-comments-heading { margin-bottom: 20px; }
 .post-composer { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
 .post-compose-row { gap: 8px; }
 .post-send { padding: 0 12px; }
 .post-send .post-icon { display: none; }
 .post-service { align-items: stretch; flex-direction: column; }
 .post-scroll > .state-banner { margin: 12px 20px 0; }
}
