:root {
    --bg: #0b1020;
    --card: #141c33;
    --card-soft: #1b2542;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f7ff;
    --muted: #aeb8d3;
    --primary: #4f7cff;
    --primary-soft: rgba(79, 124, 255, 0.12);
    --success: #2fb87c;
    --warning: #ffb34d;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 124, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(47, 184, 124, 0.12), transparent 28%),
        var(--bg);
}

body.admin-action-page-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.hero,
.card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero {
    padding: 28px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 12px 0 12px;
    font-size: 34px;
}

.hero p {
    margin: 0 0 20px;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #b7c8ff;
    font-size: 13px;
}

.hero-actions,
.form-actions,
.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    padding: 20px;
    margin-bottom: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.card p,
.card li,
.helper,
.muted {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary);
    color: #fff;
}

.button.secondary {
    background: var(--card-soft);
    color: #fff;
}

.button.ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.button.warning {
    background: rgba(255, 179, 77, 0.15);
    color: #ffd18c;
}

.button.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #ffc1c1;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d7dff5;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0 14px;
}

.field input {
    height: 42px;
}

.field select {
    height: 42px;
    padding-right: 36px;
    appearance: none;
}

.field select option,
.field select optgroup {
    color: #17284a !important;
    background: #ffffff !important;
}

.field select option:checked,
.field select option:hover,
.field select option:focus {
    color: #17284a !important;
    background: #dce7ff !important;
}

