* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0); }
html { -webkit-tap-highlight-color: rgba(0,0,0,0); }
:root { --brand: #f59e0b; --brand-strong: #d97706; --brand-soft: #fffbeb; --brand-border: #fde68a; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #1f2937; background: #f8fafc; background-image: var(--page-bg-image); background-size: cover; background-position: center top; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(255, 255, 255, .72); }
body.has-page-bg::before { background: rgba(255, 255, 255, .36); }
a { color: var(--brand-strong); text-decoration: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: rgba(0,0,0,0); }
button, a { touch-action: manipulation; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(245,158,11,.48); outline-offset: 2px; }
.topbar { background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(245,158,11,.22); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 5; gap: 22px; box-shadow: 0 1px 8px rgba(146, 64, 14, 0.08); backdrop-filter: blur(14px); }
.brand-row { display: flex; align-items: center; gap: 32px; min-width: 0; }
.brand { font-size: 20px; font-weight: 750; white-space: nowrap; }
.mainnav { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid #d1d5db; }
.navlink { color: #374151; padding: 8px 14px; border-radius: 8px; font-size: 14px; border: 1px solid transparent; }
.navlink.active { color: #92400e; background: var(--brand-soft); border-color: var(--brand-border); font-weight: 650; }
.nav-sep { width: 1px; align-self: stretch; min-height: 26px; background: #cbd5e1; display: inline-block; }
.nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; padding-bottom: 86px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel, .card, .order-box { background: rgba(255,255,255,.9); border: 1px solid rgba(245,158,11,.18); border-radius: 8px; padding: 18px; box-shadow: 0 1px 8px rgba(146, 64, 14, 0.06); backdrop-filter: blur(10px); }
.order-shell { max-width: 680px; margin: 0 auto; }
.home-searchbar { justify-content: center; background: transparent; border-bottom: 0; box-shadow: none; backdrop-filter: none; padding: 12px 18px 0; }
.search-form { width: min(680px, 100%); display: block; margin: 0 auto; }
.search-form input { border-radius: 999px; border-color: rgba(245,158,11,.28); background: rgba(255,255,255,.98); box-shadow: 0 10px 22px rgba(15,23,42,.08); padding-left: 18px; }
.section-head { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.section-head h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.section-head p { margin: 6px 0 0; color: #6b7280; font-size: 14px; }
.carousel { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; aspect-ratio: 16 / 7; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 7px; height: 7px; min-height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px rgba(15,23,42,.14); }
.carousel-dots button.active { width: 18px; background: var(--brand); }
.card { display: flex; flex-direction: column; gap: 10px; }
.muted { color: #6b7280; font-size: 14px; }
.price { font-size: 22px; font-weight: 700; }
.price-line { border: 1px solid #dbe2ea; background: #f8fafc; border-radius: 8px; padding: 14px; display: flex; align-items: center; justify-content: space-between; }
.price-line span { color: #6b7280; font-size: 14px; }
.price-line strong { font-size: 22px; color: #111827; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; background: #fff; border: 1px solid rgba(245,158,11,.18); border-radius: 18px; overflow: hidden; color: #111827; box-shadow: 0 12px 26px rgba(146,64,14,.10); display: grid; }
.product-card::before { display: none; content: none; }
.product-card-image { aspect-ratio: 16 / 11; background: #f3f4f6; display: grid; place-items: center; color: #9ca3af; font-weight: 700; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-body { min-height: 118px; padding: 18px 18px 20px; display: grid; align-content: start; gap: 10px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82)); border-top: 1px solid rgba(255,255,255,.64); }
.product-card-body strong { font-size: 22px; line-height: 1.25; color: #374151; font-weight: 900; }
.product-card-body em { color: #9ca3af; font-style: normal; font-size: 15px; line-height: 1.35; min-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card-body span { color: #b45309; font-weight: 950; font-size: 30px; line-height: 1; }
.back-link { display: inline-flex; margin-bottom: 12px; color: #374151; font-size: 14px; }
.product-detail { display: grid; gap: 14px; }
.product-detail-image { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #f3f4f6; aspect-ratio: 1 / 1; display: grid; place-items: center; color: #9ca3af; font-weight: 700; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-body { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.product-detail-body h1 { margin: 0; font-size: 22px; line-height: 1.3; color: #111827; }
.detail-price { color: #b45309; font-size: 24px; font-weight: 850; }
.product-detail-text { color: #374151; font-size: 14px; line-height: 1.65; }
.product-buy-link { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-size: 17px; font-weight: 850; }
.checkout-form { display: grid; gap: 14px; padding-bottom: 116px; }
.checkout-card { background: rgba(255,255,255,.96); border: 1px solid rgba(245,158,11,.16); border-radius: 16px; padding: 18px; box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.checkout-card h2 { margin: 0 0 18px; font-size: 22px; color: #1f2937; }
.checkout-product-card { margin-top: 4px; }
.checkout-product-row { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 18px; align-items: center; }
.checkout-product-thumb { width: 128px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #fef3c7; display: grid; place-items: center; color: #b45309; font-weight: 800; }
.checkout-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-product-info { min-width: 0; display: grid; gap: 8px; }
.checkout-product-info strong { font-size: 20px; color: #111827; line-height: 1.25; }
.checkout-product-info p { margin: 0; color: #6b7280; line-height: 1.55; font-size: 15px; max-height: 72px; overflow: hidden; }
.checkout-product-info b { color: #d97706; font-size: 25px; margin-right: 12px; }
.checkout-product-info em { color: #9ca3af; font-style: normal; }
.checkout-field { display: grid; gap: 10px; margin-bottom: 18px; }
.checkout-field > span, .checkout-pay > span { display: block; color: #374151; font-size: 17px; font-weight: 650; }
.checkout-field i { color: #ef4444; font-style: normal; margin-right: 4px; }
.checkout-field input[type=text], .checkout-field input:not([type]), .checkout-field textarea, .checkout-worker-select select { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 14px 16px; font-size: 16px; color: #111827; box-shadow: none; }
.checkout-field textarea { resize: vertical; min-height: 110px; }
.checkout-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.checkout-radio { position: relative; display: block; }
.checkout-radio input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-radio span { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #374151; font-size: 17px; font-weight: 650; }
.checkout-radio span::before { content: ""; width: 18px; height: 18px; border-radius: 999px; border: 2px solid #d1d5db; box-shadow: inset 0 0 0 4px #fff; background: #fff; flex: 0 0 auto; }
.checkout-radio input:checked + span { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.checkout-radio input:checked + span::before { border-color: #f59e0b; background: #f59e0b; }
.checkout-radio input:disabled + span { opacity: .48; background: #f9fafb; }
.checkout-worker-select { display: none; margin-top: 12px; }
.checkout-worker-select.is-visible { display: grid; gap: 8px; color: #6b7280; }
.checkout-pay { display: grid; gap: 10px; margin: 8px 0 18px; }
.checkout-pay-card { min-height: 70px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #f59e0b; border-radius: 12px; background: #fffbeb; padding: 12px 16px; }
.checkout-pay-card i { width: 42px; height: 42px; border-radius: 999px; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 13px; font-style: normal; font-weight: 800; }
.checkout-pay-card strong { color: #92400e; font-size: 17px; }
.checkout-pay-card em { color: #b45309; font-style: normal; font-size: 14px; }
.checkout-tip { display: grid; gap: 6px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #92400e; padding: 14px 16px; }
.checkout-tip strong { font-size: 16px; }
.checkout-tip p { margin: 0; line-height: 1.6; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.96); border: 1px solid rgba(245,158,11,.16); border-radius: 14px; padding: 18px; box-shadow: 0 8px 24px rgba(15,23,42,.07); }
.checkout-total span { color: #374151; font-size: 17px; font-weight: 650; }
.checkout-total strong { color: #d97706; font-size: 24px; }
.checkout-submit-bar { position: fixed; left: 0; right: 0; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 19; padding: 0 18px; pointer-events: none; }
.checkout-submit-bar button { width: min(680px, 100%); height: 58px; display: block; margin: 0 auto; border-radius: 999px; background: #f59e0b; color: #fff; border: 0; font-size: 20px; font-weight: 800; box-shadow: 0 12px 28px rgba(217,119,6,.26); pointer-events: auto; }
.admin-product-mini { display: grid; gap: 5px; min-width: 160px; }
.admin-product-mini img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.admin-product-mini span { color: #6b7280; font-size: 12px; }
.product-edit-form { min-width: 320px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn, button { border: 1px solid var(--brand-strong); background: var(--brand); color: #111827; border-radius: 6px; padding: 10px 14px; cursor: pointer; font-size: 14px; min-height: 40px; font-weight: 650; }
.btn.secondary, button.secondary { background: #fff; color: #92400e; }
.btn.danger, button.danger { background: #b91c1c; border-color: #b91c1c; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 11px 10px; font: inherit; background: #fff; min-height: 42px; }
input[type=checkbox] { width: auto; min-height: 0; padding: 0; }
label { display: grid; gap: 6px; font-size: 14px; color: #374151; }
form { display: grid; gap: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
th { background: #f9fafb; font-weight: 650; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 9px 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03); }
.tab.active { border-color: var(--brand); color: #111827; background: #fbbf24; font-weight: 750; }
.category-tabs { overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 8px; }
.category-tabs .tab { white-space: nowrap; }
.notice { padding: 12px; border: 1px solid #bae6fd; background: #f0f9ff; border-radius: 8px; margin-bottom: 16px; }
.media-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-list img, .media-list video { max-width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.order-groups { display: grid; gap: 14px; }
.order-group h3 { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.order-group h3 span { min-width: 26px; height: 26px; border-radius: 999px; background: #f3f4f6; color: #374151; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: transparent; border-top: 0; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.bottom-bar-inner { width: 100%; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 24px; background: rgba(255,255,255,.9); border: 1px solid rgba(245,158,11,.26); box-shadow: 0 12px 34px rgba(15,23,42,.12); backdrop-filter: blur(16px); pointer-events: auto; overflow: hidden; }
.bottom-bar a { height: 58px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4b5563; border-radius: 16px; font-size: 12px; border: 1px solid transparent; margin: 0 1px; }
.bottom-bar a i { font-style: normal; font-size: 22px; line-height: 1; }
.bottom-bar a span { line-height: 1; }
.bottom-bar a.active { color: #111827; background: #fbbf24; border-color: #f59e0b; font-weight: 750; }
.bottom-bar, .bottom-bar * { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; }
.bottom-bar a, .bottom-bar a:hover, .bottom-bar a:active, .bottom-bar a:visited { -webkit-tap-highlight-color: rgba(0,0,0,0); text-decoration: none; }
.profile-page { max-width: 680px; margin: 0 auto; display: grid; gap: 18px; }
.profile-head { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 28px 18px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.profile-name { font-size: 18px; font-weight: 800; color: #111827; text-align: center; width: 100%; }
.avatar { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; background: #fef3c7; display: flex; align-items: center; justify-content: center; color: #b45309; font-size: 30px; font-weight: 800; border: 4px solid #fff; box-shadow: 0 0 0 1px #fcd34d, 0 5px 14px rgba(146,64,14,.12); flex: 0 0 82px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-card { background: rgba(255,255,255,.96); color: #111827; border-radius: 16px; padding: 30px 32px; display: grid; grid-template-columns: 92px 1fr; gap: 18px 22px; align-items: center; box-shadow: 0 10px 24px rgba(15,23,42,.08); border: 1px solid rgba(245,158,11,.16); }
.profile-hero-avatar { width: 92px; height: 92px; flex-basis: 92px; color: #b45309; background: #fff; border: 0; box-shadow: none; }
.profile-hero-info { display: grid; gap: 8px; }
.profile-hero-info strong { font-size: 26px; line-height: 1.1; color: #111827; }
.profile-hero-info span { font-size: 16px; color: rgba(17,24,39,.72); }
.profile-hero-stats { grid-column: 1 / -1; border-top: 1px solid rgba(17,24,39,.12); padding-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 120px)); gap: 32px; }
.profile-hero-stats div { display: grid; gap: 8px; }
.profile-hero-stats b { font-size: 30px; line-height: 1; color: #111827; }
.profile-hero-stats span { color: rgba(17,24,39,.72); font-size: 14px; }
.guest-login-card { grid-template-columns: 92px 1fr 28px; color: #111827; text-decoration: none; }
.guest-avatar { background: #e5e7eb; box-shadow: inset 0 0 0 1px #d1d5db; border: 0; }
.guest-avatar::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: #c5cad3; box-shadow: 0 36px 0 10px #c5cad3; transform: translateY(-12px); }
.guest-login-arrow { justify-self: end; color: #9ca3af; font-style: normal; font-size: 34px; line-height: 1; }
.guest-profile-page .profile-card { opacity: .92; }
.profile-card { background: rgba(255,255,255,.94); border: 1px solid rgba(226,232,240,.9); border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.profile-card h2 { margin: 0 0 20px; padding-left: 12px; border-left: 5px solid #f59e0b; font-size: 22px; line-height: 1.25; color: #111827; }
.status-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.status-buttons a { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 4px; display: grid; gap: 4px; text-align: center; color: #374151; min-width: 0; }
.status-buttons a i { width: 34px; height: 34px; border-radius: 999px; background: #f3f4f6; display: grid; place-items: center; justify-self: center; font-style: normal; font-size: 18px; }
.status-buttons a strong { font-size: 18px; color: #111827; line-height: 1; }
.status-buttons a span { font-size: 12px; white-space: nowrap; }
.status-buttons a.active { border-color: rgba(245,158,11,.42); background: #fff8e1; }
.status-buttons a.active i { background: #fff; }
.profile-order-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.profile-order-icons a { border: 0; box-shadow: none; background: transparent; padding: 2px; gap: 8px; }
.profile-order-icons a i { width: 44px; height: 44px; background: #f3f4f6; color: #6b7280; font-size: 24px; }
.profile-order-icons a span { font-size: 14px; color: #4b5563; }
.profile-order-icons a strong { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ffecb3; color: #b45309; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; justify-self: center; }
.profile-order-icons a.active { background: transparent; border-color: transparent; }
.compact-running-orders { gap: 10px; }
.order-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.order-action-row .btn, .order-action-row button { width: 100%; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.chat-page { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.chat-header-card { background: rgba(255,255,255,.96); border: 1px solid rgba(245,158,11,.18); border-radius: 14px; padding: 14px; display: grid; gap: 6px; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.chat-header-card strong { font-size: 18px; color: #111827; }
.chat-header-card span, .chat-header-card em { color: #6b7280; font-style: normal; font-size: 13px; }
.chat-box { min-height: 360px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; display: grid; align-content: start; gap: 10px; }
.chat-bubble { max-width: 82%; display: grid; gap: 4px; }
.chat-bubble span { color: #9ca3af; font-size: 12px; }
.chat-bubble p { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f3f4f6; color: #111827; line-height: 1.55; word-break: break-word; }
.chat-bubble em { color: #9ca3af; font-size: 11px; font-style: normal; }
.chat-bubble.mine { justify-self: end; text-align: right; }
.chat-bubble.mine p { background: #fbbf24; }
.chat-form { position: sticky; bottom: 86px; background: rgba(255,255,255,.94); border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.order-message-list { display: grid; gap: 12px; }
.order-message-card { min-height: 76px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.94); color: #111827; box-shadow: 0 10px 24px rgba(15,23,42,.06); border: 1px solid rgba(245,158,11,.12); }
.order-message-card i { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff4c4; color: #b45309; font-style: normal; }
.order-message-card strong { min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-message-card span { min-width: 0; color: #6b7280; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-message-card em { grid-column: 3; grid-row: 1 / span 2; color: #9ca3af; font-size: 12px; font-style: normal; white-space: nowrap; }
.order-message-card.muted-card { opacity: .76; }
.template-miniapp .order-message-list,
.template-companion .order-message-list { display: grid; gap: 12px; width: 100%; align-self: start; }
.template-miniapp .order-message-card,
.template-companion .order-message-card { min-height: 78px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.95); color: #111827; text-decoration: none; box-shadow: 0 10px 24px rgba(15,23,42,.07); border: 1px solid rgba(245,158,11,.14); }
.template-miniapp .order-message-card i,
.template-companion .order-message-card i { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff4c4; color: #b45309; font-style: normal; font-size: 22px; }
.template-miniapp .order-message-card strong,
.template-companion .order-message-card strong { min-width: 0; color: #111827; font-size: 16px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-miniapp .order-message-card span,
.template-companion .order-message-card span { min-width: 0; color: #6b7280; font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-miniapp .order-message-card em,
.template-companion .order-message-card em { grid-column: 3; grid-row: 1 / span 2; color: #9ca3af; font-size: 12px; font-style: normal; white-space: nowrap; }
.template-miniapp .order-message-card.muted-card,
.template-companion .order-message-card.muted-card { opacity: 1; background: #fffdf5; }
.profile-order-icons a.active i { background: #fff3cd; color: #b45309; }
.profile-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.profile-tools a, .profile-tools button { appearance: none; width: 100%; min-height: 82px; border: 0; background: transparent; color: #4b5563; padding: 0; display: grid; justify-items: center; gap: 7px; text-align: center; box-shadow: none; }
.profile-tools i { width: 54px; height: 54px; border-radius: 12px; background: #fff8e1; color: #b45309; display: grid; place-items: center; font-style: normal; font-size: 26px; box-shadow: 0 10px 20px rgba(146,64,14,.08); }
.profile-tools span { font-size: 14px; color: #4b5563; }
.profile-tools em { display: none; }
.profile-tools .profile-tool-danger i { color: #b91c1c; background: #fff1f2; }
.worker-entry { display: flex; align-items: center; gap: 12px; background: #f59e0b; color: #111827; border-radius: 8px; padding: 15px 16px; font-weight: 750; box-shadow: 0 8px 18px rgba(146,64,14,.16); }
.worker-entry-icon { width: 42px; height: 42px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.worker-entry span:last-child { display: grid; gap: 2px; }
.worker-entry strong { color: #111827; }
.worker-entry em { color: rgba(17,24,39,.72); font-size: 12px; font-style: normal; font-weight: 500; }
.profile-action-link, .logout-link { display: block; text-align: center; background: #fff; border-radius: 8px; padding: 13px; font-family: inherit; font-size: 16px; line-height: 1.25; font-weight: 650; width: 100%; min-height: 48px; cursor: pointer; }
.profile-action-link { color: #92400e; border: 1px solid var(--brand-border); }
.logout-link { color: #b91c1c; border: 1px solid #fee2e2; }
button.profile-action-link { appearance: none; }
.worker-apply-panel { scroll-margin-top: 86px; }
.worker-picker-page { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.picker-title { margin: 2px 0 0; font-size: 22px; color: #111827; }
.worker-pick-list { display: grid; gap: 10px; }
.worker-pick-card, .worker-detail-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; color: #111827; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.worker-pick-card strong { display: block; font-size: 16px; margin-bottom: 5px; }
.worker-pick-card p, .worker-detail-card p { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.55; }
.worker-pick-avatar { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #fef3c7; display: grid; place-items: center; color: #b45309; font-weight: 800; font-size: 22px; border: 1px solid #fcd34d; }
.worker-pick-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.worker-detail-card { grid-template-columns: 72px 1fr; align-items: start; }
.worker-detail-card .worker-pick-avatar { width: 72px; height: 72px; font-size: 26px; }
.worker-detail-card h1 { margin: 2px 0 8px; font-size: 22px; color: #111827; }
.login-page { min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.login-page h1 { margin: 0; font-size: 28px; color: #111827; }
.wechat-login-button { width: min(320px, 100%); display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 750; box-shadow: 0 6px 14px rgba(22, 163, 74, .16); }
.worker-wrap { max-width: 760px; }
.worker-body { background: #f5f6fa; }
.worker-body::before { display: none; }
.worker-body .topbar { display: none; }
.worker-dashboard-hero { min-height: 230px; margin: -24px -24px 78px; padding: 18px 24px 34px; border-radius: 0 0 22px 22px; background: #fbbf24; color: #111827; position: relative; box-shadow: 0 14px 30px rgba(146,64,14,.16); }
.worker-hero-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 48px; }
.worker-hero-actions a { min-height: 40px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.62); color: #111827; font-weight: 750; box-shadow: 0 8px 18px rgba(146,64,14,.08); }
.worker-profile-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; }
.worker-dashboard-avatar { width: 78px; height: 78px; border-radius: 18px; overflow: hidden; background: #fff8e1; display: grid; place-items: center; color: #b45309; font-size: 28px; font-weight: 850; border: 4px solid rgba(255,255,255,.88); box-shadow: 0 12px 24px rgba(146,64,14,.14); }
.worker-dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.worker-dashboard-name { display: grid; gap: 8px; min-width: 0; }
.worker-dashboard-name strong { font-size: 27px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-dashboard-name span { color: rgba(17,24,39,.65); font-size: 14px; }
.worker-balance-pill { justify-self: end; border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,.64); color: #92400e; font-weight: 850; white-space: nowrap; }
.worker-dashboard-card { position: relative; z-index: 1; background: rgba(255,255,255,.98); border: 1px solid rgba(245,158,11,.14); border-radius: 18px; padding: 20px; display: grid; gap: 16px; margin-bottom: 16px; box-shadow: 0 14px 30px rgba(15,23,42,.08); }
.worker-dashboard-hero + .worker-dashboard-card { margin-top: -118px; }
.worker-dashboard-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; color: #111827; }
.worker-dashboard-card h2 span { width: 6px; height: 28px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 0 4px #fee2e2; }
.worker-stat-grid, .worker-money-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.worker-stat-grid div, .worker-stat-grid a, .worker-money-grid div { min-height: 82px; border: 1px solid #eef2f7; border-radius: 14px; background: #fbfdff; display: grid; place-items: center; gap: 6px; padding: 12px 8px; color: #111827; box-shadow: inset 0 0 0 1px rgba(15,23,42,.02); }
.worker-stat-grid strong, .worker-money-grid strong { font-size: 30px; line-height: 1; color: #111827; }
.worker-money-grid strong { font-size: 22px; }
.worker-stat-grid span, .worker-money-grid span { color: #6b7280; font-size: 14px; }
.worker-hall-card .worker-stat-grid a:last-child strong { color: #b45309; }
.worker-fine-form { margin-top: -4px; }
.worker-notice-card p { margin: 0; border: 1px solid #eef2f7; border-radius: 14px; padding: 16px; color: #6b7280; background: #fbfdff; }
.worker-section-title { margin: 20px 0 12px; font-size: 20px; color: #111827; }
.worker-body .worker-page-head { margin: -24px -24px 18px; padding: 22px 24px 28px; border-radius: 0 0 20px 20px; background: #ef4444; color: #fff; box-shadow: 0 14px 30px rgba(185,28,28,.16); }
.worker-body .worker-page-head .back-link { color: rgba(255,255,255,.92); margin-bottom: 14px; }
.worker-body .worker-page-head h1 { color: #fff; font-size: 26px; }
.worker-body .worker-page-head p { color: rgba(255,255,255,.86); }
.worker-body .worker-order-card { border-radius: 14px; border-color: rgba(245,158,11,.18); box-shadow: 0 10px 24px rgba(15,23,42,.06); }
.worker-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.worker-hero > div { border: 1px solid #dbe2ea; border-radius: 8px; padding: 18px; display: grid; justify-items: center; gap: 7px; background: #f8fafc; }
.worker-hero > div span { color: #6b7280; font-size: 14px; }
.worker-hero > div strong { font-size: 32px; color: #111827; line-height: 1; }
.worker-hero > div em { font-style: normal; color: #374151; font-weight: 650; }
.worker-hero > a { display: flex; align-items: center; gap: 12px; background: #f59e0b; color: #111827; border-radius: 8px; padding: 16px; }
.worker-hero > a i { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-style: normal; font-size: 22px; flex: 0 0 auto; }
.worker-hero > a span { display: grid; gap: 3px; }
.worker-hero > a strong { color: #111827; font-size: 16px; }
.worker-hero > a em { color: rgba(17,24,39,.72); font-style: normal; font-size: 12px; }
.worker-page-head { display: grid; gap: 6px; margin-bottom: 14px; }
.worker-page-head h1 { margin: 0; font-size: 22px; color: #111827; }
.worker-page-head p { margin: 0; color: #6b7280; }
.worker-status-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.worker-status-panel div { display: grid; gap: 4px; }
.worker-status-panel span { color: #6b7280; font-size: 12px; }
.worker-status-panel strong { color: #111827; font-size: 18px; }
.worker-order-list { display: grid; gap: 10px; }
.worker-order-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 13px; display: grid; gap: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.worker-order-card > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.worker-order-card strong { color: #111827; line-height: 1.35; }
.worker-order-card > div:first-child span { color: #6b7280; font-size: 12px; word-break: break-all; text-align: right; }
.worker-order-money, .worker-order-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.worker-order-money span, .worker-order-meta span { color: #6b7280; }
.worker-order-money em { color: #b45309; font-style: normal; font-weight: 800; }
.worker-order-meta em { color: #374151; font-style: normal; text-align: right; word-break: break-all; }
.balance-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.balance-hole { border: 1px solid #dbe2ea; border-radius: 8px; padding: 18px; display: grid; justify-items: center; gap: 6px; background: #f8fafc; }
.balance-hole span { color: #6b7280; font-size: 14px; }
.balance-hole strong { font-size: 30px; color: #111827; }
.withdraw-box { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; background: #fff; }
.file-card { border: 1px dashed #9ca3af; border-radius: 8px; padding: 14px; background: #f9fafb; cursor: pointer; }
.file-card input[type=file] { display: none; }
.file-card span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 6px; border: 1px solid var(--brand); color: #92400e; background: #fff; font-weight: 650; }
.file-card em { display: block; margin-top: 8px; color: #6b7280; font-size: 12px; font-style: normal; }
.dashboard-welcome { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; border-color: rgba(245,158,11,.24); background: #fffdf7; }
.dashboard-welcome h2 { margin-bottom: 8px; color: #111827; }
.dashboard-clock { min-width: 210px; border-radius: 12px; padding: 14px 16px; background: #fff; border: 1px solid rgba(245,158,11,.22); color: #92400e; font-size: 18px; font-weight: 850; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.dashboard-quote { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(245,158,11,.18); }
.dashboard-quote strong { color: #374151; }
.dashboard-quote p { margin: 0; color: #6b7280; line-height: 1.7; }
.dashboard-quote button { justify-self: start; min-height: 34px; padding: 7px 14px; }
.mobile-order-list { display: grid; gap: 10px; }
.mobile-order-card { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 12px; display: grid; gap: 9px; }
.mobile-order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mobile-order-head strong { font-size: 15px; color: #111827; line-height: 1.35; }
.mobile-order-head span { color: #b45309; font-weight: 800; white-space: nowrap; }
.orders-page { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.order-status-tabs { margin-bottom: 0; }
.order-status-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }
.order-status-tabs .tab b { font-weight: 800; color: #b45309; }
.page-transition { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(255, 247, 214, .72); opacity: 0; pointer-events: none; transition: opacity .16s ease; backdrop-filter: blur(4px); }
.page-transition span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(245,158,11,.28); border-top-color: #d97706; animation: spin .75s linear infinite; }
body.page-leaving .page-transition { opacity: 1; pointer-events: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-order-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.mobile-order-meta span { color: #6b7280; flex: 0 0 auto; }
.mobile-order-meta em { color: #374151; font-style: normal; text-align: right; word-break: break-all; }
.modal-mask { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.36); display: grid; place-items: center; padding: 18px; }
.modal-mask[hidden] { display: none; }
.modal-box { width: min(420px, 100%); background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; padding: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.18); }
.modal-box h3 { margin-top: 0; }
.entry-notice-box { width: min(420px, calc(100vw - 32px)); max-height: min(76vh, 560px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 14px; }
.entry-notice-text { min-height: 120px; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; color: #374151; font-size: 14px; line-height: 1.7; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.entry-notice-box button { width: 100%; }
#entryNoticeModal { opacity: 0; background: rgba(15,23,42,0); }
#entryNoticeModal.is-visible { opacity: 1; background: rgba(15,23,42,.22); transition: opacity .24s ease, background .24s ease; }
#entryNoticeModal.is-closing { opacity: 0; background: rgba(15,23,42,0); transition: opacity .18s ease, background .18s ease; }
#entryNoticeModal .entry-notice-box { transform: translateY(8px) scale(.99); opacity: 0; transition: transform .24s ease, opacity .22s ease; }
#entryNoticeModal.is-visible .entry-notice-box { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
#entryNoticeModal.is-closing .entry-notice-box { transform: translateY(4px) scale(.996); opacity: 0; }
.admin-product-panel > form { display: none; }
.admin-product-panel > table { display: none; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-section-head h2 { margin: 0; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.admin-product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(15,23,42,.06); display: grid; }
.admin-product-thumb { aspect-ratio: 1 / 1; background: #f3f4f6; display: grid; place-items: center; color: #9ca3af; overflow: hidden; font-weight: 800; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-product-card-body { padding: 12px; display: grid; gap: 5px; }
.admin-product-card-body strong { font-size: 15px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-card-body span { color: #b45309; font-weight: 900; }
.admin-product-card-body em { color: #6b7280; font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.admin-product-actions form { margin: 0; }
.admin-product-actions button { width: 100%; }
.admin-form-modal .modal-box { max-height: min(86vh, 720px); overflow: auto; }
.admin-product-modal form { display: grid; gap: 10px; }
.welcome-locked { overflow: hidden; }
.welcome-gate { position: fixed; inset: 0; z-index: 120; min-height: 100dvh; padding: 8vh 24px 28px; background: linear-gradient(180deg,#eaf6ff 0%,#f7fbff 46%,#fff 100%); display: grid; grid-template-rows: auto 1fr auto auto; gap: 22px; justify-items: center; animation: welcomeIn .22s ease both; }
.welcome-gate[hidden] { display: none; }
.welcome-gate.is-closing { animation: welcomeOut .2s ease both; }
.welcome-brand { display: grid; justify-items: center; gap: 26px; align-self: start; }
.welcome-brand img { width: 164px; height: 164px; border-radius: 34px; object-fit: cover; border: 12px solid #fff; box-shadow: 0 18px 44px rgba(15,23,42,.16); background: #111827; }
.welcome-brand h1 { margin: 0; font-size: clamp(34px, 8vw, 54px); line-height: 1.1; letter-spacing: 0; color: #111827; font-weight: 950; text-align: center; }
.welcome-confirm { align-self: end; width: min(720px,100%); background: rgba(255,255,255,.96); border: 1px solid #eef2f7; border-radius: 18px; padding: 22px 24px; box-shadow: 0 14px 34px rgba(15,23,42,.06); color: #4b5563; }
.welcome-confirm p { margin: 0 0 12px; color: #b4535b; font-weight: 800; }
.welcome-confirm ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.welcome-confirm li { line-height: 1.6; }
.welcome-confirm li::before { content: "* "; color: #b4535b; font-weight: 900; }
.welcome-link { width: auto; border: 0; background: transparent; color: #0f766e; text-decoration: underline; padding: 0 2px; min-height: 0; font: inherit; font-weight: 800; }
.welcome-check { width: min(720px,100%); display: flex; align-items: center; gap: 10px; color: #6b7280; font-size: 16px; }
.welcome-check input { width: 28px; height: 28px; flex: 0 0 auto; }
.welcome-start { width: min(720px,100%); height: 58px; border-radius: 16px; font-size: 20px; font-weight: 900; }
.welcome-start:disabled { background: #f3f4f6; color: #c4c9d2; box-shadow: none; cursor: not-allowed; }
.legal-modal .modal-box { width: min(720px, calc(100vw - 28px)); max-height: 82vh; overflow: auto; }
.legal-modal pre { white-space: pre-wrap; word-break: break-word; font: inherit; color: #374151; line-height: 1.75; margin: 0 0 16px; }
@keyframes welcomeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeOut { from { opacity: 1; } to { opacity: 0; } }
.template-miniapp { background: #f5f6fa; color: #151515; }
.template-miniapp::before { background: linear-gradient(180deg, rgba(255,238,167,.78), rgba(247,248,252,.94) 330px, rgba(247,248,252,.96)); }
.template-miniapp .wrap { max-width: 540px; padding: 14px 14px 108px; }
.template-miniapp .order-shell, .template-miniapp .profile-page, .template-miniapp .worker-picker-page, .template-miniapp .orders-page { max-width: none; }
.template-miniapp .miniapp-search-row { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; margin-bottom: 14px; }
.template-miniapp .search-form input { min-height: 64px; border: 0; border-radius: 999px; background: rgba(255,255,255,.86); padding-left: 26px; box-shadow: 0 14px 26px rgba(146,64,14,.08); font-size: 16px; }
.template-miniapp .miniapp-service { height: 64px; border-radius: 999px; background: rgba(255,255,255,.86); color: #6b7280; display: grid; place-items: center; font-size: 29px; box-shadow: 0 14px 26px rgba(146,64,14,.08); }
.template-miniapp .carousel { border: 0; border-radius: 14px; aspect-ratio: 16 / 8.3; box-shadow: 0 12px 26px rgba(15,23,42,.08); margin-bottom: 12px; }
.template-miniapp .miniapp-announcement { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #8b6f40; background: rgba(255,255,255,.78); border-radius: 14px; font-size: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(146,64,14,.05); }
.template-miniapp .miniapp-announcement span { color: #d97706; flex: 0 0 auto; }
.announcement-track { min-width: 0; display: flex; gap: 48px; overflow: hidden; white-space: nowrap; }
.announcement-track em { flex: 0 0 auto; font-style: normal; animation: announcementScroll 16s linear infinite; }
@keyframes announcementScroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 48px)); } }
.template-miniapp .miniapp-rank-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.template-miniapp .miniapp-rank-row a { min-height: 86px; position: relative; overflow: hidden; border-radius: 10px; background: #f8cf4f; color: #111; display: grid; place-items: end center; padding: 0 10px 10px; font-size: 16px; font-weight: 800; box-shadow: 0 10px 22px rgba(146,64,14,.08); }
.template-miniapp .miniapp-rank-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.template-miniapp .miniapp-rank-row span { position: relative; z-index: 1; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.82); color: #111; }
.template-miniapp .miniapp-rank-page { display: grid; gap: 18px; padding: 18px 4px 24px; }
.template-miniapp .miniapp-rank-page h1 { margin: 0; font-size: 26px; color: #111827; font-weight: 900; }
.template-miniapp .miniapp-rank-list { display: grid; gap: 16px; }
.template-miniapp .miniapp-rank-card { min-height: 104px; display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.template-miniapp .miniapp-rank-main { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 14px; color: #111827; }
.template-miniapp .miniapp-rank-thumb { width: 64px; height: 64px; border-radius: 999px; overflow: hidden; background: #f3c04d; display: grid; place-items: center; color: #9a6a00; font-size: 12px; font-weight: 800; }
.template-miniapp .miniapp-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.template-miniapp .miniapp-rank-info { min-width: 0; display: grid; gap: 10px; }
.template-miniapp .miniapp-rank-info strong { font-size: 20px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-miniapp .miniapp-rank-progress { height: 10px; border-radius: 999px; background: #e8e8e8; overflow: hidden; }
.template-miniapp .miniapp-rank-progress i { height: 100%; display: block; border-radius: inherit; background: #f0b739; }
.template-miniapp .miniapp-rank-actions { display: grid; gap: 8px; }
.template-miniapp .miniapp-rank-actions a { min-height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; font-weight: 850; }
.template-miniapp .rank-order { background: #050505; color: #fff; }
.template-miniapp .rank-review { background: #f5f5f5; color: #666; border: 1px solid #ddd; }
.template-miniapp .category-tabs { gap: 12px; padding: 4px 0 14px; margin: 0; }
.template-miniapp .category-tabs .tab { min-height: 50px; border-radius: 999px; border: 0; padding: 15px 20px; background: rgba(255,255,255,.86); color: #9ca3af; box-shadow: 0 10px 20px rgba(15,23,42,.06); }
.template-miniapp .category-tabs .tab.active { background: #090909; color: #fff; }
.template-miniapp .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.template-miniapp .product-card { border: 0; border-radius: 10px; box-shadow: 0 12px 24px rgba(15,23,42,.12); background: #fff; }
.template-miniapp .product-card-image { aspect-ratio: 1 / 1; border-radius: 0; background: #f6d079; }
.template-miniapp .product-card-body { min-height: 82px; padding: 12px 12px 14px; background: #fff; gap: 5px; }
.template-miniapp .product-card-body strong { font-size: 18px; color: #0f172a; }
.template-miniapp .product-card-body em { display: none; }
.template-miniapp .product-card-body span { font-size: 18px; color: #d97706; }
.template-miniapp .miniapp-category-page { display: grid; gap: 18px; }
.template-miniapp .miniapp-category-page h1 { margin: 12px 4px 4px; font-size: 24px; }
.template-miniapp .miniapp-segment { min-height: 74px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: rgba(255,255,255,.78); border-radius: 16px; box-shadow: 0 12px 26px rgba(146,64,14,.06); }
.template-miniapp .miniapp-segment a { display: grid; place-items: center; border-radius: 12px; color: #9ca3af; font-size: 17px; }
.template-miniapp .miniapp-segment a.active { background: #050505; color: #fff; }
.template-miniapp .miniapp-category-card, .template-miniapp .miniapp-message-card { background: rgba(255,255,255,.9); border-radius: 16px; padding: 22px 18px; box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.template-miniapp .miniapp-category-card h2 { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; font-size: 22px; }
.template-miniapp .miniapp-category-products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 18px; }
.template-miniapp .miniapp-category-products a { min-width: 0; display: grid; justify-items: center; gap: 8px; color: #333; }
.template-miniapp .miniapp-category-products img, .template-miniapp .miniapp-category-products span { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #f8d46c; display: grid; place-items: center; color: #9a6a00; font-size: 12px; }
.template-miniapp .miniapp-category-products em { width: 100%; font-style: normal; font-size: 15px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-miniapp .miniapp-message-page { display: grid; gap: 18px; }
.template-miniapp .miniapp-message-card { display: grid; gap: 28px; }
.template-miniapp .miniapp-message-card a, .template-miniapp .miniapp-message-card div { min-height: 74px; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; color: #111; }
.template-miniapp .miniapp-message-card i { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #f7c948; font-style: normal; font-size: 24px; }
.template-miniapp .miniapp-message-card strong { font-size: 20px; }
.template-miniapp .miniapp-message-card span { color: #333; }
.template-miniapp .miniapp-message-card em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; color: #222; }
.template-miniapp .miniapp-message-card .service-disabled { cursor: default; opacity: .68; }
.template-miniapp .profile-page { gap: 14px; }
.template-miniapp .profile-hero-card, .template-miniapp .profile-card { border: 0; border-radius: 18px; box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.template-miniapp .profile-hero-card { background: transparent; box-shadow: none; padding: 22px 8px 10px; grid-template-columns: 82px 1fr; justify-items: stretch; text-align: left; gap: 12px 16px; }
.template-miniapp .guest-login-card { grid-template-columns: 82px 1fr 28px; background: rgba(255,255,255,.78); border-radius: 18px; padding: 18px; box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.template-miniapp .profile-hero-avatar { width: 82px; height: 82px; background: #fff; border: 3px solid rgba(255,255,255,.82); overflow: hidden; }
.template-miniapp .guest-avatar { background: #e5e7eb; border: 0; }
.template-miniapp .profile-hero-info strong { font-size: 24px; }
.template-miniapp .profile-hero-stats { display: none; }
.template-miniapp .profile-card { background: rgba(255,255,255,.92); padding: 20px 18px; }
.template-miniapp .profile-card h2 { border-left: 0; padding-left: 0; font-size: 20px; }
.template-miniapp .profile-order-icons { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.template-miniapp .profile-tools { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px 14px; }
.template-miniapp .profile-tools a, .template-miniapp .profile-tools button { min-height: 84px; background: transparent; border: 0; padding: 0; }
.template-miniapp .profile-tools i { width: 42px; height: 42px; border-radius: 12px; background: transparent; color: #666; box-shadow: none; font-size: 27px; }
.template-miniapp .profile-tools span { font-size: 16px; color: #666; line-height: 1.25; }
.template-miniapp .bottom-bar-inner { max-width: 500px; grid-template-columns: repeat(4, minmax(0,1fr)); border: 0; border-radius: 28px; padding: 8px 10px; background: rgba(255,255,255,.82); box-shadow: 0 14px 32px rgba(15,23,42,.12); }
.template-miniapp .bottom-bar a { height: 62px; color: #6b7280; font-size: 13px; }
.template-miniapp .bottom-bar a i { font-size: 24px; }
.template-miniapp .bottom-bar a.active { background: transparent; border-color: transparent; color: #d99b18; }
.template-companion { background: #eef2ff; color: #121212; }
.template-companion::before { background: linear-gradient(180deg, #fff 0, #fff 112px, #eef4ff 112px, #eef4ff 100%); }
.template-companion .wrap { max-width: 640px; padding: 0 0 108px; }
.template-companion .companion-page { min-height: calc(100vh - 108px); background: #eef4ff; }
.template-companion .companion-page-title { min-height: 112px; padding: 34px 28px 18px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; background: #fff; color: #111827; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: 0; }
.template-companion .companion-page-title > span { grid-column: 2; }
.template-companion .companion-page-title > a { color: #111827; font-size: 50px; line-height: 1; justify-self: start; font-weight: 400; }
.template-companion .companion-page-title > em { color: #6b7280; font-style: normal; justify-self: end; font-size: 24px; letter-spacing: 3px; }
.template-companion .companion-hero-placeholder { height: 262px; border-radius: 30px; background: #17213f; box-shadow: 0 12px 28px rgba(15,23,42,.08); margin-bottom: 12px; }
.template-companion .companion-speaker { min-height: 34px; display: flex; align-items: center; gap: 8px; color: #8b6f40; margin: 8px 12px 14px; overflow: hidden; }
.template-companion .companion-speaker span { color: #f7c948; flex: 0 0 auto; }
.template-companion .announcement-track { min-width: 0; }
.template-companion .companion-recommend-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; font-size: 22px; font-weight: 800; color: #111827; }
.template-companion .miniapp-search-row { display: none; }
.template-companion .miniapp-announcement, .template-companion .miniapp-rank-row { display: none; }
.template-companion .category-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 12px; overflow-x: auto; padding: 10px 4px 14px; margin: 0; }
.template-companion .category-tabs .tab { min-height: 38px; padding: 10px 22px; border-radius: 999px; background: #eef2ff; color: #9ca3af; border: 0; box-shadow: none; }
.template-companion .category-tabs .tab.active { background: #ffd84d; color: #111; }
.template-companion .product-grid { grid-template-columns: 1fr; gap: 14px; }
.template-companion .product-card { grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px; border: 0; border-radius: 18px; padding: 14px; box-shadow: 0 10px 22px rgba(15,23,42,.06); }
.template-companion .product-card-image { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 50%; overflow: hidden; }
.template-companion .product-card-body { min-height: 0; padding: 0; background: transparent; border-top: 0; gap: 6px; }
.template-companion .product-card-body strong { font-size: 18px; }
.template-companion .product-card-body em { display: none; }
.template-companion .product-card-body span { font-size: 16px; color: #ef4444; }
.template-companion .product-card::after { content: "立即点单"; white-space: nowrap; align-self: center; justify-self: end; background: #090909; color: #fff; border-radius: 16px; padding: 11px 14px; font-size: 14px; font-weight: 750; }
.template-companion .miniapp-category-page, .template-companion .miniapp-message-page { display: none; }
.template-companion .companion-category-page { min-height: calc(100vh - 220px); display: grid; grid-template-columns: 28% 72%; background: #fff; }
.template-companion .companion-category-page aside { min-height: calc(100vh - 220px); padding-top: 14px; display: grid; align-content: start; gap: 0; background: #fff; }
.template-companion .companion-category-page aside a { min-height: 58px; border-radius: 0; background: transparent; color: #8b95a6; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.template-companion .companion-category-page aside a.active { background: #eef4ff; color: #111827; }
.template-companion .companion-empty { min-height: calc(100vh - 220px); background: #eef4ff; display: grid; place-content: center; justify-items: center; color: #a6b0c0; gap: 14px; font-size: 20px; font-weight: 800; }
.template-companion .companion-empty strong { font-size: 46px; color: #aeb7c7; line-height: 1; }
.template-companion .companion-message-page { min-height: calc(100vh - 220px); padding: 76px 24px 0; display: grid; background: #eef4ff; }
.template-companion .companion-message-card { min-height: 520px; border-radius: 34px; background: rgba(255,255,255,.96); box-shadow: 0 20px 44px rgba(15,23,42,.06); display: grid; place-items: center; color: #9ca3af; font-size: 20px; font-weight: 800; }
.template-companion .profile-page { gap: 18px; padding: 0 20px 20px; background: #eef4ff; }
.template-companion .profile-hero-card, .template-companion .profile-card { border: 0; border-radius: 28px; box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.template-companion .profile-hero-card { margin: 0 -20px 52px; min-height: 260px; border-radius: 0 0 38px 38px; background: #16203d; color: #fff; padding: 54px 28px 92px; grid-template-columns: 92px 1fr auto; }
.template-companion .profile-hero-avatar { width: 92px; height: 92px; background: rgba(255,255,255,.2); border: 0; color: #fff; }
.template-companion .profile-hero-info strong { color: #fff; font-size: 24px; }
.template-companion .profile-hero-info span { color: rgba(255,255,255,.72); }
.template-companion .profile-card { background: rgba(255,255,255,.96); padding: 24px 20px; border-radius: 28px; }
.template-companion .profile-hero-card + .profile-card { margin-top: -84px; }
.template-companion .profile-card h2 { font-size: 20px; padding-left: 0; border-left: 0; }
.template-companion .companion-member-card { margin-top: -84px; display: grid; gap: 18px; padding: 22px 20px 26px; }
.template-companion .companion-member-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.template-companion .companion-member-badge { color: #111827; font-size: 22px; font-weight: 900; }
.template-companion .companion-member-row button { width: auto; min-width: 118px; border-radius: 999px; background: #ffd51f; color: #111; padding: 14px 22px; box-shadow: 0 10px 18px rgba(245,158,11,.22); }
.template-companion .companion-balance-row { min-height: 138px; padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 30px; background: #ffd51f; color: #111; }
.template-companion .companion-balance-row span { display: block; margin-bottom: 10px; color: rgba(17,24,39,.82); font-weight: 800; }
.template-companion .companion-balance-row strong { font-size: 44px; line-height: 1; }
.template-companion .companion-balance-row a { min-width: 96px; min-height: 56px; border-radius: 999px; background: #080808; color: #ffd51f; display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.template-companion .companion-order-card { padding: 28px 28px 32px; }
.template-companion .companion-order-card h2 { margin-bottom: 26px; font-size: 28px; }
.template-companion .companion-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 22px; }
.template-companion .companion-order-grid a { display: grid; justify-items: center; gap: 8px; color: #8b95a6; font-size: 17px; font-weight: 750; }
.template-companion .companion-order-grid b { color: #e5be17; font-size: 34px; line-height: 1; }
.template-companion .bottom-bar-inner { max-width: 540px; grid-template-columns: repeat(4, minmax(0,1fr)); border: 0; border-radius: 28px; padding: 8px 10px; background: rgba(255,255,255,.92); box-shadow: 0 14px 32px rgba(15,23,42,.12); }
.template-companion .bottom-bar a { height: 62px; color: #9ca3af; font-size: 13px; }
.template-companion .bottom-bar a i { font-size: 24px; }
.template-companion .bottom-bar a.active { background: transparent; border-color: transparent; color: #f5c842; }
.template-miniapp .bottom-bar a i.nav-ico, .template-companion .bottom-bar a i.nav-ico { width: 26px; height: 26px; position: relative; display: block; font-size: 0; }
.nav-home::before { content: ""; position: absolute; inset: 7px 5px 4px; border: 3px solid currentColor; border-top: 0; border-radius: 2px; }
.nav-home::after { content: ""; position: absolute; left: 5px; right: 5px; top: 3px; height: 16px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; transform: rotate(45deg); border-radius: 2px 0 0 0; }
.nav-grid::before { content: ""; position: absolute; inset: 3px; background: currentColor; border-radius: 2px; box-shadow: 12px 0 currentColor, 0 12px currentColor, 12px 12px currentColor; width: 8px; height: 8px; }
.nav-msg::before { content: ""; position: absolute; inset: 4px 3px 6px; border: 3px solid currentColor; border-radius: 3px; }
.nav-msg::after { content: ""; position: absolute; left: 8px; bottom: 3px; width: 8px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: skewX(-20deg); }
.nav-user::before { content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nav-user::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 10px; border: 3px solid currentColor; border-radius: 999px 999px 4px 4px; border-bottom: 0; }
.admin-body { background: #f5f6f8; }
.admin-body::before { display: none; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #1f2937; color: #fff; z-index: 70; }
.admin-sidebar-title { min-height: 60px; display: flex; align-items: center; padding: 0 20px; font-size: 18px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-sidebar-nav { display: grid; padding: 10px 0; }
.admin-sidebar-nav a { color: #d1d5db; padding: 14px 20px; font-size: 14px; border-left: 3px solid transparent; }
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active { color: #111827; background: #fbbf24; border-left-color: #f59e0b; }
.admin-sidebar-nav .danger-link { color: #fecaca; }
html { scroll-behavior: smooth; }
.admin-content { min-width: 0; }
.admin-header { min-height: 60px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px; background: rgba(255,255,255,.92); border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 8px rgba(15,23,42,.06); backdrop-filter: blur(12px); }
.admin-menu-button { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; place-items: center; cursor: pointer; font-size: 20px; color: #111827; }
.admin-drawer-toggle { position: fixed; opacity: 0; pointer-events: none; }
.admin-drawer-mask { display: none; }
.admin-main { max-width: none; padding: 22px; padding-bottom: 40px; }
.admin-main h2 { scroll-margin-top: 76px; }
@media (max-width: 760px) {
  body { background-color: #f8fafc; }
  .topbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .home-searchbar { padding: 10px 12px; }
  .brand-row { justify-content: space-between; gap: 16px; }
  .brand { font-size: 18px; }
  .mainnav { background: #f3f4f6; border-radius: 10px; padding: 4px; border-left: 0; gap: 0; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-sep { width: 1px; height: 24px; min-height: 24px; background: #d1d5db; align-self: center; }
  .navlink { text-align: center; border-radius: 8px; }
  .navlink { padding: 7px 10px; }
  .navlink.active { background: #fff; }
  .nav { width: 100%; justify-content: space-between; font-size: 14px; }
  .wrap { padding: 12px; padding-bottom: 92px; }
  .bottom-bar { padding-left: 12px; padding-right: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .bottom-bar-inner { gap: 2px; border-radius: 20px; }
  .bottom-bar a { height: 54px; border-radius: 14px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .panel, .card, .order-box, .section-head { border-radius: 8px; padding: 14px; box-shadow: none; }
  .carousel { aspect-ratio: 16 / 8; box-shadow: none; }
  .product-grid { gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-card::before { display: none; content: none; }
  .product-card-body { min-height: 98px; padding: 13px 12px 15px; gap: 7px; }
  .product-card-body strong { font-size: 18px; }
  .product-card-body em { font-size: 13px; min-height: 18px; }
  .product-card-body span { font-size: 25px; }
  .dashboard-welcome { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-clock { width: 100%; min-width: 0; font-size: 16px; }
  .product-detail-body h1 { font-size: 20px; }
  .detail-price { font-size: 22px; }
  .checkout-card { border-radius: 14px; padding: 16px; }
  .checkout-card h2 { font-size: 20px; margin-bottom: 14px; }
  .checkout-product-row { grid-template-columns: 112px minmax(0,1fr); gap: 14px; }
  .checkout-product-thumb { width: 112px; }
  .checkout-product-info strong { font-size: 17px; }
  .checkout-product-info p { font-size: 14px; max-height: 64px; }
  .checkout-product-info b { font-size: 22px; }
  .checkout-option-grid { gap: 10px; }
  .checkout-radio span { min-height: 54px; padding: 0 12px; font-size: 16px; }
  .checkout-pay-card { grid-template-columns: 44px minmax(0,1fr); }
  .checkout-pay-card em { grid-column: 2; }
  .checkout-submit-bar { bottom: calc(102px + env(safe-area-inset-bottom)); padding: 0 14px; }
  .checkout-submit-bar button { height: 56px; font-size: 19px; }
  .order-shell { max-width: none; }
  .section-head h1 { font-size: 20px; }
  .tabs { position: sticky; top: 68px; z-index: 4; background: rgba(255,247,214,.9); padding: 8px 0; margin: 0 0 12px; border-bottom: 1px solid rgba(245,158,11,.18); backdrop-filter: blur(10px); }
  .tab { text-align: center; padding: 10px 12px; }
  .category-tabs { position: static; top: auto; z-index: 1; background: transparent; border-bottom: 0; padding: 2px 2px 8px; margin: 0 0 12px; backdrop-filter: none; border-radius: 0; }
  .category-tabs .tab { flex: 0 0 auto; }
  h2 { font-size: 18px; margin: 18px 0 10px; }
  h3 { font-size: 16px; margin: 16px 0 8px; }
  table { display: block; width: 100%; border: 0; background: transparent; font-size: 13px; }
  thead, table tbody, table tr, table td { display: block; width: 100%; }
  table tr:first-child { display: none; }
  table tr { margin: 0 0 12px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px rgba(15,23,42,.05); }
  table td { min-width: 0; display: grid; grid-template-columns: minmax(72px, .34fr) minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; white-space: normal; word-break: break-word; }
  table td:last-child { border-bottom: 0; }
  table td::before { content: "内容"; color: #6b7280; font-size: 12px; font-weight: 700; }
  table td form, table td .row, table td button, table td select, table td input, table td textarea { width: 100%; max-width: 100%; }
  table td form, table td .row { display: grid; gap: 8px; }
  table td form button, table td .row button { min-height: 42px; }
  table td:nth-child(1)::before { content: "ID/订单"; }
  table td:nth-child(2)::before { content: "名称/用户"; }
  table td:nth-child(3)::before { content: "信息"; }
  table td:nth-child(4)::before { content: "金额/排序"; }
  table td:nth-child(5)::before { content: "打手/状态"; }
  table td:nth-child(6)::before { content: "状态/余额"; }
  table td:nth-child(7)::before { content: "支付/罚款"; }
  table td:nth-child(8)::before { content: "区服/操作"; }
  table td:nth-child(9)::before { content: "操作"; }
  table td:nth-child(10)::before { content: "顾客ID"; }
  table td:nth-child(11)::before { content: "备注"; }
  table td:nth-child(12)::before { content: "换打手"; }
  table td:nth-child(13)::before { content: "退款"; }
  .invite-table td:nth-child(1)::before { content: "邀请码"; }
  .invite-table td:nth-child(2)::before { content: "限制游戏"; }
  .invite-table td:nth-child(3)::before { content: "状态"; }
  .worker-table td:nth-child(1)::before { content: "ID"; }
  .worker-table td:nth-child(2)::before { content: "姓名"; }
  .worker-table td:nth-child(3)::before { content: "昵称"; }
  .worker-table td:nth-child(4)::before { content: "限制游戏"; }
  .worker-table td:nth-child(5)::before { content: "状态"; }
  .worker-table td:nth-child(6)::before { content: "余额"; }
  .worker-table td:nth-child(7)::before { content: "未缴罚款"; }
  .worker-table td:nth-child(8)::before { content: "账号操作"; }
  .worker-table td:nth-child(9)::before { content: "罚款"; }
  .fine-table td:nth-child(1)::before { content: "罚款ID"; }
  .fine-table td:nth-child(2)::before { content: "打手"; }
  .fine-table td:nth-child(3)::before { content: "金额"; }
  .fine-table td:nth-child(4)::before { content: "原因"; }
  .fine-table td:nth-child(5)::before { content: "状态"; }
  .fine-table td:nth-child(6)::before { content: "时间"; }
  .fine-table td:nth-child(7)::before { content: "操作"; }
  .row { align-items: stretch; gap: 8px; }
  .row > * { flex: 1 1 auto; }
  button, .btn { width: 100%; }
  .status-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .status-buttons a { padding: 9px 2px; }
  .status-buttons a i { width: 30px; height: 30px; font-size: 16px; }
  .status-buttons a strong { font-size: 17px; }
  .status-buttons a span { font-size: 11px; }
  .profile-page { gap: 10px; }
  .profile-head { padding: 18px 12px 16px; gap: 8px; }
  .profile-hero-card { grid-template-columns: 72px 1fr; padding: 18px 16px; gap: 14px 16px; border-radius: 14px; }
  .guest-login-card { grid-template-columns: 72px 1fr 24px; }
  .profile-hero-avatar { width: 72px; height: 72px; flex-basis: 72px; }
  .guest-avatar::before { width: 28px; height: 28px; box-shadow: 0 30px 0 8px #c5cad3; transform: translateY(-10px); }
  .profile-hero-info strong { font-size: 20px; }
  .profile-hero-info span { font-size: 13px; }
  .profile-hero-stats { gap: 18px; padding-top: 16px; }
  .profile-hero-stats b { font-size: 24px; }
  .profile-card { padding: 16px 14px; border-radius: 12px; }
  .profile-card h2 { font-size: 18px; margin-bottom: 14px; }
  .profile-order-icons { gap: 10px 6px; }
  .profile-order-icons a i { width: 38px; height: 38px; font-size: 20px; }
  .profile-order-icons a span { font-size: 12px; }
  .profile-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .profile-tools a, .profile-tools button { min-height: 72px; }
  .profile-tools i { width: 48px; height: 48px; font-size: 22px; }
  .orders-page { gap: 10px; }
  .order-status-tabs { gap: 6px; }
  .order-status-tabs .tab { padding: 8px 10px; }
  .profile-name { font-size: 16px; }
  .avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 24px; border-width: 3px; }
  .worker-status-panel { grid-template-columns: 1fr 1fr; }
  .worker-status-panel form { grid-column: 1 / -1; }
  .worker-order-list { gap: 12px; }
  .worker-order-card { border-radius: 14px; padding: 14px; }
  .worker-order-card > div:first-child { display: grid; gap: 6px; }
  .worker-order-card > div:first-child span { text-align: left; }
  .worker-order-money, .worker-order-meta { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .worker-order-card form button { width: 100%; }
  .worker-wrap { padding-top: 0; }
  .worker-dashboard-hero { min-height: 218px; margin: 0 -12px 76px; padding: 14px 18px 30px; border-radius: 0 0 20px 20px; }
  .worker-hero-actions { margin-bottom: 42px; }
  .worker-hero-actions a { min-height: 36px; padding: 8px 13px; font-size: 13px; }
  .worker-profile-row { grid-template-columns: 66px 1fr; gap: 12px; }
  .worker-dashboard-avatar { width: 66px; height: 66px; border-radius: 16px; font-size: 24px; }
  .worker-dashboard-name strong { font-size: 22px; }
  .worker-balance-pill { grid-column: 2; justify-self: start; padding: 7px 12px; font-size: 13px; }
  .worker-dashboard-card { border-radius: 18px; padding: 16px 14px; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(15,23,42,.07); }
  .worker-dashboard-hero + .worker-dashboard-card { margin-top: -108px; }
  .worker-dashboard-card h2 { font-size: 18px; }
  .worker-dashboard-card h2 span { height: 24px; }
  .worker-stat-grid, .worker-money-grid { gap: 8px; }
  .worker-stat-grid div, .worker-stat-grid a, .worker-money-grid div { min-height: 74px; border-radius: 12px; padding: 10px 4px; }
  .worker-stat-grid strong { font-size: 28px; }
  .worker-money-grid strong { font-size: 18px; }
  .worker-stat-grid span, .worker-money-grid span { font-size: 12px; }
  .worker-section-title { font-size: 18px; margin: 16px 0 10px; }
  .worker-body .worker-page-head { margin: 0 -12px 14px; padding: 18px 18px 24px; }
  .order-group { padding: 12px; }
  .order-group h3 { font-size: 15px; margin-bottom: 10px; }
  .mobile-order-card { padding: 11px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(82vw, 280px); height: 100vh; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 36px rgba(15,23,42,.22); }
  .admin-drawer-toggle:checked ~ .admin-shell .admin-sidebar { transform: translateX(0); }
  .admin-drawer-mask { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.36); opacity: 0; pointer-events: none; transition: opacity .2s ease; display: block; }
  .admin-drawer-toggle:checked ~ .admin-drawer-mask { opacity: 1; pointer-events: auto; }
  .admin-header { padding: 0 12px; min-height: 56px; }
  .admin-header span { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-menu-button { display: grid; flex: 0 0 auto; }
  .admin-main { padding: 12px; padding-bottom: 26px; }
  .admin-main table { width: 100%; min-width: 0; }
  .admin-main .product-edit-form { min-width: 260px; }
  .admin-main .row { flex-direction: column; }
  .admin-main .row > * { width: 100%; }
  .admin-main input, .admin-main select, .admin-main textarea, .admin-main button { max-width: 100%; }
  .admin-main .admin-product-mini { min-width: 0; }
  .admin-main .admin-product-mini span { white-space: normal; }
}
