:root {
  --ink: #1d2922;
  --muted: #647169;
  --green: #15543c;
  --green-soft: #edf4ef;
  --red: #a2332b;
  --gold: #b88b37;
  --gold-soft: #f8f1df;
  --line: #dce3de;
  --paper: #fff;
  --ivory: #fffdf7;
  --bg: #eef2ef;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; padding-bottom: calc(82px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--bg); font: 15px/1.72 "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.customer-head {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  padding: 8px max(16px,calc((100vw - 760px)/2));
  border-bottom: 1px solid rgba(184,139,55,.25);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.brand-mark { flex: 0 0 42px; width: 42px; height: 42px; }
.brand-mark img { width: 42px; height: 42px; object-fit: contain; display: block; }
.brand-copy { min-width: 0; }
.brand-copy strong,.brand-copy span { display: block; }
.brand-copy strong { color: var(--green); font: 700 15px/1.35 SimSun,"Songti SC",serif; }
.brand-copy span { overflow: hidden; color: #8b7650; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.text-action,.icon-action { min-height: 44px; border: 0; background: transparent; color: var(--green); }
.text-action { margin-left: auto; padding: 0 2px; font-size: 13px; font-weight: 700; }
.icon-action { flex: 0 0 36px; width: 36px; padding: 0; font-size: 22px; }

.tongue-app { width: 100%; max-width: 760px; width: min(760px,100%); min-height: calc(100vh - 64px); margin: auto; background: var(--paper); }
.member-bottom-nav { position: fixed; right: 10px; bottom: max(8px,env(safe-area-inset-bottom)); left: 10px; z-index: 30; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: min(calc(100% - 20px),740px); margin: auto; padding: 7px; border: 1px solid rgba(184,139,55,.2); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(20,45,31,.16),0 2px 8px rgba(20,45,31,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.member-bottom-nav button { position: relative; display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px 4px; border: 0; border-radius: 15px; background: transparent; color: #78837c; font-size: 10px; line-height: 1.2; transition: color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.member-bottom-nav button:active { transform: scale(.96); }
.member-bottom-nav button.active { background: linear-gradient(180deg,#f8f5ea,#edf4ef); color: var(--green); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(21,84,60,.11); }
.member-bottom-nav button.active::after { position: absolute; bottom: 3px; width: 12px; height: 2px; border-radius: 2px; background: var(--gold); content: ""; }
.nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.member-bottom-nav button.active .nav-icon { transform: translateY(-1px); stroke-width: 2; }
.member-preview-banner { position: fixed; top: 0; right: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 5px 12px; background: #7f241f; color: #fff; font-size: 12px; box-shadow: 0 2px 10px rgba(40,20,15,.18); }
.member-preview-banner span { color: rgba(255,255,255,.82); }
.member-preview-banner button { min-height: 26px; padding: 2px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; background: transparent; color: #fff; }
.member-preview-mode { padding-top: 34px; }
.member-preview-mode .customer-head { top: 34px; }
.member-preview-mode #refreshMemberAssets,.member-preview-mode #myHistory,.member-preview-mode .share-card { display: none; }
@media (max-width: 430px) { .member-preview-banner { justify-content: space-between; gap: 6px; font-size: 11px; }.member-preview-banner span { display: none; } }
.portal-view { min-height: calc(100vh - 126px); background: var(--ivory); }
.portal-hero { padding: 28px 20px; border-radius: 14px; background: linear-gradient(135deg,#244e36,#627943); color: #fff; }
.portal-hero small { color: #ead59b; font-weight: 700; }.portal-hero h1 { margin: 8px 0; font: 700 28px/1.4 SimSun,"Songti SC",serif; }.portal-hero p { color: #e4eee4; font-size: 13px; }.portal-hero .main-action { max-width: none; background: #b88b37; border: 0; font-size: 16px; }
.portal-card,.member-code { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.portal-card h2 { margin: 0 0 6px; color: var(--green); font-size: 17px; }.portal-card p { margin: 0; color: var(--muted); font-size: 13px; }.member-code { text-align: center; }.member-code small { color: var(--muted); }.member-code strong { display: block; margin: 4px 0; color: var(--green); font-size: 30px; letter-spacing: 4px; }.member-code p { margin: 0; color: var(--muted); font-size: 11px; }.portal-form { display: grid; gap: 10px; margin-top: 12px; }.portal-form label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }.portal-form input { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }.portal-form .main-action,.mall-link { max-width: none; font-size: 16px; text-decoration: none; }.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }.kv:first-of-type { border-top: 0; }.kv span { display: grid; }.kv small { color: var(--muted); }.link { border: 0; background: transparent; color: var(--green); font-weight: 700; }
.asset-card { position: relative; margin-top: 14px; padding: 18px; border-radius: 14px; color: #fff; box-shadow: 0 10px 24px rgba(25,60,40,.12); }.asset-card small,.asset-card time { color: rgba(255,255,255,.78); }.asset-card strong { display: block; margin: 8px 0; font-size: 30px; line-height: 1.1; }.asset-card p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }.asset-card time { display: block; margin-top: 12px; font-size: 11px; }.wallet-card { background: linear-gradient(135deg,#214c36,#5e7744); }.beer-wallet { background: linear-gradient(135deg,#8b5c20,#c3913f); }.asset-refresh { position: absolute; top: 16px; right: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; }.beer-expiry { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.2); }.beer-expiry span { font-weight: 700; }.beer-expiry time { margin: 0; }.consume-card>p { margin-bottom: 8px; }.consume-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }.consume-row>div { display: grid; gap: 3px; }.consume-row small,.consume-row>span,.asset-empty { color: var(--muted); font-size: 12px; }.consume-row>span { white-space: nowrap; }.asset-more { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--green); }.sms-code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.sms-code-row button { min-width: 108px; border: 1px solid var(--line); border-radius: 6px; background: var(--ivory); color: var(--green); }
.asset-card.referral-card { background: linear-gradient(135deg,#7c2631,#b56a32); }.asset-card.referral-card .kv { border-color: rgba(255,255,255,.2); }.asset-card.referral-card .main-action { margin-top: 14px; background: #fff; color: #7c2631; } #redemptionCode { margin-top: 14px; padding: 12px; border-radius: 12px; background: #fff; color: #183e2c; text-align: center; } #redemptionCode svg { display: block; width: min(72vw,280px); height: auto; margin: 0 auto 8px; } #redemptionCode b,#redemptionCode small { display: block; color: #183e2c; overflow-wrap: anywhere; }
.membership-199-card{position:relative;overflow:hidden;margin-top:14px;padding:20px;border:1px solid rgba(183,132,48,.3);border-radius:24px;background:linear-gradient(145deg,#fffaf0 0%,#f8ead0 58%,#ecd09b 100%);box-shadow:0 14px 34px rgba(101,68,24,.12);color:#503815}.membership-199-card:after{content:"";position:absolute;right:-35px;top:-45px;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.35)}.membership-199-title{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.membership-199-title small{display:block;color:#9c6d24;font-weight:700;letter-spacing:.06em}.membership-199-title h2{margin:4px 0 0;color:#483013;font-size:23px;line-height:1.25}.membership-199-title>b{position:relative;z-index:1;padding:7px 10px;border-radius:14px;background:#653d18;color:#f8d98f;font-size:17px;box-shadow:0 5px 14px rgba(71,40,14,.18)}.membership-199-lead{margin:13px 0 0;color:#6f5734;font-size:14px;line-height:1.65}.membership-199-perks{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.membership-199-perks span{padding:7px 10px;border:1px solid rgba(129,82,22,.18);border-radius:999px;background:rgba(255,255,255,.58);color:#684718;font-size:12px;font-weight:700}.membership-199-card h3{margin:17px 0 8px;font-size:14px;color:#684718}.membership-199-plans{display:grid;gap:8px;margin:0;padding:0;list-style:none}.membership-199-plans li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.68)}.membership-199-plans i{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#2f6846;color:#fff;font-style:normal}.membership-199-plans span{display:grid;gap:2px}.membership-199-plans b{font-size:14px}.membership-199-plans small{color:#8a7352;font-size:11px}.membership-199-action{width:100%;min-height:50px;margin-top:16px;border:0;border-radius:16px;background:linear-gradient(135deg,#8c5420,#bd7a29);box-shadow:0 9px 20px rgba(123,75,25,.22);color:#fff;font-size:16px;font-weight:800}.membership-199-action:disabled{box-shadow:none;background:#c9b897;color:#fffaf0}.membership-199-note{margin:10px 3px 0;color:#8b7350;font-size:11px;line-height:1.55}.membership-199-status{margin-top:12px;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.7);color:#684718;font-size:13px;font-weight:700}.membership-199-status[data-status="completed"]{background:#e3f4e8;color:#28633f}.membership-199-status[data-status="attention"],.membership-199-status[data-status="failed"]{background:#fff0de;color:#9a4f22}.membership-199-card.is-member{background:linear-gradient(145deg,#183f2d,#315d42 60%,#937237);color:#fff}.membership-199-card.is-member .membership-199-title small,.membership-199-card.is-member .membership-199-title h2{color:#fff}.membership-199-card.is-member .membership-199-title>b{background:rgba(255,255,255,.14);color:#f4d79b}.membership-199-highlights{display:grid;gap:7px;margin:16px 0 0;padding:0;list-style:none}.membership-199-highlights li{padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.1);font-size:13px}.membership-topup{position:relative;z-index:1;margin:18px 0 12px;padding:15px;border-radius:16px;background:rgba(255,255,255,.92)}.membership-199-card.is-member .membership-topup h3{margin:0 0 11px;color:#173f32;font-size:16px}.membership-topup-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.membership-topup-options button{min-height:40px;border:1px solid rgba(25,77,59,.18);border-radius:12px;background:#fff;color:#315448;font-weight:700}.membership-topup-options button.active{border-color:#9b7428;background:#fff5d9;color:#765411;box-shadow:0 5px 14px rgba(113,80,17,.12)}.membership-topup label{display:block;margin-top:12px;color:#617068;font-size:13px}.membership-topup label span{display:flex;align-items:center;margin-top:6px;border:1px solid rgba(25,77,59,.18);border-radius:12px;background:#fff;overflow:hidden}.membership-topup label b{padding-left:13px;color:#8d6b28;font-size:18px}.membership-topup input{width:100%;min-height:44px;border:0!important;background:transparent!important;font-size:18px;font-weight:700;color:#173f32;box-shadow:none!important}
.membership-recharge-store{margin:12px 2px 0!important;color:inherit!important;font-size:12px!important;font-weight:700}
.referral-entry-card{border-color:#d8bd9c;background:#fffaf3}.referral-entry-card>small{color:#8b541f}.referral-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.referral-mini-grid span{padding:10px;border-radius:10px;background:#f7efe5;font-size:12px;color:#765b47}.referral-mini-grid strong{display:block;margin-top:3px;color:#3c2921;font-size:16px}.referral-campaign-list{display:grid;gap:12px}.referral-campaign{padding:15px;border:1px solid #e4d5c3;border-radius:12px;background:#fffaf5}.referral-campaign h3,.referral-campaign p{margin:0 0 6px}.referral-campaign>small{color:#74665c}.referral-share-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.referral-share-actions .main-action,.referral-share-actions .link{min-height:44px;margin:0}.referral-share-result{margin-top:12px;padding:12px;border-radius:10px;background:#fff;text-align:center}.referral-share-result svg{display:block;width:min(68vw,260px);height:auto;margin:0 auto}.referral-center-back{width:100%;min-height:44px;margin-bottom:90px}
@media(max-width:430px){.referral-mini-grid{grid-template-columns:1fr 1fr}.referral-mini-grid span:last-child{grid-column:1/-1}.referral-share-actions>*{flex:1 1 100%}}
.view { padding: 24px 20px 36px; }
.hidden { display: none!important; }

.view#captureView { min-height: calc(100vh - 64px); padding-top: 26px; background: #fffdf7 url('/static/tongue-capture-bg.webp?v=20260716') center top/100% auto repeat-y; }
.intro { padding: 2px 0 14px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--red); font-size: 11px; font-weight: 700; }
.intro h1 { margin: 0; color: #29491f; font: 700 40px/1.25 SimSun,"Songti SC",serif; }
.intro p { margin: 8px 0 0; color: #766d5f; font: 15px/1.6 SimSun,"Songti SC",serif; }
.camera-panel { display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.photo-stage { position: relative; display: grid; place-items: center; width: 240px; height: 240px; max-width: 60vw; max-height: 60vw; width: min(60vw,240px); aspect-ratio: 1; overflow: hidden; border: 2px solid #c7a65f; border-radius: 50%; background: #252722; box-shadow: 0 0 0 5px rgba(255,253,247,.9),0 0 0 7px rgba(184,139,55,.55),0 18px 38px rgba(60,55,39,.13); }
.photo-guide { display: grid; place-items: center; gap: 8px; color: #f2e4c3; text-align: center; }
.photo-guide strong { color: #d8b66d; font: 700 16px/1.4 SimSun,"Songti SC",serif; }
.photo-guide small { color: #c7c5bc; font-size: 11px; }
.tongue-mark { position: relative; display: block; width: 70px; height: 90px; border: 2px dashed #d8b66d; border-radius: 45% 45% 52% 52%; }
.tongue-mark:after { content: ""; position: absolute; top: 22px; bottom: 13px; left: 50%; border-left: 1px dashed rgba(216,182,109,.65); }
.photo-stage img { display: none; width: 100%; height: 100%; object-fit: cover; background: #171915; }
.photo-stage.has-image img { display: block; }
.photo-stage.has-image .photo-guide { display: none; }
#photoInput { position: absolute; opacity: 0; pointer-events: none; }
.feature-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 520px; margin: 22px auto 16px; }
.feature-strip>div { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 0 8px; text-align: center; }
.feature-strip>div+div { border-left: 1px solid rgba(184,139,55,.3); }
.feature-strip b { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border: 1px solid #567143; border-radius: 50%; color: #405d31; font-size: 13px; }
.feature-strip strong { color: #29491f; font: 700 14px/1.45 SimSun,"Songti SC",serif; white-space: nowrap; }
.feature-strip span { color: #867d6d; font-size: 10px; white-space: nowrap; }
.has-photo .feature-strip { display: none; }
.photo-button,.main-action { display: grid; place-items: center; width: 100%; max-width: 560px; width: min(100%,560px); min-height: 54px; margin: 12px auto 0; border: 1px solid #9d7b35; border-radius: 8px; background: #294f2f; color: #fff; font: 700 19px/1 SimSun,"Songti SC",serif; box-shadow: 0 8px 18px rgba(41,79,47,.16); }
.has-photo .photo-button { min-height: 42px; border-color: #597052; background: rgba(255,255,255,.78); color: #365630; font: 700 13px/1 "Microsoft YaHei",Arial,sans-serif; box-shadow: none; }
.subtle { display: block; min-height: 38px; margin: 2px auto 0; border: 0; background: transparent; color: #53684c; font-size: 11px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 9px; width: 100%; max-width: 560px; width: min(100%,560px); margin: 15px auto; padding: 8px 10px; border-radius: 4px; background: rgba(255,255,255,.78); color: #5f5a50; font-size: 11px; align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.main-action:disabled { border-color: #aeb8b0; background: #aeb8b0; box-shadow: none; cursor: not-allowed; }
.questionnaire-entry { display: block; min-height: 40px; margin: 10px auto 0; border: 0; background: transparent; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.questionnaire-entry:disabled { color: #9a9a92; cursor: not-allowed; }
.medical-note { margin: 16px 8px 0; color: #7a827d; font-size: 11px; text-align: center; }
.compliance-notice,.report-compliance,.recommendation-compliance { margin: 16px 0 0; padding: 11px 13px; border-left: 3px solid var(--gold); background: #fffaf0; color: #5f5745; font-size: 11px; line-height: 1.75; }
.compliance-notice { max-width: 560px; margin: 18px auto 0; border: 0; border-top: 1px solid rgba(184,139,55,.28); background: transparent; text-align: center; }
.compliance-notice strong { display: inline; margin-right: 5px; color: #6e531c; font-size: 11px; }
.report-compliance { margin: 0; border-left-color: var(--green); background: var(--green-soft); color: #425248; }
.recommendation-compliance { margin: 12px 0 18px; }

.question-head > span { color: var(--green); font-size: 12px; font-weight: 700; }
.question-head > div { height: 5px; margin: 10px 0 26px; overflow: hidden; background: #e7ece9; }
.question-head i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.question-head h1 { margin: 0 0 20px; font: 700 24px/1.5 SimSun,"Songti SC",serif; }
.question-options { display: grid; gap: 9px; }
.question-option { display: block; }
.question-option input { position: absolute; opacity: 0; pointer-events: none; }
.question-option span { display: flex; align-items: center; min-height: 54px; padding: 11px 14px; border: 1px solid var(--line); background: #fff; }
.question-option input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: inset 4px 0 var(--green); font-weight: 700; }
.previous-question,.skip-all { display: block; min-height: 42px; margin: 14px auto 0; border: 0; background: transparent; color: var(--green); font-weight: 700; }
.skip-all { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }

#processingView { min-height: 760px; padding-top: 24px; text-align: center; background: #fffdf7 url('/static/tongue-capture-bg.webp?v=20260716') center top/100% auto repeat-y; }
.processing-head { display: flex; align-items: center; justify-content: space-between; color: var(--green); }
.processing-head > strong { font: 700 16px/1.3 SimSun,"Songti SC",serif; }
.processing-head > span { padding: 5px 9px; border: 1px solid #b4b89d; border-radius: 16px; font-size: 10px; }
.processing-head > span::before { content: '◇'; margin-right: 4px; }
.processing-photo { display: block; width: 180px; height: 150px; margin: 28px auto 20px; border: 6px solid #fffaf0; outline: 1px solid #d7c698; border-radius: 8px; object-fit: cover; box-shadow: 0 9px 25px rgba(41,60,44,.12); }
#processingView h1 { margin: 8px 0 2px; color: var(--green); font: 700 26px/1.4 SimSun,"Songti SC",serif; }
#processingView > p { margin: 0; color: var(--muted); }
.progress-ring { display: grid; grid-template-columns: auto auto; place-content: center; align-items: baseline; width: 144px; height: 144px; margin: 24px auto 8px; border: 7px double #7b8a60; border-radius: 50%; background: rgba(255,253,246,.82); color: var(--green); }
.progress-ring strong { font: 500 54px/1 Georgia,serif; }
.progress-ring > span { font-size: 22px; }
.progress-ring small { grid-column: 1/-1; color: var(--muted); font-size: 12px; }
.progress { max-width: 360px; height: 3px; margin: 0 auto 20px; overflow: hidden; background: #e8ece9; }
.progress i { display: block; width: 12%; height: 100%; background: var(--green); transition: width .6s; }
.processing-steps { max-width: 440px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.processing-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-height: 54px; padding: 7px 10px; border-bottom: 1px solid rgba(182,167,124,.28); color: #99a09b; }
.processing-steps li > b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c8cec9; border-radius: 50%; font-size: 11px; }
.processing-steps li span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.processing-steps li strong { font-size: 13px; }
.processing-steps li small { flex: none; font-size: 10px; }
.processing-steps li.active,.processing-steps li.done { color: var(--green); }
.processing-steps li.active { background: rgba(245,240,221,.62); }
.processing-steps li.active > b { border-color: var(--gold); background: var(--gold); color: #fff; }
.processing-steps li.done > b { border-color: var(--green); background: var(--green); color: transparent; }
.processing-steps li.done > b::after { content: '✓'; color: #fff; }
#processingView .processing-wait { margin-top: 18px; color: #756f5f; font-size: 11px; }

#resultView { --green: #3f572f; --green-soft: #edf0e3; --red: #3f572f; --gold: #b89a58; --gold-soft: #f3e8c9; --muted: #807664; --line: #d8c79f; min-height: calc(100vh - 64px); padding-top: 0; background: #f8f1df url('/static/tongue-capture-bg.webp?v=20260716') center top/100% auto repeat-y; }
.result-cover { margin: 0 -20px; padding: 28px 20px 18px; border: 0; background: rgba(248,241,223,.84); }
.result-title { margin-bottom: 26px; text-align: center; }
.result-title small { color: var(--green); font: 700 26px/1.3 SimSun,"Songti SC",serif; }
.result-title p { margin: 4px 0 0; color: var(--muted); font: 13px/1.5 SimSun,"Songti SC",serif; }
.constitution-frame { position: relative; padding: 38px 16px 14px; border: 1px solid var(--gold); border-radius: 8px; background: rgba(255,253,246,.9); box-shadow: 0 10px 24px rgba(62,74,46,.08),inset 0 0 0 4px rgba(184,154,88,.09); }
.result-ribbon { position: absolute; top: -17px; left: 50%; min-width: 156px; padding: 7px 20px; transform: translateX(-50%); border: 1px solid #a88b4f; border-radius: 20px; background: var(--green); color: #f8edcf; font: 700 14px/1.3 SimSun,"Songti SC",serif; text-align: center; box-shadow: 0 4px 9px rgba(63,87,47,.15); }
.constitution-frame > h1 { margin: 0 0 16px; color: var(--green); font: 700 39px/1.25 SimSun,"Songti SC",serif; text-align: center; }
.constitution-frame > h1 small { margin-left: 5px; color: #7e774e; font-size: 13px; }
.secondary-tendencies { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.secondary-tendencies > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-top: 1px solid #d8c79f; border-bottom: 1px solid #d8c79f; }
.secondary-tendencies small { grid-column: 1/-1; color: var(--muted); font-size: 9px; }
.secondary-tendencies strong { color: var(--green); font-size: 14px; }
.secondary-tendencies b { color: #7a6436; font: 700 16px/1.2 Georgia,serif; }
.tongue-thumb { position: relative; width: 70px; height: 82px; padding: 3px; overflow: hidden; border: 1px solid #cbb47e; border-radius: 4px; background: #fff; }
.tongue-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tongue-thumb span { position: absolute; right: 3px; bottom: 3px; left: 3px; padding: 3px; background: rgba(22,43,32,.76); color: #fff; font-size: 9px; text-align: center; }
.key-observation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(184,154,88,.3); background: rgba(243,232,201,.42); }
.key-observation { min-width: 0; padding: 9px 7px; text-align: center; }
.key-observation + .key-observation { border-left: 1px solid rgba(184,154,88,.35); }
.key-observation span { display: block; color: #806d40; font-size: 9px; font-weight: 700; }
.key-observation strong { display: block; margin-top: 2px; color: var(--green); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.result-proof { display: grid; grid-template-columns: minmax(0,1fr) 70px; gap: 12px; align-items: center; margin-top: 12px; }
.result-proof p { margin: 0; color: #4d5942; font: 13px/1.7 SimSun,"Songti SC",serif; }
.constitution-frame .report-compliance { margin: 12px 0 0; padding: 8px 0 0; border: 0; border-top: 1px solid rgba(184,154,88,.35); background: transparent; color: #777260; text-align: center; }
.result-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 12px; margin-top: 10px; color: var(--muted); font-size: 9px; }

.result-recommendations { padding: 10px 0 24px; border-bottom: 1px solid var(--line); }
.section-kicker { color: var(--red); font-size: 11px; font-weight: 700; }
.result-recommendations > h2,.result-overview h2 { margin: 2px 0 4px; color: var(--green); font: 700 23px/1.35 SimSun,"Songti SC",serif; }
.section-lead { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.recommendation-group + .recommendation-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.recommendation-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.recommendation-group-head h3 { margin: 0; color: var(--green); font: 700 20px/1.35 SimSun,"Songti SC",serif; }
.recommendation-group-head span { color: var(--muted); font-size: 11px; }
.product-pick { width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #cbb47e; border-radius: 4px; background: rgba(255,253,246,.94); color: var(--green); text-align: left; }
.product-pick[aria-expanded="true"] { outline: 2px solid rgba(63,87,47,.3); outline-offset: 2px; }
.product-media { display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; overflow: hidden; background: #f2f0e8; }
.product-image { display: block; min-width: 0; min-height: 0; overflow: hidden; }
.product-image img,.product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; object-fit: contain; color: var(--muted); font-size: 10px; font-style: normal; text-align: center; }
.product-media > small { display: block; padding: 5px 7px; background: #f7f3e8; color: #776f60; font-size: 8px; line-height: 1.45; text-align: left; }
.pick-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 13px; }
.pick-copy > small { color: #8e6e2f; font-size: 10px; font-weight: 700; }
.pick-copy > strong { margin-top: 4px; color: var(--green); font: 700 18px/1.4 SimSun,"Songti SC",serif; overflow-wrap: anywhere; }
.pick-match { margin-top: 7px; padding: 4px 7px; background: var(--gold-soft); color: #725b2f; font-size: 10px; }
.pick-points { display: grid; gap: 3px; margin-top: 10px; color: #536047; font-size: 11px; }
.pick-points i { font-style: normal; }
.pick-prices { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: end; width: 100%; margin-top: auto; padding-top: 10px; }
.pick-prices > span,.pick-prices > strong { display: grid; }
.pick-prices small { color: var(--muted); font-size: 8px; font-weight: 700; }
.pick-prices s { color: #837862; font-size: 11px; }
.pick-prices > strong { color: var(--green); font-size: 16px; }
.pick-prices > i { grid-column: 1/-1; color: #8b5f23; font-size: 9px; font-style: normal; font-weight: 700; }
.pick-copy > em { margin-top: 3px; color: var(--muted); font-size: 9px; font-style: normal; }
.product-slot { min-width: 0; }
.noodle-lead { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); min-height: 250px; }
.noodle-lead .product-media { min-height: 250px; }
.noodle-lead .pick-copy { justify-content: center; }
.noodle-secondary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 9px; }
.product-small,.tea-small { display: grid; grid-template-rows: 130px 1fr; }
.product-small .pick-copy,.tea-small .pick-copy { padding: 9px; }
.product-small .pick-copy > strong,.tea-small .pick-copy > strong { display: -webkit-box; min-height: 38px; margin-top: 2px; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-small .pick-match,.tea-small .pick-match { display: -webkit-box; width: 100%; margin-top: 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-small .pick-prices,.tea-small .pick-prices { grid-template-columns: 1fr; gap: 2px; }
.product-small .pick-prices > span,.product-small .pick-prices > strong,.tea-small .pick-prices > span,.tea-small .pick-prices > strong { display: flex; justify-content: space-between; gap: 4px; align-items: baseline; }
.product-small .pick-prices > strong,.tea-small .pick-prices > strong { font-size: 12px; }
.product-small .pick-prices > i,.tea-small .pick-prices > i { grid-column: auto; }
.tea-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.tea-small { grid-template-rows: 104px 1fr; }
.tea-small .pick-copy { padding: 7px; }
.tea-small .pick-copy > strong { min-height: 50px; font-size: 11px; -webkit-line-clamp: 3; }
.tea-small .pick-match { font-size: 9px; }
.noodle-secondary .product-slot.expanded .product-detail-panel { width: calc(200% + 9px); }
.noodle-secondary .slot-index-2.expanded .product-detail-panel { margin-left: calc(-100% - 9px); }
.tea-row .product-slot.expanded .product-detail-panel { width: calc(300% + 14px); }
.tea-row .slot-index-1.expanded .product-detail-panel { margin-left: calc(-100% - 7px); }
.tea-row .slot-index-2.expanded .product-detail-panel { margin-left: calc(-200% - 14px); }
.product-detail-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #bda66f; }
.product-detail-panel[hidden] { display: none; }
.product-detail-panel .product-card { display: grid; grid-template-columns: 180px minmax(0,1fr); }
.product-detail-panel .product-card > .product-media { width: 180px; }
.product-detail-panel .product-media .product-image { width: 180px; height: 180px; }
.result-recommendations > .recommendation-compliance { margin: 18px 0 0; padding: 9px 0 0; border: 0; border-top: 1px solid rgba(184,154,88,.35); background: transparent; text-align: center; }
.product-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product-card:first-child { border-color: #c6a75e; box-shadow: 0 8px 20px rgba(56,67,49,.09); }
.product-card > .product-media .product-image { width: 100%; height: calc((100vw - 60px)/3); max-height: 233px; aspect-ratio: 1; background: #f5f6f5; }
.product-placeholder { padding: 10px; background: #f5f6f5; font-size: 11px; }
.product-info { min-width: 0; padding: 11px; }
.product-info > small { color: var(--red); font-size: 10px; font-weight: 700; }
.product-match { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; margin: 5px 0 7px; padding: 5px 7px; border-left: 2px solid var(--gold); background: #fffaf0; font-size: 11px; line-height: 1.45; }
.product-match span { color: var(--red); font-weight: 700; }
.product-match i { color: #a68a50; font-style: normal; }
.product-match strong { color: var(--green); font-weight: 700; }
.product-info h3 { min-height: 42px; margin: 2px 0 4px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.match-line { display: flex; flex-wrap: wrap; gap: 3px 8px; color: var(--green); font-size: 11px; }
.match-line span { color: var(--muted); }
.product-tags { display: none; }
.product-subtitle { min-height: 38px; margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.product-composition { margin-top: 8px; padding: 9px; background: var(--green-soft); }
.product-composition > span { color: var(--green); font-size: 10px; font-weight: 700; }
.product-composition p { margin: 3px 0 0; color: #35483e; font-size: 11px; line-height: 1.6; }
.product-composition small { display: block; margin-top: 4px; color: #786028; }
.prices { display: flex; align-items: baseline; gap: 5px 8px; flex-wrap: wrap; margin-top: 7px; }
.retail { display: grid; color: var(--muted); font-size: 11px; }
.retail small,.member-price small { font-size: 9px; font-weight: 700; }
.member-price { display: grid; padding-left: 8px; border-left: 2px solid var(--red); color: var(--red); font-size: 17px; font-weight: 700; }
.price-saving { color: #8a651d; font-size: 10px; font-weight: 700; }
.member-hint { margin-top: 7px; padding: 7px 8px; background: var(--gold-soft); color: #70551f; font-size: 10px; }
.otc-notice { margin: 9px 0 0; padding: 8px; border: 1px solid #d8c696; background: #fffaf0; color: #65552e; font-size: 10px; line-height: 1.6; }
.otc-notice strong { display: block; color: #7a5817; }
.buy-link { display: grid; place-items: center; min-height: 42px; margin-top: 10px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; }
.result-recommendations .member-hint { display: block; }
.allergy-note { margin: 16px 0 0; padding: 9px 11px; border-left: 3px solid var(--gold); background: #fffaf0; color: #655c49; font-size: 11px; line-height: 1.6; }

.result-overview { padding: 24px 0; border-bottom: 1px solid var(--line); }
.report-lead { margin: 10px 0 16px; padding: 13px 14px; border-left: 3px solid var(--green); background: var(--green-soft); color: #273c31; font-size: 14px; line-height: 1.75; }
.interpretation-list { display: grid; gap: 8px; }
.interpretation-item { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.interpretation-item > span { color: var(--muted); font-size: 10px; }
.interpretation-item strong { color: var(--green); }
.interpretation-item:first-child strong { color: var(--red); }
.interpretation-item p { margin: 3px 0 0; color: #46554d; font-size: 12px; }
.evidence-title { margin: 20px 0 8px; color: var(--green); font-size: 14px; }
.evidence-list { display: grid; gap: 7px; }
.evidence-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: start; color: #45534b; font-size: 12px; }
.evidence-item b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--gold-soft); color: #7e6128; font-size: 10px; }
.plain-list { margin: 8px 0 0; padding-left: 20px; }
.plain-list li { margin: 6px 0; }
.result-overview .plain-list { color: var(--muted); }
.model-analysis,.wellness-guidance { padding: 24px 0; border-bottom: 1px solid var(--line); }
.model-analysis > h2,.wellness-guidance > h2 { margin: 2px 0 8px; color: var(--green); font: 700 23px/1.35 SimSun,"Songti SC",serif; }
.analysis-overview,.guidance-focus { margin: 0 0 14px; color: #263c31; font-size: 15px; line-height: 1.85; }
.model-tendency { border-top: 1px solid var(--line); }
.model-tendency > summary { padding: 15px 0; cursor: pointer; list-style: none; }
.model-tendency > summary::-webkit-details-marker { display: none; }
.model-tendency-head { display: flex; align-items: center; gap: 9px; }
.model-tendency-head > span,.matched-list b { flex: none; padding: 3px 7px; background: var(--gold-soft); color: #7e6128; font-size: 10px; font-weight: 700; }
.model-tendency:first-of-type .model-tendency-head > span { background: #f8e5df; color: var(--red); }
.model-tendency h3 { margin: 0; color: var(--green); font-size: 17px; }
.model-tendency-head > i { margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; }
.model-tendency-head > i::after { content: '＋'; margin-left: 5px; color: var(--green); font-size: 14px; }
.model-tendency[open] .model-tendency-head > i::after { content: '－'; }
.model-tendency summary > p { display: -webkit-box; margin: 7px 28px 0 0; overflow: hidden; color: #45534b; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.model-tendency[open] summary > p { display: block; }
.model-tendency-body { padding: 0 0 18px; }
.model-tendency h4,.wellness-guidance h3 { margin: 14px 0 6px; color: var(--green); font-size: 13px; }
.matched-list { display: grid; gap: 7px; }
.matched-list > div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; color: #45534b; font-size: 12px; line-height: 1.65; }
.guidance-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.model-analysis .plain-list,.wellness-guidance .plain-list { color: #45534b; }
.report-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.analysis-details { padding: 0; }
.analysis-details > summary { min-height: 54px; padding: 16px 0; color: var(--green); font-weight: 700; cursor: pointer; list-style-position: inside; }
.analysis-details[open] > summary { border-bottom: 1px solid var(--line); }
.analysis-content { padding: 2px 0 20px; }
.analysis-content h2 { margin: 20px 0 9px; font-size: 16px; }
.analysis-content h3 { margin: 17px 0 8px; font-size: 13px; }
.boundary-note { color: var(--muted); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.feature { min-width: 0; padding: 9px; border: 1px solid var(--line); }
.feature span { display: block; color: var(--muted); font-size: 10px; }
.feature strong { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.score-row { display: grid; grid-template-columns: 62px 1fr 34px; gap: 8px; align-items: center; margin: 8px 0; }
.score-row:not(.top-score) { opacity: .72; }
.score-track { height: 7px; background: #e8ece9; }
.score-track i { display: block; height: 100%; background: var(--green); }
.score-row.primary strong { color: var(--red); }
.score-row.primary .score-track i { background: var(--red); }

.page-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; }
.page-actions button { min-height: 46px; border: 1px solid var(--green); background: #fff; color: var(--green); font-weight: 700; }
.page-actions .solid { background: var(--green); color: #fff; }

.page-heading { margin-bottom: 20px; }
.page-heading small { color: var(--red); font-weight: 700; }
.page-heading h1 { margin: 2px 0; color: var(--green); font: 700 27px/1.35 SimSun,"Songti SC",serif; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.history-list { display: grid; gap: 9px; }
.history-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 13px 14px; border: 1px solid var(--line); background: #fff; }
.history-item h3 { margin: 0; font-size: 15px; }
.history-item p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.history-item .open-report { grid-column: 1; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--green); font-weight: 700; text-align: left; }
.history-item .delete-report { grid-column: 2; grid-row: 1/3; min-width: 44px; border: 0; background: transparent; color: var(--red); }
.retake { padding: 36px 0; text-align: center; }
.retake h1 { color: var(--green); font: 700 25px/1.4 SimSun,"Songti SC",serif; }
.retake p { color: var(--muted); }
.retake ul { padding: 13px 13px 13px 34px; background: #fff4ee; color: #70463a; text-align: left; }

.recommendation-page-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.recommendation-page-head small { display: block; color: var(--red); font-weight: 700; }
.recommendation-page-head h1 { margin: 2px 0; color: var(--green); font: 700 27px/1.35 SimSun,"Songti SC",serif; }
.recommendation-page-head p { margin: 5px 0 0; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: 18px; }
.section-title span { width: 4px; height: 18px; background: var(--red); }

.image-dialog-open { overflow: hidden; }
.tongue-image-dialog { width: 92vw; max-width: 860px; width: min(92vw,860px); max-height: 92vh; padding: 38px 14px 12px; border: 0; background: #111713; color: #fff; }
.tongue-image-dialog.compat-open { position: fixed; top: 4vh; right: 4vw; bottom: 4vh; left: 4vw; inset: 4vh 4vw; z-index: 100; width: 92vw; max-height: 92vh; margin: 0; box-shadow: 0 0 0 100vmax rgba(8,15,11,.82); }
.tongue-image-dialog::backdrop { background: rgba(8,15,11,.82); }
.tongue-image-dialog > button { position: absolute; top: 4px; right: 7px; width: 38px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 27px; }
.tongue-image-dialog img { display: block; max-width: 100%; max-height: 78vh; margin: auto; object-fit: contain; cursor: zoom-out; }
.tongue-image-dialog p { margin: 8px 0 0; color: #c8d0cc; font-size: 11px; text-align: center; }

#toast { position: fixed; bottom: 22px; left: 50%; z-index: 40; max-width: 88vw; padding: 10px 15px; transform: translateX(-50%) translateY(18px); background: #1e2b24; color: #fff; opacity: 0; pointer-events: none; transition: .2s; }
.engagement-entry-list{display:grid;gap:10px}.engagement-entry-list>button,.co-creation-item,.care-message{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left}.engagement-entry-list>button span,.engagement-entry-list>button strong,.engagement-entry-list>button small,.co-creation-item span,.co-creation-item strong,.co-creation-item small{display:block}.engagement-entry-list>button small,.co-creation-item small,.care-message small{color:var(--muted)}.engagement-entry-list>button b,.co-creation-item b{color:var(--green);font-size:12px}.engagement-entry-list i{display:inline-grid;min-width:20px;height:20px;place-items:center;border-radius:50%;background:#a54131;color:#fff;font-size:11px;font-style:normal}.portal-form textarea{min-height:130px;resize:vertical}.portal-form label small{display:block;color:var(--muted)}.co-creation-list{display:grid;gap:9px}.co-creation-status{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding:12px;border-radius:10px;background:#eef5f0}.co-creation-status strong{color:var(--green)}.feedback-public-content{white-space:pre-wrap}.feedback-public-images{display:flex;gap:10px;margin-top:12px}.feedback-public-images a{color:var(--green)}.care-message{display:block;margin-bottom:10px}.care-message.unread{border-color:#c69c4b;background:#fffaf0}.care-message span{display:flex;justify-content:space-between}.care-message p{margin:7px 0}.co-creation-result{margin-top:16px;padding:14px;border-radius:10px;background:#f7f1df}.co-creation-result p{margin-bottom:0}.co-creation-results{display:grid;gap:12px}.co-creation-results article span{color:var(--green);font-size:13px}
.portal-loading{display:grid;min-height:180px;place-items:center;gap:12px;color:var(--muted)}.portal-loading i{width:24px;height:24px;border:3px solid var(--green-soft);border-top-color:var(--green);border-radius:50%;animation:portal-spin .7s linear infinite}@keyframes portal-spin{to{transform:rotate(360deg)}}
#toast.show { transform: translateX(-50%); opacity: 1; }
.benefit-choices{display:grid;gap:9px;margin-top:12px}.benefit-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px;border:1px solid var(--green);border-radius:10px;background:#fff;color:var(--green);font-weight:700;text-align:left}.benefit-choice small{font-weight:400;color:var(--muted)}.benefit-pending{display:block}.benefit-pending>time{display:block;margin-top:4px}

@media(max-width:600px) {
  .view { padding: 20px 16px 30px; }
  .intro h1 { font-size: 28px; }
  .result-cover { margin: 0 -16px; padding: 24px 16px 16px; }
  .result-title small { font-size: 24px; }
  .constitution-frame { padding: 36px 11px 12px; }
  .constitution-frame > h1 { font-size: 34px; }
  .secondary-tendencies > span { padding: 7px; }
  .key-observation { padding: 8px 4px; }
  .key-observation strong { font-size: 10px; }
  .product-list { grid-template-columns: 1fr; }
  .noodle-lead { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); min-height: 220px; }
  .noodle-lead .product-media { min-height: 220px; }
  .noodle-lead .pick-copy { padding: 10px; }
  .noodle-lead .pick-copy > strong { font-size: 16px; }
  .product-small { grid-template-rows: 112px 1fr; }
  .tea-small { grid-template-rows: 86px 1fr; }
  .tea-small .pick-copy > small,.tea-small .pick-match,.tea-small .pick-copy > em { display: none; }
  .tea-small .pick-copy > strong { min-height: 47px; font-size: 10px; }
  .tea-small .pick-prices { padding-top: 5px; }
  .tea-small .pick-prices > strong { font-size: 10px; }
  .tea-small .pick-prices s { font-size: 9px; }
  .product-detail-panel .product-card { grid-template-columns: 118px minmax(0,1fr); }
  .product-detail-panel .product-card > .product-media { width: 118px; }
  .product-detail-panel .product-media .product-image { width: 118px; height: 118px; }
  .guidance-columns { grid-template-columns: 1fr; gap: 0; }
  .product-card { display: grid; grid-template-columns: 118px minmax(0,1fr); align-items: start; }
  .product-card > .product-media { width: 118px; }
  .product-card > .product-media .product-image { width: 118px; height: 118px; aspect-ratio: auto; }
  .product-info { padding: 10px; }
  .product-card:first-child { grid-template-columns: 142px minmax(0,1fr); }
  .product-card:first-child > .product-media { width: 142px; }
  .product-card:first-child > .product-media .product-image { width: 142px; height: 142px; }
  .product-info h3 { min-height: 0; font-size: 14px; }
  .product-subtitle { min-height: 0; }
  .product-composition { grid-column: 1/-1; }
  .member-hint { display: none; }
  .page-actions { grid-template-columns: 1fr; }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }
}

.member-benefit-item{padding:12px 0;border-top:1px solid rgba(32,72,57,.12)}
.member-benefit-item p{margin:6px 0;color:#40554c}
.member-benefit-item>small{display:block;line-height:1.7;color:#66776f}

/* DEV-156: 对外会员“我的”与资料填写体验。 */
#meView{background:linear-gradient(180deg,#f5f0e4 0,#fffdf8 360px)}
.portal-view .portal-card{border-radius:20px}
.me-dashboard{max-width:680px;margin:0 auto}
.me-profile-hero{position:relative;overflow:hidden;margin:-24px -20px 0;padding:30px 22px 20px;border-radius:0 0 30px 30px;background:linear-gradient(145deg,#123f2e 0%,#285b3d 58%,#8b743c 130%);color:#fff;box-shadow:0 18px 40px rgba(24,65,43,.18)}
.me-profile-hero::before{position:absolute;top:-110px;right:-90px;width:240px;height:240px;border:1px solid rgba(232,211,151,.24);border-radius:50%;box-shadow:0 0 0 32px rgba(255,255,255,.025),0 0 0 64px rgba(255,255,255,.018);content:""}
.me-profile-top{position:relative;display:flex;align-items:center;gap:14px}
.me-avatar{display:grid;flex:0 0 58px;width:58px;height:58px;place-items:center;border:1px solid rgba(255,235,176,.62);border-radius:21px;background:linear-gradient(145deg,#c9a853,#f0d995);color:#244b35;font:700 25px/1 SimSun,"Songti SC",serif;box-shadow:0 8px 20px rgba(3,30,18,.2)}
.me-profile-top>div{min-width:0}.me-profile-top small{color:#ead8a4;font-size:11px;letter-spacing:.12em}.me-profile-top h1{overflow:hidden;margin:2px 0;color:#fff;font:700 23px/1.4 SimSun,"Songti SC",serif;text-overflow:ellipsis;white-space:nowrap}.me-profile-top p{margin:0;color:rgba(255,255,255,.72);font-size:12px}
.me-profile-stats{position:relative;display:grid;grid-template-columns:repeat(3,1fr);margin-top:23px;padding:13px 0;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.075);backdrop-filter:blur(8px)}
.me-profile-stats span{display:grid;gap:2px;text-align:center}.me-profile-stats span+span{border-left:1px solid rgba(255,255,255,.14)}.me-profile-stats b{color:#fff;font-size:15px}.me-profile-stats small{color:rgba(255,255,255,.65);font-size:10px}
.me-verify-button{position:relative;display:flex;width:100%;min-height:48px;align-items:center;justify-content:space-between;margin-top:14px;padding:0 17px;border:1px solid rgba(255,232,166,.45);border-radius:15px;background:#f1d996;color:#234a34;font-weight:700;box-shadow:0 8px 18px rgba(3,30,18,.16)}
.me-section-heading{margin:27px 2px 10px}.me-section-heading small{color:#98732d;font-size:10px;letter-spacing:.13em}.me-section-heading h1{font-size:22px}.me-section-heading p{font-size:12px}
.me-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.me-service-grid>button{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;gap:0 11px;min-width:0;min-height:82px;align-items:center;padding:15px;border:1px solid rgba(33,80,54,.12);border-radius:19px;background:rgba(255,255,255,.94);color:var(--ink);text-align:left;box-shadow:0 8px 25px rgba(31,71,48,.07)}
.me-service-grid>button:active,.engagement-entry-list>button:active{transform:scale(.98)}
.me-service-grid strong{align-self:end;font-size:15px}.me-service-grid small{align-self:start;color:var(--muted);font-size:10px}.me-service-icon{display:grid;grid-row:1/3;width:42px;height:42px;place-items:center;border-radius:14px;background:#eef4ee;color:#22513a;font:700 22px/1 SimSun,"Songti SC",serif}.me-icon-report::before{content:"◇"}.me-icon-gift::before{content:"礼"}
.me-dashboard .engagement-entry-list{gap:9px;margin-top:0;padding:10px;border-color:rgba(33,80,54,.1);border-radius:22px;background:rgba(255,255,255,.7);box-shadow:0 8px 25px rgba(31,71,48,.06)}
.me-dashboard .engagement-entry-list>button{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;min-height:72px;padding:10px 12px;border:0;border-radius:16px;background:#fff;box-shadow:0 2px 9px rgba(30,70,47,.055);transition:transform .16s ease,box-shadow .16s ease}
.me-dashboard .engagement-entry-list>button::before{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:#f4eee0;color:#8b6d2d;font:700 18px/1 SimSun,"Songti SC",serif;content:"意"}
.me-dashboard .engagement-entry-list>button[data-entry="results"]::before{background:#eef4ee;color:#22513a;content:"果"}.me-dashboard .engagement-entry-list>button[data-entry="messages"]::before{background:#f7ece8;color:#963f32;content:"信"}
.me-dashboard .engagement-entry-list>button span{min-width:0}.me-dashboard .engagement-entry-list>button span small{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.me-dashboard .engagement-entry-list>button strong{font-size:15px}.me-dashboard .engagement-entry-list>button>b{max-width:106px;color:#7b817d;font-size:10px;font-weight:400;text-align:right}.me-dashboard .engagement-entry-list>button>b::after{margin-left:5px;color:#9b7d3c;content:"›"}
.me-partner-card{margin-top:14px;border:0;border-radius:22px;background:linear-gradient(145deg,#fff9eb,#fff);box-shadow:0 8px 25px rgba(72,54,24,.08)}.me-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.me-card-title small{color:#9a7835;font-size:10px}.me-card-title h2{margin:0}.me-card-title>b{padding:5px 10px;border-radius:20px;background:#efe2bd;color:#745820;font-size:11px}.me-share-list{margin-top:12px}.me-share-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #eee3ca}.me-share-row span{display:grid}.me-share-row small{color:var(--muted)}.me-share-row button{min-height:40px;padding:0 13px;border:1px solid #b7974d;border-radius:13px;background:#fff;color:#765b26;font-weight:700}
.me-safe-note{margin:22px 0 82px;color:#8a918d;font-size:10px;text-align:center}.me-safe-note::before{margin-right:5px;content:"✓"}

.portal-form{gap:16px;margin-top:18px}.portal-form label:not(.consent){gap:7px;color:#273b31;font-size:13px;font-weight:700}.portal-form :is(input:not([type="checkbox"]),select,textarea){width:100%;min-height:50px;padding:12px 14px;border:1px solid #d7dfd9;border-radius:14px;outline:0;background:#fbfcfa;color:var(--ink);font-size:16px;font-weight:400;box-shadow:inset 0 1px 2px rgba(21,55,37,.025);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}.portal-form textarea{min-height:142px;line-height:1.65}.portal-form :is(input,select,textarea):focus{border-color:#4e8065;background:#fff;box-shadow:0 0 0 4px rgba(36,95,63,.1)}.portal-form input::placeholder,.portal-form textarea::placeholder{color:#9ca7a1}.portal-form input[type="file"]{padding:9px;background:#f6f8f5;font-size:12px}.portal-form input[type="file"]::file-selector-button{min-height:34px;margin-right:9px;padding:0 12px;border:0;border-radius:10px;background:#e6eee8;color:#27543c;font-weight:700}.portal-form label>small{padding-left:2px;color:#7d8982;font-size:10px;font-weight:400}.portal-form .consent{margin:0;padding:13px;border:1px solid #e0e5e1;border-radius:14px;background:#fafbf9;font-size:11px}.portal-form .main-action{min-height:52px;margin-top:1px;border:0;border-radius:15px;background:linear-gradient(135deg,#174934,#2d6847);font:700 16px/1.2 "Microsoft YaHei",Arial,sans-serif;box-shadow:0 9px 20px rgba(24,78,51,.18)}.portal-form .main-action:disabled{background:#b7c0ba;box-shadow:none}.identity-card,.co-create-guide{border:0;border-radius:22px;box-shadow:0 10px 30px rgba(30,70,47,.08)}
.sms-code-row{grid-template-columns:minmax(0,1fr) auto}.sms-code-row button{min-width:104px;border:0;border-radius:14px;background:#e8f0ea;font-size:12px}
.engagement-back{width:100%;min-height:46px;margin:18px 0 80px;border-radius:14px;background:#f0f4f1}

@media(max-width:600px){.me-profile-hero{margin:-20px -16px 0;padding:25px 17px 18px}.me-dashboard .engagement-entry-list>button>b{max-width:88px}.portal-card.identity-card,.portal-card.co-create-guide{padding:17px}}
@media(max-width:360px){.me-service-grid{grid-template-columns:1fr}.me-dashboard .engagement-entry-list>button{grid-template-columns:42px minmax(0,1fr)}.me-dashboard .engagement-entry-list>button>b{grid-column:2;max-width:none;text-align:left}.me-profile-stats b{font-size:13px}}

/* DEV-157: 内容社区式“我的”，先讲用户能得到什么。 */
#meView{background:#f7f7f5}
.me-profile-hero{border:1px solid #eee7dd;background:linear-gradient(145deg,#fffaf6,#fff 66%);color:var(--ink);box-shadow:0 10px 28px rgba(77,57,38,.08)}
.me-profile-hero::before{top:-130px;right:-80px;border-color:rgba(225,91,74,.16);background:rgba(242,190,151,.08);box-shadow:0 0 0 32px rgba(225,91,74,.025),0 0 0 64px rgba(225,91,74,.018)}
.me-avatar{border:0;background:linear-gradient(145deg,#f7d7ba,#ed8d72);color:#fff;box-shadow:0 8px 20px rgba(192,89,62,.2)}
.me-profile-top small{color:#b05c4d}.me-profile-top h1{color:#2e312f}.me-profile-top p{color:#7b817d}
.me-profile-link{position:relative;display:flex;width:100%;min-height:56px;align-items:center;justify-content:space-between;margin-top:19px;padding:0 15px;border:0;border-radius:17px;background:#f6f1eb;color:#343936;text-align:left}.me-profile-link span{display:grid}.me-profile-link b{font-size:14px}.me-profile-link small{color:#8a8e8b;font-size:10px}.me-profile-link i{color:#de5b4d;font-size:20px;font-style:normal}
.me-verify-button{border:0;background:linear-gradient(135deg,#f06b5d,#df4f48);color:#fff;box-shadow:0 9px 20px rgba(199,66,58,.2)}
.me-section-heading small{color:#dc5b4e}.me-service-grid>button{border:0}.me-service-grid>button:first-child{background:#fff1ed}.me-service-grid>button:last-child{background:#eef5ec}.me-service-grid>button:first-child .me-service-icon{background:#ffdcd3;color:#cf5145}.me-service-grid>button:last-child .me-service-icon{background:#dbead7;color:#35633e}
.co-create-home{display:grid;gap:10px;margin:13px 0}
.co-create-feature{position:relative;overflow:hidden;padding:21px;border-radius:25px;background:linear-gradient(145deg,#ffede5 0%,#fff7e8 100%);box-shadow:0 9px 24px rgba(139,78,51,.09)}
.co-create-feature::after{position:absolute;top:-34px;right:-28px;width:112px;height:112px;border:18px solid rgba(226,96,77,.09);border-radius:50%;content:""}.co-create-feature>small{position:relative;color:#df594c;font-size:10px;font-weight:700;letter-spacing:.13em}.co-create-feature h2{position:relative;margin:5px 0 7px;color:#332d2a;font:700 22px/1.4 SimSun,"Songti SC",serif}.co-create-feature p{position:relative;max-width:540px;margin:0;color:#766963;font-size:12px;line-height:1.75}
.co-create-reward-tags{position:relative;display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.co-create-reward-tags span{padding:5px 9px;border-radius:20px;background:rgba(255,255,255,.72);color:#b85748;font-size:10px;font-weight:700}
.co-create-feature>button{position:relative;display:flex;width:100%;min-height:48px;align-items:center;justify-content:space-between;padding:0 16px;border:0;border-radius:15px;background:#e7564d;color:#fff;font-weight:700;box-shadow:0 8px 18px rgba(198,73,64,.18)}.co-create-feature>button b{font-size:18px}
.engagement-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.engagement-quick-grid button{display:grid;gap:3px;min-height:76px;padding:14px;border:0;border-radius:20px;color:#313633;text-align:left}.engagement-quick-grid button:first-child{background:#eef2fa}.engagement-quick-grid button:last-child{background:#f3edfa}.engagement-quick-grid span{font-size:14px;font-weight:700}.engagement-quick-grid small{color:#7b817d;font-size:10px}.engagement-quick-grid i{display:inline-grid;min-width:20px;height:20px;place-items:center;margin-left:3px;border-radius:50%;background:#e7564d;color:#fff;font-size:10px;font-style:normal}
.co-create-reward-banner{margin-bottom:13px;padding:19px;border-radius:23px;background:linear-gradient(145deg,#fff0e8,#fff9ea);box-shadow:0 9px 24px rgba(139,78,51,.08)}.co-create-reward-banner>small{color:#df594c;font-size:10px;font-weight:700}.co-create-reward-banner>strong{display:block;margin:4px 0 12px;color:#362f2c;font:700 18px/1.55 SimSun,"Songti SC",serif}.co-create-reward-banner>div{display:flex;flex-wrap:wrap;gap:7px}.co-create-reward-banner>div span{padding:6px 11px;border-radius:18px;background:#fff;color:#b95648;font-size:11px;font-weight:700}.co-create-reward-banner p{margin:9px 0 0;color:#8b817c;font-size:10px}
.co-create-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.co-create-current-store{margin:12px 0;padding:11px 13px;border-radius:14px;background:#f3f7f1;color:#36533f;font-size:14px;font-weight:700}
@media(max-width:600px){.co-create-form-row{grid-template-columns:1fr}.co-create-feature h2{font-size:20px}.engagement-quick-grid{grid-template-columns:1fr 1fr}}
