@import url('./style.css');

.portal-body { background: #f4f1e9; min-height: 100vh; }
.portal-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,233,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.portal-nav { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.portal-nav .brand { margin-right: auto; }
.portal-nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.portal-main { padding: 56px 0 100px; }
.page-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.page-heading h1 { font-size: clamp(40px,6vw,72px); margin: 0; }
.page-heading p { color: var(--muted); margin: 0 0 9px; }
.stepper { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); margin-bottom: 42px; }
.step { padding: 12px 4px; font-size: 11px; color: var(--muted); }
.step.active { color: var(--accent); font-weight: 600; }
.step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; margin-right: 7px; }
.portal-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.portal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 34px rgba(29,41,37,.05); }
.portal-card + .portal-card { margin-top: 18px; }
.portal-card h2, .portal-card h3 { font-family: "Noto Serif SC",serif; margin-top: 0; }
.portal-card h2 { font-size: 27px; }.portal-card h3 { font-size: 19px; }
.ticket-grid { display: grid; gap: 12px; }
.ticket-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 15px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; cursor: pointer; transition: .2s; }
.ticket-card:hover, .ticket-card.selected { border-color: var(--accent); box-shadow: 0 8px 22px rgba(201,94,63,.08); }
.ticket-card input { position: absolute; opacity: 0; }.ticket-card h3 { margin: 0 0 5px; }.ticket-card p { margin: 0; color: var(--muted); font-size: 13px; }
.price { text-align: right; white-space: nowrap; }.price strong { font-family: "Noto Serif SC",serif; font-size: 25px; }.price s { display: block; color: var(--muted); font-size: 11px; }.price small { display: block; color: var(--accent); }
.form-section { margin-top: 28px; }.form-section h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.portal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.portal-form-grid .full { grid-column: 1/-1; }
.field { display: grid; gap: 6px; }.field > span { font-size: 11px; color: var(--muted); }.field input,.field select,.field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 12px 13px; color: var(--ink); }.field textarea { resize: vertical; }
.checks { display: grid; gap: 10px; margin: 24px 0; }.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); }.check input { margin-top: 5px; accent-color: var(--accent); }
.summary { position: sticky; top: 96px; }.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }.summary-row span { color: var(--muted); }.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; }.summary-total strong { color: var(--accent); font-family: "Noto Serif SC",serif; font-size: 31px; }.rule-note { padding: 14px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; }
.empty-state { text-align: center; padding: 65px 20px; color: var(--muted); }.empty-state h2 { color: var(--ink); }
.order-list { display: grid; gap: 12px; }.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }.order-row h3 { margin: 0 0 5px; font-size: 16px; }.order-row p { margin: 0; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: rgba(113,129,108,.12); color: var(--moss); font-size: 10px; }.status-pill.PAID,.status-pill.CONFIRMED { background: rgba(113,129,108,.15); }.status-pill.PENDING,.status-pill.PAYING,.status-pill.PENDING_REVIEW { background: rgba(185,150,91,.15); color: #846b40; }.status-pill.CANCELLED,.status-pill.FAILED { background: rgba(201,94,63,.12); color: var(--accent); }
.payment-layout { max-width: 900px; margin: auto; }.payment-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }.pay-method { border: 1px solid var(--line); border-radius: 13px; padding: 18px; text-align: left; background: var(--white); cursor: pointer; }.pay-method.active { border-color: var(--accent); }.pay-method b,.pay-method small { display: block; }.pay-method small { color: var(--muted); margin-top: 5px; }
.mock-panel { text-align: center; padding: 34px; background: var(--paper); border-radius: 14px; }.mock-mark { width: 150px; height: 150px; margin: 0 auto 20px; border: 1px dashed var(--ink); display: grid; place-items: center; background-image: linear-gradient(45deg,rgba(29,41,37,.08) 25%,transparent 25%),linear-gradient(-45deg,rgba(29,41,37,.08) 25%,transparent 25%); background-size: 16px 16px; font-weight: 600; }
.result-card { max-width: 760px; margin: 40px auto; text-align: center; }.result-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--moss); color: white; font-size: 30px; }.credential-placeholder { width: 150px; height: 150px; border: 1px dashed var(--line); margin: 24px auto; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: calc(100vh - 72px); }.admin-side { border-right: 1px solid var(--line); padding: 28px 20px; }.admin-side button { display: block; width: 100%; text-align: left; border: 0; border-radius: 9px; background: transparent; padding: 10px; cursor: pointer; color: var(--muted); }.admin-side button.active { background: var(--ink); color: white; }.admin-content { padding: 38px; overflow: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }.data-table th,.data-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }.data-table th { color: var(--muted); font-weight: 500; }.admin-auth { max-width: 460px; margin: 60px auto; }
.notice-box { border-left: 3px solid var(--accent); background: rgba(201,94,63,.06); padding: 15px; font-size: 12px; color: var(--muted); margin: 18px 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }.danger-link { color: var(--accent); border:0;background:none;cursor:pointer;padding:8px; }

