:root {
  --ui-border: #e5e5e9;
  --ui-subtle: #f5f5f7;
}

body { background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
[hidden] { display: none !important; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, a, input, textarea, select { touch-action: manipulation; }
button:disabled, .button:disabled { cursor: wait; opacity: .55; transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
input, textarea, select { font: inherit; font-size: 16px; }
.field input, .field select { min-height: 48px; }
.field > span { color: #424245; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { border-color: #d2d2d7; background: #fff; border-radius: 8px; }
.field input::placeholder, .field textarea::placeholder { color: #86868b; }
.field input[type="checkbox"] { min-height: auto; }
.button { min-height: 44px; line-height: 1.4; border-radius: 8px; }
.button:hover { transform: none; }
.button-outline { box-shadow: inset 0 0 0 1px #d2d2d7; }
.site-header, .site-header.site-header-solid {
  display: block; min-height: 108px; padding: 12px max(24px, calc((100% - 1120px) / 2));
  background: rgba(255,255,255,.96); box-shadow: none; border-bottom: 1px solid var(--ui-border);
}
.site-header .brand { display: inline-flex; max-width: calc(100% - 120px); min-height: 36px; }
.site-header .brand strong { font-size: 15px; }
.site-header .brand small { font-size: 11px; margin-top: 3px; }
.site-header .nav-toggle { display: none !important; }
.site-header .site-nav { position: static; display: flex; flex-direction: row; gap: 8px; width: 100%; margin-top: 10px; padding: 0; background: transparent; overflow-x: auto; scrollbar-width: thin; transform: none; opacity: 1; visibility: visible; }
.site-header .site-nav a { flex: 0 0 auto; min-height: 36px; padding: 8px 13px; font-size: 13px; border-radius: 6px; white-space: nowrap; }
.site-header .site-nav .nav-account { position: absolute; top: 13px; right: max(24px, calc((100% - 1120px) / 2)); min-width: 88px; min-height: 36px; text-align: center; background: #0071e3; }
.site-header .site-nav .nav-account:hover { background: #0077ed; }
.page-main { padding-top: 108px; }
main:not(.page-main) { padding-top: 108px; }
.page-hero { padding: 56px 0 38px; background: #fff; }
.page-hero h1, .hero h1 { font-size: 44px; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
.page-hero p:last-child, .hero-copy { font-size: 17px; line-height: 1.75; }
.section { padding: 56px 0; }
.section-heading h2, .home-case-heading h2 { font-size: 30px; line-height: 1.4; }
.hero-home-cases { padding: 42px 0 56px; background: #fff; }
.hero-home-cases .hero-copy { max-width: 740px; }
.campaign-banner { border: 0; border-radius: 0; background: #f0f7ff; box-shadow: none; margin-bottom: 36px; padding: 14px 20px; }
.campaign-banner em { color: #0066cc; }
.home-case-showcase { margin-top: 56px; }
.case-index-card { border-color: var(--ui-border); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.case-index-card:hover { transform: none; border-color: #b9bdc5; box-shadow: 0 4px 16px #00000009; }
.case-index-body h3 { line-height: 1.5; overflow-wrap: anywhere; }
.case-index-body p { color: #6e6e73; font-size: 14px; }
.case-index-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; min-height: 0; aspect-ratio: 2 / 1; background: #fff; }
.case-index-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.service-card, .qr-card { box-shadow: none; }
.auth-page .page-main { min-height: calc(100svh - 110px); }
.auth-section { padding: 48px 20px 64px; }
.auth-shell { width: min(100%, 440px); margin-inline: auto; }
.auth-heading { text-align: center; margin-bottom: 28px; }
.auth-heading img { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 8px; }
.auth-heading .eyebrow { font-size: 13px; margin-bottom: 8px; }
.auth-heading h1 { font-size: 30px; line-height: 1.4; margin: 0 0 10px; }
.auth-heading p:last-child { color: #6e6e73; font-size: 14px; line-height: 1.7; margin: 0; }
.auth-shell .auth-panel { padding: 28px; background: #fff; border: 1px solid var(--ui-border); border-radius: 8px; box-shadow: 0 8px 32px #00000005; }
.auth-shell .auth-form { gap: 18px; }
.auth-shell .auth-form .button { width: 100%; margin-top: 4px; }
.auth-shell .password-visibility { display: flex; gap: 8px; align-items: center; color: #6e6e73; font-size: 13px; }
.password-visibility input { accent-color: #0071e3; width: 16px; height: 16px; }
.auth-shell .auth-switch { text-align: center; margin: 24px 0 0; font-size: 14px; }
.auth-shell .auth-status { font-size: 13px; line-height: 1.7; margin: 16px 0 0; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-status.is-error { color: #b42318; background: #fff4f2; padding: 10px 12px; border-radius: 6px; }
.auth-shell .wechat-login-box { margin-top: 20px; }
.auth-shell .wechat-login-button { border-radius: 8px; min-height: 44px; }
.auth-shell .wechat-login-box p { font-size: 12px; }
.auth-shell .account-card { padding: 16px; box-shadow: none; margin-top: 18px; overflow-wrap: anywhere; }
.auth-shell .account-card strong { font-size: 15px; }
body[data-page="user-center"], body[data-page="admin"] { background: #f7f8fa; }
body[data-page="user-center"] .page-hero, body[data-page="admin"] .page-hero { background: transparent; padding: 36px 0 12px; }
body[data-page="user-center"] .page-hero h1, body[data-page="admin"] .page-hero h1 { font-size: 28px; line-height: 1.4; }
body[data-page="user-center"] .page-hero h1, body[data-page="admin"] .page-hero h1 { margin-left: 0; }
body[data-page="user-center"] .page-hero p:last-child, body[data-page="admin"] .page-hero p:last-child { font-size: 14px; }
.user-center-section { background: transparent; }
.user-center-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.user-center-sidebar { top: 128px; background: transparent; border: 0; border-right: 1px solid var(--ui-border); border-radius: 0; box-shadow: none; padding: 0 24px 0 0; }
.user-center-account { padding: 0 0 18px; border-bottom: 1px solid var(--ui-border); background: transparent; border-radius: 0; }
.user-center-account strong { font-size: 20px; overflow-wrap: anywhere; }
.user-center-account p { font-size: 13px; }
.user-center-nav { gap: 4px; }
.user-center-nav button { min-height: 44px; font-size: 14px; font-weight: 500; }
.user-center-nav button.is-active { background: #e8f1fc; color: #0066cc; font-weight: 600; }
.user-center-panel { padding: 0; }
.user-center-main { scroll-margin-top: 132px; }
.user-center-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--ui-border); }
.user-center-kpi { min-height: 124px; padding: 20px 20px 22px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-center-kpi strong { font-size: 28px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.user-center-kpi p { font-size: 12px; }
.user-center-panel-head h2, .user-center-guide h2 { font-size: 21px; line-height: 1.4; }
.user-center-guide { margin-top: 24px; padding: 24px 0; border: 0; background: transparent; box-shadow: none; }
.user-center-guide .hero-actions { justify-content: flex-start; }
.user-center-guide p, .user-center-panel-head p { font-size: 14px; }
.user-center-recharge-grid { grid-template-columns: 1fr; gap: 28px; }
.user-center-panel > .auth-form, .user-center-recharge-grid > .auth-form { max-width: 520px; }
.binding-card { box-shadow: none; background: #fff; }
.user-center-table, .admin-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; overflow-x: auto; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; background: #fff; }
.admin-table th { color: #6e6e73; font-size: 12px; font-weight: 600; background: #f0f1f4; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--ui-border); vertical-align: middle; }
.admin-table td { max-width: 260px; overflow-wrap: anywhere; }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table small { color: #86868b; }
.admin-table .button { width: auto; font-size: 12px; min-height: 34px; padding: 7px 12px; white-space: nowrap; }
.admin-section .section-inner { max-width: 1280px; }
.admin-summary-grid { gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--ui-border); }
.admin-summary-card { padding: 16px 24px 24px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.admin-summary-card strong { font-size: 30px; }
.admin-summary-card p { font-size: 12px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-toolbar .button, .user-center-toolbar .button { width: auto; flex: 0 0 auto; }
.user-center-toolbar { display: flex; flex-direction: row; align-items: center; }
.admin-toolbar .auth-status { font-size: 13px; }
.admin-workspace-nav { display: flex; gap: 24px; overflow-x: auto; margin-bottom: 22px; border-bottom: 1px solid var(--ui-border); }
.admin-workspace-nav button { flex: 0 0 auto; min-height: 46px; padding: 10px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: #6e6e73; font: inherit; font-size: 14px; cursor: pointer; }
.admin-workspace-nav button[aria-pressed="true"] { color: #0066cc; border-bottom-color: #0066cc; font-weight: 600; }
.admin-workspace-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.admin-workspace-tools .field { flex: 1 1 260px; max-width: 440px; }
.admin-workspace-tools .field:last-child { flex: 0 1 180px; }
.admin-stack { display: block; }
.admin-view h2 { font-size: 20px; margin: 0 0 16px; }
.admin-empty td { padding: 44px 16px; text-align: center; color: #6e6e73; }
.status-label { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #fff5df; color: #875405; font-size: 12px; white-space: nowrap; }
.status-label[data-state="paid"] { color: #127044; background: #e9f6ee; }
.status-label[data-state="cancelled"] { color: #6e6e73; background: #eeeef0; }
.site-footer { padding: 28px 0; background: #f5f5f7; }
.site-footer p, .footer-links a { font-size: 12px; line-height: 1.8; }
.qr-contact-layout > *, .contact-template-layout > * { min-width: 0; }
.qr-contact-copy h2, .contact-template-copy h2 { font-size: 30px; line-height: 1.4; }
@media (max-width: 1000px) {
  .qr-contact-layout, .contact-template-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .user-center-shell { grid-template-columns: 1fr; gap: 24px; }
  .user-center-sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--ui-border); padding: 0 0 20px; }
  .user-center-account { display: none; }
  .user-center-sidebar { grid-template-columns: 1fr auto; }
  .user-center-sidebar > .button { width: auto; justify-self: start; }
  .user-center-nav { grid-column: 1 / -1; }
  .user-center-sidebar > .button { font-size: 13px; min-height: 38px; }
  .user-center-nav { display: flex; overflow-x: auto; padding: 0 0 4px; }
  .user-center-nav button { white-space: nowrap; flex: 0 0 auto; }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-header, .site-header.site-header-solid { padding: 10px 16px; min-height: 108px; }
  .site-header .site-nav .nav-account { right: 16px; top: 12px; }
  .site-header .site-nav { gap: 0; margin-top: 12px; }
  .site-header .site-nav a { padding-inline: 12px; min-height: 36px; }
  .hero-inner, .section-inner { width: calc(100% - 32px); }
  .page-hero { padding: 36px 0 24px; }
  .page-hero h1, .hero h1 { font-size: 30px; line-height: 1.35; }
  .page-hero p:last-child, .hero-copy { font-size: 15px; }
  .hero-home-cases { padding: 24px 0 40px; }
  .campaign-banner { padding: 12px; margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { max-width: 100%; font-size: 14px; }
  .section { padding: 36px 0; }
  .section-heading h2, .home-case-heading h2 { font-size: 24px; }
  .auth-section { padding: 32px 16px 48px; }
  .auth-shell .auth-panel { padding: 22px; }
  .auth-heading h1 { font-size: 26px; }
  .auth-heading img { margin-bottom: 16px; width: 48px; height: 48px; }
  .user-center-kpi strong { font-size: 23px; }
  .binding-grid { grid-template-columns: 1fr; }
  .binding-card { min-height: auto; }
  .referral-link-row { grid-template-columns: 1fr; }
  .admin-workspace-nav { gap: 20px; }
  .admin-workspace-tools .field, .admin-workspace-tools .field:last-child { flex: 1 1 100%; max-width: none; }
  .footer-inner { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
