:root {
    --bg: #f4f7f4;
    --panel: #ffffff;
    --panel-soft: #eef6ef;
    --text: #1e2a22;
    --muted: #667369;
    --line: #dbe5dc;
    --primary: #1f8a54;
    --primary-dark: #14663d;
    --accent: #f0b429;
    --danger: #c24135;
    --shadow: 0 18px 45px rgba(31, 57, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(31, 138, 84, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(240, 180, 41, 0.14), transparent 28%),
        var(--bg);
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

.status-badge,
.helped-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.is-online {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.is-offline {
    background: #fee2e2;
    color: #991b1b;
}

.helped-badge.is-active {
    background: #dbeafe;
    color: #1e40af;
}

.helped-badge.is-inactive {
    background: #f3f4f6;
    color: #374151;
}

.helped-pending-text {
    margin-left: 4px;
    color: #c97912;
    font-size: 11px;
    font-weight: 700;
}

.mobile-reward-note {
    display: none;
}

.table-action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.table-message {
    text-align: center;
}

.table-message.is-muted {
    color: var(--muted);
}

.table-message.is-danger {
    color: var(--danger);
}

.text-blue-strong {
    color: #1e40af;
}

.text-neutral-strong {
    color: #374151;
}

.coupon-amount-value {
    font-size: 28px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.type-badge.is-pupu {
    background: #e5f6ed;
    color: #14663d;
}

.type-badge.is-unicom {
    background: #e7f0fb;
    color: #1f5f99;
}

[hidden] {
    display: none !important;
}

.app-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 44px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 32px;
}

.top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
}

h2 {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.18;
}

h3 {
    margin-bottom: 0;
    font-size: 18px;
}

.status-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(31, 138, 84, 0.25);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.view {
    display: none;
}

.view.is-active {
    display: block;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(31, 57, 42, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-logo {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 18px;
    letter-spacing: -0.5px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(31, 138, 84, 0.24);
}

.auth-brand h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f0f4f1;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
}

.back-button {
    display: none !important;
}

.auth-tab {
    height: 38px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: all 150ms ease;
    cursor: pointer;
}

.auth-tab:hover {
    color: var(--primary-dark);
}

.auth-tab.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(31, 57, 42, 0.06);
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field {
    display: grid;
    gap: 8px;
    text-align: left;
}

.auth-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding-left: 2px;
}

.auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: #fff;
    outline: none;
    font-size: 14px;
    transition: all 150ms ease;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 138, 84, 0.15);
}

.auth-error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    padding: 2px 4px;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 22px;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.service-group {
    margin-bottom: 24px;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.service-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.service-tag.is-profile {
    background: rgba(108, 92, 231, 0.12);
    color: #6c5ce7;
}

.service-tag.is-pupu {
    background: rgba(31, 138, 84, 0.1);
    color: #1f8a54;
}

.service-tag.is-unicom {
    background: rgba(0, 120, 215, 0.1);
    color: #0078d7;
}

.service-tag.is-meituan {
    background: rgba(201, 121, 18, 0.12);
    color: #a45f0e;
}

.service-tag.is-mixue {
    background: rgba(229, 48, 45, 0.1);
    color: #e5302d;
}

.profile-panel {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.profile-back-button {
    margin-bottom: 20px;
}

.profile-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-heading-row h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.muted-copy {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.total-pill {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.section-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.admin-heading-inline,
.admin-toolbar-inline,
.pagination-container,
.modal-footer.compact-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-heading-inline {
    gap: 16px;
}

.admin-total-pill {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-filter-input {
    width: 180px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.admin-filter-input:focus {
    border-color: var(--primary);
}

.admin-actions-heading {
    width: 150px;
    text-align: center;
}

.pagination-container {
    justify-content: center;
    margin-top: 16px;
}

.pagination-page-info {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.refresh-all-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 900px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tool-card {
    display: grid;
    grid-template-columns: 54px 1fr 24px;
    align-items: center;
    gap: 16px;
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 138, 84, 0.45);
    box-shadow: 0 22px 55px rgba(31, 57, 42, 0.16);
}

.tool-card.is-disabled {
    opacity: 0.64;
    box-shadow: none;
}

.tool-card.is-disabled:hover {
    transform: none;
    border-color: var(--line);
}

.tool-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.tool-mark.muted {
    color: var(--muted);
    background: var(--panel-soft);
}

.tool-mark.blue {
    background: #2563eb;
}

.tool-mark.amber {
    background: #c97912;
}

.tool-mark.orange {
    background: linear-gradient(135deg, #c97912, #e0a229);
}

.tool-mark.red {
    background: linear-gradient(135deg, #e5302d, #ff5252);
}

.tool-content {
    display: grid;
    gap: 7px;
}

.tool-content strong {
    font-size: 18px;
}

.tool-content small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.tool-arrow {
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
}

.login-layout.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.login-main,
.result-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.login-main {
    padding: 24px;
}

.result-panel {
    padding: 22px;
}

.back-button {
    height: 38px;
    margin-bottom: 24px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}

.back-button:hover {
    border-color: rgba(31, 138, 84, 0.38);
}

.warning-submit-button {
    background: #c97912;
    border-color: #c97912;
}

.daka-input-row {
    display: flex;
    gap: 8px;
}

.daka-input-row input {
    flex: 1;
    margin-bottom: 0;
}

.daka-inline-button {
    min-width: 60px;
    margin: 0;
    padding: 0 12px;
}

.daka-meta-time {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.field-spaced {
    margin-top: 16px;
}

.log-textarea {
    height: 250px;
}

.qr-stage {
    display: grid;
    place-items: center;
    min-height: 360px;
    margin: 20px 0;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(31, 138, 84, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 138, 84, 0.07) 1px, transparent 1px),
        var(--panel-soft);
    background-size: 28px 28px;
}

.qr-frame {
    position: relative;
    display: grid;
    width: min(280px, 76vw);
    aspect-ratio: 1;
    place-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

#qr-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#qr-image.is-loaded {
    display: block;
}

.qr-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 1px dashed #b9c7bb;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 22px;
}

.single-form {
    grid-template-columns: 1fr;
}

.field {
    display: grid;
    gap: 8px;
}

.full-field {
    grid-column: 1 / -1;
}

.field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    outline: none;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(31, 138, 84, 0.58);
    box-shadow: 0 0 0 3px rgba(31, 138, 84, 0.12);
}

.field input:disabled {
    color: #7c8780;
    background: #f3f7f4;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 44px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6faf7;
}

.segmented-control label {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    display: grid;
    width: 100%;
    min-height: 34px;
    place-items: center;
    border-radius: 6px;
}

.segmented-control input:checked + span {
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 57, 42, 0.12);
}

.phone-field {
    position: relative;
}

.phone-suggest {
    position: absolute;
    z-index: 20;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    max-height: 210px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(31, 57, 42, 0.14);
}

.phone-suggest.is-open {
    display: block;
}

.phone-item,
.phone-empty {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    color: var(--text);
    text-align: left;
    background: #fff;
}

.phone-item:hover {
    background: var(--panel-soft);
}

.phone-empty {
    display: grid;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.primary-button,
.secondary-button {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.compact-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(31, 138, 84, 0.2);
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 138, 84, 0.3);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.secondary-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}

.secondary-button:hover:not(:disabled) {
    border-color: rgba(31, 138, 84, 0.45);
    background: var(--panel-soft);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.secondary-button:active:not(:disabled) {
    transform: translateY(0);
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.result-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #a7b1aa;
}

.result-dot.is-loading,
.result-dot.is-ready {
    background: var(--accent);
}

.result-dot.is-success {
    background: var(--primary);
}

.result-dot.is-error {
    background: var(--danger);
}

.message {
    min-height: 48px;
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.message.is-loading,
.message.is-ready {
    color: #86610f;
}

.message.is-success {
    color: var(--primary-dark);
}

.message.is-error {
    color: var(--danger);
}

.token-box {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.token-box label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.token-box textarea {
    width: 100%;
    min-height: 126px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fbfcfb;
    line-height: 1.5;
}

.meituan-result-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.meituan-result-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(184, 204, 188, 0.74);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
}

.meituan-coupon-amount {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 10px;
    background: #fff7e8;
    color: #b4640d;
    font-size: 20px;
}

.meituan-coupon-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.meituan-coupon-info span {
    color: #173323;
    font-weight: 800;
}

.meituan-coupon-info small {
    color: #6d7c72;
    line-height: 1.4;
}

#assist-log {
    min-height: 260px;
}

.admin-layout.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 20px;
    align-items: start;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.admin-section {
    display: grid;
    gap: 12px;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 57, 42, 0.02);
}

.admin-row strong,
.admin-row small {
    display: block;
}

.admin-row strong {
    font-size: 15px;
    color: var(--text);
}

.admin-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.admin-select {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667369' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
    outline: none;
}

.admin-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 138, 84, 0.12);
}

.admin-log-panel {
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.usage-log-list {
    display: grid;
    gap: 10px;
}

.usage-log-item {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.usage-log-item summary {
    cursor: pointer;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.usage-log-item pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.full-width {
    width: 100%;
}

@media (max-width: 860px) {
    .app-shell {
        width: min(100% - 24px, 680px);
        padding-top: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 22px;
    }

    .login-layout.is-active {
        grid-template-columns: 1fr;
    }

    .admin-layout.is-active {
        grid-template-columns: 1fr;
    }

    .qr-stage {
        min-height: 300px;
    }
}

@media (max-width: 520px) {
    .tool-card {
        grid-template-columns: 46px 1fr;
        min-height: 108px;
        padding: 16px;
    }

    .tool-mark {
        width: 46px;
        height: 46px;
    }

    .tool-arrow {
        display: none;
    }

    .login-main,
    .result-panel {
        padding: 18px;
    }

    .actions {
        display: grid;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 运维后台布局及组件 ===== */
.admin-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 44px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.admin-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.admin-mobile-nav-select {
    display: none;
}

.admin-mobile-nav-menu {
    display: none;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 12px;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    user-select: none;
    opacity: 0.85;
}

.admin-nav-item {
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 150ms ease;
    cursor: pointer;
}

.admin-nav-item:hover {
    background: var(--panel-soft);
    color: var(--primary-dark);
}

.admin-nav-item.is-active {
    background: var(--primary);
    color: #fff;
}

.admin-panel {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.admin-panel.is-active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
}

.panel-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== 后台表格样式 ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 57, 42, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    background: var(--panel-soft);
    color: var(--muted);
    font-weight: 700;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(31, 138, 84, 0.03);
}

.log-detail-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

@media (max-width: 768px) {
    /* Layout & Spacing */
    .admin-shell {
        width: min(100%, calc(100% - 16px));
        padding: 16px 0 32px;
    }
    
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0 20px;
        margin-bottom: 16px;
    }
    
    .admin-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Hide Side Nav Tabs completely on mobile */
    .admin-nav {
        display: none !important;
    }
    
    /* Styled mobile dropdown navigation menu */
    .admin-mobile-nav-select {
        display: block;
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid var(--line);
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 14px center;
        background-size: 12px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        cursor: pointer;
        margin-bottom: 16px;
        outline: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }
    
    .admin-mobile-nav-select:focus {
        border-color: var(--primary);
    }

    /* Stacking Header and Filters */
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .panel-header > div {
        display: flex;
        width: 100%;
        gap: 8px;
    }
    
    .panel-header input {
        flex: 1;
        width: auto !important;
    }
    
    /* Ensure action buttons wrap cleanly on mobile tables */
    .table-wrap td button {
        margin: 2px 0;
    }
}

/* ==========================================
   用户身份标识区 (User Badge & Roles)
   ========================================== */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(31, 57, 42, 0.04);
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-badge:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(31, 138, 84, 0.35);
    box-shadow: 0 4px 12px rgba(31, 57, 42, 0.08);
}

.badge-user-name {
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-role-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.badge-role-tag.role-n {
    color: #4b5563;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.badge-role-tag.role-a {
    color: #2563eb;
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
}

.badge-role-tag.role-s {
    color: #7c3aed;
    background-color: #f3e8ff;
    border: 1px solid #e9d5ff;
}

.badge-role-tag.role-unknown {
    color: var(--muted);
    background-color: #f3f7f4;
    border: 1px solid var(--line);
}

.badge-logged-out {
    color: var(--muted);
    font-weight: 600;
}

/* ==========================================
   运维后台按钮及控制项 (Admin Dashboard Buttons)
   ========================================== */
/* 后台通用辅助/次要按钮 */
.admin-shell .secondary-button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-shell .secondary-button:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--panel-soft);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 138, 84, 0.1);
}

.admin-shell .secondary-button:active:not(:disabled) {
    transform: translateY(0);
}

/* 返回主页按钮 */
#admin-back-btn {
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    color: var(--text);
    border-radius: 6px;
    height: 36px;
    min-height: 36px;
}

#admin-back-btn:hover {
    border-color: var(--danger);
    background: rgba(194, 65, 53, 0.04);
    color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(194, 65, 53, 0.08);
}

/* 刷新按钮追加刷新图标 */
#refresh-users-btn::before,
#refresh-submissions-btn::before,
#refresh-logs-btn::before {
    content: "↻";
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.4s ease;
}