.field textarea {
    min-height: 110px;
    padding-top: 12px;
    resize: vertical;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.table-wrap {
    overflow: auto;
}

.compact-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.compact-section-header h3 {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

th {
    color: #d7dff5;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tag.success { background: rgba(47, 184, 124, 0.16); color: #8ff0c2; }
.tag.warning { background: rgba(255, 179, 77, 0.18); color: #ffd18c; }
.tag.danger { background: rgba(255, 107, 107, 0.16); color: #ffc1c1; }
.tag.info { background: rgba(79, 124, 255, 0.16); color: #b7c8ff; }

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.task-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}

.task-card h3 {
    margin: 0 0 8px;
}

.task-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.compact-message {
    margin-top: 12px;
    padding: 9px 12px;
    font-size: 13px;
}

.hidden {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 16px;
}

.admin-sidebar h2 {
    margin: 14px 0 8px;
}

.admin-menu {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.admin-menu-button {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    padding: 0 14px;
    cursor: pointer;
}

.admin-menu-button.active {
    background: var(--primary);
    border-color: transparent;
}

.admin-sidebar-actions {
    display: grid;
    gap: 12px;
}

.admin-requirement-builder {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.admin-requirement-row {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-requirement-actions {
    align-items: end;
}

.admin-config-card {
    margin-bottom: 16px;
}

.finance-alert-card,
.finance-detail-panel {
    margin-top: 16px;
}

.finance-alert-list,
.finance-detail-list {
    display: grid;
    gap: 10px;
}

.finance-alert-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.finance-alert-item.warning {
    border-color: rgba(255, 193, 94, 0.35);
    background: rgba(255, 193, 94, 0.08);
}

.finance-alert-item.danger {
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
}

.finance-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.finance-detail-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.finance-detail-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.finance-detail-card strong {
    font-size: 22px;
    color: #f2f6ff;
}

.finance-detail-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.finance-detail-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cash-withdraw-detail-grid {
    margin-top: 6px;
}

.cash-withdraw-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    gap: 16px;
    margin-bottom: 16px;
}

.cash-withdraw-detail-box {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.cash-withdraw-detail-box h4 {
    margin: 0 0 14px;
    font-size: 16px;
}

.cash-withdraw-proof-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.cash-withdraw-detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.cash-withdraw-detail-list span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.cash-withdraw-detail-list strong {
    display: block;
    line-height: 1.6;
    color: #f2f6ff;
    word-break: break-word;
}

.cash-withdraw-qr-wrap {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px dashed rgba(153, 181, 255, 0.24);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.cash-withdraw-qr-wrap img {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.cash-withdraw-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cash-withdraw-proof-preview {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px dashed rgba(153, 181, 255, 0.24);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.cash-withdraw-proof-preview img {
    width: min(100%, 320px);
    max-height: 240px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.finance-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(112, 153, 255, 0.18);
    background: linear-gradient(135deg, rgba(86, 129, 255, 0.12), rgba(9, 19, 54, 0.46));
}

.finance-detail-hero-main h4 {
    margin: 6px 0 8px;
    font-size: 28px;
    color: #f5f8ff;
}

.finance-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #c8d7ff;
    background: rgba(124, 153, 255, 0.14);
}

.finance-detail-hero-side {
    min-width: 220px;
}

.finance-amount {
    height: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.finance-amount span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.finance-amount strong {
    font-size: 28px;
    color: #f2f6ff;
}

.finance-amount.success {
    border-color: rgba(79, 196, 140, 0.28);
    background: rgba(79, 196, 140, 0.08);
}

.finance-amount.danger {
    border-color: rgba(255, 107, 107, 0.32);
    background: rgba(255, 107, 107, 0.08);
}

.finance-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-search-grid {
    margin-bottom: 12px;
}

.finance-panel-actions {
    margin-bottom: 12px;
}

.finance-inline-warning {
    color: #ffd88a;
    font-size: 13px;
}

.align-end {
    align-items: end;
}

.admin-content {
    min-width: 0;
}

.admin-section {
    display: block;
}

.admin-section.hidden {
    display: none;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}

.inline-field-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-field-group > input,
.inline-field-group > select {
    flex: 1;
}

.finance-ranking-filter-grid {
    margin-bottom: 12px;
}

.finance-ranking-table-wrap {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .finance-detail-hero {
        flex-direction: column;
    }

    .finance-detail-hero-side {
        min-width: 0;
    }

    .inline-field-group {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-section-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.toolbar-actions {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.toolbar-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.field.compact {
    margin-bottom: 0;
}

.action-panel {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.action-panel-topbar {
    display: none;
}

.action-panel.is-page-open {
    position: fixed;
    inset: 18px;
    z-index: 110;
    margin: 0;
    padding: 18px 20px 26px;
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(79, 124, 255, 0.18);
    background: linear-gradient(180deg, rgba(17, 24, 44, 0.98), rgba(11, 16, 32, 0.97));
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.38);
}

.action-panel.is-page-open .action-panel-topbar {
    position: sticky;
    top: -18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -18px -20px 20px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 24, 44, 0.98), rgba(17, 24, 44, 0.92));
    backdrop-filter: blur(10px);
}

.action-panel-topbar-text {
    display: grid;
    gap: 8px;
}

.action-panel-topbar-text strong {
    font-size: 18px;
    color: #f2f6ff;
}

.action-panel.is-page-open .action-panel-title-source {
    display: none;
}

.admin-action-page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 10, 24, 0.7);
    backdrop-filter: blur(4px);
}

.admin-action-page-backdrop.hidden {
    display: none;
}

.filter-summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 14px;
}

.filter-summary .muted {
    margin-left: 8px;
}

.result-panel {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(79, 124, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.result-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.result-panel-body {
    display: grid;
    gap: 6px;
}

.result-panel-title {
    font-size: 15px;
    color: #dfe7ff;
}

.result-panel-text {
    color: var(--muted);
    font-size: 14px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    white-space: nowrap;
}

.result-badge.pending {
    background: rgba(255, 255, 255, 0.06);
    color: #d7dff5;
}

.result-badge.success {
    background: rgba(47, 184, 124, 0.16);
    color: #8ff0c2;
}

.result-badge.error {
    background: rgba(255, 107, 107, 0.16);
    color: #ffc1c1;
}

.pagination-bar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pagination-meta {
    color: var(--muted);
    font-size: 14px;
}

.pagination-actions {
    display: flex;
    gap: 10px;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.more-menu {
    position: relative;
}

.more-menu summary {
    list-style: none;
}

.more-menu summary::-webkit-details-marker {
    display: none;
}

.more-menu[open] .button {
    border-color: rgba(79, 124, 255, 0.45);
    background: rgba(79, 124, 255, 0.08);
}

.more-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 12;
    min-width: 180px;
    max-width: min(240px, calc(100vw - 32px));
    max-height: min(220px, calc(100vh - 32px));
    overflow-y: auto;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #16203a;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 6px;
}

.more-menu.drop-up .more-menu-list {
    top: auto;
    bottom: calc(100% + 8px);
}

.more-menu-item {
    width: 100%;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0 12px;
    cursor: pointer;
}

.table-actions .more-menu-item {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border-color: rgba(79, 124, 255, 0.24);
    background: rgba(79, 124, 255, 0.08);
    color: #dbe6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.more-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.table-actions .more-menu-item:hover {
    background: rgba(79, 124, 255, 0.16);
    border-color: rgba(79, 124, 255, 0.38);
}

.review-detail-summary,
.review-detail-body,
.review-file-card {
    display: grid;
    gap: 10px;
}

.review-file-section {
    display: grid;
    gap: 14px;
}

.review-file-section-header {
    align-items: center;
    margin-bottom: 0;
}

.review-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.readonly-status,
.review-inline-preview {
    display: grid;
    gap: 12px;
}

.readonly-status {
    min-height: 46px;
    align-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(79, 124, 255, 0.2);
    background: rgba(79, 124, 255, 0.08);
}

.review-file-url {
    word-break: break-all;
}

.review-file-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.review-file-preview {
    min-height: 120px;
}

.review-file-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.review-file-card.is-missing {
    border-color: rgba(255, 107, 107, 0.3);
}

.review-file-missing {
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
    color: #ffc1c1;
    font-size: 13px;
    line-height: 1.6;
}

.review-file-link {
    justify-self: start;
}

.review-log-section {
    margin-top: 8px;
}

.review-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 24, 0.86);
    backdrop-filter: blur(6px);
}

.review-image-lightbox.hidden {
    display: none;
}

.review-image-lightbox-dialog {
    width: min(92vw, 1100px);
    max-height: 92vh;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(79, 124, 255, 0.18);
    background: linear-gradient(180deg, rgba(16, 24, 46, 0.98), rgba(12, 20, 40, 0.96));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.review-image-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.review-image-lightbox-header h3 {
    margin: 0;
}

.review-image-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: calc(92vh - 96px);
    overflow: auto;
}

.review-image-lightbox-body img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 110px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.button.small {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-menu {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .admin-menu-button {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap;
    }

    .admin-sidebar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-header {
        flex-direction: column;
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .action-panel.is-page-open {
        inset: 10px;
        padding: 14px 14px 22px;
        border-radius: 18px;
    }

    .action-panel.is-page-open .action-panel-topbar {
        top: -14px;
        margin: -14px -14px 16px;
        padding: 14px;
    }

    .action-panel-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .review-file-grid {
        grid-template-columns: 1fr;
    }

    .review-image-lightbox {
        padding: 12px;
    }

    .review-image-lightbox-dialog {
        width: 100%;
        padding: 14px;
        border-radius: 18px;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        white-space: nowrap;
    }

    .admin-requirement-row {
        grid-template-columns: 1fr;
    }

    .cash-withdraw-detail-layout {
        grid-template-columns: 1fr;
    }

    .cash-withdraw-proof-panel {
        grid-template-columns: 1fr;
    }
}

.h5-body {
    background:
        radial-gradient(circle at top, rgba(79, 124, 255, 0.1), transparent 34%),
        linear-gradient(180deg, #f3f6fd 0%, #eaf0fb 100%);
    color: #16233d;
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
}

.h5-app {
    width: min(100% - 24px, 860px);
    margin: 0 auto;
    padding: 20px 0 28px;
}

.h5-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 24px 22px;
    border-radius: 28px;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 255, 0.92));
    box-shadow: 0 18px 40px rgba(61, 92, 152, 0.14);
}

.h5-topbar-main {
    display: grid;
    gap: 6px;
}

.h5-topbar h1 {
    margin: 6px 0 0;
    font-size: 28px;
    color: #16233d;
}

.h5-topbar .badge {
    color: #416fdf;
    background: rgba(79, 124, 255, 0.12);
    border-color: rgba(79, 124, 255, 0.16);
}

.h5-topbar p {
    color: #60708f;
}

.h5-page {
    display: grid;
    gap: 18px;
}

.h5-shell-loading {
    margin-top: 8px;
}

#h5PagesMount {
    display: grid;
    gap: 18px;
}

.h5-page.hidden {
    display: none;
}

.h5-card {
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(79, 124, 255, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(79, 124, 255, 0.08);
}

.h5-card h2,
.h5-card h3 {
    color: #17284a;
}

.h5-card > .toolbar {
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(79, 124, 255, 0.08);
}

.h5-card > .toolbar > div:first-child {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.h5-card > .toolbar h2,
.h5-card > .toolbar h3 {
    margin: 0;
}

.h5-card > .toolbar p {
    margin: 0;
}

.h5-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 14px;
}

.h5-filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(79, 124, 255, 0.16);
    border-radius: 999px;
    background: rgba(79, 124, 255, 0.06);
    color: #60708f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.h5-filter-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #4f7cff 0%, #6f97ff 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 124, 255, 0.18);
}

.h5-card .muted,
.h5-card p,
.h5-card li,
.h5-card label {
    color: #667795;
}

.h5-card .field label {
    color: #50627f;
    font-weight: 600;
}

.h5-card .field input,
.h5-card .field select,
.h5-card .field textarea {
    color: #1a2b49;
    caret-color: #2f5fe8;
    background: #ffffff;
    border: 1px solid rgba(79, 124, 255, 0.18);
    box-shadow: inset 0 1px 2px rgba(25, 41, 71, 0.04);
}

.h5-card .field input::placeholder,
.h5-card .field textarea::placeholder {
    color: #9aa8c0;
    opacity: 1;
}

.h5-card .field input:focus,
.h5-card .field select:focus,
.h5-card .field textarea:focus {
    border-color: rgba(79, 124, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12);
}

.h5-action-sheet {
    position: fixed;
    inset: 0 0 calc(118px + env(safe-area-inset-bottom, 0px));
    z-index: 48;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 24px 20px calc(34px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-radius: 0 0 28px 28px;
    border: none;
    background: linear-gradient(180deg, #f4f7ff 0%, #eef3ff 100%);
    box-shadow: none;
}

.h5-action-sheet.hidden {
    display: none;
}

.h5-action-sheet::before {
    content: '';
    display: block;
    width: min(100%, 860px);
    height: 0;
    margin: 0 auto;
}

.h5-action-sheet > * {
    width: min(100%, 860px);
    margin-left: auto;
    margin-right: auto;
}

.h5-inline-summary {
    margin: 18px auto 22px;
}

body.h5-action-open {
    overflow: hidden;
}

body.h5-auth-screen {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

body.h5-auth-screen .h5-topbar,
body.h5-auth-screen #h5FooterMount {
    display: none !important;
}

body.h5-auth-screen .h5-app {
    width: min(100% - 14px, 460px);
    min-height: 100dvh;
    padding: 6px 0 8px;
}

#page-mine.h5-auth-mode > :not(#authPanel) {
    display: none !important;
}

#authPanel:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#authPanel .toolbar {
    margin-bottom: 0;
}

body.h5-auth-screen #page-mine {
    gap: 0;
}

body.h5-auth-screen #authPanel:not(.hidden) {
    position: relative;
    inset: auto;
    min-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
    padding: 12px 12px 16px;
    border-radius: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
    box-shadow: 0 18px 38px rgba(61, 92, 152, 0.12);
}

body.h5-auth-screen #authPanel .toolbar {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

body.h5-auth-screen #authPanel .toolbar h2 {
    margin: 0;
    font-size: 26px;
}

body.h5-auth-screen #authPanel .toolbar p {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.45;
}

body.h5-auth-screen #authPanel .field label {
    margin-bottom: 4px;
    font-size: 13px;
}

body.h5-auth-screen #authPanel .field input {
    min-height: 44px;
    padding: 10px 12px;
}

body.h5-auth-screen #authPanel .form-actions {
    margin-top: 0;
    gap: 10px;
}

body.h5-auth-screen #authPanel .field {
    margin-bottom: 0;
}

