:root {
  --page: #11194f;
  --page-deep: #0c1344;
  --card: #28316b;
  --orange: #ff743d;
  --white: #fffdfb;
  --muted: #a9b0cc;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #edf1f7; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body { margin: 0; min-height: 100vh; color: var(--white); font-size:15px; line-height:1.45; }
button { font: inherit; letter-spacing:0; }
#app { min-height: 100vh; background: radial-gradient(circle at 100% 17%, rgba(111,69,175,.28), transparent 18rem), linear-gradient(180deg,#161d59 0,var(--page) 46%,var(--page-deep) 100%); }
.home-page { width: 100%; max-width: 414px; min-height: 100vh; margin: 0 auto; padding: 0 18px 42px; overflow: hidden; }
.home-header { height: 98px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: end; padding-bottom: 17px; }
.home-header h1 { margin: 0; text-align: center; font-size: 21px; line-height: 42px; font-weight: 700; letter-spacing: .01em; }
.search-button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.search-button img { width: 31px; height: 31px; filter: brightness(0) invert(1); }
.banner { border-radius: 20px; overflow: hidden; background: linear-gradient(135deg,#2b3476,#222a61); box-shadow: 0 14px 34px rgba(2,5,32,.25); }
.banner-image-wrap { position: relative; height: 190px; overflow: hidden; }
.banner-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 45%; display: block; }
.banner-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(7,8,30,.2)); }
.sale-badge { position: absolute; z-index: 2; top: 0; right: 0; height: 46px; padding: 0 18px; display: grid; place-items: center; border-radius: 0 0 0 23px; background: var(--orange); font-size: 16px; font-weight: 700; }
.banner-title { position: absolute; z-index: 2; left: 0; right: 0; top: 73px; text-align: center; font-size: 38px; line-height: 1; font-weight: 900; text-shadow: 0 3px 10px rgba(0,0,0,.3); }
.banner-detail { min-height: 110px; padding: 17px 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.banner-detail h2 { margin: 0 0 6px; font-size: 20px; font-weight:700; }
.banner-detail p { margin: 0 0 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.banner-detail small { display: block; color: #969fc3; font-size: 10px; }
.banner-detail button { flex: 0 0 140px; min-height: 47px; border: 0; border-radius: 24px; background: linear-gradient(90deg,var(--orange),#ff8a48); color: white; font-weight: 800; font-size: 17px; cursor: pointer; }
.pager { height: 48px; display: flex; justify-content: center; align-items: center; gap: 7px; }
.pager i { width: 7px; height: 7px; border-radius: 50%; background: #343d73; }
.pager i.active { background: #858cac; }
.section-block { margin-top: 14px; }
.section-title { height: 49px; display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 23px; font-weight: 700; }
.section-title button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.section-title button img { width: 24px; height: 24px; opacity: .65; filter: brightness(0) invert(1); }
.poster-scroller { display: flex; gap: 12px; overflow-x: auto; padding: 7px 0 4px; scrollbar-width: none; }
.poster-scroller::-webkit-scrollbar { display: none; }
.poster-card { flex: 0 0 120px; padding: 0; border: 0; color: white; background: transparent; text-align: left; cursor: pointer; }
.poster-image { position: relative; display: block; width: 120px; height: 156px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.poster-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-image b { position: absolute; top: 8px; right: 7px; padding: 4px 7px; border-radius: 12px; background: rgba(255,255,255,.92); color: #696275; font-size: 10px; }
.poster-card:nth-child(2) .poster-image b,.poster-card:nth-child(3) .poster-image b { background: #ffad6f; color: white; }
.poster-card strong { display: block; margin: 10px 3px 2px; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card small { margin-left: 3px; color: var(--muted); font-size: 12px; }
.all-section { margin-top: 24px; }
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.show-card { position: relative; min-width: 0; height: 126px; border: 0; border-radius: 12px; padding: 12px; overflow: hidden; display: flex; gap: 10px; background: linear-gradient(135deg,#2b3472,#283166); color: white; text-align: left; cursor: pointer; }
.show-card.wide { grid-column: 1 / -1; height: 110px; }
.show-card img { flex: 0 0 66px; width: 66px; height: 100%; border-radius: 7px; object-fit: cover; }
.show-info { min-width: 0; display: flex; flex-direction: column; }
.show-info strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-info small { color: #858db1; margin: 5px 0; font-size: 9px; }
.show-info b { margin-top: 4px; font-size: 16px; }
.show-info span { margin-top: auto; font-size: 12px; }
.show-card em { position: absolute; right: 12px; top: 59px; font-style: normal; font-size: 14px; }
.show-price { position: absolute; right: 12px; bottom: 12px; color: #ff9b58; font-size: 17px; font-weight: 900; }
.show-price small { font-size: 11px; color: #d3d7e5; margin-right: 3px; }
#toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%,18px); padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,.96); color: #151b3f; box-shadow: 0 12px 35px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: .2s ease; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 374px) { .home-page { padding-inline: 14px; } .banner-detail button { flex-basis: 116px; } .banner-detail p { font-size: 12px; } .show-card { padding: 10px; } .show-card img { flex-basis: 56px; width: 56px; } }
@media (min-width: 700px) { body { padding: 36px 0; } #app { width: 414px; min-height: 896px; margin: 0 auto; border-radius: 38px; box-shadow: 0 32px 90px rgba(18,25,56,.35); overflow: hidden; } .home-page { min-height: 896px; } }

/* shared screens */
.screen { width:100%; max-width:414px; min-height:100vh; margin:auto; padding:0 18px 42px; background:radial-gradient(circle at 100% 16%,rgba(108,69,173,.22),transparent 18rem),linear-gradient(180deg,#171e59 0,#0b1240 100%); }
.screen-header { height:98px; display:grid; grid-template-columns:42px 1fr 84px; align-items:end; padding-bottom:17px; }
.screen-header h1 { margin:0; text-align:center; font-size:23px; line-height:42px; font-weight:700; letter-spacing:.01em; }
.header-icon,.header-action,.profile-back,.profile-search,.profile-entry { border:0; background:transparent; color:white; cursor:pointer; }
.header-icon { width:42px; height:42px; display:grid; place-items:center; }
.header-icon img { width:23px; filter:brightness(0) invert(1); }
.header-action { justify-self:end; min-width:42px; height:42px; padding:0; font-weight:700; font-size:16px; white-space:nowrap; }
.header-action.icon-only { width:42px; min-width:42px; display:grid; place-items:center; }
.header-action.icon-only img { width:31px; filter:brightness(0) invert(1); }
.profile-entry { width:42px; height:42px; display:grid; place-items:center; }
.profile-entry img { width:26px; filter:brightness(0) invert(1); opacity:.9; }
.detail-hero { position:relative; height:203px; border-radius:19px; overflow:hidden; }
.detail-hero>img { width:100%; height:100%; object-fit:cover; }
.detail-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(6,9,30,.28),transparent 55%); }
.detail-hero>strong { position:absolute; z-index:2; inset:82px 0 auto; text-align:center; font-size:36px; line-height:1; font-weight:700; }
.mini-pager { height:44px; display:flex; justify-content:center; align-items:center; gap:7px; }
.mini-pager i { width:7px; height:7px; border-radius:50%; background:#3c467b; }
.mini-pager i.active { background:#8991b0; }
.date-overview { display:flex; align-items:center; justify-content:space-between; }
.date-overview h2 { margin:0; font-size:21px; font-weight:700; }
.date-overview div span { display:block; width:30px; height:4px; border-radius:2px; margin:11px 0 0 8px; background:var(--orange); }
.date-overview>b { padding:10px 18px; border-radius:20px; background:var(--orange); font-size:15px; }
.session-row { display:grid; grid-template-columns:1.25fr 1fr .75fr; align-items:start; gap:12px; padding:28px 10px 18px; border-bottom:1px solid rgba(255,255,255,.1); }
.session-row div { display:grid; gap:7px; }
.session-row div:nth-child(2),.session-row div:nth-child(3) { text-align:center; }
.session-row strong { font-size:15px; white-space:nowrap; }
.session-row small { color:#9fa7c8; font-size:13px; }
.ticket-preview h2,.choose-content>h2 { margin:28px 0 19px; font-size:22px; font-weight:700; }
.ticket-preview h2::after { content:""; display:block; width:30px; height:4px; border-radius:2px; margin:9px 0 0 18px; background:var(--orange); }
.ticket-preview-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.preview-ticket { position:relative; height:88px; border:2px solid var(--orange); border-radius:14px; background:#232c66; color:white; cursor:pointer; }
.preview-ticket b { display:block; font-size:18px; }
.preview-ticket strong { display:block; margin-top:4px; color:#ff9a58; font-size:18px; }
.preview-ticket img { position:absolute; right:13px; top:31px; width:28px; filter:invert(50%) sepia(94%) saturate(2100%) hue-rotate(340deg) brightness(110%); opacity:.38; }
.preview-ticket.selected img { opacity:1; }
.info-panel,.limit-panel,.quantity-panel,.order-panel,.pay-total,.sync-card,.wallet-note { margin-top:35px; padding:24px 20px; border-radius:17px; background:linear-gradient(135deg,#263069,#222b61); box-shadow:0 10px 24px rgba(0,0,0,.12); }
.info-panel h2,.limit-panel h2,.quantity-panel h2,.order-panel h2,.wallet-note h2 { margin:0 0 15px; font-size:20px; font-weight:700; }
.info-panel ul { margin:0; padding-left:22px; line-height:1.8; font-size:14px; }
.detail-screen { padding-bottom:108px; }
.detail-footer { position:fixed; z-index:5; left:50%; bottom:0; width:min(414px,100%); transform:translateX(-50%); display:flex; align-items:center; justify-content:space-between; padding:12px 18px 18px; background:rgba(11,18,64,.96); backdrop-filter:blur(12px); }
.detail-footer span { font-size:14px; }
.detail-footer span b { color:#ff9a58; font-size:21px; }
.detail-footer button,.bottom-primary { border:0; border-radius:30px; background:linear-gradient(90deg,#ff713b,#ff8543); color:white; font-size:19px; font-weight:700; cursor:pointer; box-shadow:0 12px 26px rgba(255,113,59,.22); }
.detail-footer button { width:210px; height:56px; }
.choose-screen,.order-screen { padding-bottom:112px; }
.choose-banner { position:relative; height:130px; border-radius:15px; overflow:hidden; }
.choose-banner img { width:100%; height:100%; object-fit:cover; filter:brightness(.58); }
.choose-banner div { position:absolute; inset:26px 25px; }
.choose-banner h2 { margin:0 0 17px; font-size:28px; }
.choose-banner p { margin:0; font-size:15px; font-weight:700; }
.ticket-option-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.ticket-option { position:relative; height:145px; padding:22px; border:1.5px solid #ff8a54; border-radius:14px; background:#27306a; color:white; text-align:left; cursor:pointer; overflow:hidden; }
.ticket-option::before { content:""; position:absolute; left:0; top:0; width:18px; height:80px; border-radius:0 0 14px 0; background:#ff8248; }
.ticket-option strong,.ticket-option b { display:block; margin-left:12px; }
.ticket-option strong { font-size:21px; }
.ticket-option b { margin-top:18px; font-size:24px; }
.ticket-option span { position:absolute; right:16px; top:20px; padding:4px 9px; border-radius:14px; background:#ff854b; font-size:12px; }
.ticket-option img { position:absolute; right:18px; bottom:15px; width:27px; opacity:.3; filter:invert(55%) sepia(90%) saturate(2500%) hue-rotate(340deg) brightness(110%); }
.ticket-option.selected img { opacity:1; }
.limit-panel { margin-top:-10px; position:relative; z-index:2; }
.limit-panel h2 { display:flex; align-items:center; gap:10px; }
.limit-panel h2 img { width:18px; height:18px; filter:brightness(0) invert(1); }
.limit-panel div { display:flex; justify-content:space-between; font-size:14px; }
.limit-panel b { color:#ff9555; }
.limit-panel p { margin:11px 0 0; text-align:center; font-size:14px; }
.quantity-panel { margin-top:14px; }
.quantity-panel>div { display:grid; grid-template-columns:1fr 34px 24px 55px 40px; align-items:center; gap:6px; }
.quantity-panel button { width:34px; height:34px; border:0; border-radius:50%; background:#354078; color:white; font-size:20px; cursor:pointer; }
.quantity-panel button.plus { background:var(--orange); font-size:22px; }
.bottom-primary { position:fixed; z-index:7; left:50%; bottom:16px; transform:translateX(-50%); width:min(378px,calc(100% - 36px)); height:58px; }
.detail-screen .screen-header,.choose-screen .screen-header,.order-screen .screen-header { height:84px; padding-bottom:12px; }
.detail-screen .detail-hero { height:185px; }
.detail-screen .mini-pager { height:32px; }
.detail-screen .session-row { padding-top:20px; padding-bottom:14px; }
.detail-screen .ticket-preview h2 { margin-top:20px; margin-bottom:14px; }
.detail-screen .preview-ticket { height:80px; }
.detail-screen .info-panel { margin-top:22px; padding-block:18px; }
.choose-screen .choose-banner { height:112px; }
.choose-screen .choose-banner div { inset:20px 25px; }
.choose-screen .choose-banner h2 { margin-bottom:11px; }
.choose-screen .choose-content>h2 { margin:18px 0 13px; }
.choose-screen .ticket-option-grid { gap:11px 15px; }
.choose-screen .ticket-option { height:124px; padding:18px 20px; }
.choose-screen .ticket-option b { margin-top:12px; }
.choose-screen .limit-panel { padding:18px 16px; }
.choose-screen .limit-panel h2 { margin-bottom:11px; }
.choose-screen .quantity-panel { padding:15px 18px; }
.choose-screen .quantity-panel h2 { margin-bottom:10px; }
.order-event { position:relative; min-height:164px; padding:45px 28px 20px; border-radius:17px; background:linear-gradient(135deg,rgba(37,47,105,.95),rgba(31,41,91,.96)),url('./assets/concert-blue.png') center/cover; }
.order-event>span { position:absolute; right:0; top:0; padding:12px 18px; border-radius:0 0 0 24px; background:var(--orange); font-weight:800; }
.order-event h2 { margin:0 0 15px; font-size:30px; font-weight:700; }
.order-event p { margin:5px 0; font-size:16px; }
.order-panel { margin-top:16px; padding:20px 18px; }
.order-panel>div { display:flex; align-items:center; justify-content:space-between; font-size:20px; }
.order-panel>div b { color:#ff9b59; font-size:24px; }
.order-panel em { padding:8px 17px; border-radius:20px; background:var(--orange); font-style:normal; font-size:15px; }
.viewer-panel p { display:grid; grid-template-columns:72px 1fr; margin:14px 0 0; font-size:15px; }
.viewer-panel p span { color:#e7e9f1; }
.pay-total { display:flex; justify-content:space-between; align-items:center; margin-top:16px; padding:20px 18px; }
.pay-total b { color:#ff9a57; font-size:31px; }
.wallet-screen { padding-bottom:54px; }
.sync-card { margin-top:0; display:flex; justify-content:space-between; align-items:center; padding:24px; }
.sync-card h2 { margin:0 0 8px; font-size:25px; font-weight:700; }
.sync-card p { margin:0; color:#bbc1d7; font-size:13px; }
.sync-card>b { padding:9px 15px; border-radius:20px; background:var(--orange); }
.screen-section-title { margin:0 0 18px; font-size:22px; }
.wallet-list { display:grid; gap:12px; }
.wallet-ticket { height:130px; padding:12px; border:0; border-radius:14px; background:#28316c; color:white; display:grid; grid-template-columns:88px 1fr auto; gap:13px; text-align:left; cursor:pointer; }
.wallet-ticket>img { width:88px; height:106px; object-fit:cover; border-radius:8px; }
.wallet-ticket>span { display:flex; min-width:0; flex-direction:column; gap:5px; }
.wallet-ticket>span strong { font-size:18px; }
.wallet-ticket>span b { font-size:14px; }
.wallet-ticket>span small { margin-top:auto; color:#9199ba; }
.wallet-ticket>em { align-self:center; font-style:normal; font-size:14px; font-weight:700; text-align:right; white-space:nowrap; }
.wallet-ticket>em small { display:block; margin-top:18px; color:#ff9b59; }
.wallet-screen>.bottom-primary { position:static; transform:none; width:100%; margin:22px 0; }
.wallet-note { margin-top:0; text-align:center; }
.wallet-note p { color:#c1c6d9; line-height:1.7; }
.qr-layer { position:fixed; z-index:20; inset:0; padding:18px; display:grid; place-items:center; background:rgba(4,7,24,.82); }
.qr-ticket { position:relative; width:min(360px,100%); padding:28px; border-radius:20px; background:white; color:#161b36; text-align:center; }
.qr-ticket>button { position:absolute; right:12px; top:8px; border:0; background:transparent; font-size:28px; cursor:pointer; }
.qr-ticket h2 { margin:0; }
.qr-ticket img { display:block; width:220px; margin:18px auto; }
.qr-ticket b,.qr-ticket small { display:block; margin-top:8px; }
.profile-screen { padding-bottom:52px; }
.profile-top { height:90px; display:flex; justify-content:space-between; align-items:end; padding-bottom:12px; }
.profile-back,.profile-search { width:42px; height:42px; display:grid; place-items:center; }
.profile-back img { width:23px; filter:brightness(0) invert(1); }
.profile-search img { width:31px; filter:brightness(0) invert(1); }
.user-block { display:flex; align-items:center; gap:18px; padding:4px 18px 20px; }
.user-block>img { width:78px; height:78px; object-fit:cover; border-radius:50%; }
.user-block h1 { margin:0 0 5px; font-size:25px; font-weight:700; }
.user-block p { margin:0; font-size:18px; font-weight:500; }
.profile-shortcuts { min-height:122px; display:grid; grid-template-columns:repeat(3,1fr); border-radius:18px; overflow:hidden; background:linear-gradient(90deg,#ff6f38,#ff8244); }
.profile-shortcuts button { border:0; border-right:1px solid rgba(255,255,255,.2); background:transparent; color:white; display:grid; place-items:center; align-content:center; gap:11px; cursor:pointer; }
.profile-shortcuts button:last-child { border-right:0; }
.profile-shortcuts img { width:36px; height:36px; filter:brightness(0) invert(1); }
.profile-shortcuts span { font-size:16px; font-weight:700; }
.order-status { margin-top:18px; padding:18px 15px; border-radius:17px; background:#242e68; }
.order-status h2 { margin:0 0 20px; font-size:20px; font-weight:700; }
.order-status>div { display:grid; grid-template-columns:repeat(4,1fr); }
.order-status button { border:0; background:transparent; color:#a2abc9; display:grid; justify-items:center; gap:8px; cursor:pointer; }
.order-status button img { width:28px; height:28px; opacity:.52; filter:brightness(0) invert(1); }
.order-status button.active { color:white; }
.order-status button.active img { opacity:1; filter:invert(55%) sepia(97%) saturate(2238%) hue-rotate(337deg) brightness(105%); }
.profile-order { margin-top:20px; padding:13px; min-height:154px; border-radius:16px; background:#28316c; display:grid; grid-template-columns:93px 1fr auto; gap:15px; cursor:pointer; }
.profile-order>img { width:93px; height:128px; border-radius:9px; object-fit:cover; }
.profile-order h2 { margin:4px 0; font-size:19px; font-weight:700; }
.profile-order small { color:#8e97bb; }
.profile-order p { margin:18px 0 9px; font-size:15px; }
.profile-order em { color:#ff9b59; font-style:normal; }
.profile-order aside { display:flex; flex-direction:column; align-items:end; justify-content:center; gap:23px; white-space:nowrap; }
.profile-order aside b { padding:7px 13px; border-radius:17px; background:var(--orange); }
.profile-links { display:grid; margin-top:28px; }
.profile-links button { height:58px; padding:0 12px; border:0; border-bottom:1px solid rgba(255,255,255,.1); background:transparent; color:white; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-size:18px; font-weight:600; }
.profile-links img { width:23px; filter:brightness(0) invert(1); }
@media (min-width:700px) {
  #app { position:relative; }
  .screen { min-height:896px; }
  .detail-footer { position:absolute; left:0; bottom:0; transform:none; }
  .bottom-primary { position:absolute; left:18px; bottom:18px; transform:none; width:378px; }
}