.admin-shell .secondary-button:hover::before {
    transform: rotate(180deg);
}

/* 审核清单操作按钮 */
.admin-shell .compact-button {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* 通过（批准）按钮 */
.admin-shell .primary-button.compact-button {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
}

.admin-shell .primary-button.compact-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* 拒绝按钮 */
.admin-shell .secondary-button.compact-button.is-reject-btn {
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    background: #fff;
    font-weight: 700;
}

.admin-shell .secondary-button.compact-button.is-reject-btn:hover:not(:disabled) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.1);
}

/* 表格的按钮(复制/操作等) */
.admin-shell td .secondary-button.compact-button {
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-weight: 600;
}

.admin-shell td .secondary-button.compact-button:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--panel-soft);
    color: var(--primary-dark);
}

/* 顶部栏运维后台入口按钮 */
.admin-entry-btn {
    border-color: rgba(31, 138, 84, 0.3) !important;
    background: #fff !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
}

.admin-entry-btn:hover:not(:disabled) {
    border-color: var(--primary) !important;
    background: var(--panel-soft) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 138, 84, 0.08);
}

.admin-entry-btn::before {
    content: "⚙";
    font-size: 13px;
    margin-right: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.admin-entry-btn:hover::before {
    transform: rotate(45deg);
}

/* 个人中心可编辑备注列样式 */
.editable-remark-cell {
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s ease;
    padding-right: 28px !important;
}

.editable-remark-cell:hover {
    background-color: var(--panel-soft) !important;
}

.editable-remark-cell::after {
    content: "✏️";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 11px;
    transition: opacity 0.15s ease;
}

.editable-remark-cell:hover::after {
    opacity: 0.7;
}

/* ===== 自定义弹窗 Modal ===== */
.editable-owner-cell,
.reward-trend-cell {
    cursor: pointer;
    position: relative;
}

.editable-owner-cell:hover,
.reward-trend-cell:hover {
    background-color: var(--panel-soft) !important;
}

.reward-trend-cell {
    color: #14663d;
    font-weight: 700;
}

.reward-trend-cell::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1f8a54;
    vertical-align: middle;
    opacity: 0.55;
}

.reward-trend-card {
    width: min(760px, 94vw);
}

.reward-trend-body {
    display: grid;
    gap: 14px;
}

.reward-trend-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3faf6;
    color: #2f4537;
}

.reward-trend-summary strong {
    color: #14663d;
    font-size: 20px;
}

.reward-trend-summary span {
    color: #6d7c72;
    font-size: 13px;
}

.reward-trend-svg {
    width: 100%;
    height: auto;
    min-height: 220px;
}

.trend-grid-line {
    stroke: #dbe5dc;
    stroke-width: 1;
}

.trend-axis-text {
    fill: #728277;
    font-size: 12px;
}

.trend-area {
    fill: rgba(31, 138, 84, 0.1);
}

.trend-line {
    fill: none;
    stroke: #1f8a54;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-point {
    fill: #fff;
    stroke: #1f8a54;
    stroke-width: 2;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 34, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.custom-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-card {
    width: min(380px, 90vw);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(31, 57, 42, 0.16);
    padding: 24px;
    transform: scale(0.95) translateY(10px);
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-modal-overlay.is-active .custom-modal-card {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.custom-modal-icon {
    font-size: 18px;
}

.custom-modal-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    word-break: break-all;
}

.custom-modal-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all 150ms ease;
}

.custom-modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 138, 84, 0.12);
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.custom-modal-footer button {
    height: 36px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 150ms ease;
}

.custom-modal-btn-confirm {
    background: var(--primary);
    color: #fff;
}

.custom-modal-btn-confirm:hover {
    background: var(--primary-dark);
}

.custom-modal-btn-cancel {
    background: #fff;
    border: 1px solid var(--line) !important;
    color: var(--text);
}

.custom-modal-btn-cancel:hover {
    border-color: var(--primary) !important;
    background: var(--panel-soft);
    color: var(--primary-dark);
}

/* ===== 权限配置弹窗 Modal ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 34, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 1;
    transition: opacity 180ms ease;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(440px, 90vw);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(31, 57, 42, 0.16);
    transform: scale(1);
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 150ms ease;
}

.modal-close-btn:hover {
    color: var(--text);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-intro {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 6px;
}

.modal-separator {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.modal-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    font-size: 14px;
}

.modal-form-control:focus {
    border-color: var(--primary);
}

.modal-select {
    margin-bottom: 12px;
    cursor: pointer;
}

.wide-modal-card {
    width: min(650px, 95vw);
    max-height: 85vh;
}

.compact-modal-card {
    max-width: 600px;
}

.scroll-modal-body {
    max-height: calc(85vh - 130px);
    overflow-y: auto;
    padding: 20px;
}

.modal-state {
    padding: 30px;
    text-align: center;
}

.modal-state.is-muted {
    color: var(--muted);
}

.modal-state.is-danger {
    color: var(--danger);
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    border: 3px solid rgba(31, 138, 84, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.assist-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.assist-log-box {
    width: 100%;
    margin-top: 0;
}

.assist-log-textarea {
    height: 250px;
    font-family: monospace;
    font-size: 13px;
}

.modal-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: all 150ms ease;
}

.service-tag.is-jd {
    color: #b42318;
    background: #fee4e2;
}

.jd-rebate-output {
    min-height: 180px;
    max-height: 58vh;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    line-height: 1.7;
}

.modal-checkbox-item:hover {
    border-color: rgba(31, 138, 84, 0.35);
    background: rgba(31, 138, 84, 0.02);
}

.modal-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.modal-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.modal-checkbox-label strong {
    font-size: 14px;
    color: var(--text);
}

.modal-checkbox-label small {
    font-size: 12px;
    color: var(--muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
}

.modal-footer button {
    height: 36px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
}

/* Badge System */
.admin-badge-static {
    display: inline-flex;
    padding: 4px 10px;
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Personal Center Tabs */
.profile-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--line);
    gap: 8px;
}
.profile-tab {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    font-size: 15px;
}
.profile-tab:hover {
    color: var(--text);
}
.profile-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.profile-tab-content {
    display: none;
}
.profile-tab-content.is-active {
    display: block;
}

.token-manager-card {
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
}

.token-manager-heading,
.token-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.token-manager-heading h3,
.token-list-heading h3 {
    margin: 0 0 6px;
}

.token-create-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px auto;
    align-items: end;
    gap: 14px;
    margin-top: 18px;
}

