@charset "UTF-8";
:root{--bg:#f5f5ef;--card:#fff;--ink:#253d32;--muted:#7b8378;--line:#e5e8de;--green:#254e3c;--light:#e8eee3;--orange:#ba693d;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button{border:0;color:inherit}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-1px}h2{font-size:23px}h3{font-size:17px}p{line-height:1.7}small,.small{font-size:12px;color:var(--muted)}button:focus-visible,a:focus-visible{outline:3px solid #b98444;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #6c9268;outline-offset:1px}
.app-shell{max-width:1500px;margin:auto;display:grid;grid-template-columns:240px minmax(0,680px) 1fr;min-height:100dvh}.desktop-brand{padding:52px 26px;position:sticky;top:0;height:100dvh;border-right:1px solid var(--line)}.desktop-brand a{display:flex;align-items:center;gap:12px;font-size:22px}.brand-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:15px;background:var(--green);color:#f5f0db;font-size:26px;position:relative}.brand-icon span{position:absolute;right:3px;bottom:1px;font-size:16px;color:#e6b57d}.desktop-brand p{margin:60px 0 28px;font-family:"Songti SC",serif;font-size:27px;line-height:1.8}.desktop-brand small{font-size:9px;letter-spacing:1px}.app-main{position:relative;min-width:0;padding-bottom:110px;background:var(--bg);border-right:1px solid var(--line)}.app-header{height:112px;padding:28px 28px 18px;display:flex;align-items:center;justify-content:space-between}.eyebrow{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-bottom:8px}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);background:#ffffffb3;border-radius:50%;flex:none}.app-header .icon-btn{background:transparent}#view{padding:0 26px;outline:none}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}.section-head h2{font-size:20px}.text-btn{background:none;color:var(--green);padding:8px 0;font-size:12px}.hero{border-radius:var(--radius);overflow:hidden;position:relative;padding:30px;background:var(--green);color:#f6f4e8;min-height:236px}.hero .tag{display:inline-block;padding:6px 10px;border:1px solid #ffffff36;border-radius:20px;font-size:10px;letter-spacing:1px}.hero h2{font-family:"Songti SC","STSong",serif;font-weight:500;font-size:33px;line-height:1.45;margin:19px 0 10px}.hero p{color:#d0dbca;font-size:12px;max-width:230px}.hero .primary{margin-top:22px;background:#eceddb;color:var(--green);padding:11px 17px}.hero-art{position:absolute;right:-28px;top:35px;width:220px;height:220px;border-radius:50%;border:1px solid #ffffff20;transform:rotate(-20deg);pointer-events:none}.hero-art:before,.hero-art:after{content:"";position:absolute;inset:23px;border:1px solid #ffffff29;border-radius:50%}.hero-art:after{inset:52px;background:#ffffff07}.hero-art b{position:absolute;inset:0;display:grid;place-items:center;font-family:serif;font-size:96px;font-weight:400;color:#d9dfa9;transform:rotate(20deg)}.chat-hero h2,.chat-hero p,.chat-hero button{position:relative;z-index:1}.chat-hero{background:#284d40}.chat-hero .hero-art{right:-42px;top:65px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;background:var(--green);color:#fff;border-radius:13px;font-size:14px;font-weight:600;min-height:46px}.primary svg{width:17px;height:17px}.secondary{background:var(--light);color:var(--green);padding:12px 17px;border-radius:12px;min-height:44px}.full{width:100%}.outline{background:transparent;border:1px solid var(--line)}.notice{padding:12px 14px;background:#edeedf;border-radius:12px;font-size:12px;line-height:1.7;color:#687253;margin:14px 0}.notice.warn{background:#fff0de;color:#985c2b}.chat-row{display:flex;align-items:center;gap:14px;background:var(--card);padding:18px;border-radius:17px;width:100%;text-align:left;margin:10px 0}.chat-row:hover{background:#fafff5}.avatar{width:50px;height:50px;border-radius:17px;background:#e3eddd;color:var(--green);display:grid;place-items:center;font-family:serif;font-size:22px;flex:none}.avatar.large{width:72px;height:72px;border-radius:25px;font-size:32px}.chat-row .copy{flex:1;min-width:0}.chat-row strong{display:block;font-size:15px;margin-bottom:6px}.chat-row p{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row .arrow{font-size:20px;color:#a9b2a1}.hint-card{display:flex;align-items:center;gap:15px;padding:19px 16px;border:1px dashed #cfd8c9;border-radius:16px;margin-top:18px}.hint-card p{font-size:12px;color:var(--muted)}.hint-card h3{font-size:14px;margin-bottom:4px}.hint-card svg{width:28px;height:28px;color:#71956b}.editorial{padding:22px;background:#e9ecdf;border-radius:18px;display:flex;justify-content:space-between;gap:20px}.editorial h3{font-family:serif;font-size:23px;font-weight:400;margin:10px 0}.editorial .seal{border:1px solid #839578;color:#627459;writing-mode:vertical-rl;padding:10px 6px;font-family:serif;letter-spacing:4px;font-size:12px}.search{display:flex;align-items:center;background:#fff;border-radius:14px;padding:0 14px;gap:10px;height:48px;border:1px solid var(--line);margin-bottom:16px}.search input{background:none;border:0;outline:none;min-width:0;width:100%;font-size:13px}.search svg{width:18px;color:#8b9686}.shop-hero{min-height:240px;background:#dddcc8;color:#2d4634;padding:26px}.shop-hero .tag{border-color:#536f4630}.shop-hero h2{font-size:34px;margin-top:17px}.shop-hero p{color:#6d745e;max-width:180px}.shop-hero .hero-product{position:absolute;right:-5px;bottom:-30px;width:230px;height:230px;transform:rotate(-8deg)}.shop-hero .hero-product img{width:100%;height:100%}.hero-caption{margin-top:13px;font-size:10px;letter-spacing:2px;color:#738363}.chips{display:flex;gap:9px;overflow:auto;scrollbar-width:none;margin:22px 0 4px;padding-bottom:6px}.chip{padding:9px 18px;white-space:nowrap;border-radius:30px;background:#e9ece2;font-size:12px;min-height:38px}.chip.active{background:var(--green);color:#fff}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.product-card{min-width:0;background:white;border-radius:19px;overflow:hidden;border:1px solid #ebede6;position:relative}.product-card>a,.product-card>button.product-open{display:block;width:100%;padding:0;text-align:left;background:white}.product-image{position:relative;aspect-ratio:1.14;background:#ebe8db;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain;transition:transform .3s}.product-card:hover img{transform:scale(1.03)}.sample{position:absolute;left:11px;top:11px;padding:4px 7px;font-size:9px;color:#64715a;background:#ffffffc9;border-radius:6px}.product-info{padding:14px}.product-info small{font-size:10px;letter-spacing:.6px}.product-info h3{font-size:15px;margin:7px 0;font-weight:600}.product-info .unit{font-size:11px;color:var(--muted)}.price{font-size:21px;font-weight:650;color:var(--orange);margin-top:11px}.price small{font-size:11px;color:inherit}.add-cart{position:absolute;bottom:16px;right:13px;border-radius:50%;width:32px;height:32px;color:#fff;background:var(--green);font-size:22px;display:grid;place-items:center}.bottom-nav{position:fixed;bottom:0;width:680px;max-width:calc(100vw - 240px);z-index:20;display:grid;grid-template-columns:repeat(4,1fr);padding:13px 14px calc(12px + env(safe-area-inset-bottom));background:#fafbf5ee;backdrop-filter:blur(16px);border-top:1px solid var(--line)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:#8b9185;padding:4px 0;border-radius:14px}.bottom-nav a.active{color:var(--green);font-weight:600}.bottom-nav a.active svg{stroke-width:2.1}.desktop-note{padding:120px 32px;position:sticky;top:0;height:100dvh}.tiny-label{font-size:11px;color:#8c947d;letter-spacing:3px}.desktop-note h2{font-family:serif;font-size:27px;font-weight:400;line-height:1.8;margin:22px 0}.desktop-note p{color:var(--muted);font-size:13px;line-height:2}.note-circle{position:relative;margin:50px auto;width:160px;height:160px;border:1px solid #c4cfb8;border-radius:50%;display:grid;place-items:center;font-family:serif;color:#92a481;font-size:55px;font-weight:400}.note-circle span,.note-circle b{position:absolute;width:50px;height:50px;display:grid;place-items:center;border:1px solid #c4cfb8;border-radius:50%;background:var(--bg);font-size:25px;font-weight:400}.note-circle span{left:-14px;bottom:0}.note-circle b{right:-10px;top:0}.wisdom-hero{background:#e5dec9;color:#514c36;min-height:195px}.wisdom-hero h2{margin-top:12px;font-size:37px}.wisdom-hero p{color:#7b775f}.wisdom-hero .hero-art{width:200px;height:200px;top:6px;border-color:#a3977444}.wisdom-hero .hero-art:before,.wisdom-hero .hero-art:after{border-color:#a3977444}.wisdom-hero .hero-art b{color:#b2a477}.wisdom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.wisdom-card{background:#fff;padding:20px 8px;text-align:center;border:1px solid #ecece1;border-radius:17px;min-height:132px}.wisdom-card b{font-size:29px;font-family:serif;font-weight:500;color:#67774d;display:block;margin-bottom:14px}.wisdom-card strong{display:block;font-size:12px;font-weight:600}.wisdom-card small{display:block;margin-top:7px;font-size:9px}.user-card{display:flex;align-items:center;gap:18px;padding:25px;background:#e6eddf;border-radius:22px}.user-card h2{font-size:21px;margin-bottom:7px}.user-card p{font-size:12px;color:#77846c}.user-card .primary{margin-top:12px;padding:9px 16px;min-height:38px;font-size:12px}.asset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:20px 0}.asset{padding:22px 5px;background:#fff;text-align:center}.asset strong{display:block;font-size:25px;margin-bottom:8px}.asset small{font-size:11px}.menu{background:white;border-radius:18px;padding:4px 18px;margin-bottom:18px}.menu button{background:none;width:100%;min-height:59px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f1eb;text-align:left;font-size:14px}.menu button:last-child{border:0}.menu button span{flex:1}.menu button small{font-size:11px}.menu button>svg{width:19px;color:#6a8560}.account-foot{text-align:center;padding:24px 0;font-size:11px;color:#939b8b}.empty{padding:35px 18px;text-align:center;color:var(--muted);font-size:13px}.empty svg{width:35px;height:35px;margin-bottom:14px;color:#97a789}.empty h3{color:var(--ink);margin:6px 0 10px}.empty .primary{margin-top:18px}.loading{text-align:center;padding:90px 15px;font-size:13px;color:var(--muted)}.spinner{display:inline-block;width:25px;height:25px;border:2px solid #ddd;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
dialog{width:min(600px,calc(100% - 24px));max-height:88dvh;border:0;border-radius:25px;padding:0;background:var(--bg);color:var(--ink);box-shadow:0 25px 90px #122d2850}dialog::backdrop{background:#172a265c;backdrop-filter:blur(5px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;position:sticky;top:0;background:var(--bg);z-index:3;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:19px}.sheet-head .icon-btn{width:34px;height:34px}.sheet-head svg{width:18px}#sheetBody{padding:20px 24px 28px}form label{display:block;font-size:12px;font-weight:600;margin:17px 0 7px}form input:not([type=checkbox]),form textarea,form select{width:100%;border:1px solid #dce2d3;border-radius:12px;padding:12px 14px;background:#fff;color:var(--ink);font-size:14px;min-height:46px}form textarea{resize:vertical;min-height:85px}form .primary{margin-top:22px}form .check{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;font-weight:400}form .check input{margin-top:4px}.form-switch{display:flex;gap:6px;padding:4px;background:var(--light);border-radius:13px;margin-bottom:20px}.form-switch button{flex:1;padding:10px;border-radius:10px;background:none}.form-switch button.active{background:white;box-shadow:0 2px 6px #203d3210}.form-error{color:#a83b2b;margin-top:12px;font-size:12px;min-height:18px}.legal-copy h3{font-size:16px;margin:22px 0 8px}.legal-copy p{font-size:13px;color:#687364;white-space:pre-wrap}.detail-img{width:100%;height:220px;background:#eae6d9;border-radius:17px;object-fit:contain}.detail-copy h3{font-size:22px;margin:18px 0 8px}.detail-copy p{font-size:13px;color:var(--muted);margin-top:12px}.cart-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.cart-row img{width:66px;height:66px;object-fit:contain;border-radius:12px;background:#eae6dc}.cart-row>div{flex:1}.cart-row strong{font-size:14px}.cart-row small{display:block;margin-top:4px}.qty{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:13px}.qty button{width:28px;height:28px;border-radius:8px;background:var(--light);font-size:18px}.sum{display:flex;justify-content:space-between;align-items:center;padding:20px 0}.sum strong{font-size:22px;color:var(--orange)}.order{padding:18px;background:#fff;border:1px solid var(--line);border-radius:15px;margin:12px 0}.order-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:13px}.order p{font-size:13px;color:var(--muted)}.order .text-btn{padding-top:14px}.order strong{display:block;margin-top:12px}.badge{padding:4px 8px;background:var(--light);color:var(--green);border-radius:6px;font-size:10px}.reading .lead{font-family:serif;font-size:20px;line-height:1.7;margin:8px 0 18px}.reading p{font-size:14px;color:#586353;white-space:pre-wrap;line-height:1.9;margin:10px 0}.reading h3{margin:25px 0 8px}.reading details{border-top:1px solid #dfe2d5;padding:14px 0}.reading summary{font-size:14px;cursor:pointer;line-height:1.6;font-weight:600}.reading details>div{padding:5px 0 0 12px}.reading .label{color:#90967f;font-size:11px;margin-bottom:0}.reading .secondary{margin-bottom:12px}.chat-window{height:min(560px,63dvh);display:flex;flex-direction:column}.messages{flex:1;overflow-y:auto;padding:10px 0 20px;scroll-behavior:smooth}.message{display:flex;gap:8px;margin:15px 0;align-items:flex-start}.message .avatar{width:31px;height:31px;border-radius:10px;font-size:14px}.message .msg-body{max-width:80%;min-width:70px}.message small{display:block;margin-bottom:5px;font-size:10px}.message p{background:#fff;padding:10px 13px;border-radius:0 13px 13px 13px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.message.mine{flex-direction:row-reverse}.message.mine .msg-body{text-align:right}.message.mine p{text-align:left;background:#dce9cd;border-radius:13px 0 13px 13px}.message button{background:none;color:#9ba08f;font-size:9px;padding:4px}.composer{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:13px}.composer input{flex:1;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;font-size:13px}.composer .primary{margin:0;padding:10px 16px;min-height:44px}.row-actions{display:flex;gap:10px;flex-wrap:wrap}.admin-product{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:15px 0}.admin-product strong{font-size:14px;flex:1}.admin-product small{display:block}.admin-product button{font-size:12px}.admin-panel h3{margin:25px 0 10px}.admin-panel .order{font-size:13px}#toast{position:fixed;z-index:200;left:50%;bottom:110px;transform:translate(-50%,12px);padding:12px 20px;border-radius:13px;background:#243c32f2;color:white;font-size:13px;max-width:90vw;text-align:center;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1180px){.app-shell{grid-template-columns:240px 620px 1fr}.bottom-nav{width:620px}}
@media(max-width:1179px){.app-shell{grid-template-columns:210px minmax(0,680px);max-width:890px}.desktop-note{display:none}.desktop-brand{padding:44px 22px}.desktop-brand a{font-size:19px}.bottom-nav{width:calc(100vw - 210px);max-width:680px}.app-main{border:0}}
@media(max-width:700px){.app-shell{display:block;max-width:520px}.desktop-brand{display:none}.app-header{height:96px;padding:24px 21px 15px}h1{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1.5px}#view{padding:0 19px}.bottom-nav{width:100%;max-width:520px}.hero{padding:25px 22px}.hero h2{font-size:30px}.hero-art{width:185px;height:185px}.chat-hero .hero-art{right:-52px;top:70px}.chat-hero p{max-width:210px}.shop-hero .hero-product{width:200px;height:200px;right:-20px;bottom:-16px}.shop-hero h2{font-size:32px}.shop-hero p{max-width:155px}.product-grid{gap:12px}.product-info{padding:12px}.product-info h3{font-size:14px}.price{font-size:20px}.add-cart{right:10px;bottom:12px;width:28px;height:28px}.wisdom-grid{gap:10px}.wisdom-card{padding:17px 5px;min-height:122px}.wisdom-card strong{font-size:11px}.wisdom-hero .hero-art{right:-35px}.section-head{margin-top:24px}dialog{margin:auto auto 0;width:100%;max-width:600px;border-radius:25px 25px 0 0;max-height:92dvh}#sheetBody{padding:18px 21px calc(25px + env(safe-area-inset-bottom))}.sheet-head{padding:16px 21px}.user-card{padding:22px 18px}.app-main{padding-bottom:100px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* 博言聊天：置顶、好友、群聊统一排列 */
.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 22px}
.quick-actions .secondary{min-height:38px;padding:9px 12px;font-size:13px}
.conversation{position:relative;border-bottom:1px solid #e8ebdf;background:#fff}
.conversation .chat-row{border:0;padding-right:76px;width:100%;text-align:left}
.pin-btn{position:absolute;right:13px;top:50%;transform:translateY(-50%);border:0;background:#eef2e8;color:#345846;border-radius:18px;padding:7px 10px;font-size:12px;cursor:pointer}
.checkin-card{background:#e9f1e5;border:1px solid #d2dfca;border-radius:20px;padding:24px;margin:12px 0 26px}
.checkin-card h3{font-size:28px;margin:12px 0}
.checkin-card p{color:#5f6f5f}
/* 公共品牌栏已移除；聊天入口保持轻量。 */
#view{padding-top:24px}
.chat-toolbar{display:flex;align-items:stretch;gap:10px;position:relative;z-index:5;margin-bottom:12px}
.chat-toolbar .search{margin:0;flex:1;min-width:0}
.chat-toolbar .search input,.chat-toolbar .search input:not([type=checkbox]){flex:1 1 0;width:0;min-width:0;padding:0;border:0;outline:0;background:transparent}
.chat-toolbar .search .text-btn{white-space:nowrap}
.chat-actions{position:relative;flex:none}
.chat-actions summary{list-style:none;width:46px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:15px;background:#fff;font-size:27px;line-height:1;cursor:pointer}
.chat-actions summary::-webkit-details-marker{display:none}
.chat-action-menu{position:absolute;right:0;top:54px;width:170px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px #142d2426;display:grid;gap:3px}
.chat-action-menu .secondary{background:transparent;text-align:left;font-size:13px;min-height:42px}
.chat-action-menu .secondary:hover{background:var(--light)}
.square-person{display:flex;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line)}
.square-person .avatar{width:42px;height:42px;border-radius:14px;font-size:18px}
.square-person .copy{flex:1;min-width:0}
.square-person strong,.square-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.square-person strong{font-size:14px}.square-person small{margin-top:4px}
.square-person .secondary{padding:8px 11px;min-height:34px;font-size:12px}
.square-status{font-size:12px;color:var(--muted);white-space:nowrap}
.square-pages{display:flex;justify-content:center;gap:10px;margin:18px 0}
.chat-empty{height:max(450px,calc(100dvh - 198px - env(safe-area-inset-bottom)));overflow:hidden;background:#f5f4ec}
.chat-empty img{display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
#conversations{background:#fff}
#conversations:has(.chat-empty){background:transparent}
@media(max-width:700px){#view{padding-top:16px}.chat-empty{height:calc(100dvh - 178px - env(safe-area-inset-bottom));min-height:400px;margin:0 -19px}.chat-toolbar{margin-bottom:10px}}

/* Keep the application usable with long content, safe areas and short viewports. */
.app-main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.bottom-nav a{min-height:48px}
.chat-row .copy strong,.chat-row .copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-row>.secondary,.chat-row>svg{flex-shrink:0}
.conversation .chat-row{padding-right:100px}
.pin-btn{min-height:40px}
.user-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:7px 18px}
.user-card>.avatar{grid-row:1 / span 3}
.user-card>h2,.user-card>p,.user-card>.secondary{grid-column:2;min-width:0;overflow-wrap:anywhere}
.user-card>h2{margin:0}
.user-card>.secondary{justify-self:start;margin-top:5px}
.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.menu .chat-row{gap:12px;margin:0;padding:14px 0;border-radius:0;background:none}
.menu .chat-row>.avatar{flex:0 0 42px;width:42px;height:42px;border-radius:14px}
.menu .chat-row>.copy{flex:1;min-width:0}
.menu .chat-row strong{margin:0;white-space:normal;line-height:1.5;font-size:14px}
.cart-row>div,.admin-product strong{min-width:0;overflow-wrap:anywhere}
.qty{flex-wrap:wrap}
.qty button{min-width:36px;width:auto;min-height:36px;padding:4px 8px;white-space:nowrap}
.product-info h3,.order p,.order strong,.detail-copy p{overflow-wrap:anywhere}
.chat-actions summary:focus-visible{outline:3px solid #b98444;outline-offset:3px}
.search:focus-within{outline:2px solid #6c9268;outline-offset:1px}
.dialog-open{overflow:hidden}
dialog{overscroll-behavior:contain;scroll-padding-top:80px}
.sheet-head{gap:14px}
.sheet-head h2{min-width:0;overflow-wrap:anywhere}
.chat-window{height:clamp(150px,calc(88dvh - 290px),560px);min-height:0}
.messages{min-height:0;overscroll-behavior:contain}
.messages .empty{padding:18px 12px}
.messages .empty svg{width:25px;height:25px;margin-bottom:6px}
.composer{flex-shrink:0}
.message .msg-body{min-width:0}
.message .row-actions button{min-height:32px;padding:6px 9px}
.chat-empty{height:max(180px,calc(100dvh - 198px - env(safe-area-inset-bottom)));min-height:0}
@media(min-width:701px) and (max-width:1179px){.bottom-nav{width:calc(100% - 210px)}}
@media(max-width:700px){
 #view{padding-left:max(19px,env(safe-area-inset-left));padding-right:max(19px,env(safe-area-inset-right));padding-top:max(16px,env(safe-area-inset-top))}
 .bottom-nav{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
 .chat-empty{height:max(180px,calc(100dvh - 178px - env(safe-area-inset-bottom)));min-height:0}
 form input:not([type=checkbox]),form textarea,form select,.composer input,.search input{font-size:16px}
 dialog{max-height:calc(100dvh - max(12px,env(safe-area-inset-top)))}
}
@media(max-height:500px){
 .desktop-brand{padding-top:22px}.desktop-brand p{margin:24px 0 16px}
 .bottom-nav{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 .bottom-nav a{gap:3px}
 dialog{max-height:calc(100dvh - 12px)}
 .sheet-head{padding-top:10px;padding-bottom:10px}
 .chat-window{height:180px}
}

/* Received requests stay visible next to the conversation list. */
#friend-inbox{margin:0 0 12px;border:1px solid #dbe5d2;border-radius:16px;overflow:hidden;background:#fff}
#friend-inbox~#conversations .chat-empty{height:max(180px,calc(100dvh - 254px - env(safe-area-inset-bottom)))}
.new-friends{display:flex;align-items:center;gap:11px;width:100%;padding:12px 14px;background:#edf3e7;text-align:left;min-height:62px}
.friend-entry-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#dbe8ce;color:var(--green);flex:none}
.new-friends .copy{flex:1;min-width:0}
.new-friends strong,.new-friends small{display:block}
.new-friends strong{font-size:14px;margin-bottom:3px}
.new-friends small{font-size:11px}
.new-friends>svg{width:17px;height:17px}
.friend-count{min-width:24px;height:24px;padding:3px 7px;border-radius:20px;background:var(--orange);color:#fff;text-align:center;font-size:12px;font-weight:600;flex:none}
.friend-count[hidden]{display:none}
.friend-request-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 14px;border-top:1px solid var(--line);background:#fff}
.friend-request-row .avatar{width:36px;height:36px;border-radius:12px;font-size:18px}
.friend-request-row .copy{min-width:0}
.friend-request-row strong,.friend-request-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-request-row strong{font-size:13px}.friend-request-row small{margin-top:4px;font-size:11px}
.friend-request-actions{display:flex;gap:6px}
.friend-request-actions button{min-height:36px;padding:8px 10px;border-radius:10px;font-size:12px;white-space:nowrap}
.friend-row-error{grid-column:2 / -1;font-size:12px;color:#a83b2b;overflow-wrap:anywhere}
.friend-load-error,.friend-loading{font-size:12px;padding:8px 14px;color:var(--muted)}
.friend-load-error{color:#a83b2b;display:flex;align-items:center;justify-content:space-between;gap:8px}
.friend-load-error .secondary{padding:5px 10px;min-height:32px;font-size:12px;flex:none}
.friend-more{display:block;padding:10px 14px;margin:auto}
.friend-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;font-size:12px;border-top:1px solid var(--line)}
.friend-result>span{min-width:0;overflow-wrap:anywhere}
.friend-result .secondary{flex:none;font-size:12px;padding:8px 12px;min-height:36px}
.friend-requests-panel h3{font-size:15px;margin:18px 0 10px}
.friend-requests-panel h3:first-child{margin-top:0}
.friend-requests-panel .friend-request-row{padding-left:0;padding-right:0}
@media(max-width:360px){.friend-request-row{grid-template-columns:32px minmax(0,1fr);gap:8px}.friend-request-row .avatar{width:32px;height:32px}.friend-request-actions{grid-column:2;justify-content:flex-end}.friend-row-error{grid-column:1 / -1}}

/* 个人中心：海报式会员抬头与简洁登录。 */
#view>.user-card{position:relative;min-height:220px;padding:34px 28px;overflow:hidden;align-items:flex-end;color:#f7f2df;background:linear-gradient(135deg,#173f32 0%,#2e6953 52%,#b18a4d 135%);box-shadow:0 22px 50px rgba(23,63,50,.18)}
#view>.user-card::before{content:"";position:absolute;width:260px;height:260px;right:-86px;top:-106px;border:1px solid rgba(255,255,255,.24);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.035),0 0 0 72px rgba(255,255,255,.025)}
#view>.user-card::after{content:"博言 · 好物 · 智慧";position:absolute;right:24px;bottom:22px;color:rgba(255,255,255,.5);font:10px/1.2 Georgia,serif;letter-spacing:.18em;writing-mode:vertical-rl}
#view>.user-card .avatar.large{position:relative;z-index:1;width:86px;height:86px;border:1px solid rgba(255,255,255,.3);border-radius:50%;color:#f6e6af;background:rgba(255,255,255,.1);box-shadow:inset 0 0 26px rgba(255,255,255,.1);font-size:40px}
#view>.user-card h2,#view>.user-card p,#view>.user-card .primary{position:relative;z-index:1}
#view>.user-card h2{font-family:"Songti SC","STSong",serif;font-size:30px;color:#fff}
#view>.user-card p{max-width:250px;color:rgba(255,255,255,.72);font-size:13px}
#view>.user-card .primary{color:#1f503e;background:#f5edcf}
#mall-wallet[hidden]{display:none!important}
.simple-auth{margin-top:18px}
.simple-auth label{font-size:15px}
.simple-auth input{font-size:18px}
.simple-auth .primary{margin-top:24px;font-size:18px;min-height:58px;border-radius:16px}
.auth-secondary-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px!important}
.auth-secondary-actions .text-btn{min-height:54px;border:1px solid var(--line);border-radius:15px;background:var(--light);font-size:17px;font-weight:650}
.auth-secondary-actions .text-btn:only-child{grid-column:1/-1}
@media(max-width:700px){#view>.user-card{min-height:204px;padding:28px 22px}#view>.user-card h2{font-size:27px}#view>.user-card::after{right:17px}}
.avatar.has-photo{overflow:hidden;padding:0}.avatar.has-photo img{width:100%;height:100%;display:block;object-fit:cover}
.avatar-editor{display:grid;justify-items:center;gap:11px;margin:8px 0 24px}.avatar-editor .avatar{width:96px;height:96px}.avatar-editor label{position:relative;cursor:pointer}.avatar-editor input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.avatar-editor small{color:var(--muted);font-size:11px}