body.h5-auth-screen #authPanel #authMessage {
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
}

body.h5-auth-screen #authPanel #closeAuthPanelButton {
    display: none;
}

.h5-auth-footer {
    width: min(100%, 860px);
    margin: 4px auto 0;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(79, 124, 255, 0.08);
    text-align: center;
    color: #6b7da6;
    font-size: 14px;
    line-height: 1.7;
}

.h5-auth-footer p {
    margin: 0;
}

.h5-auth-footer a {
    color: inherit;
    text-decoration: none;
}

body.h5-auth-screen .h5-auth-footer {
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
    border-top: 1px solid rgba(79, 124, 255, 0.06);
}

.h5-auth-footer a:hover {
    color: #4f7cff;
}

.h5-action-shortcuts {
    width: min(100%, 860px);
    margin: 0 auto 18px;
}

.h5-task-card {
    border-radius: 24px;
    border: 1px solid rgba(79, 124, 255, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.h5-task-head {
    align-items: flex-start;
}

.h5-task-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.h5-task-title-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.h5-task-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f7cff 0%, #7ea3ff 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(79, 124, 255, 0.22);
}

.h5-task-progress {
    margin: 14px 0 12px;
}

.h5-task-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    color: #22365d;
}

.h5-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(79, 124, 255, 0.12);
    overflow: hidden;
}