.token-create-grid select,
.token-reveal-row input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}

.token-create-button {
    min-height: 44px;
}

.token-manager-message {
    margin: 14px 0 0;
    font-size: 14px;
}

.token-manager-message.is-success { color: var(--primary); }
.token-manager-message.is-error { color: #b42318; }
.token-manager-message.is-loading { color: var(--muted); }

.token-reveal {
    padding: 14px;
    margin-top: 16px;
    border: 1px solid #f0c36a;
    border-radius: 8px;
    background: #fff8e8;
}

.token-reveal strong {
    display: block;
    margin-bottom: 10px;
    color: #8a5300;
}

.token-reveal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.token-reveal-row input {
    font-family: Consolas, "SFMono-Regular", monospace;
}

#api-token-table .danger-button {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #efb5b5;
    border-radius: 7px;
    color: #b42318;
    background: #fff;
    cursor: pointer;
}

#api-token-table .danger-button:hover:not(:disabled) {
    background: #fff1f1;
}

#api-token-table .danger-button:disabled {
    border-color: var(--line);
    color: var(--muted);
    background: #f3f7f4;
    cursor: default;
}

@media (max-width: 680px) {
    .profile-tabs {
        overflow-x: auto;
    }

    .profile-tab {
        flex: 0 0 auto;
        padding-inline: 12px;
    }

    .token-create-grid,
    .token-reveal-row {
        grid-template-columns: 1fr;
    }

    .token-list-heading {
        align-items: flex-start;
    }

    #tab-pupu-profile .section-actions {
        display: none;
    }

    #tab-pupu-profile .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    #profile-table,
    #profile-table thead,
    #profile-table tbody,
    #profile-table tr,
    #profile-table td {
        display: block;
        width: 100%;
    }

    #profile-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    #profile-table thead {
        display: none;
    }

    #profile-table tbody {
        display: grid;
        gap: 10px;
    }

    #profile-table .profile-account-row {
        position: relative;
        display: grid;
        grid-template-columns: 38px minmax(72px, 1fr) 58px 58px 54px;
        align-items: start;
        gap: 6px;
        padding: 9px 34px 9px 12px;
        border: 1px solid rgba(184, 204, 188, 0.75);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(31, 57, 42, 0.07);
        cursor: pointer;
    }

    #profile-table .profile-account-row::after {
        content: "展开";
        position: absolute;
        right: 12px;
        bottom: 10px;
        min-width: 48px;
        padding: 4px 10px;
        border: 1px solid rgba(31, 138, 84, 0.14);
        border-radius: 999px;
        background: #edf8f1;
        color: #14663d;
        font-size: 12px;
        font-weight: 800;
        text-align: center;
    }

    #profile-table .profile-account-row.is-expanded::after {
        content: "收起";
    }

    #profile-table .profile-account-row::after {
        content: "";
        right: 12px;
        top: 50%;
        bottom: auto;
        width: 8px;
        min-width: 0;
        height: 8px;
        padding: 0;
        border: 0;
        border-right: 2px solid #1f8a54;
        border-bottom: 2px solid #1f8a54;
        border-radius: 0;
        background: transparent;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 160ms ease;
    }

    #profile-table .profile-account-row.is-expanded::after {
        content: "";
        transform: translateY(-35%) rotate(225deg);
    }

    #profile-table .profile-account-row:focus-visible {
        outline: 2px solid rgba(31, 138, 84, 0.32);
        outline-offset: 2px;
    }

    #profile-table .profile-account-row:hover td,
    #profile-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    #profile-table td {
        min-width: 0;
        padding: 0;
        border: 0;
        color: #25362b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #profile-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #728277;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
    }

    #profile-table td:nth-child(1) {
        color: #173323;
        font-weight: 800;
    }

    #profile-table td:nth-child(2) strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #profile-table td:nth-child(3),
    #profile-table td:nth-child(4) {
        text-align: right;
    }

    #profile-table td:nth-child(5) {
        text-align: center;
    }

    #profile-table td:nth-child(5) .status-badge {
        padding: 2px 7px;
        font-size: 11px;
    }

    #profile-table td:nth-child(6),
    #profile-table td:nth-child(7) {
        display: none !important;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(6),
    #profile-table .profile-account-row.is-expanded td:nth-child(7) {
        display: block !important;
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid #edf3ee;
        white-space: normal;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(6) {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(6)::before {
        flex: 0 0 auto;
        margin: 0;
    }

    #profile-table .profile-account-row.is-expanded .mobile-reward-note {
        display: inline-flex;
        min-width: 0;
        margin-left: auto;
        max-width: 58%;
        padding: 3px 8px;
        border-radius: 999px;
        background: #f6faf7;
        color: #6d7c72;
        font-size: 11px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 8px;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7)::before {
        grid-column: 1 / -1;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button {
        width: 100%;
        min-width: 118px;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button:nth-of-type(1) {
        grid-column: 1 / -1;
        order: 5;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button:nth-of-type(2) {
        order: 2;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button:nth-of-type(3) {
        order: 1;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button:nth-of-type(4) {
        order: 3;
    }

    #profile-table .profile-account-row.is-expanded td:nth-child(7) .compact-button:nth-of-type(5) {
        order: 4;
    }

    #profile-table .editable-remark-cell {
        padding-right: 0 !important;
    }

    #profile-table .editable-remark-cell::after {
        display: none;
    }
}

/* Table Row Refreshing Animation */
@keyframes rowShimmerPulse {
    0% {
        background-color: #ffffff;
    }
    50% {
        background-color: rgba(16, 185, 129, 0.08); /* subtle light green pulse */
    }
    100% {
        background-color: #ffffff;
    }
}

.row-refreshing {
    animation: rowShimmerPulse 1.5s infinite ease-in-out;
    pointer-events: none !important;
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-icon {
    display: inline-block;
    animation: spinClockwise 1.2s linear infinite;
}

/* Toast Notification System */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    min-width: 280px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.custom-toast.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-toast.success {
    border-left: 4px solid #10b981;
}

.custom-toast.danger {
    border-left: 4px solid #ef4444;
}

.custom-toast.warning {
    border-left: 4px solid #f59e0b;
}

.custom-toast.info {
    border-left: 4px solid #3b82f6;
}

.custom-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    transition: color 0.15s;
}

.custom-toast-close:hover {
    color: #475569;
}

/* ===== Admin Redesign: calm pale-green operations console ===== */
.admin-shell {
    width: min(1320px, calc(100% - 36px));
    padding: 22px 0 42px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 18px;
    min-height: 86px;
    padding: 18px 26px;
    border: 1px solid rgba(177, 205, 185, 0.42);
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(135deg, rgba(228, 244, 234, 0.82), rgba(247, 251, 248, 0.42) 58%, rgba(226, 241, 232, 0.62)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12));
    box-shadow: 0 16px 36px rgba(31, 57, 42, 0.07);
    backdrop-filter: blur(16px);
}

.admin-title-block {
    position: relative;
    display: grid;
    gap: 5px;
    align-content: center;
    padding-left: 16px;
}

.admin-title-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 4px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f8a54, rgba(31, 138, 84, 0.2));
}

.admin-kicker {
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid rgba(31, 138, 84, 0.18);
    border-radius: 999px;
    background: rgba(229, 246, 237, 0.72);
    color: #14663d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-topbar h2 {
    margin: 0;
    color: #173323;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-topbar h2::after {
    content: none;
}

.admin-body {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 20px;
}

.admin-nav {
    position: sticky;
    top: 92px;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(184, 204, 188, 0.75);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(31, 57, 42, 0.08);
}

.admin-nav-group {
    gap: 6px;
}

.admin-nav-group + .admin-nav-group {
    padding-top: 12px;
    border-top: 1px solid rgba(219, 229, 220, 0.9);
}

.admin-nav-group-title {
    margin-bottom: 2px;
    padding: 0 10px;
    color: #7a897f;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-nav-item {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #2f4537;
    font-size: 14px;
    font-weight: 700;
}

.admin-nav-item:hover {
    background: rgba(31, 138, 84, 0.08);
    color: var(--primary-dark);
}

