html:has(body.tx-page) { background:white; }
body.tx-page {
  --tx-paper:#fff; --tx-bg:#faf9f5; --tx-text:#22211c; --tx-muted:#645f52; --tx-rule:#e0dccc;
  --tx-primary:#25251f; --tx-soft:#fff3ca; --tx-accent:#eab542; --tx-radius:9px;
  --blue:var(--tx-primary); --text:var(--tx-text); --text-2:var(--tx-muted); --text-3:var(--tx-muted);
  margin:0; min-height:100vh; background:var(--tx-bg); color:var(--tx-text);
  font:16px/1.62 Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
body.tx-qingxu {
  --tx-bg:#f4f7f1; --tx-text:#163b29; --tx-muted:#53675a; --tx-rule:#d4e1d3;
  --tx-primary:#24543c; --tx-soft:#eaf3e5; --tx-accent:#87a27a; --tx-radius:17px;
}
.tx-page *,.tx-page *::before,.tx-page *::after { box-sizing:border-box; }
.tx-page [hidden] { display:none !important; }
.tx-page .tx-width { width:min(1120px,calc(100% - 64px)); margin-inline:auto; }
.tx-page a:focus-visible,.tx-page button:focus-visible { outline:3px solid var(--tx-primary); outline-offset:3px; }
.tx-page .tx-intro { padding:28px 0; border-bottom:1px solid var(--tx-rule); background:white; }
.tx-page .tx-crumb { display:flex; gap:9px; align-items:center; color:var(--tx-muted); font-size:.78rem; margin:0 0 8px; }
.tx-page .tx-crumb a { color:inherit; }
.tx-page .tx-title { margin:0; color:var(--tx-text); font-size:clamp(1.9rem,3.2vw,3.05rem); font-weight:800; line-height:1.2; letter-spacing:-.055em; }
.tx-page .tx-summary { margin:9px 0 0; color:var(--tx-muted); max-width:42em; font-size:.94rem; }
.tx-supply .tx-title::after { content:""; display:inline-block; width:.26em; height:.26em; margin-left:.14em; background:var(--tx-accent); transform:skew(-12deg); }
.tx-qingxu .tx-intro { text-align:center; background:radial-gradient(ellipse at center,#f9fcf4,#e3eee0); }
.tx-qingxu .tx-crumb { justify-content:center; }
.tx-qingxu .tx-summary { margin-inline:auto; }
.tx-page .tx-checkout-content { padding-block:24px 38px; }
.tx-page .co-grid { display:grid; align-items:start; grid-template-columns:minmax(0,1.25fr) minmax(330px,.91fr); gap:22px; }
.tx-qingxu .co-grid { grid-template-columns:minmax(0,1fr) minmax(335px,.88fr); }
.tx-page .co-left,.tx-page .co-right { min-width:0; }
.tx-page .co-product,.tx-page .co-card,.tx-page .co-notice,.tx-page #form>form,.tx-page #form>details,.tx-page #result>.group {
  padding:22px; color:var(--tx-text); background:var(--tx-paper); border:1px solid var(--tx-rule); border-radius:var(--tx-radius); box-shadow:0 4px 14px #19251a06; min-width:0;
}
.tx-page .co-card { position:static; }
.tx-page .co-product { border-top:3px solid var(--tx-accent); }
.tx-qingxu .co-product { background:linear-gradient(115deg,#fff,#f4f9ed); }
.tx-page .co-notice { margin-top:16px; }
.tx-page .co-product-top { display:flex; align-items:center; gap:14px; }
.tx-page .co-product-logo { border-radius:10px; box-shadow:none; width:54px; height:54px; object-fit:contain; }
.tx-page .co-title { color:var(--tx-text); margin:0; overflow-wrap:anywhere; font-size:clamp(1.32rem,2.15vw,1.9rem); line-height:1.3; }
.tx-page .co-price,.tx-page .co-pay-amount { color:var(--tx-text); font-weight:780; font-size:1.75rem; }
.tx-page .co-price-unit,.tx-page .co-notice-body,.tx-page .co-legal,.tx-page .co-hint,.tx-page .co-agree,.tx-page .co-summary { color:var(--tx-muted); }
.tx-page .co-card-title,.tx-page .co-notice h2 { color:var(--tx-text); font-size:1.22rem; }
.tx-page .co-inv,.tx-page .co-field-input,.tx-page .co-chan,.tx-page .step { border-radius:8px; }
.tx-page .co-inv.on,.tx-page .co-invoice-fields { border-color:var(--tx-accent); background:var(--tx-soft); box-shadow:none; }
.tx-page .co-label,.tx-page .co-field>span { color:var(--tx-text); }
.tx-page .co-chan,.tx-page .step { background:var(--tx-bg); border:1px solid var(--tx-rule); }
.tx-page .step button { color:var(--tx-primary); }
.tx-page .co-field-input:focus,.tx-page #form input:focus { outline:2px solid var(--tx-primary); outline-offset:1px; border-color:var(--tx-primary); box-shadow:none; }
.tx-page .btn.pri { border:1px solid var(--tx-primary); background:var(--tx-primary); color:white; box-shadow:none; border-radius:8px; }
.tx-page .btn.pri:disabled { border-color:var(--tx-rule); color:var(--tx-muted); background:var(--tx-bg); opacity:1; cursor:not-allowed; }
.tx-page .co-card .qrwrap,.tx-page .co-card img { max-width:100%; }
.tx-page .tx-lookup { min-height:60vh; }
.tx-page .tx-lookup-body { padding-block:26px 42px; }
.tx-page #form>form,.tx-page #form>details { margin:0 0 12px; }
.tx-page #form .group,.tx-page #form .item,.tx-page #form .field { display:block; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:none; }
.tx-page #form .ghead { margin:0 0 10px; padding:0; color:var(--tx-text); font-size:1.13rem; font-weight:720; }
.tx-page #form label { display:block; margin:10px 0 5px; color:var(--tx-muted); font-size:.85rem; }
.tx-page #form input { width:100%; height:44px; padding:9px 12px; color:var(--tx-text); background:#fff; border:1px solid var(--tx-rule); border-radius:7px; font:inherit; text-align:left; }
.tx-page #form .muted { font-size:.82rem; color:var(--tx-muted); margin:11px 0; line-height:1.65; }
.tx-page #form .btn { min-height:41px; }
.tx-page #form summary { color:var(--tx-text); font-weight:650; cursor:pointer; }
.tx-page #form details[open] summary { margin-bottom:15px; }
.tx-page #form details .btn { margin-top:12px; }
.tx-page #result:empty { display:none; }
.tx-page #result .item,.tx-page #result .group { min-width:0; }
.tx-page #result .card-secret { overflow-wrap:anywhere; }
.tx-qingxu .tx-lookup-body { width:min(660px,calc(100% - 64px)); }
.tx-supply .tx-lookup { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.1fr); gap:clamp(24px,6vw,90px); width:min(1080px,calc(100% - 64px)); margin:auto; padding:clamp(35px,5vw,70px) 0; }
.tx-supply .tx-lookup .tx-width { width:100%; }
.tx-supply .tx-lookup .tx-intro { padding:10px 0; border:0; background:transparent; }
.tx-supply .tx-lookup .tx-lookup-body { padding:0; }
@media(max-width:760px) {
  .tx-page .tx-width,.tx-qingxu .tx-lookup-body,.tx-supply .tx-lookup { width:calc(100% - 30px); }
  .tx-page .tx-intro { padding:18px 0; }
  .tx-page .tx-summary { margin-top:6px; font-size:.85rem; }
  .tx-page .tx-title { font-size:1.7rem; }
  .tx-page .tx-checkout-content,.tx-page .tx-lookup-body { padding-block:13px 25px; }
  .tx-page .co-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .tx-page .co-left { display:contents; }
  .tx-page .co-grid .co-product { order:0; }
  .tx-page .co-right,.tx-page .co-grid>.co-card { order:1; }
  .tx-page .co-grid .co-notice { order:2; margin:0; }
  .tx-page .co-product,.tx-page .co-card,.tx-page .co-notice,.tx-page #form>form,.tx-page #form>details { padding:16px; }
  .tx-supply .tx-lookup { display:block; padding:14px 0; }
  .tx-supply .tx-lookup .tx-lookup-body { margin-top:10px; }
}