.h5-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d96ff 0%, #4f7cff 100%);
}

.h5-record-grid {
    align-items: stretch;
}

.h5-record-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.h5-record-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.h5-record-overview-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(79, 124, 255, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 12px 28px rgba(79, 124, 255, 0.08);
}

.h5-record-overview-card span {
    color: #6a7a97;
    font-size: 13px;
}

.h5-record-overview-card strong {
    color: #1b2d50;
    font-size: 24px;
    line-height: 1;
}

.h5-record-section {
    display: grid;
    gap: 12px;
}

.h5-record-section-desc {
    margin: -6px 0 0;
}

.h5-record-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.h5-record-category-button {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #1f3158;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(79, 124, 255, 0.08);
}

.h5-record-category-button strong {
    font-size: 28px;
    line-height: 1;
    color: #2950c8;
}

.h5-record-category-title {
    font-size: 16px;
    font-weight: 700;
}

.h5-record-category-enter {
    color: #4f7cff;
    font-size: 13px;
    font-weight: 600;
}

.h5-record-pagination-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.h5-record-swipe-hint {
    margin-bottom: 10px;
    font-size: 12px;
}

.h5-record-category-list {
    min-height: 180px;
}

.h5-record-pagination-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.h5-record-pagination-actions .button {
    flex: 1;
}