.admin-nav-item.is-active {
    border-color: rgba(31, 138, 84, 0.2);
    background: linear-gradient(135deg, #e7f5ec, #d9f0e2);
    color: #125234;
    box-shadow: inset 3px 0 0 var(--primary);
}

.admin-panel {
    padding: 22px;
    border: 1px solid rgba(184, 204, 188, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(31, 57, 42, 0.08);
}

.panel-header {
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(219, 229, 220, 0.9);
}

.panel-header h3 {
    color: #173323;
    font-size: 19px;
    font-weight: 800;
}

.panel-desc {
    margin: -2px 0 16px;
    color: #6d7c72;
}

.admin-heading-inline,
.admin-toolbar-inline {
    flex-wrap: wrap;
}

.admin-total-pill,
.total-pill {
    background: #e5f6ed;
    color: #14663d;
}

.admin-filter-input {
    height: 38px;
    border-radius: 10px;
}

.table-wrap {
    border: 1px solid rgba(201, 216, 204, 0.9);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.table-wrap::after {
    content: "";
    position: sticky;
    right: 0;
    display: block;
    width: 1px;
}

table {
    font-size: 13px;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf3ee;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f2f8f4;
    color: #516457;
    font-size: 12px;
}

td {
    color: #25362b;
}

tbody tr:nth-child(even) td {
    background: #fbfdfb;
}

tr:hover td {
    background: #eef8f2;
}

.admin-shell .primary-button,
.admin-shell .secondary-button,
.admin-shell .danger-button {
    min-height: 36px;
    border-radius: 10px;
    box-shadow: none;
}

.admin-shell .primary-button {
    border-color: #1f8a54;
    background: #1f8a54;
}

.admin-shell .secondary-button {
    border-color: #cbdccf;
    background: rgba(255, 255, 255, 0.88);
    color: #2f4537;
}

#admin-back-btn {
    border-color: rgba(31, 138, 84, 0.16);
    background: rgba(255, 255, 255, 0.64);
    color: #294636;
    backdrop-filter: blur(10px);
}

#admin-back-btn:hover {
    border-color: rgba(31, 138, 84, 0.32);
    background: rgba(236, 248, 241, 0.82);
    color: #14663d;
    box-shadow: 0 8px 18px rgba(31, 138, 84, 0.1);
}

.admin-shell .danger-button,
.admin-shell .is-reject-btn {
    border-color: #f0c5bf;
    background: #fff7f6;
    color: #ad382d;
}

.admin-shell .secondary-button::before {
    display: none;
}

.admin-shell .compact-button {
    min-width: auto;
    padding: 0 12px;
}

.table-action-cell,
td[style*="display: flex"] {
    gap: 6px;
}

.modal-card {
    border-radius: 14px;
}

.modal-header {
    background: #f6faf7;
}

.modal-footer {
    background: #f6faf7;
}

@media (max-width: 900px) {
    .admin-shell {
        width: min(100% - 20px, 760px);
        padding-top: 12px;
    }

    .admin-topbar {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: auto;
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .admin-topbar h2 {
        font-size: 22px;
    }

    .admin-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-mobile-nav-select {
        display: none;
        height: 44px;
        margin-bottom: 0;
        border-radius: 12px;
        border-color: #cbdccf;
        background-color: #fff;
    }

    .admin-mobile-nav-menu {
        position: relative;
        display: block;
    }

    .admin-mobile-nav-trigger {
        position: relative;
        width: 100%;
        min-height: 44px;
        padding: 0 40px 0 14px;
        border: 1px solid rgba(31, 138, 84, 0.42);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.84);
        color: #173323;
        font-size: 14px;
        font-weight: 800;
        text-align: left;
        box-shadow: 0 8px 20px rgba(31, 57, 42, 0.06);
    }

    .admin-mobile-nav-trigger::after {
        content: "";
        position: absolute;
        right: 16px;
        top: 50%;
        width: 7px;
        height: 7px;
        border-right: 2px solid #2f4537;
        border-bottom: 2px solid #2f4537;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 160ms ease;
    }

    .admin-mobile-nav-trigger[aria-expanded="true"]::after {
        transform: translateY(-35%) rotate(225deg);
    }

    .admin-mobile-nav-list {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 50;
        max-height: min(62vh, 420px);
        overflow-y: auto;
        padding: 8px;
        border: 1px solid rgba(184, 204, 188, 0.84);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 42px rgba(31, 57, 42, 0.16);
    }

    .admin-mobile-nav-list[hidden] {
        display: none;
    }

    .admin-mobile-nav-group + .admin-mobile-nav-group {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #edf3ee;
    }

    .admin-mobile-nav-group-title {
        padding: 4px 8px 6px;
        color: #7a897f;
        font-size: 12px;
        font-weight: 800;
    }

    .admin-mobile-nav-option {
        display: block;
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: #2f4537;
        font-size: 14px;
        font-weight: 700;
        text-align: left;
    }

    .admin-mobile-nav-option:hover {
        background: #edf8f1;
        color: #14663d;
    }

    .admin-mobile-nav-option.is-active {
        border-color: rgba(31, 138, 84, 0.22);
        background: linear-gradient(135deg, #e7f5ec, #d9f0e2);
        color: #125234;
        box-shadow: inset 3px 0 0 #1f8a54;
    }

    .admin-nav {
        display: none !important;
    }

    .admin-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .panel-header {
        align-items: stretch;
    }

    .panel-header,
    .admin-heading-inline,
    .admin-toolbar-inline {
        flex-direction: column;
    }

    .admin-toolbar-inline {
        align-items: stretch;
    }

    .admin-filter-input {
        width: 100%;
    }

    .table-wrap {
        margin: 0 -4px;
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap::before {
        content: "左右滑动查看完整表格";
        display: block;
        padding: 9px 12px;
        border-bottom: 1px solid #edf3ee;
        color: #708176;
        background: #f8fbf8;
        font-size: 12px;
        font-weight: 700;
    }

    table {
        min-width: 720px;
    }

    th,
    td {
        padding: 12px;
    }

    .admin-shell td .compact-button {
        height: 34px;
        padding: 0 10px;
    }
}

@media (max-width: 540px) {
    .admin-shell {
        width: calc(100% - 14px);
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .admin-topbar h2::after {
        font-size: 12px;
    }

    .admin-panel {
        padding: 14px;
    }

    .panel-header h3 {
        font-size: 18px;
    }

    .pagination-container {
        flex-wrap: wrap;
    }

    .admin-shell .panel-header button,
    .admin-shell .admin-toolbar-inline button {
        width: 100%;
    }

    .table-action-cell {
        align-items: stretch;
        flex-direction: column;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);
    }
}

/* ===== Soft green refresh for the main workspace ===== */
.app-shell {
    width: min(1250px, calc(100% - 32px));
    padding-top: 18px;
}

.topbar {
    min-height: 88px;
    margin-bottom: 10px;
    padding: 18px 38px;
    border: 1px solid rgba(184, 204, 188, 0.68);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 38px rgba(31, 57, 42, 0.06);
}

.topbar h1 {
    color: #173323;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.topbar-right .secondary-button,
.topbar-right .admin-entry-btn {
    min-height: 44px;
    padding: 0 18px;
    border-color: rgba(184, 204, 188, 0.9);
    background: rgba(255, 255, 255, 0.74);
    color: #173323;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(31, 57, 42, 0.06);
}

.app-main-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.app-sidebar {
    position: sticky;
    top: 18px;
}

.app-content {
    min-width: 0;
}

.service-workspace {
    min-width: 0;
    min-height: calc(100vh - 132px);
    padding: 20px 24px;
    border: 1px solid rgba(184, 204, 188, 0.68);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
}

#home-view .service-group {
    display: none;
    margin-bottom: 0;
}

#home-view .service-group.is-active {
    display: block;
}

.service-nav {
    position: sticky;
    top: 18px;
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: calc(100vh - 132px);
    padding: 16px 12px;
    border: 1px solid rgba(184, 204, 188, 0.72);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #2f4537;
    text-align: left;
    font-weight: 800;
}

.service-nav-item:hover:not(:disabled) {
    background: rgba(31, 138, 84, 0.08);
}

/* 权限项较多时只滚动内容区，标题和保存按钮始终留在视口内。 */
#permission-modal {
    box-sizing: border-box;
    padding: 16px;
    overflow: hidden;
}

#permission-modal .modal-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
}

#permission-modal .modal-header,
#permission-modal .modal-footer {
    flex: 0 0 auto;
}

#permission-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 520px) {
    #permission-modal {
        padding: 8px;
    }

    #permission-modal .modal-card {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
}

.service-nav-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.service-nav-item.is-active {
    border-color: rgba(31, 138, 84, 0.2);
    background: #dff2e7;
    color: #125234;
    box-shadow: inset 3px 0 0 #1f8a54;
}

.service-nav-item strong {
    font-size: 14px;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    min-height: 22px;
    color: #173323;
    font-size: 17px;
    font-weight: 900;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-card,
.login-main,
.result-panel,
.profile-panel,
.auth-card {
    border-color: rgba(184, 204, 188, 0.72);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(31, 57, 42, 0.08);
}

.tool-card {
    min-height: 106px;
    padding: 20px;
    border-radius: 8px;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 138, 84, 0.36);
    box-shadow: 0 18px 42px rgba(31, 57, 42, 0.12);
}

.tool-mark {
    border-radius: 12px;
    background: linear-gradient(135deg, #1f8a54, #37a46a);
}

.tool-mark.blue {
    background: linear-gradient(135deg, #2f7ec8, #4a9fe1);
}

.tool-mark.orange {
    background: linear-gradient(135deg, #c97912, #e0a229);
}

.primary-button,
.secondary-button {
    border-radius: 10px;
}

@media (max-width: 680px) {
    .app-shell {
        width: min(100% - 16px, 680px);
        padding-top: 10px;
    }

    .topbar {
        display: grid;
        gap: 14px;
        min-height: 0;
        margin-bottom: 10px;
        padding: 16px;
        border-radius: 12px;
    }

    .topbar h1 {
        font-size: 26px;
        line-height: 1.18;
    }

    .topbar-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .topbar-right .user-badge {
        grid-column: 1 / -1;
    }

    .topbar-right button {
        width: 100%;
        min-height: 42px;
        padding: 0 8px;
    }

    #home-view.is-active {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-nav {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        overflow: visible;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: transparent;
    }

    .service-nav-item {
        min-height: 74px;
        width: 100%;
        padding: 0 16px;
        border-color: rgba(184, 204, 188, 0.72);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 12px 26px rgba(31, 57, 42, 0.07);
        white-space: normal;
    }

    .service-nav-item::after {
        content: "›";
        margin-left: auto;
        color: #1f8a54;
        font-size: 28px;
        line-height: 1;
    }

    .service-nav-item strong {
        font-size: 16px;
    }

    .service-nav-item.is-active {
        border-color: rgba(31, 138, 84, 0.28);
        background: #dff2e7;
        box-shadow: inset 4px 0 0 #1f8a54, 0 12px 26px rgba(31, 57, 42, 0.08);
    }

    .service-workspace {
        display: none;
        min-height: calc(100vh - 220px);
        padding: 14px;
        border-radius: 12px;
    }

    #home-view.has-service-open .service-workspace {
        display: block;
    }

    .service-title {
        margin-bottom: 7px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tool-card {
        min-height: 92px;
        padding: 16px;
    }
}

@media (min-width: 681px) and (max-width: 980px) {
    .topbar {
        align-items: start;
        flex-direction: column;
        padding: 18px 24px;
    }

    #home-view.is-active {
        grid-template-columns: 172px minmax(0, 1fr);
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-shell .table-wrap::before {
        content: "左右滑动查看完整表格";
    }
}

@media (max-width: 680px) {
    #profile-view .table-wrap::before {
        content: none;
        display: none;
    }

    #tab-pupu-profile .table-wrap {
        margin: 0;
        overflow: visible;
    }

    #profile-table {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    #profile-table .profile-account-row {
        grid-template-columns: 32px minmax(58px, 1fr) 52px 52px 46px;
        gap: 5px;
        padding-left: 10px;
        padding-right: 28px;
    }

    #profile-table td,
    #profile-table td::before {
        font-size: 11px;
    }

    #profile-table td:nth-child(5) .status-badge {
        padding-inline: 5px;
    }
}

