.agent-public-page,.agreement-page{max-width:1120px;margin:auto;color:#284354}.agent-public-hero{display:grid;grid-template-columns:1fr 285px;gap:40px;padding:48px;border:1px solid #ded7fa;background:linear-gradient(120deg,#f1edff,#f0faf5);border-radius:28px}.agent-public-hero h1{font-size:clamp(28px,4vw,44px);line-height:1.35;margin:16px 0}.agent-public-hero p,.agent-public-grid p,.agreement-page p{line-height:1.9}.agent-public-actions,.agent-public-bottom{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:28px}.agent-public-page a,.agreement-page a{color:#147e68;text-underline-offset:4px}.agent-public-price{background:#fff;border:1px solid #e3dff5;padding:28px;border-radius:22px;display:flex;flex-direction:column;gap:14px;justify-content:center}.agent-public-price strong{font-size:48px;color:#187f68}.agent-public-price b{color:#7157c7}.agent-public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.agent-public-grid article{padding:26px;background:#fff;border:1px solid #dfe9e7;border-radius:20px}.agent-public-grid article>span{color:#927fd0;font-size:24px}.agent-profit-table{overflow-x:auto}.agent-profit-table table{border-collapse:collapse;width:100%;min-width:650px}.agent-profit-table td,.agent-profit-table th{padding:18px 14px;text-align:left;border-bottom:1px solid #e7edea}.agent-profit-table thead{background:#f0f8f5}.agent-profit-table td:nth-child(4){color:#137e66;font-weight:700}.agent-fineprint{font-size:14px;line-height:1.9;color:#637b80}.agent-public-bottom{border-radius:24px;padding:24px 32px;background:#f0f8f5;justify-content:space-between}.agreement-page>h1{font-size:32px}.agreement-page h2{margin-top:32px}.agreement-page li{line-height:1.9}.payment-notice{padding:18px 20px;margin:20px 0;border:1px solid #f0d2ad;border-radius:14px;background:#fffaef;color:#704621}.payment-notice strong{display:block;color:#9a4f18;font-size:16px}.payment-notice p{font-size:14px;line-height:1.85;margin:9px 0}.payment-notice a{color:#1c7762}.payment-agreement{display:flex;gap:9px;align-items:flex-start;flex-wrap:wrap;margin:18px 0;line-height:1.8}.payment-agreement input{width:18px!important;height:18px;margin-top:5px;flex:0 0 18px;accent-color:#168369}.payment-agreement[hidden],[hidden]{display:none!important}.checkout-panel #checkout-pay{width:100%;min-height:52px;display:block}.checkout-panel button:disabled{opacity:.55;cursor:not-allowed}#wechat-pay-status{line-height:1.8;color:#7c4b30}#wechat-qr{text-align:center;background:white;padding:20px;border-radius:16px;max-width:340px;margin:20px auto;border:1px solid #dbe9e2}#wechat-qr svg{display:block;width:100%;height:auto}.checkout-secondary{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.checkout-secondary button{min-height:44px;padding:10px 16px}#wechat-h5{display:block;text-align:center;margin:18px 0}.agent-buy-quote{padding:18px;background:#eff8f4;border-radius:14px;line-height:1.8}.payment-purchase-note{padding:12px 16px;background:#fff7e8;color:#7c552b;border-radius:10px;font-size:13px;line-height:1.8}.payment-purchase-note a{color:#167b66}.agent-order-link{display:inline-flex;padding:12px 18px;border-radius:12px;background:#eff8f4;color:#167c64}.agent-offer-agreement{display:flex;gap:8px;line-height:1.8;margin:18px 0}.agent-offer-agreement input{width:18px;height:18px;accent-color:#168369}.agent-offer-agreement a{color:#167c64}.agent-offer-agreement+button:disabled{opacity:.5}.agent-buy-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.agent-buy-controls label{display:flex;flex-direction:column;gap:8px}.agent-buy-controls input,.agent-buy-controls select{min-height:44px}.agent-public-actions .content-button,.agent-public-bottom .content-button{border:0;cursor:pointer;min-height:50px}.agent-public-page .guide-card{margin:24px 0;padding:28px;background:#fff;border:1px solid #dfe9e7;border-radius:20px}.agent-public-actions a{text-decoration:none;font-weight:600}
@media(max-width:700px){.agent-public-hero{grid-template-columns:1fr;padding:26px;gap:24px}.agent-public-grid{grid-template-columns:1fr}.agent-public-price strong{font-size:38px}.agreement-page>h1{font-size:26px}.agent-public-bottom{padding:24px}.payment-agreement{font-size:14px}.agent-public-grid article{padding:22px}.agent-public-page .guide-card{padding:22px}.agent-public-bottom .content-button{width:100%}}

/* Keep agreement footers aligned with their reading area instead of inheriting
   the old 860px article footer inside the wider 1180px tools layout. */
body:has(.agreement-page)>main{margin-bottom:24px}
body:has(.agreement-page)>footer{width:calc(100% - 48px);max-width:1132px;margin:0 auto 32px;padding:24px 28px;border:1px solid #e3ebf5;border-radius:18px;background:#fff;color:#71839a;font-size:13px;line-height:1.8;text-align:left}
body:has(.agreement-page)>footer .site-company-mini{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;margin:18px 0 0;padding:22px 0 0;border-top:1px solid #e7edf5;font-size:13px;color:#71839a}
body:has(.agreement-page)>footer .site-company-mini>div:first-child>strong{display:block;font-size:16px;color:#354f66;font-weight:650}
body:has(.agreement-page)>footer .site-company-mini p{margin:10px 0;color:#71839a}
body:has(.agreement-page)>footer .site-company-mini a,body:has(.agreement-page)>footer .site-company-mini button{font-size:13px;text-decoration:none;color:#637d96}
body:has(.agreement-page)>footer .site-company-mini a:hover,body:has(.agreement-page)>footer .site-company-mini button:hover{color:#157f68}
body:has(.agreement-page)>footer .company-qr{display:flex;gap:18px;margin:0;justify-content:flex-end;flex-wrap:nowrap}
body:has(.agreement-page)>footer .company-qr figure{margin:0;flex:0 0 102px;padding:10px;border:1px solid #e6edf5;border-radius:12px;background:#fafcfe;text-align:center}
body:has(.agreement-page)>footer .company-qr img{display:block;width:80px;height:80px;padding:0;border-radius:4px;object-fit:contain;background:#fff}
body:has(.agreement-page)>footer .company-qr figcaption{margin-top:8px;font-size:12px;line-height:1.5;color:#637d96;white-space:nowrap}
@media(max-width:600px){body:has(.agreement-page)>footer{width:calc(100% - 36px);margin-bottom:24px;padding:22px 20px}body:has(.agreement-page)>footer .site-company-mini{grid-template-columns:1fr;gap:22px;padding-top:20px}body:has(.agreement-page)>footer .company-qr{justify-content:flex-start;gap:14px}}

/* Keep purchase inputs aligned and card-row actions separate from primary buttons. */
.member-site .report-filter{display:flex;align-items:flex-end;gap:16px;margin:22px 0 4px}
.member-site .report-filter>label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0;flex:0 1 190px;line-height:1.5}
.member-site .report-filter input,.member-site .report-filter select{height:48px;min-height:48px;margin:0;padding:0 14px;box-sizing:border-box;font-size:14px}
.member-site .report-filter>button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;height:48px;align-self:flex-end;margin:0;padding:0 22px;white-space:nowrap;line-height:1.5;border-radius:9px}
@media(max-width:600px){.member-site .report-filter{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.member-site .report-filter>label{width:auto}.member-site .report-filter input{width:100%;font-size:16px;padding:0 9px}.member-site .report-filter>button{grid-column:1/-1;width:100%}}
.member-site .agent-buy-controls{display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,.7fr) auto;align-items:end;gap:16px;max-width:760px;margin:22px 0 16px;padding:20px;border:1px solid #e1ebe7;border-radius:14px;background:#f8fbfa;box-sizing:border-box}
.member-site .agent-buy-controls>label{display:flex;flex-direction:column;gap:9px;margin:0;min-width:0;color:#516e79;font-size:13px;line-height:1.5}
.member-site .agent-buy-controls input,.member-site .agent-buy-controls select{display:block;width:100%;height:48px;min-height:48px;margin:0;padding:0 14px;border:1px solid #d8e4e1;border-radius:10px;background:#fff;color:#355064;box-sizing:border-box;font:inherit;font-size:14px;box-shadow:0 1px 2px #254c3f04}
.member-site .agent-buy-controls input:focus,.member-site .agent-buy-controls select:focus{outline:2px solid #a1d5c5;outline-offset:2px;border-color:#4f9b84}
.member-site .agent-buy-controls>.content-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;min-height:48px;margin:0;padding:0 24px;border:1px solid #1a7c65;border-radius:10px;background:#1a7c65;color:white;font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap;cursor:pointer;box-shadow:0 3px 8px #1a7c6512}
.member-site .agent-buy-controls>.content-button:hover{background:#146c57;border-color:#146c57}
.member-site .agent-buy-controls>.content-button:disabled{opacity:.55;cursor:wait}
.member-site #agent-buy-quote{margin:0 0 20px;padding:14px 18px;border:1px solid #e1eee8;border-radius:12px;background:#f0f8f4;color:#477363;font-size:13px;line-height:1.8}
.member-site #agent-cards{border:1px solid #e5ecea;border-radius:12px}
.member-site #agent-cards table{margin:0}
.member-site #agent-cards th{position:sticky;top:0;z-index:1;background:#f5f8f7;color:#5b7470;font-size:12px;font-weight:600}
.member-site #agent-cards th,.member-site #agent-cards td{padding:16px;vertical-align:middle;border-bottom:1px solid #edf2ef}
.member-site #agent-cards tbody tr:last-child td{border-bottom:0}
.member-site #agent-cards tbody tr:hover{background:#fbfdfc}
.member-site .agent-card-cell{display:flex;align-items:center;gap:14px;min-width:240px;max-width:380px}
.member-site .agent-card-value{flex:1;min-width:0;margin:0;padding:8px 10px;border:1px solid #e8eeec;border-radius:7px;background:#f7f9f8;color:#456458;font:12px/1.6 ui-monospace,Consolas,monospace;white-space:normal;overflow-wrap:anywhere}
.member-site .agent-card-actions{display:flex;align-items:center;gap:8px;flex:none}
.member-site #agent-cards .agent-card-action{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:36px;margin:0;padding:7px 11px;border:1px solid #dce7e2;border-radius:8px;background:#fff;color:#536f65;font-size:12px;line-height:1.5;font-weight:500;white-space:nowrap;cursor:pointer;box-shadow:none}
.member-site #agent-cards .agent-card-copy{border-color:#cce5da;background:#eff8f3;color:#18775c}
.member-site #agent-cards .agent-card-disable{border-color:#ebdfdc;background:#fff;color:#a2685d}
.member-site #agent-cards .agent-card-action:hover{border-color:#8ebda9;background:#eaf5ee;color:#146b50}
.member-site #agent-cards .agent-card-disable:hover{border-color:#d8b9b0;background:#fff5f1;color:#994f40}
.member-site #agent-cards .agent-card-action:focus-visible,.member-site .agent-buy-controls>.content-button:focus-visible{outline:2px solid #79b8a1;outline-offset:3px}
@media(max-width:1000px){.member-site .agent-buy-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.member-site .agent-buy-controls>.content-button{grid-column:1/-1;width:100%}}
@media(max-width:600px){.member-site .agent-buy-controls{padding:16px;gap:16px 12px;margin-top:18px}.member-site .agent-buy-controls input,.member-site .agent-buy-controls select{font-size:16px;padding-left:10px}.member-site .agent-buy-controls>.content-button{min-height:48px}.member-site #agent-buy-quote{padding:12px 14px}.member-site #agent-cards th,.member-site #agent-cards td{padding:14px 12px}.member-site .agent-card-cell{min-width:228px;gap:10px}.member-site #agent-cards .agent-card-action{min-height:44px;min-width:48px}.member-site .agent-card-actions{gap:6px}}