.h5-task-record-list {
    display: grid;
    gap: 12px;
}

.h5-task-record-list li {
    border-bottom: none;
    padding: 0;
}

.h5-task-record-item {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(79, 124, 255, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 124, 255, 0.05);
}

.h5-record-item-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.h5-record-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.h5-record-info-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #f7faff;
    border: 1px solid rgba(79, 124, 255, 0.08);
}

.h5-record-info-label {
    color: #6f7f9d;
    font-size: 12px;
    font-weight: 600;
}

.h5-record-info-card strong,
.h5-record-progress-line strong {
    color: #20345b;
    font-size: 14px;
}

.h5-record-reward-extra {
    color: #5f7090;
    font-size: 12px;
    font-weight: 600;
}

.h5-record-progress-line {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(79, 124, 255, 0.06);
    color: #60708f;
}

.h5-record-progress-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.h5-record-progress-dot {
    color: #8ea0c2;
    font-size: 13px;
    font-weight: 700;
}

.h5-record-entry {
    display: grid;
    gap: 12px;
    padding: 14px 0;
}

.h5-record-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.h5-record-entry-head strong {
    color: #22365d;
}

.h5-record-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.h5-record-kv,
.h5-record-remark {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(79, 124, 255, 0.08);
}

.h5-record-kv span,
.h5-record-remark span {
    color: #6f7f9d;
    font-size: 12px;
    font-weight: 600;
}