/* 官网内容与文案编辑器专属样式 */
.editor-nav { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 24px; padding-bottom: 8px; flex-wrap: wrap; }
.editor-nav-btn { background: transparent; border: 0; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: 13px; transition: .2s; }
.editor-nav-btn:hover { background: rgba(0,0,0,.05); }
.editor-nav-btn.active { background: #1d6a50; color: white; }
.guest-editor-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.03); }
.guest-editor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.guest-editor-grid .full { grid-column: 1 / -1; }
.editor-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.badge-tag { background: #eaf4f0; color: #1d6a50; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }

@media(max-width:850px){.page-heading,.portal-grid{grid-template-columns:1fr}.summary{position:static}.portal-nav-links{display:none}.admin-shell{grid-template-columns:1fr}.admin-side{border-right:0;border-bottom:1px solid var(--line);display:flex;overflow:auto}.admin-side button{width:auto;white-space:nowrap}.admin-content{padding:24px 14px}.payment-methods{grid-template-columns:1fr}}
@media(max-width:600px){.portal-main{padding-top:35px}.portal-form-grid{grid-template-columns:1fr}.portal-form-grid .full{grid-column:1}.portal-card{padding:20px}.stepper{grid-template-columns:1fr 1fr}.order-row{grid-template-columns:1fr}.ticket-card{grid-template-columns:1fr}.price{text-align:left}.page-heading{gap:14px}.portal-nav .brand small{display:none}}

/* 2026-11-06 会员优惠价 */
.price .promo-tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 99px; margin-bottom: 4px; }
.price .per { font-size: 13px; font-family: inherit; color: var(--muted); margin-left: 2px; }
.price s { font-size: 13px !important; margin: 2px 0; }
.member-benefits { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.member-benefits h3 { margin: 0 0 10px; }
.member-benefits ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.member-benefits li { background: rgba(113,129,108,.10); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.member-benefits p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ===== 2026-11-06 会员中心 ===== */
.mb-path { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.mb-path li { position: relative; padding: 16px 14px 16px 52px; border: 1px solid var(--line); background: #fff; margin-left: -1px; counter-increment: s; }
.mb-path li:first-child { border-radius: 14px 0 0 14px; margin-left: 0; } .mb-path li:last-child { border-radius: 0 14px 14px 0; }
.mb-path li::before { content: counter(s); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
.mb-path b { display: block; font-family: "Noto Serif SC", serif; font-size: 17px; } .mb-path span { font-size: 12px; color: var(--muted); } .mb-path s { color: var(--muted); }
.mb-path li.done::before { content: "✓"; background: #1d6a50; border-color: #1d6a50; color: #fff; }
.mb-path li.current { background: rgba(201,94,63,.07); border-color: var(--accent); z-index: 1; }
.mb-path li.current::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.mb-guest, .mb-me { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; margin-bottom: 24px; }
.mb-me { grid-template-columns: minmax(0,1fr) 340px; }
.mb-guest[hidden], .mb-me[hidden] { display: none; }
.mb-tabs { display: flex; gap: 6px; background: #f1ede3; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.mb-tabs button { flex: 1; height: 42px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.mb-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(29,41,37,.08); }
.mb-form { display: grid; gap: 14px; } .mb-form[hidden] { display: none; }
.mb-form .field input { height: 46px; font-size: 15px; }
.mb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mb-err { min-height: 20px; margin: 0; color: #b42318; font-size: 13px; }
.mb-tip { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.mb-list { padding-left: 18px; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.mb-qr { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.mb-qr img { width: 96px; height: auto; border-radius: 8px; } .mb-qr p { margin: 0; font-size: 13px; color: var(--muted); }
.mb-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mb-card-head h2 { margin: 4px 0; } .mb-meta { margin: 0; color: var(--muted); font-size: 13px; }
.mb-badge { flex: none; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: #eaf4f0; color: #1d6a50; }
.mb-badge[data-tier="youth"], .mb-badge[data-tier="pro"] { background: var(--accent); color: #fff; }
.mb-next { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: #f6f2ea; font-size: 14px; line-height: 1.8; }
.mb-next p { margin: 0 0 10px; } .mb-next .button { margin-top: 4px; }
.mb-intents { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mb-intents li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mb-intents time { color: var(--muted); }
.mb-matrix-lead { color: var(--muted); font-size: 13px; margin: -6px 0 16px; }
.mb-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mb-matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.mb-matrix th, .mb-matrix td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mb-matrix thead th { font-family: "Noto Serif SC", serif; font-size: 15px; white-space: nowrap; }
.mb-matrix thead th em { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-family: inherit; }
.mb-matrix tbody th { font-weight: 600; width: 30%; }
.mb-matrix .cur { background: rgba(201,94,63,.07); }
.mb-matrix td.no { color: #b9b4a8; }
.mb-building { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #8a6d2f; background: #f6ecd2; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.mb-gate { border-left: 3px solid var(--accent); background: rgba(201,94,63,.06); padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 0 0 18px; font-size: 14px; }
.mb-gate .button { margin-top: 10px; }
@media (max-width: 850px) {
  .mb-guest, .mb-me { grid-template-columns: 1fr; }
  .mb-path { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mb-path li, .mb-path li:first-child, .mb-path li:last-child { border-radius: 12px; margin-left: 0; }
}
@media (max-width: 760px) { .mb-matrix-lead::after { content: "（表格可左右滑动查看）"; } }

/* 2026-11-07 后台表格横向滚动 */
#adminTable { overflow-x: auto; }
#adminTable .data-table td, #adminTable .data-table th { white-space: nowrap; }
.admin-side [data-export] { font-size: 13px; }

/* ===== 2026-11-07 浏览数据观察看板 ===== */
.an-note { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.an-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.an-tiles.small { grid-template-columns: repeat(6, 1fr); margin: 0; }
.an-tile { background: #f8f5ee; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.an-tile span { display: block; font-size: 12px; color: var(--muted); }
.an-tile b { display: block; font-family: "Noto Serif SC", serif; font-size: 26px; margin-top: 4px; color: var(--ink); }
.an-tile small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.an-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; background: #fff; }
.an-card h3 { font-family: "Noto Serif SC", serif; font-size: 17px; margin: 0 0 4px; }
.an-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.an-sub { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.an-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink); }
.an-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-legend i.ln { height: 3px; width: 16px; vertical-align: 3px; border-radius: 2px; }
.an-svg { width: 100%; height: auto; display: block; }
.an-svg .an-grid { stroke: #ebe6dc; stroke-width: 1; }
.an-svg .an-axis { font-size: 11px; fill: #8a8f8b; }
.an-svg .an-hit:hover { fill: rgba(29,41,37,.05); }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-hbars { display: grid; gap: 7px; }
.an-hrow { display: grid; grid-template-columns: minmax(120px, 42%) 1fr minmax(48px, auto); gap: 10px; align-items: center; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.an-hrow:hover { background: #f6f2ea; }
.an-hlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.an-hlabel small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.an-htrack { height: 10px; background: #f1ede4; border-radius: 4px; overflow: hidden; }
.an-htrack i { display: block; height: 100%; background: #c95e3f; border-radius: 0 4px 4px 0; }
.an-hval { font-weight: 700; white-space: nowrap; color: var(--ink); }
.an-hval small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.an-empty { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
@media (max-width: 1100px) { .an-tiles, .an-tiles.small { grid-template-columns: repeat(3, 1fr); } .an-two { grid-template-columns: 1fr; } }
