:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #29211f;
  background: #191517;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.page-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: auto;
  background: #fff8ed;
  box-shadow: 0 0 80px #0008;
}
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #fff9ef;
}
.brand { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 850; }
.brand img { width: 29px; height: 29px; object-fit: contain; }
.brand b { color: #d95c3b; }
.account-exit { border: 1px solid #e4d6ca; border-radius: 99px; background: #fff; color: #765f52; padding: 6px 11px; font-size: 11px; }

.purchase-images:empty { display: none; }
.purchase-image { margin: 0; background: #211c21; }
.purchase-image img { display: block; width: 100%; height: auto; }
.poster { position: relative; overflow: hidden; background: #211c21; color: #fff7ed; }
.poster > img { display: block; width: 100%; height: auto; }
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #11151ed9 0%, #17141da8 18%, #18151c00 45%, #17120f00 74%, #17120f82 100%);
  pointer-events: none;
}
.poster-copy { position: absolute; z-index: 1; top: 5.5%; left: 6.5%; right: 6.5%; }
.poster-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #ffc89f;
  font-size: clamp(9px, 2.5vw, 12px);
  font-weight: 800;
  letter-spacing: .13em;
}
.poster-kicker::before { content: ""; width: 13px; height: 2px; background: #ffae79; }
.poster h1, .poster h2 { margin: 18px 0 10px; letter-spacing: -.055em; line-height: 1.32; font-weight: 900; text-wrap: balance; }
.poster h1 { font-size: clamp(32px, 9.3vw, 50px); }
.poster h2 { font-size: clamp(30px, 8.5vw, 47px); }
.poster em { color: #ffb47b; font-style: normal; }
.poster-copy p { max-width: 370px; margin: 0; color: #f9e9d9; font-size: clamp(12px, 3.4vw, 17px); line-height: 1.65; text-shadow: 0 1px 6px #0007; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.hero-badges span { border: 1px solid #ffd2b085; border-radius: 100px; background: #1d171a5e; padding: 5px 8px; font-size: 10px; color: #ffe9d6; }
.poster-foot {
  position: absolute;
  z-index: 1;
  bottom: 3.5%;
  left: 5%;
  right: 5%;
  border: 1px solid #ffe6cb83;
  border-radius: 10px;
  background: #1e1719bb;
  backdrop-filter: blur(8px);
  padding: 11px 8px;
  color: #fff4e7;
  font-size: clamp(10px, 2.65vw, 13px);
  font-weight: 700;
  text-align: center;
}
.poster-foot span { color: #ffb47b; padding: 0 4px; }

.enroll { background: radial-gradient(circle at 100% 0%, #ffcf9f 0, transparent 45%), #fff1df; padding: 54px 28px 45px; text-align: center; }
.enroll-kicker { color: #b95d3c; font-size: 10px; letter-spacing: .2em; font-weight: 900; }
.enroll h2 { margin: 16px 0; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.065em; line-height: 1.3; }
.enroll > p { margin: 0 auto; max-width: 360px; color: #795f50; font-size: 13px; line-height: 1.8; }
.package-picker { display: grid; gap: 10px; max-width: 390px; margin: 24px auto 8px; text-align: left; }
.package-picker > p { margin: 0; color: #987a69; font-size: 12px; text-align: center; }
.package-option { width: 100%; border: 1px solid #e9d2c1; border-radius: 13px; background: #fffaf4; padding: 14px 15px; color: #4a342b; text-align: left; transition: .18s ease; }
.package-option.active { border-color: #df6641; background: #fff; box-shadow: 0 0 0 3px #ef795028; }
.package-option header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.package-option b { font-size: 15px; }
.package-option strong { color: #d94e2d; font-size: 18px; }
.package-option small { display: block; margin-top: 6px; color: #9a7d6c; font-size: 10px; }
.package-option span { display: block; margin-top: 7px; color: #735d50; font-size: 12px; line-height: 1.55; }
.enroll-price { display: flex; justify-content: center; align-items: baseline; gap: 16px; margin: 24px 0 18px; }
.enroll-price small { font-size: 13px; color: #99715c; }
.enroll-price strong { color: #d94e2d; font-size: 58px; letter-spacing: -.07em; line-height: 1; }
.enroll-price strong b, .bar-price strong b, .payment-price b { font: inherit; }
.enroll-price strong span { font-size: 23px; }
.enroll-button, .purchase-bar button, .submit-button { border: 0; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #ef7347, #d94e2d); font-weight: 800; }
.enroll-button { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 360px; margin: auto; padding: 17px 20px; font-size: 16px; }
.notes { padding: 30px 24px 40px; background: #fffaf4; }
.notes h2 { margin: 0 0 18px; font-size: 18px; }
.notes p { margin: 0; border-top: 1px solid #eddfd2; padding: 14px 0; color: #77685e; font-size: 12px; line-height: 1.75; }
.notes b { color: #322823; margin-right: 8px; }
.footer { padding: 0 24px 24px; color: #aa9686; background: #fffaf4; font-size: 10px; text-align: center; }

.purchase-bar { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 560px); background: #fffdf9; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px #20120f35; }
.bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bar-price { flex: 1; min-width: 0; }
.bar-price small { display: block; color: #927e70; font-size: 10px; white-space: nowrap; }
.bar-price strong { display: block; margin-top: 2px; font-size: 27px; line-height: 1; color: #da4d2c; font-weight: 900; }
.bar-price strong span { font-size: 14px; }
.purchase-bar button { width: 55%; max-width: 230px; min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-size: 15px; }
.purchase-bar button:disabled, .submit-button:disabled { opacity: .58; }

.modal { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 12px; }
.modal-backdrop { position: absolute; inset: 0; background: #1f1719b8; backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 20px; background: #fffaf5; box-shadow: 0 28px 70px #120b0c6b; padding: 27px 22px; }
.close { position: absolute; right: 17px; top: 12px; border: 0; background: none; color: #9e8c80; font-size: 29px; }
.modal-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #ffe7d7; color: #df5a34; font-size: 24px; margin-bottom: 17px; }
.modal-kicker { font-size: 10px; letter-spacing: .16em; color: #d66b43; font-weight: 800; }
.modal-card h2 { font-size: 24px; margin: 8px 0; }
.modal-subtitle { color: #8d7b70; font-size: 12px; margin: 0 0 20px; }
.modal-card label { display: block; margin: 0 0 15px; font-size: 12px; font-weight: 700; }
.modal-card input { width: 100%; height: 44px; border: 1px solid #e3d8cd; border-radius: 8px; outline: 0; background: #fff; padding: 0 12px; margin-top: 7px; font-size: 16px; }
.modal-card input:focus { border-color: #e46d46; box-shadow: 0 0 0 3px #f7d5c4; }
.field-row { display: flex; gap: 7px; align-items: end; }
.field-row input { min-width: 0; flex: 1; }
.field-row button { height: 44px; white-space: nowrap; border: 1px solid #efc6ae; border-radius: 8px; background: #fff2e8; color: #c45a34; font-size: 11px; font-weight: 700; padding: 0 11px; }
.field-row button:disabled { opacity: .6; }
.submit-button { display: flex; justify-content: space-between; width: 100%; margin-top: 17px; padding: 14px 18px; }
.modal-foot { font-size: 10px; color: #aa9a8d; text-align: center; margin: 14px 0 0; }
.agreement-consent { display: flex !important; align-items: flex-start; gap: 8px; color: #74645a; font-size: 11px !important; font-weight: 500 !important; line-height: 1.65; }
.agreement-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #df5a34; }
.agreement-consent button { border: 0; background: none; color: #cf5734; padding: 0 2px; font-size: inherit; }
.payment-card { text-align: center; padding: 30px 24px 22px; }
.payment-card h2 { margin-top: 3px; }
.payment-sheet-header { display: none; }
.payment-price { display: block; margin: 5px 0 12px; color: #ff3d33; font-size: 48px; letter-spacing: -.04em; }
.payment-price span { margin-right: 7px; font-size: 21px; font-weight: 500; }
.qr-frame { position: relative; display: grid; place-items: center; width: min(68vw, 260px); aspect-ratio: 1; margin: 0 auto 18px; border: 9px solid #fff; background: #fff; box-shadow: 0 8px 30px #4d2d1e1f; }
.payment-card #payment-qr { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-loading { color: #9d8e84; font-size: 12px; }
.payment-methods { overflow: hidden; border-top: 1px solid #eee3da; border-bottom: 1px solid #eee3da; margin: 0 -24px 13px; }
.payment-method { position: relative; display: flex; align-items: center; width: 100%; min-height: 61px; border: 0; border-bottom: 1px solid #f1e8e1; background: #fffaf5; padding: 9px 24px; color: #3b4d5d; text-align: left; }
.payment-method:last-child { border-bottom: 0; }
.payment-method-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.payment-method b { font-size: 14px; }
.payment-method small { color: #9a8d84; font-size: 10px; font-weight: 500; }
.payment-method i { width: 21px; height: 21px; margin-left: auto; border: 2px solid #dedbd7; border-radius: 50%; }
.payment-method.active i { border-color: #ff7a20; background: #ff7a20; box-shadow: inset 0 0 0 5px #fff; }
.pay-icon { display: block; width: 38px; height: 38px; margin-right: 13px; object-fit: contain; }
#pay-modal .payment-method .pay-icon[src="https://td.cdn-go.cn/enterprise_payment/v0.1.2/logo.svg"] { width: 48px; height: 40px; margin-right: 7px; object-fit: cover; object-position: left center; }
.payment-confirm { width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #ef7347, #d94e2d); color: #fff; font-size: 16px; font-weight: 800; }
.payment-confirm:disabled { opacity: .62; }
.payment-status { margin: 9px 0 0; color: #8d7b70; font-size: 11px; }
.demo-label { display: inline-block; margin-bottom: 4px; border-radius: 99px; background: #fff0d2; color: #a96514; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.simulate-button { width: min(100%, 280px); margin: 14px auto 5px; border: 0; border-radius: 10px; background: #1faa59; color: #fff; padding: 13px 18px; font-weight: 800; }
.form-error, .dev-code { border-radius: 8px; padding: 9px 11px; font-size: 11px; }
.form-error { color: #bf3f28; background: #fff0ea; }
.dev-code { color: #85573c; background: #fff1df; }
.toast { position: fixed; z-index: 40; bottom: 84px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 420px); border-radius: 10px; background: #30251f; color: #fff; box-shadow: 0 15px 40px #35201844; padding: 12px 17px; font-size: 13px; text-align: center; }

.agreement-sheet { position: fixed; z-index: 50; inset: 0; }
.agreement-backdrop { position: absolute; inset: 0; background: #191413b3; }
.agreement-panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 560px); max-height: min(76dvh, 760px); overflow: hidden; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -16px 50px #160d0d45; padding: 16px 21px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up .24s ease-out; }
.sheet-handle { width: 44px; height: 5px; margin: 0 auto 18px; border-radius: 99px; background: #d6d0cb; }
.agreement-close { position: absolute; top: 11px; right: 17px; border: 0; background: none; color: #8d7b70; font-size: 28px; }
.agreement-panel h2 { margin: 0 34px 16px; color: #211a17; font-size: 24px; text-align: center; }
.agreement-content { max-height: calc(min(76dvh, 760px) - 94px); overflow-y: auto; padding: 0 5px 10px; color: #493e38; font-size: 13px; line-height: 1.85; }
.agreement-content p { margin: 0 0 13px; }
.agreement-content p:first-child { color: #725d51; }
@keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: .5; } }

#pay-modal.mobile-picker { place-items: end center; padding: 0; }
#pay-modal.mobile-picker .modal-backdrop { background: #111820b8; backdrop-filter: none; }
#pay-modal.mobile-picker .payment-card { width: min(100%, 560px); max-height: 80dvh; overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; padding: 0 20px calc(18px + env(safe-area-inset-bottom)); text-align: left; animation: payment-sheet-up .22s ease-out; }
#pay-modal.mobile-picker .payment-sheet-header { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 62px; border-bottom: 1px solid #edf0f2; margin: 0 -20px; padding: 0 20px; }
#pay-modal.mobile-picker .payment-sheet-header button { justify-self: start; border: 0; background: none; color: #59646e; padding: 12px 0; font-size: 15px; }
#pay-modal.mobile-picker .payment-sheet-header h2 { margin: 0; color: #25313a; font-size: 18px; text-align: center; }
#pay-modal.mobile-picker .payment-card > .close,
#pay-modal.mobile-picker .payment-card > #pay-title,
#pay-modal.mobile-picker .payment-card > .modal-subtitle,
#pay-modal.mobile-picker .payment-card > .payment-price,
#pay-modal.mobile-picker .payment-card > .qr-frame,
#pay-modal.mobile-picker .payment-card > .demo-label,
#pay-modal.mobile-picker .payment-card > .simulate-button,
#pay-modal.mobile-picker .payment-card > .payment-status { display: none !important; }
#pay-modal.mobile-picker .payment-methods { margin: 0 -20px 18px; border-top: 0; border-bottom-color: #edf0f2; }
#pay-modal.mobile-picker .payment-method { min-height: 72px; background: #fff; padding: 12px 22px; color: #26323a; }
#pay-modal.mobile-picker .payment-method b { font-size: 16px; }
#pay-modal.mobile-picker .payment-method small { font-size: 11px; }
#pay-modal.mobile-picker .payment-method i { width: 23px; height: 23px; border-width: 2px; }
#pay-modal.mobile-picker .payment-method.active i { border-color: #1677ff; background: #1677ff; box-shadow: inset 0 0 0 5px #fff; }
#pay-modal.mobile-picker .pay-icon { width: 40px; height: 40px; margin-right: 15px; }
#pay-modal.mobile-picker .payment-confirm { display: block; }
@keyframes payment-sheet-up { from { transform: translateY(24px); opacity: .65; } }

@media (min-width: 700px) {
  .payment-card { width: 460px; }
  .payment-card #payment-qr { width: 100%; }
}

@media (max-width: 350px) {
  .poster h1 { font-size: 30px; }
  .poster h2 { font-size: 28px; }
  .poster-copy p { font-size: 11px; }
  .hero-badges { margin-top: 9px; }
  .hero-badges span { padding: 4px 6px; font-size: 9px; }
}