@media (max-width: 680px) {
    #tab-unicom-profile .table-wrap {
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    #unicom-profile-table,
    #unicom-profile-table thead,
    #unicom-profile-table tbody,
    #unicom-profile-table tr,
    #unicom-profile-table td {
        display: block;
        width: 100%;
    }

    #unicom-profile-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    #unicom-profile-table thead {
        display: none;
    }

    #unicom-profile-table tbody {
        display: grid;
        gap: 10px;
    }

    #unicom-profile-table .unicom-profile-row {
        position: relative;
        display: grid;
        grid-template-columns: minmax(112px, 1fr) 76px 76px;
        gap: 6px;
        align-items: start;
        padding: 9px 34px 9px 12px;
        border: 1px solid rgba(184, 204, 188, 0.75);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(31, 57, 42, 0.07);
        cursor: pointer;
    }

    #unicom-profile-table .unicom-profile-row::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #1f8a54;
        border-bottom: 2px solid #1f8a54;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 160ms ease;
    }

    #unicom-profile-table .unicom-profile-row.is-expanded::after {
        transform: translateY(-35%) rotate(225deg);
    }

    #unicom-profile-table .unicom-profile-row:hover td,
    #unicom-profile-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    #unicom-profile-table td {
        min-width: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #unicom-profile-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #728277;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
    }

    #unicom-profile-table td:nth-child(2),
    #unicom-profile-table td:nth-child(3) {
        text-align: right;
    }

    #unicom-profile-table td:nth-child(4),
    #unicom-profile-table td:nth-child(5) {
        display: none !important;
    }

    #unicom-profile-table .unicom-profile-row.is-expanded td:nth-child(4),
    #unicom-profile-table .unicom-profile-row.is-expanded td:nth-child(5) {
        display: block !important;
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid #edf3ee;
        white-space: normal;
    }

    #unicom-profile-table .unicom-profile-row.is-expanded td:nth-child(5) .compact-button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    #panel-pupu-accounts .table-wrap,
    #panel-unicom-accounts .table-wrap {
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    #panel-pupu-accounts .table-wrap::before,
    #panel-unicom-accounts .table-wrap::before {
        content: none;
        display: none;
    }

    #admin-accounts-table,
    #admin-accounts-table thead,
    #admin-accounts-table tbody,
    #admin-accounts-table tr,
    #admin-accounts-table td,
    #unicom-accounts-table,
    #unicom-accounts-table thead,
    #unicom-accounts-table tbody,
    #unicom-accounts-table tr,
    #unicom-accounts-table td {
        display: block;
        width: 100%;
    }

    #admin-accounts-table,
    #unicom-accounts-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    #admin-accounts-table thead,
    #unicom-accounts-table thead {
        display: none;
    }

    #admin-accounts-table tbody,
    #unicom-accounts-table tbody {
        display: grid;
        gap: 10px;
    }

    #admin-accounts-table .admin-pupu-row,
    #unicom-accounts-table .admin-unicom-row {
        position: relative;
        gap: 6px;
        align-items: start;
        padding: 9px 34px 9px 12px;
        border: 1px solid rgba(184, 204, 188, 0.75);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(31, 57, 42, 0.07);
        cursor: pointer;
    }

    #admin-accounts-table .admin-pupu-row {
        display: grid;
        grid-template-columns: 30px 48px minmax(58px, 1fr) 50px 44px 42px;
    }

    #unicom-accounts-table .admin-unicom-row {
        display: grid;
        grid-template-columns: minmax(112px, 1fr) 76px 76px;
    }

    #admin-accounts-table .admin-pupu-row::after,
    #unicom-accounts-table .admin-unicom-row::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #1f8a54;
        border-bottom: 2px solid #1f8a54;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 160ms ease;
    }

    #admin-accounts-table .admin-pupu-row.is-expanded::after,
    #unicom-accounts-table .admin-unicom-row.is-expanded::after {
        transform: translateY(-35%) rotate(225deg);
    }

    #admin-accounts-table .admin-pupu-row:hover td,
    #admin-accounts-table tbody tr:nth-child(even) td,
    #unicom-accounts-table .admin-unicom-row:hover td,
    #unicom-accounts-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    #admin-accounts-table td,
    #unicom-accounts-table td {
        min-width: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #admin-accounts-table td::before,
    #unicom-accounts-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #728277;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
    }

    #admin-accounts-table td:nth-child(4),
    #admin-accounts-table td:nth-child(5),
    #unicom-accounts-table td:nth-child(4),
    #unicom-accounts-table td:nth-child(5) {
        text-align: right;
    }

    #admin-accounts-table td:nth-child(6) {
        text-align: center;
    }

    #admin-accounts-table td:nth-child(7),
    #admin-accounts-table td:nth-child(8),
    #unicom-accounts-table td:nth-child(1),
    #unicom-accounts-table td:nth-child(2),
    #unicom-accounts-table td:nth-child(6) {
        display: none !important;
    }

    #unicom-accounts-table td:nth-child(3) {
        order: 1;
    }

    #unicom-accounts-table td:nth-child(4) {
        order: 2;
    }

    #unicom-accounts-table td:nth-child(5) {
        order: 3;
    }

    #unicom-accounts-table td:nth-child(2) {
        order: 4;
    }

    #unicom-accounts-table td:nth-child(6) {
        order: 5;
    }

    #admin-accounts-table .admin-pupu-row.is-expanded td:nth-child(7),
    #admin-accounts-table .admin-pupu-row.is-expanded td:nth-child(8),
    #unicom-accounts-table .admin-unicom-row.is-expanded td:nth-child(2),
    #unicom-accounts-table .admin-unicom-row.is-expanded td:nth-child(6) {
        display: block !important;
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid #edf3ee;
        white-space: normal;
        text-align: left;
    }

    #admin-accounts-table .admin-pupu-row.is-expanded td:nth-child(8) {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #admin-accounts-table .admin-pupu-row.is-expanded td:nth-child(8)::before {
        grid-column: 1 / -1;
    }

    #admin-accounts-table .admin-pupu-row.is-expanded td:nth-child(8) .compact-button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    #panel-users .table-wrap,
    #panel-submissions .table-wrap,
    #panel-helped-requests .table-wrap,
    #panel-delete-requests .table-wrap,
    #panel-logs .table-wrap {
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    #panel-users .table-wrap::before,
    #panel-submissions .table-wrap::before,
    #panel-helped-requests .table-wrap::before,
    #panel-delete-requests .table-wrap::before,
    #panel-logs .table-wrap::before {
        content: none;
        display: none;
    }

    #users-table,
    #users-table thead,
    #users-table tbody,
    #users-table tr,
    #users-table td,
    #submissions-table,
    #submissions-table thead,
    #submissions-table tbody,
    #submissions-table tr,
    #submissions-table td,
    #helped-requests-table,
    #helped-requests-table thead,
    #helped-requests-table tbody,
    #helped-requests-table tr,
    #helped-requests-table td,
    #delete-requests-table,
    #delete-requests-table thead,
    #delete-requests-table tbody,
    #delete-requests-table tr,
    #delete-requests-table td,
    #logs-table,
    #logs-table thead,
    #logs-table tbody,
    #logs-table tr,
    #logs-table td {
        display: block;
        width: 100%;
    }

    #users-table,
    #submissions-table,
    #helped-requests-table,
    #delete-requests-table,
    #logs-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    #users-table thead,
    #submissions-table thead,
    #helped-requests-table thead,
    #delete-requests-table thead,
    #logs-table thead {
        display: none;
    }

    #users-table tbody,
    #submissions-table tbody,
    #helped-requests-table tbody,
    #delete-requests-table tbody,
    #logs-table tbody {
        display: grid;
        gap: 10px;
    }

    #users-table .mobile-card-row,
    #submissions-table .mobile-card-row,
    #helped-requests-table .mobile-card-row,
    #delete-requests-table .mobile-card-row,
    #logs-table .mobile-card-row {
        position: relative;
        display: grid;
        gap: 6px;
        align-items: start;
        padding: 9px 34px 9px 12px;
        border: 1px solid rgba(184, 204, 188, 0.75);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(31, 57, 42, 0.07);
        cursor: pointer;
    }

    #users-table .admin-users-row {
        grid-template-columns: minmax(86px, 0.8fr) minmax(96px, 1fr);
    }

    #submissions-table .admin-submission-row,
    #delete-requests-table .admin-delete-row {
        grid-template-columns: 50px minmax(70px, 0.75fr) minmax(110px, 1fr);
    }

    #helped-requests-table .admin-helped-row {
        grid-template-columns: minmax(70px, 0.75fr) 70px 58px;
    }

    #logs-table .admin-log-row {
        grid-template-columns: minmax(120px, 1fr) 70px 58px;
    }

    #users-table .mobile-card-row::after,
    #submissions-table .mobile-card-row::after,
    #helped-requests-table .mobile-card-row::after,
    #delete-requests-table .mobile-card-row::after,
    #logs-table .mobile-card-row::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #1f8a54;
        border-bottom: 2px solid #1f8a54;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 160ms ease;
    }

    #users-table .mobile-card-row.is-expanded::after,
    #submissions-table .mobile-card-row.is-expanded::after,
    #helped-requests-table .mobile-card-row.is-expanded::after,
    #delete-requests-table .mobile-card-row.is-expanded::after,
    #logs-table .mobile-card-row.is-expanded::after {
        transform: translateY(-35%) rotate(225deg);
    }

    #users-table .mobile-card-row:hover td,
    #users-table tbody tr:nth-child(even) td,
    #submissions-table .mobile-card-row:hover td,
    #submissions-table tbody tr:nth-child(even) td,
    #helped-requests-table .mobile-card-row:hover td,
    #helped-requests-table tbody tr:nth-child(even) td,
    #delete-requests-table .mobile-card-row:hover td,
    #delete-requests-table tbody tr:nth-child(even) td,
    #logs-table .mobile-card-row:hover td,
    #logs-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    #users-table td,
    #submissions-table td,
    #helped-requests-table td,
    #delete-requests-table td,
    #logs-table td {
        min-width: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #users-table td::before,
    #submissions-table td::before,
    #helped-requests-table td::before,
    #delete-requests-table td::before,
    #logs-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #728277;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
    }

    #users-table td:nth-child(1),
    #users-table td:nth-child(4),
    #users-table td:nth-child(5),
    #submissions-table td:nth-child(1),
    #submissions-table td:nth-child(5),
    #submissions-table td:nth-child(6),
    #submissions-table td:nth-child(7),
    #helped-requests-table td:nth-child(1),
    #helped-requests-table td:nth-child(4),
    #helped-requests-table td:nth-child(5),
    #helped-requests-table td:nth-child(7),
    #helped-requests-table td:nth-child(8),
    #delete-requests-table td:nth-child(1),
    #delete-requests-table td:nth-child(4),
    #delete-requests-table td:nth-child(6),
    #delete-requests-table td:nth-child(7),
    #logs-table td:nth-child(4),
    #logs-table td:nth-child(5) {
        display: none !important;
    }

    #users-table .admin-users-row.is-expanded td:nth-child(1),
    #users-table .admin-users-row.is-expanded td:nth-child(4),
    #users-table .admin-users-row.is-expanded td:nth-child(5),
    #submissions-table .admin-submission-row.is-expanded td:nth-child(1),
    #submissions-table .admin-submission-row.is-expanded td:nth-child(5),
    #submissions-table .admin-submission-row.is-expanded td:nth-child(6),
    #submissions-table .admin-submission-row.is-expanded td:nth-child(7),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(1),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(4),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(5),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(7),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(8),
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(1),
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(4),
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(6),
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(7),
    #logs-table .admin-log-row.is-expanded td:nth-child(4),
    #logs-table .admin-log-row.is-expanded td:nth-child(5) {
        display: block !important;
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid #edf3ee;
        white-space: normal;
    }

    #users-table .admin-users-row.is-expanded td:nth-child(5),
    #submissions-table .admin-submission-row.is-expanded td:nth-child(7),
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(8),
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(7) {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #users-table .admin-users-row.is-expanded td:nth-child(5)::before,
    #submissions-table .admin-submission-row.is-expanded td:nth-child(7)::before,
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(8)::before,
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(7)::before {
        grid-column: 1 / -1;
    }

    #users-table .admin-users-row.is-expanded td:nth-child(5) .compact-button,
    #submissions-table .admin-submission-row.is-expanded td:nth-child(7) .compact-button,
    #helped-requests-table .admin-helped-row.is-expanded td:nth-child(8) .compact-button,
    #delete-requests-table .admin-delete-row.is-expanded td:nth-child(7) .compact-button,
    #logs-table .admin-log-row.is-expanded td:nth-child(5) .compact-button {
        width: 100%;
    }

    #logs-table .log-detail-cell {
        max-width: none;
        cursor: default;
    }
}


