@import url('/tokens.css');
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'PingFang TC','Noto Sans TC',sans-serif;font-size:15px;line-height:1.8}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid var(--health);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,4.6vw,58px);letter-spacing:-1.8px;line-height:1.35;font-weight:650}h2{font-size:28px;line-height:1.5;letter-spacing:-.7px}h3{font-size:18px;line-height:1.5;font-weight:650}p{color:var(--muted)}.skip{position:absolute;top:-100px}.skip:focus{top:8px;z-index:10;background:white;padding:12px}header{height:88px;max-width:1160px;margin:auto;padding:0 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{font-size:21px;line-height:1.2;letter-spacing:-.8px;font-weight:750;display:flex;align-items:center;gap:10px}.brand span{font-weight:400}.brand i{font-style:normal;width:32px;height:32px;display:grid;place-items:center;background:var(--health);color:white;border-radius:50%;font-size:18px}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:6px;color:var(--muted)}nav{display:flex;gap:26px;align-items:center;font-size:13px}nav a:hover{color:var(--brand-deep)}.nav-pill{border:1px solid var(--border);padding:8px 18px;border-radius:24px}.preview{font-size:11px;text-align:center;color:#66594c;background:#efe9df;padding:7px 14px;letter-spacing:.5px}.container{max-width:1100px;margin:auto;padding:64px 30px}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:72px;align-items:center;padding-top:72px;padding-bottom:72px}.eyebrow{display:flex;gap:10px;align-items:center;font-size:11px;font-weight:650;letter-spacing:2px;color:var(--health);margin-bottom:24px}.eyebrow:before{content:'';width:23px;height:1px;background:var(--health)}.hero h1 em{font-style:normal;color:var(--health)}.hero p{max-width:400px;font-size:16px;margin:24px 0 30px}.button{border:none;border-radius:12px;padding:14px 24px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:22px;background:var(--brand);color:white;font-weight:650;transition:background .15s,transform .15s}.button:hover{background:var(--brand-deep);transform:translateY(-1px)}.button.secondary{background:transparent;border:1px solid var(--border);color:var(--text)}.button.dark{background:var(--text);color:white}.fine{font-size:12px;color:var(--muted)}.hero .fine{margin-top:14px}.trust-row{display:flex;gap:24px;margin-top:32px;font-size:12px;color:var(--muted)}.trust-row span:before{content:'✓';color:var(--health);margin-right:6px}.visual{position:relative;padding:32px 15px}.visual:before{content:'';position:absolute;inset:0;background:#e5e8db;border-radius:48% 48% 42% 42%;transform:rotate(-8deg)}.report-preview{position:relative;background:var(--white);border:1px solid #ece7df;border-radius:20px;padding:28px;box-shadow:0 22px 60px #494c3314;transform:rotate(3deg)}.preview-label{font-size:10px;letter-spacing:2px;color:var(--muted)}.report-preview h3{font-size:25px;margin:10px 0 20px}.chart{width:130px;height:130px;margin:12px auto 20px;border:12px solid #eeeae3;border-top-color:var(--health);border-right-color:var(--health);border-bottom-color:#d4dbc8;border-radius:50%;display:grid;place-content:center;text-align:center;transform:rotate(-3deg)}.chart strong{font-size:24px;line-height:1.3}.chart span{font-size:10px;color:var(--muted)}.report-line{display:flex;justify-content:space-between;font-size:12px;padding:11px 0;border-top:1px solid var(--border)}.report-line b{font-weight:500;color:var(--health)}.float-tag{position:absolute;left:-6px;bottom:58px;background:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 8px 30px #342b2610;font-size:12px;transform:rotate(-4deg)}.intro-strip{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:28px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:32px}.step{display:flex;align-items:flex-start;gap:16px}.step-number{font-size:12px;color:var(--health);padding-top:4px}.step h3{margin-bottom:4px;font-size:16px}.step p{font-size:12px;margin:0}.section-intro{margin-top:64px;text-align:center}.section-intro h2{margin-bottom:8px}.section-intro p{font-size:14px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--border);border-radius:16px;padding:24px}.card p{font-size:13px;margin-bottom:0}.icon{font-size:20px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f0f2eb;color:var(--health);margin-bottom:16px}.card h3{margin-bottom:10px}footer{max-width:1100px;margin:32px auto 0;padding:24px 30px 32px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.quiz{max-width:590px;margin:auto;padding:48px 24px 70px}.quiz-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}progress{width:100%;height:5px;appearance:none;border:none;margin:14px 0 34px}progress::-webkit-progress-bar{background:#e7e1d8;border-radius:10px}progress::-webkit-progress-value{background:var(--health);border-radius:10px}progress::-moz-progress-bar{background:var(--health)}.quiz h1{font-size:30px;letter-spacing:-.6px;line-height:1.5}.quiz .hint{font-size:13px;margin-bottom:28px}.options{display:flex;flex-direction:column;gap:12px}.option{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:64px;padding:16px 20px;border:1px solid var(--border);background:white;border-radius:12px;color:var(--text)}.option:after{content:'';width:19px;height:19px;border:1px solid #d8d0c6;border-radius:50%;flex-shrink:0}.option.selected{border-color:var(--brand-deep);background:#f0f3eb}.option.selected:after{background:var(--brand-deep);border:5px solid #dce4d2}.quiz-controls{display:flex;justify-content:space-between;align-items:center;margin-top:28px;gap:16px}.back{background:transparent;border:0;color:var(--muted);min-height:44px}.number-input{display:flex;align-items:center;gap:20px;border:1px solid var(--border);border-radius:14px;padding:12px 22px;background:white}.number-input input{width:100%;min-width:0;border:none;background:transparent;font-size:40px;color:var(--text);padding:8px}.number-input input:focus{outline:none}.number-input:focus-within{outline:3px solid var(--health)}.consent{display:flex;gap:12px;font-size:12px;color:var(--muted);margin-top:24px}.consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--brand-deep)}.error{color:#9c304a;font-size:13px;margin-top:15px}.results{max-width:740px;margin:auto;padding:55px 24px}.results.wide{max-width:850px}.badge{display:inline-block;font-size:11px;letter-spacing:1px;color:var(--health);background:#e9ecdf;border-radius:22px;padding:6px 14px;margin-bottom:20px}.results h1{font-size:36px;letter-spacing:-.8px}.lead{font-size:16px;margin-bottom:30px}.insight{background:#efeee6;border-radius:16px;padding:28px;margin-bottom:24px}.insight h3{margin-bottom:12px}.insight p{margin:0;font-size:14px}.priority{display:flex;gap:18px;padding:22px 0;border-bottom:1px solid var(--border)}.priority span{font-size:12px;color:var(--health);margin-top:4px}.priority h3{margin-bottom:6px}.priority p{font-size:16px;line-height:1.8;margin-bottom:0}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{display:inline-block;padding:7px 12px;border-radius:8px;background:#efeee6;color:#536146;font-size:12px}.results section{margin:40px 0}.results .button.full{width:100%;margin-top:22px}.offer-header{text-align:center;margin-bottom:40px}.product-group{margin-bottom:24px}.product-group h3{font-size:13px;color:var(--muted);margin-bottom:10px}.product-row{display:flex;gap:12px;flex-wrap:wrap}.product{flex:1;min-width:160px;background:white;border:1px solid var(--border);border-radius:12px;padding:20px}.product small{display:block;color:var(--health);font-size:14px;line-height:1.6;margin-bottom:6px}.product strong{display:block;font-size:17px}.support{background:#e9eddf;padding:32px;border-radius:18px}.support h2{font-size:26px}.image-panel img{width:100%;height:auto;border-radius:14px;display:block}.image-panel p{font-size:12px;margin-top:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card.highlight{border:2px solid var(--health);background:#f8faf4}.card .badge{margin-bottom:12px}.price{font-size:29px;line-height:1.3;font-weight:650;margin:18px 0}.price small{font-size:12px;color:var(--muted);font-weight:400}.code-panel{background:var(--text);color:white;padding:32px;border-radius:18px;text-align:center}.code-panel p{color:#dbd4cb;font-size:13px}.code{font-family:ui-monospace,monospace;font-size:32px;letter-spacing:4px;margin:16px 0}.code-panel .button{width:100%}.code-panel .button.secondary{border-color:#837c72;color:white}.code-panel .fine{color:#dbd4cb;margin-top:16px}.dashboard{max-width:1160px;padding:48px 30px;margin:auto}.dashboard h1{font-size:34px}.dashboard-grid{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}.dashboard aside .card{margin-bottom:18px}.dashboard .card h2{font-size:22px}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0}.field input,.field textarea{width:100%;min-height:48px;border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:#fffcf8;color:var(--text)}.field textarea{min-height:230px;resize:vertical}.field label{font-size:13px}.empty{padding:38px 20px;text-align:center;color:var(--muted)}.empty .icon{margin:0 auto 16px}.answer-table{width:100%;border-collapse:collapse;font-size:12px}.answer-table th,.answer-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--border);vertical-align:top}.answer-table th{width:42%;color:var(--muted);font-weight:400}.status-page{max-width:590px;padding:64px 24px;margin:auto}.status-page h1{font-size:32px}.status-page .card{margin-top:24px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;background:var(--text);color:white;border-radius:10px;font-size:13px;padding:12px 24px;display:none}#toast.visible{display:block}.section-space{margin-top:28px}.text-link{color:#536146;text-decoration:underline;text-underline-offset:4px}.hidden{display:none}
@media(max-width:760px){header{height:76px;padding:0 22px}.brand{font-size:18px}.brand small{font-size:8px}nav{gap:14px}nav .optional{display:none}.nav-pill{padding:8px 12px}.container{padding:36px 24px}.hero{grid-template-columns:1fr;gap:24px;padding-top:16px;padding-bottom:36px}.hero h1{font-size:40px;letter-spacing:-1.5px}.hero p{font-size:15px}.hero .button{width:100%}.visual{max-width:350px;width:100%;margin:8px auto 24px;padding:20px}.report-preview{padding:24px}.trust-row{justify-content:center;gap:16px;margin-top:20px}.intro-strip{grid-template-columns:1fr;gap:22px;padding:28px 0}.cards{grid-template-columns:1fr}.section-intro{margin-top:40px}.card{padding:22px}.cards .card{display:grid;grid-template-columns:42px 1fr;gap:0 18px}.cards .card .icon{grid-row:span 2;margin-bottom:0}.cards .card h3{margin-bottom:4px}.two-col{grid-template-columns:1fr}.results h1{font-size:29px}.results{padding-top:36px}.results section{margin:32px 0}.support{padding:24px}.quiz{padding-top:30px}.quiz h1{font-size:27px}.dashboard{padding:32px 20px}.dashboard-grid{grid-template-columns:1fr}.dashboard aside{display:grid;grid-template-columns:1fr}.code-panel{padding:24px}.code{font-size:27px}.product{min-width:130px}.image-panel{overflow:hidden}footer{padding:22px;flex-direction:column;gap:8px;margin-top:15px}.quiz-controls .button{flex:1}.preview{font-size:10px}.answer-table th{width:40%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.home{padding-top:30px;padding-bottom:30px}.home .hero{min-height:calc(100svh - 280px);padding-top:44px;padding-bottom:44px}.home .hero p{max-width:380px}.home .report-preview .tags{justify-content:center}.analyzing{text-align:center;padding-top:95px;padding-bottom:95px}.analyzing h1{font-size:27px;margin-top:30px}.analysis-orbit{width:96px;height:96px;border:2px solid #dce3d3;border-top-color:var(--health);border-radius:50%;margin:auto;display:grid;place-items:center;animation:analysis-spin 1.5s linear infinite}.analysis-orbit span{font-size:30px;color:var(--health);animation:analysis-spin 1.5s linear infinite reverse}.analysis-track{height:4px;max-width:200px;background:#e5e9df;border-radius:8px;margin:28px auto;overflow:hidden}.analysis-track span{display:block;height:100%;background:var(--health);animation:analysis-fill 1.5s ease-out forwards}@keyframes analysis-spin{to{transform:rotate(360deg)}}@keyframes analysis-fill{from{width:0}to{width:100%}}@media(max-width:760px){.home{padding:24px}.home .hero{min-height:auto;padding-top:16px;padding-bottom:16px;gap:30px}.analyzing{padding-top:70px;padding-bottom:70px}.analyzing h1{font-size:25px}}@media(prefers-reduced-motion:reduce){.analysis-orbit,.analysis-orbit span,.analysis-track span{animation:none}.analysis-track span{width:100%}}

.product .product-note{font-size:12px;line-height:1.7;margin:10px 0 0}.code-panel .section-space .button{background:#dce5d1;color:#34412c}.code-panel .section-space .button:hover{background:#cbd8bd}

.product-image{width:100%;aspect-ratio:1/1;object-fit:contain;background:white;display:block}.product-row .product{min-width:180px}.bundle-choices{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.bundle-edit-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.bundle-edit-row label{flex:1}.bundle-edit-row small{display:block;color:var(--muted)}.bundle-edit-row input{width:75px;padding:10px}.bundle-edit-row select{max-width:120px}.bundle-card{margin-top:30px;background:white;border:1px solid var(--border);border-radius:16px;padding:24px}.bundle-product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.bundle-product-grid img{max-height:230px}.gift{padding:20px;background:#e9eddf;border-radius:12px}.gift p{margin:8px 0 0}.admin-product-image{width:150px;height:150px;object-fit:contain}.admin-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.catalog-form{margin:20px 0}select{font:inherit;padding:10px;border:1px solid var(--border);border-radius:8px;background:white}.save-status{color:var(--health);margin-left:14px}@media(max-width:760px){.admin-fields{grid-template-columns:1fr}.bundle-edit-row{flex-wrap:wrap}.bundle-edit-row label{min-width:150px}.bundle-product-grid{gap:10px}.bundle-card{padding:16px}.bundle-product-grid strong{font-size:14px}}

.generated-plan{margin-top:28px}.generated-plan img{width:100%;height:auto;margin-top:18px;border-radius:12px}

/* 顧問後台：推薦卡固定三欄，說明文字保持可閱讀大小 */
.dashboard-grid>*{min-width:0}.dashboard .product-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard .product-row .product{min-width:0;padding:16px;overflow-wrap:anywhere}.dashboard .card p,.dashboard .insight p,.dashboard .medication-note li{font-size:16px;line-height:1.8}.dashboard .fine,.dashboard .field label,.dashboard .answer-table,.dashboard .bundle-edit-row small,.dashboard .product-group h3{font-size:14px}.closing-message{margin-top:28px}.closing-message textarea,.template-form textarea{min-height:320px;font-size:16px}.dashboard .product .product-image{max-height:200px}@media(max-width:760px){.dashboard .product-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.dashboard .product-row{grid-template-columns:1fr}}

/* 消費者搭配頁：卡片固定兩欄，單張不放大 */
.offer-results .product-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.offer-results .product-row .product{min-width:0}.offer-results .offer-note{font-size:16px;line-height:1.8}@media(max-width:540px){.offer-results .product-row{grid-template-columns:1fr}}

.quiz-meta>span:first-child{font-size:16px;font-weight:650;color:var(--text);padding-right:16px}.quiz-meta>span:last-child{flex-shrink:0}.personal-results .insight h2{font-size:24px}.personal-results .insight p{font-size:16px;line-height:1.8}.personal-results .insight p+p{margin-top:16px}.personal-results .start-actions .priority{border-bottom:0;padding:16px 0}

/* Shared admin navigation and partner views */
.admin-nav{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0 32px;padding:12px;background:white;border:1px solid var(--border);border-radius:14px;font-size:14px;position:relative;z-index:2}.admin-nav>a,.admin-menu>summary{padding:10px 14px;border-radius:8px;cursor:pointer}.admin-menu{position:relative}.admin-menu>summary{list-style:none}.admin-menu>summary::-webkit-details-marker{display:none}.admin-menu>summary:after{content:'▾';margin-left:10px}.admin-menu[open]>summary:after{content:'▴'}.admin-nav [aria-current=page],.admin-menu.current-section>summary{color:var(--health);background:#edf0e6;font-weight:650}.admin-submenu{position:absolute;top:calc(100% + 8px);left:0;min-width:180px;background:white;border:1px solid var(--border);border-radius:12px;padding:8px;box-shadow:0 8px 24px #00000012}.admin-submenu a{display:block;padding:10px 12px;border-radius:8px;white-space:nowrap}.admin-nav a:hover,.admin-menu>summary:hover{background:#edf0e6}.admin-nav .admin-logout{margin-left:auto;padding:10px 16px;font-size:14px}.partner-views{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}.partner-views a{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:12px 18px;background:white}.partner-views [aria-current=page]{background:var(--health);color:white;border-color:var(--health);font-weight:650}.partner-views span{border-radius:20px;background:#0000000a;min-width:24px;padding:0 6px;text-align:center;font-size:13px}.review-form{margin-bottom:18px}.review-form p{overflow-wrap:anywhere}.partner-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.partner-card-heading h3{margin:0}.partner-status{font-size:13px;border-radius:20px;padding:3px 12px;white-space:nowrap;background:#edf0e6;color:var(--health)}.partner-status.status-pending{background:#fff2d7;color:#79612b}.partner-status.status-rejected,.partner-status.status-suspended{background:#f7e8e6;color:#934c44}@media(max-width:540px){.admin-nav{gap:4px}.admin-nav>a,.admin-menu>summary{padding:10px}.admin-menu{position:static}.admin-submenu{left:12px;right:12px;top:100%;min-width:0}.partner-views a{padding:10px 14px}}