.h5-record-kv strong,
.h5-record-remark strong {
    color: #20345b;
    font-size: 14px;
    word-break: break-word;
}

.tag.tag-success {
    background: rgba(47, 184, 124, 0.12);
    color: #17794f;
}

.tag.tag-warning {
    background: rgba(255, 176, 32, 0.14);
    color: #9a5b00;
}

.tag.tag-danger {
    background: rgba(255, 77, 95, 0.14);
    color: #b42332;
}

.card-soft {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(79, 124, 255, 0.08);
    background: #f7faff;
}

.card-soft h3 {
    margin-bottom: 12px;
    color: #1b2d50;
}

.card-soft p,
.card-soft li,
.card-soft .muted,
.card-soft .field label {
    color: #5f7090;
}

.card-soft .field label {
    font-weight: 600;
}

.card-soft .field input,
.card-soft .field select,
.card-soft .field textarea {
    color: #1a2b49;
    caret-color: #2f5fe8;
    background: #ffffff;
    border: 1px solid rgba(79, 124, 255, 0.18);
    box-shadow: inset 0 1px 2px rgba(25, 41, 71, 0.04);
}

.card-soft .field input::placeholder,
.card-soft .field textarea::placeholder {
    color: #8b9ab5;
}

.card-soft .field input:focus,
.card-soft .field select:focus,
.card-soft .field textarea:focus {
    border-color: rgba(79, 124, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.14);
}

.h5-upload-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(79, 124, 255, 0.14);
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6ff 100%);
}

.h5-card .form-actions {
    gap: 12px;
    margin-top: 6px;
}

.h5-card .form-actions .button {
    min-height: 44px;
    border-radius: 14px;
}

.h5-card .toolbar-group {
    gap: 10px;
}

.h5-card .stats {
    gap: 14px;
}

.h5-card .stat {
    min-height: 118px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(79, 124, 255, 0.1);
    box-shadow: 0 10px 24px rgba(79, 124, 255, 0.06);
}

.h5-card .stat strong {
    line-height: 1.15;
}

.h5-reward-stats {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: stretch;
}

.h5-reward-stats .stat {
    min-width: 0;
}

.h5-reward-stats .stat span {
    display: block;
    margin-bottom: 10px;
}

.h5-reward-stats .stat strong {
    display: block;
    max-width: 100%;
    font-size: clamp(22px, 3.1vw, 30px);
    line-height: 1.2;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.h5-submit-requirement-list {
    display: grid;
    gap: 12px;
}

.h5-submit-requirement-card {
    gap: 10px;
}

.h5-payment-method-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(79, 124, 255, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.h5-mine-card {
    display: grid;
    gap: 18px;
}

.h5-mine-toolbar {
    margin-bottom: 0 !important;
}

.h5-mine-toolbar-main {
    display: grid;
    gap: 6px;
}

.h5-mine-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.h5-quick-action-button {
    min-height: 92px;
    padding: 16px 14px;
    border-radius: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    box-shadow: 0 12px 24px rgba(79, 124, 255, 0.12);
}

.h5-quick-action-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.h5-quick-action-desc {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.88;
}

.h5-mine-entry-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: #1d3157;
    text-align: left;
    cursor: pointer;
}

.h5-mine-entry-main,
.h5-mine-entry-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-mine-entry-main {
    flex-direction: column;
    align-items: flex-start;
}

.h5-mine-entry-main > span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #1c2f54;
}