/* 审核待处理红点 */
.has-pending-dot {
    position: relative !important;
}

.has-pending-dot::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
    pointer-events: none;
    z-index: 2;
}

.admin-nav-item.has-pending-dot::after,
.admin-mobile-nav-option.has-pending-dot::after {
    top: 8px;
    right: 10px;
}

.admin-entry-btn.has-pending-dot::after {
    top: 8px;
    right: 8px;
}

.admin-mobile-nav-trigger.has-pending-dot::after {
    top: 10px;
    right: 12px;
}

/* ===== 智慧充电 ===== */
.service-tag.is-charge {
    color: #087f5b;
    background: #dff8ed;
}

.tool-mark.green {
    color: #087f5b;
    background: linear-gradient(145deg, #dff8ed, #c9f1e1);
}

.charge-page {
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(184, 204, 188, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(31, 57, 42, 0.08);
}

.charge-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.charge-refresh-button,
.charge-inline-refresh {
    flex: 0 0 auto;
}

.charge-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 28px 0 18px;
    padding: 0;
    list-style: none;
}

.charge-progress li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    color: #748178;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #e0e9e3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.charge-progress li span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #69766e;
    background: #edf2ef;
}

.charge-progress li.is-active {
    color: #087f5b;
    border-color: #52c99d;
    background: #eafaf3;
}

.charge-progress li.is-active span,
.charge-progress li.is-done span {
    color: #fff;
    background: #0d9f70;
}

.charge-progress li.is-done {
    color: #3d725e;
    border-color: #cbeadd;
}

.charge-status {
    margin-bottom: 18px;
    padding: 12px 16px;
    color: #56635b;
    border: 1px solid #e0e8e3;
    border-radius: 13px;
    background: #f5f8f6;
}

.charge-status.is-loading {
    color: #176b50;
    border-color: #bce5d5;
    background: #ecf9f4;
}

.charge-status.is-success {
    color: #087552;
    border-color: #aee0ca;
    background: #e8f8f1;
}

.charge-status.is-error {
    color: #a63838;
    border-color: #f0c2c2;
    background: #fff0f0;
}

.charge-step {
    display: none;
    min-height: 320px;
    padding: 24px;
    border: 1px solid #e0eae4;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
}

.charge-step.is-active {
    display: block;
    animation: charge-step-in 180ms ease-out;
}

@keyframes charge-step-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.charge-step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.charge-step-heading h3 {
    margin: 3px 0 0;
    font-size: 22px;
}

.charge-step-kicker {
    color: #0b9a6d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.charge-count-pill {
    padding: 7px 12px;
    color: #087f5b;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #e3f7ef;
}

.charge-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.charge-account-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    color: #1d2c24;
    text-align: left;
    border: 1px solid #dce8e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 77, 55, 0.06);
    cursor: pointer;
    transition: 160ms ease;
}

.charge-account-card:hover {
    border-color: #72cbaa;
    box-shadow: 0 12px 30px rgba(24, 112, 78, 0.13);
    transform: translateY(-2px);
}

.charge-account-top,
.charge-account-coupon-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.charge-account-identity,
.charge-option-card > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.charge-account-identity strong {
    font-size: 18px;
}

.charge-account-identity small,
.charge-option-card small {
    color: #758178;
}

.charge-online-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
}

.charge-online-badge.is-online {
    color: #087f5b;
    background: #def6eb;
}

.charge-online-badge.is-error {
    color: #ac4242;
    background: #fde7e7;
}

.charge-account-coupon-head {
    padding-top: 12px;
    border-top: 1px dashed #dfe8e2;
}

.charge-account-coupon-head strong {
    color: #e17821;
}

.charge-account-coupons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.charge-mini-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff7ed;
}

.charge-mini-coupon strong {
    color: #9b5018;
    font-size: 13px;
}

.charge-mini-coupon small {
    color: #9a7357;
    font-size: 11px;
    text-align: right;
}

.charge-coupon-more,
.charge-coupon-empty {
    color: #7c887f;
    line-height: 1.55;
}

.charge-card-arrow {
    align-self: flex-end;
    color: #07865e;
    font-size: 13px;
    font-weight: 800;
}

.charge-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.charge-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 98px;
    padding: 18px;
    color: #1c2e24;
    text-align: left;
    border: 1px solid #dce8e1;
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
    transition: 160ms ease;
}

.charge-option-card:hover {
    border-color: #54c79c;
    background: #f2fbf7;
    transform: translateY(-2px);
}

.charge-option-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 14px;
    background: #dff7ec;
}

.charge-package-price {
    display: grid;
    place-items: center;
    min-width: 68px;
    height: 52px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a9b6c, #42bf8f);
}

.charge-port-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(92px, 1fr));
    gap: 12px;
}

.charge-port-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 108px;
    padding: 14px 10px;
    border-radius: 16px;
}

.charge-port-card strong {
    font-size: 27px;
}

.charge-port-card span {
    font-weight: 800;
}

.charge-port-card small {
    font-size: 11px;
}

.charge-port-card.is-available {
    color: #087653;
    border: 1px solid #94d9bd;
    background: #eaf9f2;
    flex: 1;
}

.modal-permission-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.modal-permission-controls label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.modal-permission-controls input[type="checkbox"] {
    margin: 0;
}

@media (max-width: 520px) {
    .modal-checkbox-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.charge-port-card.is-available:hover {
    border-color: #0e9c6d;
    box-shadow: 0 8px 20px rgba(13, 151, 104, 0.14);
}

.charge-port-card.is-unavailable {
    color: #8c7777;
    border: 1px solid #e4d8d8;
    background: #f6f2f2;
    opacity: 0.72;
}

.charge-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.charge-empty-state {
    grid-column: 1 / -1;
    padding: 48px 20px;
    color: #748078;
    text-align: center;
    border: 1px dashed #cfdcd4;
    border-radius: 15px;
    background: #f8fbf9;
}

.charge-empty-state.is-error {
    color: #a63f3f;
    border-color: #e8bcbc;
    background: #fff5f5;
}

.charge-confirm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}

.charge-order-card,
.charge-coupon-panel {
    padding: 20px;
    border: 1px solid #dfe9e3;
    border-radius: 17px;
    background: #fff;
}

.charge-summary-list {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px 18px;
    margin: 0;
}

.charge-summary-list dt {
    color: #78847c;
}

.charge-summary-list dd {
    margin: 0;
    color: #203229;
    font-weight: 700;
    text-align: right;
}

.charge-pay-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #d9e4dd;
}

.charge-pay-total strong {
    color: #e36e16;
    font-size: 30px;
}

.charge-coupon-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.charge-coupon-title span {
    color: #df751f;
    font-weight: 800;
}

.charge-quote-coupons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow: auto;
}

.charge-quote-coupon {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #f0d7c2;
    border-radius: 12px;
    background: #fff8f1;
    cursor: pointer;
}

.charge-quote-coupon input {
    margin-top: 3px;
    accent-color: #e27721;
}

.charge-quote-coupon > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.charge-quote-coupon strong {
    color: #934c18;
}

.charge-quote-coupon small {
    color: #8d705c;
}

.charge-pay-button {
    min-width: 160px;
    background: linear-gradient(135deg, #079667, #28b784);
}

.charge-result {
    margin-top: 18px;
    padding: 16px;
    color: #126245;
    border: 1px solid #a9ddc7;
    border-radius: 13px;
    background: #ebf9f3;
}

.charge-result p {
    margin: 8px 0 0;
}

.charge-payment-order {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px 14px;
    margin: 14px 0 0;
    padding: 12px;
    color: #34483d;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.charge-payment-order dt {
    color: #718078;
}

.charge-payment-order dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.charge-wechat-button {
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(135deg, #07c160, #09a854);
}

.charge-result pre {
    max-height: 220px;
    margin: 12px 0 0;
    padding: 12px;
    overflow: auto;
    color: #26342d;
    font-size: 12px;
    white-space: pre-wrap;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .charge-account-grid,
    .charge-confirm-layout {
        grid-template-columns: 1fr;
    }

    .charge-port-grid {
        grid-template-columns: repeat(4, minmax(76px, 1fr));
    }
}

@media (max-width: 680px) {
    .charge-page {
        width: calc(100% - 20px);
        margin: 12px auto 32px;
        padding: 16px;
        border-radius: 20px;
    }

    .charge-heading {
        flex-direction: column;
    }

    .charge-refresh-button {
        width: 100%;
    }

    .charge-progress {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .charge-progress li {
        min-height: 42px;
        padding: 5px;
        font-size: 0;
    }

    .charge-progress li span {
        font-size: 12px;
    }

    .charge-step {
        min-height: 280px;
        padding: 16px;
    }

    .charge-option-grid {
        grid-template-columns: 1fr;
    }

    .charge-port-grid {
        grid-template-columns: repeat(3, minmax(72px, 1fr));
    }

    .charge-mini-coupon {
        align-items: flex-start;
        flex-direction: column;
    }

    .charge-mini-coupon small {
        text-align: left;
    }

    .charge-step-actions {
        flex-direction: column-reverse;
    }

    .charge-step-actions button {
        width: 100%;
    }
}

/* ===== M-Team ===== */
.service-tag.is-mteam {
    color: #5b3fc0;
    background: #eee9ff;
}

.tool-mark.purple {
    color: #5b3fc0;
    background: linear-gradient(145deg, #f0ecff, #e1d8ff);
}

.mteam-page {
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(184, 204, 188, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(31, 57, 42, 0.08);
}

.mteam-heading {
    width: 100%;
    max-width: none;
    margin: 20px 0 24px;
}

.mteam-heading h2 {
    margin: 4px 0 0;
}

.mteam-title-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(79, 53, 174, 0.45);
}

.mteam-title-link:hover,
.mteam-title-link:focus-visible {
    color: #4f35ae;
    border-bottom-style: solid;
}

.mteam-heading p {
    margin: 0;
    color: var(--muted);
}

.mteam-heading-title {
    min-width: 0;
    padding-top: 4px;
    margin-bottom: 18px;
}

.mteam-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 2px;
    border-top: 1px solid #e7e2ef;
    border-bottom: 1px solid #e7e2ef;
}

.mteam-member-summary {
    flex: 1;
    min-width: 0;
}

.mteam-member-summary-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.mteam-member-refresh {
    padding: 0;
    color: #6b50c7;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

.mteam-member-refresh:hover:not(:disabled) {
    color: #4830a6;
    text-decoration: underline;
}

.mteam-member-output {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    min-height: 28px;
    color: var(--muted);
    font-size: 13px;
}

.mteam-member-name {
    color: #25202f;
    font-size: 15px;
}

.mteam-member-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.mteam-member-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 12px;
    border-left: 1px solid #ddd7e8;
}

.mteam-member-stat small {
    color: #8a8492;
    font-size: 11px;
}

.mteam-member-stat strong {
    color: #3d3745;
    font-size: 12px;
}

.mteam-status-group {
    display: grid;
    flex: 0 0 auto;
    gap: 7px;
    justify-items: start;
}

.mteam-api-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mteam-api-status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.mteam-api-status.is-loading {
    color: #5d6470;
}

.mteam-api-status.is-success {
    color: #087f5b;
}

.mteam-api-status.is-warning {
    color: #9a5a08;
}

.mteam-api-status.is-error {
    color: #a62d24;
}

.mteam-module-tabs {
    display: inline-flex;
    gap: 5px;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #dfd9ed;
    border-radius: 13px;
    background: #f5f2fb;
}

.mteam-module-tab {
    min-height: 38px;
    padding: 8px 18px;
    color: #6a6373;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mteam-module-tab:hover:not(:disabled) {
    color: #5036ad;
    background: rgba(255, 255, 255, 0.75);
}

.mteam-module-tab.is-active {
    color: #4f35ae;
    background: #fff;
    box-shadow: 0 5px 16px rgba(65, 45, 122, 0.12);
}

.mteam-module-tab:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.mteam-module-panel[hidden] {
    display: none;
}

.mteam-layout {
    display: block;
}

.mteam-main-panel,
.mteam-side-card {
    border: 1px solid #e3deef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.mteam-main-panel {
    padding: 20px;
}

.mteam-search-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-radius: 14px;
    background: #f7f5fc;
}

.mteam-search-form input,
.mteam-search-form select,
.mteam-member-form input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dcd6ea;
    border-radius: 9px;
    color: var(--text);
    background: #fff;
    outline: none;
    font: inherit;
}

.mteam-search-form input:focus,
.mteam-search-form select:focus,
.mteam-member-form input:focus {
    border-color: rgba(91, 63, 192, 0.58);
    box-shadow: 0 0 0 3px rgba(91, 63, 192, 0.1);
}

.mteam-search-actions {
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.mteam-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 2px 14px;
}

.mteam-results-header h3 {
    margin: 0 0 5px;
}

.mteam-total-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #5b3fc0;
    border-radius: 999px;
    background: #eee9ff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mteam-message.is-success {
    color: #087f5b;
}

.mteam-message.is-error {
    color: var(--danger);
}

.mteam-result-list {
    display: grid;
    gap: 12px;
}

.mteam-empty-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    border: 1px dashed #d8d1e8;
    border-radius: 14px;
    background: #fbfaff;
}

.mteam-result-card {
    padding: 16px;
    border: 1px solid #e4dfef;
    border-radius: 14px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mteam-result-card:hover {
    transform: translateY(-1px);
    border-color: #c7bde6;
    box-shadow: 0 14px 30px rgba(66, 48, 112, 0.09);
}

.mteam-result-top,
.mteam-result-badges,
.mteam-result-actions,
.mteam-label-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mteam-result-top {
    justify-content: space-between;
    margin-bottom: 10px;
}

.mteam-result-top time {
    color: #82818b;
    font-size: 12px;
}

.mteam-id-badge,
.mteam-promo-badge,
.mteam-subtitle-badge,
.mteam-label-list span {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.mteam-id-badge {
    color: #5b3fc0;
    background: #eee9ff;
}

.mteam-promo-badge {
    color: #a44c0b;
    background: #ffead7;
}

.mteam-subtitle-badge {
    color: #087f5b;
    background: #dff8ed;
}

.mteam-result-title {
    display: block;
    width: 100%;
    padding: 0;
    color: #30254e;
    text-align: left;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
}

.mteam-result-title:hover {
    color: #6546cf;
}

.mteam-result-description {
    display: -webkit-box;
    margin: 7px 0 10px;
    overflow: hidden;
    color: #717079;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mteam-label-list {
    margin-bottom: 10px;
}

.mteam-label-list span {
    color: #53606a;
    background: #f0f3f5;
}

.mteam-result-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8f7fb;
}

.mteam-meta-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.mteam-meta-item small {
    color: #8a8791;
    font-size: 10px;
}

.mteam-meta-item strong {
    overflow: hidden;
    color: #47424f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mteam-meta-item.is-seeder strong {
    color: #07805a;
}

.mteam-meta-item.is-leecher strong {
    color: #c34e42;
}

.mteam-result-actions {
    margin-top: 12px;
}

.mteam-result-actions button {
    padding: 8px 12px;
    font-size: 12px;
}

.mteam-transmission-button {
    background: linear-gradient(135deg, #306fbe, #204e91);
}

.mteam-transmission-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #245fa9, #183f78);
}

.mteam-download-panel {
    padding: 20px;
    border: 1px solid #e3deef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.mteam-download-heading,
.mteam-download-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mteam-download-heading h3 {
    margin: 4px 0 5px;
}

.mteam-download-heading p {
    margin: 0;
}

.mteam-download-message.is-success {
    color: #087f5b;
}

.mteam-download-message.is-error {
    color: var(--danger);
}

.mteam-download-updated {
    color: #817b89;
    font-size: 12px;
    white-space: nowrap;
}

.mteam-download-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.mteam-download-summary article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #e7e2ef;
    border-radius: 12px;
    background: linear-gradient(145deg, #fbfaff, #f6f3fc);
}

.mteam-download-summary small {
    color: #827b8b;
    font-size: 11px;
    font-weight: 700;
}

.mteam-download-summary strong {
    overflow: hidden;
    color: #33294d;
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mteam-download-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e0ed;
    border-radius: 14px;
    background: #fff;
}

.mteam-download-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    table-layout: fixed;
}

.mteam-download-table th,
.mteam-download-table td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eeeaf3;
    font-size: 12px;
}