.h5-mine-entry-main .muted {
    font-size: 13px;
}

.h5-mine-entry-arrow {
    color: #5b6f95;
    font-size: 13px;
    font-weight: 600;
}

.h5-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff4d5f;
    box-shadow: 0 0 0 3px rgba(255, 77, 95, 0.12);
}

.h5-unread-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4d5f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.h5-system-notice-list {
    display: grid;
    gap: 12px;
}

.h5-system-notice-item {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.h5-system-notice-item.unread {
    border-color: rgba(255, 77, 95, 0.28);
    box-shadow: 0 8px 24px rgba(255, 77, 95, 0.08);
}

.h5-system-notice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.h5-system-notice-title {
    display: grid;
    gap: 6px;
}

.h5-system-notice-title strong {
    color: #22365d;
    font-size: 15px;
}

.h5-system-notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #647695;
    font-size: 12px;
}

.h5-system-notice-content {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(79, 124, 255, 0.05);
    color: #32476e;
    line-height: 1.7;
    word-break: break-word;
}

.h5-system-notice-actions {
    display: flex;
    justify-content: flex-end;
}

.h5-record-grid-single {
    grid-template-columns: 1fr;
}

.h5-upload-toolbar {
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.h5-upload-toolbar .muted {
    font-size: 13px;
}

.h5-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.h5-upload-single {
    display: grid;
}

.h5-upload-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 18px;
    border: 1px dashed rgba(79, 124, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #7b8aa7;
    text-align: center;
    font-size: 14px;
}

.h5-upload-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 124, 255, 0.08);
}

.h5-upload-card-single {
    max-width: 220px;
}

.h5-upload-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #eef4ff 0%, #dfe9ff 100%);
}

.h5-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.h5-upload-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.h5-share-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.h5-share-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    border: 1px solid rgba(79, 124, 255, 0.12);
}

.h5-share-qr {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(79, 124, 255, 0.12);
}

.h5-share-info .field input[readonly] {
    background: #f8fbff;
}

.h5-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100% - 20px, 720px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(79, 124, 255, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 40px rgba(56, 86, 143, 0.18);
    backdrop-filter: blur(18px);
    z-index: 60;
}

.h5-site-footer {
    margin: 10px 0 calc(132px + env(safe-area-inset-bottom, 0px));
    padding: 12px 18px 2px;
    text-align: center;
}

.h5-site-footer-link {
    color: #6b7da6;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
}

.h5-site-footer-link:hover {
    color: #4f7cff;
}

.h5-nav-button {
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    color: #6e7f9d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.h5-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
}

.h5-nav-label {
    line-height: 1;
}

.h5-nav-button.active {
    background: linear-gradient(135deg, #4f7cff 0%, #5f8fff 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(79, 124, 255, 0.24);
}

.h5-nav-button.disabled,
.h5-nav-button:disabled,
.button.disabled,
.button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 760px) {
    .h5-app {
        width: min(100% - 16px, 720px);
        padding-top: 14px;
    }

    .h5-topbar {
        flex-direction: column;
    }

    .h5-card {
        padding: 16px;
    }

    .h5-record-item-head {
        flex-direction: column;
    }

    .h5-record-category-grid,
    .h5-record-overview,
    .h5-record-info-grid,
    .h5-record-kv-grid {
        grid-template-columns: 1fr;
    }

    .h5-record-pagination-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .h5-task-tags {
        justify-content: flex-start;
    }

    .h5-bottom-nav {
        width: min(100% - 16px, 720px);
        gap: 8px;
        padding: 8px;
    }

    .h5-share-layout {
        grid-template-columns: 1fr;
    }

    .h5-upload-toolbar {
        align-items: stretch;
    }

    .h5-upload-card-single {
        max-width: none;
    }

    .h5-share-qr-wrap {
        min-height: 188px;
    }

    .h5-nav-button {
        min-height: 54px;
        font-size: 12px;
    }

    .h5-nav-icon {
        font-size: 17px;
    }
}