.mteam-download-table th {
    color: #6d6676;
    background: #f7f5fb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.mteam-download-table th:first-child {
    width: 280px;
}

.mteam-download-table th:nth-child(3) {
    width: 150px;
}

.mteam-download-table th:nth-child(8),
.mteam-download-table th:nth-child(9) {
    width: 145px;
}

.mteam-download-table tbody tr:last-child td {
    border-bottom: 0;
}

.mteam-download-table tbody tr:hover td {
    background: #fcfbff;
}

.mteam-download-name {
    display: block;
    overflow: hidden;
    color: #352b4c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mteam-download-name-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #918a99;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mteam-download-progress {
    display: grid;
    gap: 5px;
}

.mteam-download-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e5f0;
}

.mteam-download-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6a4fd1, #3c82d0);
}

.mteam-download-progress strong {
    color: #514a5a;
    font-size: 11px;
}

.mteam-download-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #625b6b;
    background: #efedf2;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.mteam-download-status.is-downloading {
    color: #185c9f;
    background: #e0eefc;
}

.mteam-download-status.is-complete {
    color: #087453;
    background: #dff7ec;
}

.mteam-download-status.is-checking,
.mteam-download-status.is-waiting {
    color: #8b590b;
    background: #fff0d7;
}

.mteam-download-status.is-error {
    color: #a62d24;
    background: #fde5e2;
}

.mteam-download-date,
.mteam-download-speed-value,
.mteam-download-size {
    color: #5f5966;
    white-space: nowrap;
}

.mteam-download-speed-value.is-active {
    color: #1768ae;
    font-weight: 800;
}

.mteam-download-empty {
    height: 180px;
    color: var(--muted);
    text-align: center !important;
}

.mteam-inline-link,
.mteam-site-link {
    color: #6546cf;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.mteam-inline-link:hover,
.mteam-site-link:hover {
    text-decoration: underline;
}

.mteam-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.mteam-pagination[hidden] {
    display: none;
}

.mteam-pagination span {
    color: #5c5863;
    font-size: 13px;
    font-weight: 700;
}

.mteam-side-panel {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.mteam-side-card {
    padding: 18px;
}

.mteam-side-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mteam-side-card-heading h3 {
    margin: 3px 0 0;
}

.mteam-card-kicker {
    color: #6b50c7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.mteam-member-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.mteam-side-output {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.mteam-detail-title {
    display: block;
    color: #30254e;
    line-height: 1.55;
}

.mteam-detail-subtitle {
    margin: 7px 0 12px;
    color: #77727f;
}

.mteam-key-value-list {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px 10px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 10px;
    background: #f8f7fb;
}

.mteam-key-value-list dt {
    color: #8a8791;
}

.mteam-key-value-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #413b4b;
    font-weight: 700;
}

.mteam-detail-description {
    max-height: 260px;
    margin: 12px 0;
    padding: 12px;
    overflow: auto;
    color: #56505e;
    border: 1px solid #ece8f3;
    border-radius: 10px;
    background: #fbfaff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.mteam-detail-download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 1120px) {
    .mteam-overview {
        align-items: flex-start;
    }

    .mteam-search-form {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    .mteam-keyword-field {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .mteam-overview {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .mteam-status-group {
        grid-template-columns: 1fr;
        justify-content: start;
        justify-items: start;
    }

    .mteam-download-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mteam-download-actions {
        width: 100%;
    }

    .mteam-download-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .mteam-page {
        width: calc(100% - 20px);
        margin: 12px auto 32px;
        padding: 16px;
        border-radius: 20px;
    }

    .mteam-status-group {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .mteam-api-status {
        white-space: normal;
    }

    .mteam-member-output {
        align-items: flex-start;
        flex-direction: column;
    }

    .mteam-member-stat {
        padding: 0 10px;
    }

    .mteam-main-panel {
        padding: 12px;
    }

    .mteam-module-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .mteam-module-tab {
        padding-inline: 10px;
    }

    .mteam-download-panel {
        padding: 12px;
    }

    .mteam-download-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mteam-download-actions button {
        width: 100%;
    }

    .mteam-search-form {
        grid-template-columns: 1fr;
    }

    .mteam-keyword-field {
        grid-column: auto;
    }

    .mteam-search-actions,
    .mteam-result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mteam-result-actions button,
    .mteam-inline-link {
        width: 100%;
        text-align: center;
    }

    .mteam-result-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mteam-detail-download-actions {
        grid-template-columns: 1fr;
    }

    .mteam-result-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== 蜜雪冰城 自助批量下单 ===== */
.mixue-page {
    max-width: 100%;
}

.mixue-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.mixue-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mixue-step-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #e5302d;
    margin: 0;
}

.mixue-step-no {
    background: #e5302d;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mixue-banner {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.mixue-banner.is-ok { background: #e6f7ef; color: #1e7a4f; border: 1px solid #b7ebd1; }
.mixue-banner.is-warn { background: #fff7e6; color: #8a6d1a; border: 1px solid #ffe1a8; }
.mixue-banner.is-err { background: #fdecea; color: #c0392b; border: 1px solid #f8cbad; }

.mixue-counts {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
    font-weight: 600;
}

.mixue-cards {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.mixue-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}

.mixue-card-row:hover {
    background: #f4f6f4;
    border-color: rgba(229, 48, 45, 0.3);
}

.mixue-card-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #e5302d;
    flex-shrink: 0;
    cursor: pointer;
}

.mixue-card-row .info {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.mixue-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 6px;
}
.mixue-tag.ok { background: #e6f7ef; color: #22a06b; }
.mixue-tag.used { background: #fff3e0; color: #e67e22; }
.mixue-tag.dead { background: #fdecea; color: #c0392b; }

.mixue-card-row.disabled { opacity: 0.5; }

.mixue-card-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.mixue-select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.mixue-input {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}
.mixue-input:focus, .mixue-select:focus {
    border-color: #e5302d;
    box-shadow: 0 0 0 3px rgba(229, 48, 45, 0.12);
}

.compact-select { height: 36px; padding: 0 10px; font-size: 13px; }
.compact-input { height: 36px; padding: 0 10px; font-size: 13px; }
.mixue-control-label { font-size: 13px; color: var(--muted); white-space: nowrap; }

.mixue-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.mixue-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e5302d;
}

.mixue-shop-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mixue-shop-search-row input {
    flex: 1;
}

.mixue-shop-info {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.mixue-ctx-box {
    background: #fff7e6;
    border: 1px solid #ffe1a8;
    color: #8a6d1a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.mixue-prod {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    transition: all 0.15s ease;
}

.mixue-prod:hover {
    border-color: rgba(229, 48, 45, 0.4);
}

.mixue-prod.sel {
    border-color: #e5302d;
    background: #fff5f5;
    box-shadow: 0 0 0 1px #e5302d;
}

.mixue-prod .price {
    color: #e5302d;
    font-weight: 700;
}

.mixue-prod .desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
}

.mixue-spec-block {
    border-top: 1px dashed var(--line);
    margin-top: 10px;
    padding-top: 10px;
    display: none;
}

.mixue-spec-block.show {
    display: block;
}

.mixue-spec-block h4 {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 6px;
    font-weight: 700;
}

.mixue-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mixue-opt {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: var(--text);
    transition: all 0.15s ease;
}

.mixue-opt:hover {
    border-color: #e5302d;
    color: #e5302d;
}

.mixue-opt.sel {
    background: #e5302d;
    border-color: #e5302d;
    color: #fff;
}

.mixue-opt .pp {
    font-size: 11px;
    color: var(--muted);
}

.mixue-opt.sel .pp {
    color: #ffe0df;
}

.mixue-log-box {
    background: #1e293b;
    color: #4ade80;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    font-family: Consolas, Monaco, monospace;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 14px;
    white-space: pre-wrap;
    line-height: 1.6;
}

.mixue-res-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.mixue-res-table th, .mixue-res-table td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
    word-break: break-all;
}

.mixue-res-table th {
    background: var(--panel-soft);
    color: var(--muted);
    font-weight: 700;
}

.mixue-res-table .ok { color: #22a06b; font-weight: 700; }
.mixue-res-table .fail { color: #c0392b; font-weight: 700; }
.mixue-res-table .wait { color: #e67e22; font-weight: 700; }
.mixue-res-table .skip { color: var(--muted); }

.mixue-paylink {
    color: #e67e22;
    word-break: break-all;
    font-size: 12px;
    line-height: 1.6;
}

/* 蜜雪冰城 店铺多选弹窗 */
.mixue-shop-choices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.mixue-shop-choice-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mixue-shop-choice-item:hover {
    border-color: #e5302d;
    background: var(--panel-hover);
}

.mixue-shop-choice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mixue-shop-choice-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.mixue-shop-choice-info b {
    font-size: 15px;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.mixue-shop-choice-info span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.mixue-shop-choice-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.mixue-shop-check-status {
    font-size: 13px;
    line-height: 1.4;
}

/* 蜜雪冰城 购物车组件 */
.mixue-cart-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--panel-soft);
    border: 1.5px solid #e5302d;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(229, 48, 45, 0.08);
}

.mixue-cart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.mixue-cart-title h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
}

.mixue-cart-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.mixue-cart-content b {
    color: #e5302d;
    font-size: 16px;
}


