:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-soft: #eef5f4;
    --ink: #17211f;
    --muted: #667a76;
    --line: #dce8e5;
    --teal: #176d67;
    --teal-dark: #10534f;
    --mint: #cfeee3;
    --amber: #d6821f;
    --red: #c64545;
    --blue: #315f95;
    --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
}

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

button,
input {
    font: inherit;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--teal);
    color: white;
    font-weight: 900;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.button.primary {
    border-color: var(--teal);
    background: var(--teal);
    color: white;
}

.button.primary:hover:not(:disabled) {
    background: var(--teal-dark);
}

.button.ghost {
    background: transparent;
}

.button.compact {
    min-height: 36px;
    padding: 0 14px;
}

.login-page {
    background:
        linear-gradient(130deg, rgba(207, 238, 227, 0.76), rgba(255, 255, 255, 0.42) 40%, rgba(252, 236, 208, 0.74)),
        var(--bg);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 56px;
    width: min(1120px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 56px 0;
    align-items: center;
}

.login-intro {
    display: grid;
    gap: 38px;
}

.login-intro h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
}

.intro-copy {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.security-list > div {
    min-height: 138px;
    border: 1px solid rgba(220, 232, 229, 0.9);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.security-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 8px;
    background: var(--mint);
    color: var(--teal-dark);
    font-weight: 800;
}

.security-list strong {
    display: block;
    margin-bottom: 8px;
}

.security-list p,
.mini-desc,
.risk-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-panel {
    width: 100%;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.tab {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.tab.active {
    background: var(--surface);
    color: var(--teal);
    box-shadow: 0 6px 18px rgba(23, 33, 31, 0.08);
}

.qr-card,
.empty-state,
.welcome-panel,
.admin-section,
.metric-card,
.mini-card {
    border: 1px solid rgba(220, 232, 229, 0.96);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.qr-card {
    padding: 26px;
}

.panel-head,
.section-head,
.admin-header,
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-head h2,
.admin-section h2,
.welcome-panel h1,
.admin-header h1,
.mini-card h1 {
    margin: 0;
}

.state-pill {
    display: inline-flex;
    min-width: 72px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 10px;
    background: var(--surface-soft);
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.state-pill.scanned,
.status-dot.scanned {
    background: #fff0d9;
    color: var(--amber);
}

.state-pill.confirmed,
.state-pill.consumed,
.status-dot.confirmed,
.status-dot.consumed {
    background: #e1f4ea;
    color: #237044;
}

.state-pill.expired,
.state-pill.canceled,
.state-pill.danger,
.status-dot.expired,
.status-dot.canceled,
.status-dot.danger {
    background: #fae5e5;
    color: var(--red);
}

.qr-box {
    position: relative;
    display: grid;
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    margin: 28px auto 20px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfb;
}

.qr-box img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.qr-loading {
    display: grid;
    gap: 12px;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--line);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.qr-mask {
    position: absolute;
    inset: 0;
    display: none;
    gap: 14px;
    place-content: center;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.qr-mask.is-visible {
    display: grid;
}

.status-row {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
}

.status-dot.waiting {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        transform: scale(1.35);
        opacity: 0.58;
    }
}

.mini-preview-link {
    display: flex;
    justify-content: center;
    margin: 6px 0 0;
    color: var(--blue);
    font-weight: 800;
}

.divider {
    height: 1px;
    margin: 24px 0;
    background: var(--line);
}

.password-form {
    display: grid;
    gap: 14px;
}

.password-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.password-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: var(--surface-soft);
    color: var(--muted);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-form button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-shell,
.center-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.welcome-panel,
.empty-state {
    padding: 34px;
}

.welcome-panel p {
    color: var(--muted);
}

.center-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.empty-state {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.admin-page {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    background: var(--bg);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    padding: 28px 20px;
    background: #fbfdfc;
}

.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 36px;
}

.side-nav a {
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--muted);
    font-weight: 800;
}

.side-nav span.disabled {
    border-radius: 8px;
    padding: 12px 14px;
    color: #9aa9a6;
    font-weight: 800;
    cursor: not-allowed;
    opacity: 0.72;
}

.side-nav a.active,
.side-nav a:hover {
    background: var(--surface-soft);
    color: var(--teal);
}

.admin-main {
    display: grid;
    gap: 24px;
    min-width: 0;
    padding: 32px;
}

.admin-header {
    min-height: 64px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

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

.metric-card {
    display: grid;
    gap: 12px;
    min-height: 116px;
    padding: 20px;
}

.metric-card span {
    color: var(--muted);
    font-weight: 700;
}

.metric-card strong {
    font-size: 34px;
}

.metric-card.good {
    border-color: #b8dfc9;
}

.metric-card.warn {
    border-color: #efcf9f;
}

.admin-section {
    min-width: 0;
    padding: 24px;
}

.admin-view {
    display: none;
}

.admin-view.is-active {
    display: grid;
    gap: 24px;
}

.admin-section.admin-view.is-active {
    display: grid;
}

.admin-cdk-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.admin-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: var(--surface-soft);
    color: var(--ink);
}

.admin-cdk-form .inline-status {
    grid-column: 1 / -1;
    min-height: 24px;
    color: var(--muted);
    font-weight: 800;
}

.admin-user-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.admin-user-toolbar .inline-status {
    grid-column: 1 / -1;
    min-height: 24px;
    color: var(--muted);
    font-weight: 800;
}

.admin-user-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.admin-empty {
    min-height: 88px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.admin-user-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(23, 33, 31, 0.06);
    overflow: hidden;
}

.admin-user-card-top {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 0;
}

.admin-user-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--teal);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.admin-user-info,
.admin-user-vip,
.admin-user-meta {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.admin-user-info strong {
    color: var(--ink);
    font-size: 16px;
}

.admin-user-info span,
.admin-user-vip em,
.admin-user-meta span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-openid {
    max-width: min(560px, 58vw);
}

.admin-user-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 16px;
}

.admin-user-meta span {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(220, 232, 229, 0.9);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfdfc;
}

.admin-user-meta b {
    color: var(--ink);
    font-size: 12px;
}

.admin-vip-pill {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.admin-vip-pill.is-vip {
    background: #fff0d9;
    color: var(--amber);
}

.admin-vip-pill.is-normal {
    background: var(--surface-soft);
    color: var(--muted);
}

.admin-user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--line);
    padding: 14px 16px 16px;
    background: #fbfdfc;
}

.danger-outline {
    border-color: #f3c7c7 !important;
    color: var(--red) !important;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.table-wrap {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f8fbfb;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

td {
    color: #283633;
}

tbody tr:last-child td {
    border-bottom: 0;
}

code {
    color: var(--blue);
    font-size: 12px;
}

.muted-cell,
.muted-text {
    color: var(--muted);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.policy-list,
.audit-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.policy-list > div,
.audit-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
}

.policy-list span,
.audit-item time {
    color: var(--muted);
}

.mini-preview-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: #dfe9e5;
    padding: 24px;
}

.phone-frame {
    width: min(390px, 100%);
    min-height: 760px;
    border: 10px solid #17211f;
    border-radius: 8px;
    padding: 18px;
    background: #f6faf8;
}

.mini-card {
    display: grid;
    gap: 20px;
    padding: 24px;
    box-shadow: none;
}

.mini-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.mini-card h1 {
    font-size: 30px;
}

.login-detail {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.login-detail > div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    min-height: 52px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 0 14px;
}

.login-detail > div:last-child {
    border-bottom: 0;
}

.login-detail span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.login-detail strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.risk-copy {
    border-left: 3px solid var(--amber);
    padding-left: 12px;
}

.mini-actions {
    display: grid;
    gap: 10px;
}

.mini-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 940px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0;
    }

    .login-intro h1 {
        font-size: 42px;
    }

    .security-list,
    .metric-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .side-nav {
        display: flex;
        overflow-x: auto;
        grid-template-columns: none;
        margin-top: 18px;
        padding-bottom: 4px;
    }

    .side-nav a,
    .side-nav span.disabled {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .login-shell,
    .dashboard-shell,
    .center-shell {
        width: min(100% - 24px, 420px);
    }

    .login-intro {
        gap: 24px;
    }

    .login-intro h1 {
        font-size: 34px;
    }

    .intro-copy {
        font-size: 16px;
    }

    .security-list {
        display: none;
    }

    .qr-card,
    .admin-section,
    .welcome-panel,
    .empty-state {
        padding: 18px;
    }

    .panel-head,
    .section-head,
    .admin-header,
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px;
    }

    .admin-main {
        padding: 18px;
    }

    .side-nav {
        grid-template-columns: 1fr;
    }

    .admin-cdk-form,
    .admin-user-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-user-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-user-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-main {
        width: 100%;
    }

    .admin-user-openid {
        max-width: 100%;
    }

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

    .admin-user-actions {
        justify-content: flex-start;
    }

    .admin-user-actions .button {
        flex: 1 1 96px;
    }

    .phone-frame {
        min-height: auto;
        border-width: 6px;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
    }

    td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 44px;
        border-bottom: 1px solid var(--line);
        white-space: normal;
        text-align: right;
    }

    td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--muted);
        font-weight: 800;
        text-align: left;
    }

    tbody tr:last-child td {
        border-bottom: 1px solid var(--line);
    }

    td:last-child {
        border-bottom: 0;
    }

    .muted-cell {
        justify-content: center;
        text-align: center;
    }

    .muted-cell::before {
        display: none;
    }
}

.is-hidden {
    display: none !important;
}

.scan-login-page {
    background:
        linear-gradient(145deg, rgba(227, 241, 236, 0.86), rgba(255, 255, 255, 0.78) 44%, rgba(238, 246, 242, 0.92)),
        #f6f8f7;
}

.scan-login-shell {
    display: grid;
    width: min(100% - 32px, 480px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0;
    place-items: center;
}

.scan-login-card {
    width: 100%;
    border: 1px solid rgba(220, 232, 229, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 70px rgba(23, 33, 31, 0.09);
    padding: 30px;
}

.scan-login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.scan-login-title {
    margin-top: 34px;
    text-align: center;
}

.scan-login-title h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.scan-qr-box {
    width: min(300px, 100%);
    margin: 28px auto 18px;
    background: #fbfdfc;
}

.qr-loading.is-visible {
    display: grid;
}

.qr-image {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.scan-status {
    display: grid;
    gap: 4px;
    min-height: 58px;
    justify-items: center;
}

.scan-status .status-row {
    min-height: 28px;
}

.qr-countdown {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.scan-refresh {
    width: 100%;
    margin-top: 18px;
}

.scan-login-card .mini-preview-link {
    margin-top: 14px;
}

.state-pill.creating,
.status-dot.creating {
    background: var(--surface-soft);
    color: var(--teal-dark);
}

@media (max-width: 640px) {
    .scan-login-shell {
        width: min(100% - 24px, 420px);
        padding: 24px 0;
    }

    .scan-login-card {
        padding: 22px;
    }

    .scan-login-title {
        margin-top: 28px;
    }

    .scan-login-title h1 {
        font-size: 24px;
    }
}

.portal-page {
    background: #f4f7f6;
}

.portal-topbar {
    align-items: center;
}

.portal-nav {
    flex-wrap: wrap;
}

.nav-chip {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.nav-chip.active,
.nav-chip:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--teal);
}

.portal-shell {
    display: grid;
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.portal-hero,
.portal-panel {
    border: 1px solid rgba(220, 232, 229, 0.96);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.portal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
}

.portal-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.portal-hero p:last-child {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.portal-status,
.inline-status,
.empty-inline {
    color: var(--muted);
    font-weight: 800;
}

.portal-status {
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfdfc;
    text-align: center;
}

.portal-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.portal-card strong {
    overflow-wrap: anywhere;
    font-size: 24px;
}

.portal-panel {
    display: grid;
    gap: 20px;
    padding: 24px;
}

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

.tool-card,
.result-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfdfc;
}

.tool-card h3,
.result-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
}

.tool-card p,
.result-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 8px;
    padding: 0 8px;
    background: var(--surface-soft);
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.form-grid input,
.form-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fbfdfc;
    color: var(--ink);
}

.result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 48px;
    align-items: flex-start;
}

.result-chip {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fbfdfc;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.result-chip small {
    margin-left: 8px;
    color: var(--muted);
    font-weight: 700;
}

.result-chip:hover,
.result-chip.copied,
.tool-card .copied {
    border-color: var(--teal);
    color: var(--teal);
}

.mini-result-list {
    display: grid;
    gap: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.mini-result-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.mini-result-row:last-child {
    border-bottom: 0;
}

.mini-result-name {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.mini-result-name strong {
    overflow-wrap: anywhere;
    font-size: 16px;
}

.title-dot {
    width: 4px;
    height: 18px;
    border-radius: 99px;
    background: #0081ff;
    flex: 0 0 auto;
}

.copy-action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #0081ff;
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 129, 255, 0.22);
}

.copy-action:hover,
.copy-action.copied {
    background: #006edb;
    color: #ffffff;
}

.copy-action span {
    font-weight: 900;
}

.count-badge {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    border-radius: 999px;
    margin-left: 6px;
    padding: 0 7px;
    background: #ffffff;
    color: #0081ff;
    font-size: 11px;
    font-weight: 900;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 50;
    transform: translate(-50%, 18px);
    min-width: 120px;
    border-radius: 8px;
    padding: 10px 16px;
    background: rgba(23, 33, 31, 0.92);
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.copy-toast.danger {
    background: rgba(198, 69, 69, 0.94);
}

.compact-results {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.inline-status {
    min-height: 28px;
}

.danger-text {
    color: var(--red);
}

@media (max-width: 1040px) {
    .portal-metrics,
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .portal-topbar,
    .portal-hero,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-shell {
        width: min(100% - 24px, 520px);
        padding-top: 20px;
    }

    .portal-metrics,
    .tool-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero,
    .portal-panel {
        padding: 18px;
    }
}

/* ColorUI-style mini app compatibility layer */
:root {
    --mini-bg: #f5f7fb;
    --mini-card: #ffffff;
    --mini-text: #1f2937;
    --mini-muted: #8a95a6;
    --mini-line: #edf1f7;
    --mini-blue: #0081ff;
    --mini-blue-dark: #006edb;
    --mini-blue-soft: #e8f3ff;
    --mini-green: #39b54a;
    --mini-red: #e54d42;
    --mini-yellow: #fbbd08;
    --mini-grey: #8799a3;
    --mini-shadow: 0 12px 32px rgba(45, 80, 128, 0.10);
    --mini-radius: 14px;
}

.mini-web-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 129, 255, 0.12), transparent 32%),
        linear-gradient(180deg, #eef6ff 0%, var(--mini-bg) 36%, #f8fafc 100%);
    color: var(--mini-text);
    -webkit-font-smoothing: antialiased;
}

.mini-phone-shell {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--mini-bg);
    box-shadow: 0 28px 70px rgba(28, 52, 84, 0.18);
}

.mini-topbar {
    display: flex;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid rgba(237, 241, 247, 0.9);
}

.mini-app-name {
    overflow: hidden;
    max-width: 270px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-user-line {
    margin-top: 3px;
    color: var(--mini-muted);
    font-size: 12px;
    line-height: 1.45;
}

.mini-logout {
    flex: 0 0 auto;
}

.mini-pages {
    order: 1;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 12px 96px;
    scrollbar-width: thin;
}

.mini-phone-shell.no-tabbar .mini-pages {
    padding-bottom: 18px;
}

.mini-page {
    display: grid;
    gap: 12px;
    animation: miniFadeIn 0.18s ease both;
}

.mini-page.is-hidden,
.is-hidden {
    display: none !important;
}

.mini-tabbar {
    display: grid;
    order: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    min-height: 64px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(222, 230, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(38, 55, 77, 0.08);
    backdrop-filter: blur(12px);
    position: sticky;
    bottom: 0;
    z-index: 50;
    margin: 0 12px 10px;
    border: 1px solid rgba(222, 230, 240, 0.95);
    border-radius: 20px;
}

.mini-tabbar .tabbar-item {
    display: grid;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    padding: 5px 2px;
    background: transparent;
    color: #95a1b2;
    cursor: pointer;
    place-items: center;
}

.mini-tabbar .tabbar-item span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 999px;
    font-size: 17px;
    line-height: 1;
}

.mini-tabbar .tabbar-item em {
    overflow: hidden;
    max-width: 100%;
    margin-top: 2px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-tabbar .tabbar-item.active {
    color: var(--mini-blue);
}

.mini-tabbar .tabbar-item.active span {
    background: var(--mini-blue-soft);
    box-shadow: inset 0 0 0 1px rgba(0, 129, 255, 0.08);
}

.mini-more-tabs {
    display: flex;
    order: 2;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px;
    border-top: 1px solid rgba(237, 241, 247, 0.85);
    background: rgba(255, 255, 255, 0.92);
    scrollbar-width: none;
}

.mini-more-tabs::-webkit-scrollbar {
    display: none;
}

.mini-more-tabs button {
    flex: 0 0 auto;
    min-height: 30px;
    border: 1px solid #d7e7ff;
    border-radius: 999px;
    padding: 0 14px;
    background: #f4f9ff;
    color: var(--mini-blue);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.mini-more-tabs button.active {
    border-color: var(--mini-blue);
    background: var(--mini-blue);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 129, 255, 0.22);
}

.bg-white {
    background: #ffffff !important;
}

.bg-blue,
.cu-btn.bg-blue {
    background: var(--mini-blue) !important;
    color: #ffffff !important;
}

.bg-green {
    background: var(--mini-green) !important;
    color: #ffffff !important;
}

.bg-red {
    background: var(--mini-red) !important;
    color: #ffffff !important;
}

.bg-yellow {
    background: var(--mini-yellow) !important;
    color: #3f3100 !important;
}

.bg-grey,
.bg-gray {
    background: var(--mini-grey) !important;
    color: #ffffff !important;
}

.bg-gradual-blue {
    background: linear-gradient(135deg, #39b7ff 0%, var(--mini-blue) 100%) !important;
    color: #ffffff !important;
}

.text-blue {
    color: var(--mini-blue) !important;
}

.text-gray,
.text-grey {
    color: var(--mini-muted) !important;
}

.text-green {
    color: var(--mini-green) !important;
}

.text-bold {
    font-weight: 900 !important;
}

.text-xl {
    font-size: 18px !important;
}

.text-sm {
    font-size: 12px !important;
}

.text-cut {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radius {
    border-radius: var(--mini-radius) !important;
}

.round {
    border-radius: 999px !important;
}

.solid-bottom {
    border-bottom: 1px solid var(--mini-line);
}

.padding {
    padding: 14px;
}

.flex {
    display: flex;
    align-items: center;
    min-width: 0;
}

.margin-right-xs {
    margin-right: 4px;
}

.shadow,
.shadow-blur {
    box-shadow: 0 10px 22px rgba(0, 129, 255, 0.22);
}

.line-blue {
    border: 1px solid var(--mini-blue) !important;
    background: #ffffff !important;
    color: var(--mini-blue) !important;
}

.cu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--mini-text);
}

.cu-bar.search {
    min-height: 56px;
    padding: 8px;
}

.cu-bar.justify-center {
    justify-content: center;
    text-align: center;
}

.cu-bar .action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cu-bar .sub-title {
    position: relative;
    padding-left: 0;
    font-weight: 900;
}

.cu-bar .sub-title > .bg-blue {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
}

.cu-btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    padding: 0 15px;
    background: #eef4fb;
    color: var(--mini-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.cu-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cu-btn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.cu-btn.block {
    display: flex;
    width: 100%;
}

.cu-btn.lg {
    min-height: 46px;
    font-size: 16px;
}

.cu-btn.sm {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
}

.cu-list {
    overflow: hidden;
    border-radius: var(--mini-radius);
    background: #ffffff;
}

.menu-avatar {
    display: grid;
}

.cu-list.menu-avatar > .cu-item,
.cu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 12px;
    background: #ffffff;
    color: var(--mini-text);
}

.cu-item.cur {
    cursor: pointer;
}

.cu-item.cur:hover {
    background: #f8fbff;
}

.cu-item .content {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
}

.cu-item .content > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cu-item .action {
    flex: 0 0 auto;
}

.cu-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #e9f5ff, #d9ebff);
    color: var(--mini-blue);
    font-size: 15px;
    font-weight: 900;
    object-fit: cover;
}

.cu-avatar.lg {
    width: 52px;
    height: 52px;
}

.fallback-avatar {
    box-shadow: inset 0 0 0 1px rgba(0, 129, 255, 0.12);
}

.cu-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 8px;
    background: #edf2f7;
    color: #5d6b7d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.cu-tag.sm {
    min-height: 19px;
    padding: 0 6px;
    font-size: 11px;
}

.cu-tag.light {
    background: var(--mini-blue-soft) !important;
    color: var(--mini-blue) !important;
}

.cu-tag.badge {
    background: #fff4df;
    color: #b66a00;
}

.swiperbox {
    overflow: hidden;
    border: 1px solid rgba(237, 241, 247, 0.95);
    box-shadow: var(--mini-shadow);
}

.mini-swiper {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-top: 1px solid #f0f3f8;
    background: #f8fbff;
}

.mini-swiper-item {
    display: none;
    width: 100%;
    min-height: 150px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.mini-swiper-item.active {
    display: block;
}

.mini-swiper-item img {
    display: block;
    width: 100%;
    height: 166px;
    object-fit: cover;
}

.swiper-dots {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.swiper-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.swiper-dots span.active {
    width: 18px;
    background: #ffffff;
}

.search-form {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    background: #f4f7fb;
    color: var(--mini-muted);
}

.search-form input,
.ziku-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mini-text);
    font-size: 14px;
}

.support-title {
    box-shadow: var(--mini-shadow);
}

.mini-form-stack {
    display: grid;
    gap: 12px;
}

.mini-field {
    display: grid;
    gap: 7px;
    color: #536174;
    font-size: 13px;
    font-weight: 800;
}

.mini-field input,
.mini-field select,
.cdk-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dfe8f4;
    border-radius: 12px;
    padding: 0 13px;
    background: #ffffff;
    color: var(--mini-text);
    outline: 0;
}

.mini-field input:focus,
.mini-field select:focus,
.cdk-input:focus {
    border-color: var(--mini-blue);
    box-shadow: 0 0 0 3px rgba(0, 129, 255, 0.12);
}

.mini-copy-row {
    margin-top: 8px;
    border-radius: 12px;
    box-shadow: var(--mini-shadow);
}

.mini-copy-row .action:first-child {
    overflow: hidden;
    flex: 1 1 auto;
}

.mini-result-block {
    display: grid;
    gap: 8px;
}

.name-page-card,
.list {
    border: 1px solid rgba(237, 241, 247, 0.95);
    box-shadow: var(--mini-shadow);
}

.vip-page-container {
    position: relative;
    display: grid;
    gap: 13px;
    overflow: hidden;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #eaf5ff 0%, #f7fbff 42%, #ffffff 100%);
    box-shadow: var(--mini-shadow);
}

.vip-bg-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pattern-circle,
.pattern-star,
.pattern-triangle,
.pattern-diamond {
    position: absolute;
    border-radius: 999px;
    opacity: 0.42;
}

.pattern-circle {
    top: -26px;
    right: -18px;
    width: 94px;
    height: 94px;
    background: #b8ddff;
}

.pattern-star {
    top: 86px;
    left: 18px;
    width: 20px;
    height: 20px;
    background: #ffd56a;
}

.pattern-triangle {
    right: 46px;
    bottom: 130px;
    width: 32px;
    height: 32px;
    background: #b5f0c1;
    transform: rotate(45deg);
}

.pattern-diamond {
    bottom: 32px;
    left: -14px;
    width: 56px;
    height: 56px;
    background: #d6e9ff;
}

.vip-top-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px 18px;
    background: linear-gradient(135deg, #1e95ff 0%, #006fe8 100%);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 129, 255, 0.28);
}

.vip-top-card .shine {
    position: absolute;
    top: -48px;
    right: -28px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.vip-card-title {
    position: relative;
    font-size: 22px;
    font-weight: 900;
}

.vip-card-desc {
    position: relative;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.vip-input-section {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(237, 241, 247, 0.95);
}

.vip-input-title {
    color: #536174;
    font-size: 13px;
    font-weight: 900;
}

.cdk-input {
    min-height: 48px;
    font-size: 15px;
    font-weight: 800;
}

.vip-btn-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 129, 255, 0.18);
}

.action-btn.buy-btn {
    background: linear-gradient(135deg, #ffb344, #ff7a45);
}

.action-btn.active-btn,
.action-btn:not(.buy-btn) {
    background: linear-gradient(135deg, #36b4ff, var(--mini-blue));
}

.history-btn {
    min-height: 42px;
    border: 1px dashed #b9d9ff;
    border-radius: 14px;
    background: #f7fbff;
    color: var(--mini-blue);
    font-weight: 900;
    cursor: pointer;
}

.result-tip {
    display: none;
    align-items: center;
    gap: 7px;
    border-radius: 12px;
    padding: 10px 12px;
    background: #effaf1;
    color: var(--mini-green);
    font-size: 13px;
    font-weight: 800;
}

.result-tip.show {
    display: flex;
}

.guide-section {
    position: relative;
    display: grid;
    gap: 10px;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(237, 241, 247, 0.95);
}

.guide-title {
    font-size: 15px;
    font-weight: 900;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #586579;
    font-size: 13px;
    line-height: 1.55;
}

.guide-number {
    display: inline-grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--mini-blue-soft);
    color: var(--mini-blue);
    font-size: 12px;
    font-weight: 900;
}

.promotion-card {
    display: grid;
    gap: 14px;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    box-shadow: var(--mini-shadow);
}

.invite-card-header,
.flower-title-row,
.ziku-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-title,
.flower-title,
.ziku-title {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.card-subtitle,
.notice-content {
    color: var(--mini-muted);
    font-size: 13px;
    line-height: 1.55;
}

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

.stat-item {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    border-radius: 16px;
    padding: 14px;
    background: #f5f9ff;
    box-shadow: inset 0 0 0 1px #e5f0ff;
}

.stat-value {
    color: var(--mini-blue);
    font-size: 22px;
    font-weight: 900;
}

.stat-label {
    margin-top: 5px;
    color: var(--mini-muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-icon {
    position: absolute;
    right: 10px;
    bottom: 7px;
    font-size: 28px;
    opacity: 0.2;
}

.balance-section {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--mini-line);
}

.balance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
}

.balance-label {
    color: var(--mini-muted);
    font-size: 13px;
}

.balance-value {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.promotion-notice-card,
.contact-info {
    border-radius: 16px;
    padding: 12px;
    background: #f7fbff;
}

.notice-header,
.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-title,
.info-label {
    font-weight: 900;
}

.info-value {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--mini-blue);
    font-weight: 900;
}

.flower-container {
    display: grid;
    gap: 13px;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #fff9fb 0%, #ffffff 45%);
    box-shadow: var(--mini-shadow);
}

.total-flowers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #fff0f6;
    color: #e0397b;
    font-size: 12px;
    font-weight: 900;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    position: relative;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #f0d8e5;
    border-radius: 999px;
    padding: 0 14px;
    background: #ffffff;
    color: #b45b83;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.category-item.active {
    border-color: #f05a9d;
    background: #ffecf5;
    color: #e0397b;
}

.category-item .indicator {
    position: absolute;
    right: 9px;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
}

.category-item.active .indicator {
    opacity: 1;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f4e7ef;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(224, 57, 123, 0.07);
}

.platform-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff0f6;
    color: #e0397b;
    font-weight: 900;
}

.activity-content {
    display: grid;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
}

.activity-name {
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--mini-muted);
    font-size: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.flower-count {
    color: #e0397b;
    font-weight: 900;
}

.copy-btn {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--mini-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 129, 255, 0.20);
}

.copy-btn.copied,
.copy-btn:hover {
    background: var(--mini-blue-dark);
}

.ziku-container {
    display: grid;
    gap: 13px;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--mini-shadow);
}

.ziku-total {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--mini-blue-soft);
    color: var(--mini-blue);
    font-size: 12px;
    font-weight: 900;
}

.ziku-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.ziku-tabs::-webkit-scrollbar {
    display: none;
}

.ziku-tabs .tab-item {
    flex: 0 0 auto;
    min-height: 32px;
    border: 1px solid #d7e7ff;
    border-radius: 999px;
    padding: 0 13px;
    background: #ffffff;
    color: #5d6b7d;
    font-weight: 900;
    cursor: pointer;
}

.ziku-tabs .tab-item.active {
    border-color: var(--mini-blue);
    background: var(--mini-blue);
    color: #ffffff;
}

.ziku-search {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid var(--mini-line);
    border-radius: 14px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--mini-muted);
}

.ziku-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.char-card {
    position: relative;
    display: grid;
    aspect-ratio: 1 / 1;
    border: 1px solid #e3edf9;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    place-items: center;
    box-shadow: 0 8px 18px rgba(38, 80, 130, 0.06);
}

.char-card .char {
    font-size: 24px;
    font-weight: 900;
}

.char-card .index {
    position: absolute;
    right: 6px;
    bottom: 5px;
    color: #b5bfcc;
    font-size: 10px;
    font-weight: 900;
}

.load-more,
.ziku-notice {
    min-height: 40px;
    border: 1px solid #d7e7ff;
    border-radius: 14px;
    background: #f7fbff;
    color: var(--mini-blue);
    font-weight: 900;
    cursor: pointer;
}

.faq-container {
    display: grid;
    gap: 12px;
    border-radius: 20px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--mini-shadow);
}

.faq-title-main {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.faq-grid {
    display: grid;
    gap: 10px;
}

.faq-card {
    overflow: hidden;
    border: 1px solid var(--mini-line);
    border-radius: 16px;
    background: #ffffff;
}

.faq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    cursor: pointer;
}

.faq-card .faq-question {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.faq-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--mini-blue-soft);
    color: var(--mini-blue);
    font-weight: 900;
}

.faq-answer {
    display: none;
    padding: 0 13px 13px;
    color: #657285;
    font-size: 13px;
    line-height: 1.65;
}

.faq-card.open .faq-answer {
    display: block;
}

.faq-card.open .faq-toggle {
    transform: rotate(45deg);
}

.ziku-faq-modal,
.tool-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.ziku-faq-modal.show,
.tool-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.ziku-faq-content,
.final-dialog {
    width: min(100%, 430px);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 22px 22px 18px 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    transform: translateY(16px);
    transition: transform 0.18s ease;
}

.ziku-faq-modal.show .ziku-faq-content,
.tool-modal.show .final-dialog {
    transform: translateY(0);
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mini-line);
}

.title-section {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.title-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--mini-blue);
    color: #ffffff;
    font-weight: 900;
}

.faq-title {
    font-weight: 900;
}

.close-icon,
.close-button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #526073;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.faq-body {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
}

.current-category,
.faq-item,
.faq-empty {
    border-radius: 14px;
    padding: 12px;
    background: #f7fbff;
    color: #5d6b7d;
}

.faq-item.highlight {
    background: #eaf5ff;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-index {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--mini-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.faq-footer {
    padding: 0 16px 16px;
}

.confirm-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--mini-blue);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.tool-modal {
    align-items: center;
}

.final-dialog {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.final-dialog .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
}

.dialog-top-image {
    height: 178px;
    background: linear-gradient(135deg, #dff0ff, #f4f9ff);
}

.dialog-top-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-content {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.badge-top-container,
.title-container,
.tags-container,
.buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--mini-blue-soft);
    color: var(--mini-blue);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.title-text {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.tool-tag {
    border-radius: 999px;
    padding: 5px 10px;
    background: #f1f5f9;
    color: #657285;
    font-size: 12px;
    font-weight: 800;
}

.notice-section-refined {
    overflow: hidden;
    border-radius: 16px;
    background: #fff8e8;
}

.notice-header-refined {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #b66a00;
    font-weight: 900;
}

.notice-icon-refined {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--mini-yellow);
    color: #3f3100;
}

.notice-content-white-bg {
    margin: 0 10px 10px;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
    color: #657285;
    font-size: 13px;
    line-height: 1.6;
}

.dialog-button {
    flex: 1 1 120px;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.light-blue-button {
    background: var(--mini-blue-soft);
    color: var(--mini-blue);
}

.blue-button,
.confirm-button {
    background: var(--mini-blue);
    color: #ffffff;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: max(28px, calc(22px + env(safe-area-inset-bottom)));
    z-index: 120;
    min-width: 126px;
    max-width: min(86vw, 320px);
    border-radius: 12px;
    padding: 11px 16px;
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    transform: translate(-50%, 14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.copy-toast.danger {
    background: rgba(229, 77, 66, 0.94);
}

/* Mini-program page parity: about + name generator */
.mini-logout-hidden {
    display: none !important;
}

.name-mobile-page {
    display: grid;
    gap: 12px;
}

.name-topline {
    display: flex;
    align-items: center;
    min-height: 38px;
    gap: 10px;
}

.name-back-button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.name-tool-title {
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-page-card {
    display: grid;
    gap: 14px;
    padding: 16px 14px 18px;
}

.name-mode-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
}

.name-mode-tab {
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #4b5563;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.name-mode-tab.active {
    color: var(--mini-blue);
}

.name-ziku-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8b57 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 18px rgba(255, 107, 86, 0.24);
}

.name-ziku-link span {
    display: inline-grid;
    min-width: 24px;
    min-height: 20px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    font-size: 12px;
}

.name-demo-image {
    position: relative;
    display: grid;
    min-height: 205px;
    overflow: hidden;
    place-items: center;
    border-radius: 8px;
    background: #f8fbff;
}

.name-demo-image img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.name-demo-image.has-image img {
    display: block;
}

.name-demo-image.has-image .name-demo-placeholder {
    display: none;
}

.name-demo-placeholder {
    padding: 20px;
    color: #8a95a6;
    font-weight: 800;
    text-align: center;
}

.name-notice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3094df;
    font-size: 16px;
    font-weight: 900;
}

.name-notice-row span {
    flex: 0 0 auto;
    border-radius: 7px;
    padding: 8px 13px;
    background: #ffdede;
    color: #d15a64;
}

.name-notice-row strong {
    min-width: 0;
    border-radius: 7px;
    padding: 8px 13px;
    background: #dff0ff;
    font-weight: 900;
}

.name-input-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    min-height: 54px;
    border-radius: 6px;
    background: #f5f5f5;
}

.name-input-icon {
    display: grid;
    place-items: center;
    color: #111827;
    font-size: 22px;
}

.name-input-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.name-generate-button {
    min-height: 52px;
    border: 0;
    border-radius: 7px;
    background: #0081ff;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 129, 255, 0.22);
}

.name-results-card {
    overflow: hidden;
    border-radius: 0;
    background: #ffffff;
}

.name-result-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 0 20px;
    border-bottom: 1px solid #edf1f7;
    color: #4b5563;
    font-size: 20px;
    font-weight: 900;
}

.name-result-title span {
    width: 6px;
    height: 34px;
    border-radius: 999px;
    background: var(--mini-blue);
}

.name-result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 10px 16px;
    border-bottom: 1px solid #edf1f7;
    background: #ffffff;
}

.name-result-value {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    color: #4b5563;
    font-size: 18px;
    font-weight: 800;
}

.name-result-value span {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--mini-blue);
}

.name-copy-button {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    padding: 0 20px;
    background: var(--mini-blue);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 18px rgba(0, 129, 255, 0.22);
}

.about-page {
    display: grid;
    gap: 24px;
    padding-bottom: 20px;
}

.about-hero {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: -12px -12px 0;
    padding: 54px 18px 38px;
    background: linear-gradient(135deg, #5a83f0 0%, #8850c2 100%);
    color: #ffffff;
}

.about-logo {
    position: relative;
    display: grid;
    width: 106px;
    height: 106px;
    place-items: center;
    border: 4px solid #ffffff;
    border-radius: 999px;
    background: #0f8cf4;
    box-shadow: 0 14px 26px rgba(34, 50, 120, 0.22);
}

.about-logo span {
    color: #ffffff;
    font-size: 42px;
    font-style: italic;
    font-weight: 1000;
    line-height: 1;
}

.about-logo em {
    position: absolute;
    right: -4px;
    bottom: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #ff6b2e;
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.about-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-id-pill,
.about-vip-pill,
.about-expire-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.about-id-pill {
    min-height: 38px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.16);
}

.about-id-pill strong {
    font: inherit;
}

.about-vip-pill {
    min-height: 38px;
    padding: 0 20px;
    background: #f49415;
    box-shadow: 0 9px 18px rgba(244, 148, 21, 0.22);
}

.about-vip-pill.plain {
    background: rgba(255, 255, 255, 0.18);
}

.about-expire-pill {
    min-height: 36px;
    padding: 0 18px;
    background: rgba(49, 43, 132, 0.28);
}

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

.about-section-title {
    color: #9aa0a8;
    font-size: 20px;
    font-weight: 900;
}

.about-service-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    border: 1px solid rgba(212, 184, 70, 0.45);
    border-radius: 16px;
    padding: 0 16px;
    background: linear-gradient(135deg, #191919 0%, #252525 100%);
    color: #d9bd49;
    cursor: pointer;
}

.about-service-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(217, 189, 73, 0.55);
    border-radius: 14px;
    color: #d9bd49;
    font-size: 24px;
}

.about-service-card strong {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.about-service-card em,
.about-row em {
    color: inherit;
    font-size: 34px;
    font-style: normal;
    font-weight: 300;
    opacity: 0.7;
}

.about-menu-card,
.about-vip-box {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(45, 80, 128, 0.06);
}

.about-row {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    border: 0;
    border-bottom: 1px solid #f0f2f6;
    padding: 0 16px;
    background: #ffffff;
    color: #2f3136;
    text-align: left;
    cursor: pointer;
}

.about-row:last-child {
    border-bottom: 0;
}

.about-row strong {
    font-size: 20px;
    font-weight: 900;
}

.about-row-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.about-row-icon.blue {
    background: #1886df;
}

.about-row-icon.cyan {
    background: #18a8df;
}

.about-row-icon.orange {
    background: #ff8a12;
}

.about-row-icon.red {
    background: #e54d42;
}

.about-row-icon.gray {
    background: #5e5e5e;
}

.about-vip-box {
    display: grid;
    gap: 13px;
    padding: 16px;
}

.about-vip-heading {
    display: grid;
    gap: 4px;
}

.about-vip-heading strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.about-vip-heading span {
    color: var(--mini-muted);
    font-size: 13px;
    font-weight: 800;
}

.guide-section.compact {
    margin-top: 0;
    border-radius: 14px;
}

.mini-topbar {
    justify-content: center;
}

.mini-topbar > div {
    width: 100%;
    text-align: center;
}

.mini-app-name {
    max-width: 100%;
}

.member-page {
    display: grid;
    gap: 12px;
}

.member-topline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-logo em {
    background: #111827;
    color: #ffffff;
    filter: grayscale(1);
}

.about-logo em.is-vip {
    background: #ff6b2e;
    filter: none;
}

.name-mobile-page {
    max-width: 430px;
    margin: 0 auto;
}

.name-page-card {
    padding-right: 12px;
    padding-left: 12px;
}

.name-notice-row {
    flex-wrap: nowrap;
    font-size: 15px;
}

.name-notice-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 18px;
    border-bottom: 1px solid #edf1f7;
    background: #ffffff;
}

.search-result-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    color: #5c6470;
    font-size: 18px;
    font-weight: 800;
}

.search-result-name span {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #118bff;
}

.search-copy-button {
    position: relative;
    display: grid;
    flex-shrink: 0;
    min-width: 92px;
    min-height: 50px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    padding: 12px 14px 8px;
    background: #0081ff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 129, 255, 0.22);
}

.search-copy-button em {
    font-style: normal;
}

.search-count-badge {
    position: absolute;
    top: -9px;
    right: -8px;
    display: inline-flex;
    max-width: 112px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 8px;
    background: #e95050;
    color: #ffffff;
    font-size: 12px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(3px);
}

.tool-modal .final-dialog {
    width: min(calc(100vw - 52px), 400px);
    overflow: visible;
    border-radius: 18px;
    background: #ffffff;
    transform: translateY(10px) scale(0.98);
}

.tool-modal.show .final-dialog {
    transform: translateY(0) scale(1);
}

.tool-modal .dialog-top-image {
    position: absolute;
    top: -58px;
    left: 50%;
    width: 126px;
    height: 126px;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 999px;
    background: #f4f7fb;
    box-shadow: 0 12px 24px rgba(0, 129, 255, 0.16);
    transform: translateX(-50%);
}

.tool-modal .dialog-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-modal .dialog-content {
    padding: 92px 22px 22px;
}

.tool-modal .close-button {
    top: 14px;
    right: 16px;
    background: transparent;
    color: #666b75;
    font-size: 32px;
}

.tool-modal .status-badge-top {
    height: 34px;
    min-height: 34px;
    padding: 0 18px;
    background: #ff991f;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(255, 153, 31, 0.24);
}

.tool-modal .title-text {
    font-size: 26px;
}

.tool-modal .tool-tag {
    background: #e8f3ff;
    color: #0081ff;
    font-size: 15px;
}

.tool-modal .notice-section-refined {
    border: 1px solid #ffd1d6;
    background: #fff5f6;
}

.tool-modal .notice-header-refined {
    color: #ff3b4f;
    font-size: 18px;
}

.tool-modal .notice-content-white-bg {
    color: #30333a;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.tool-modal .dialog-button {
    min-height: 54px;
    border-radius: 999px;
    font-size: 18px;
}

.tool-modal .light-blue-button {
    background: #e0f1ff;
}

.tool-modal .blue-button {
    background: #0081ff;
}

/* Mobile UX tightening */
.mini-topbar {
    min-height: 52px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
}

.mini-app-name {
    font-size: 17px;
}

.mini-pages {
    padding: 8px 10px 86px;
}

.mini-web-page .mini-pages {
    padding-top: max(8px, env(safe-area-inset-top));
}

.mini-phone-shell.no-tabbar .mini-pages {
    padding-bottom: 10px;
}

.mini-page {
    gap: 8px;
}

.mini-tabbar {
    position: fixed;
    right: auto;
    bottom: max(8px, calc(6px + env(safe-area-inset-bottom)));
    left: 50%;
    z-index: 90;
    width: min(calc(100vw - 24px), 436px);
    min-height: 58px;
    margin: 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
}

.mini-tabbar .tabbar-item {
    padding: 4px 2px;
}

.mini-tabbar .tabbar-item span {
    width: 22px;
    height: 22px;
    font-size: 15px;
}

.swiperbox,
.list,
.name-page-card,
.ziku-container,
.faq-container,
.about-menu-card {
    border-radius: 12px !important;
}

.cu-bar {
    min-height: 42px;
    padding: 8px 10px;
}

.cu-bar.search {
    min-height: 48px;
    padding: 6px;
}

.search-form {
    min-height: 36px;
}

.mini-swiper {
    min-height: 118px;
}

.mini-swiper-item,
.mini-swiper-item img {
    min-height: 118px;
    height: 128px;
}

.cu-list.menu-avatar > .cu-item,
.cu-item {
    min-height: 62px;
    gap: 10px;
    padding: 9px 10px;
}

.cu-avatar.lg {
    width: 44px;
    height: 44px;
}

.name-mobile-page {
    max-width: 400px;
    gap: 8px;
}

.mini-subpage-head,
.name-topline,
.member-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.name-back-button {
    width: 30px;
    height: 30px;
    font-size: 30px;
}

.name-tool-title {
    font-size: 15px;
}

.name-page-card {
    gap: 9px;
    padding: 10px;
}

.name-mode-row {
    gap: 6px;
}

.name-mode-tab {
    min-height: 32px;
    font-size: 15px;
}

.name-ziku-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.name-demo-image {
    min-height: 142px;
    max-height: 176px;
}

.name-demo-image img {
    max-height: 176px;
}

.name-notice-row {
    align-items: stretch;
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
}

.name-notice-row span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
}

.name-notice-row strong {
    display: block;
    overflow: visible;
    padding: 7px 10px;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

.name-input-row {
    min-height: 44px;
    grid-template-columns: 38px 1fr;
}

.name-input-row input {
    font-size: 16px;
}

.name-generate-button {
    min-height: 44px;
    font-size: 17px;
}

.name-result-title {
    min-height: 46px;
    gap: 9px;
    padding: 0 14px;
    font-size: 17px;
}

.name-result-title span {
    width: 5px;
    height: 28px;
}

.name-result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
}

.name-result-value {
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 1.35;
}

.name-result-value span {
    margin-top: 7px;
}

.name-result-value strong {
    min-width: 0;
    color: inherit;
    font: inherit;
    white-space: normal;
    word-break: break-word;
}

.name-copy-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
}

.search-result-row {
    min-height: 58px;
    padding: 8px 12px;
}

.search-result-name {
    gap: 10px;
    font-size: 16px;
}

.search-copy-button {
    min-width: 78px;
    min-height: 42px;
    padding: 10px 10px 6px;
    font-size: 15px;
}

.about-page {
    gap: 14px;
    padding-bottom: 8px;
}

.about-hero {
    gap: 9px;
    margin: -8px -10px 0;
    padding: 30px 14px 24px;
}

.about-logo {
    width: 82px;
    height: 82px;
    border-width: 3px;
}

.about-logo span {
    font-size: 32px;
}

.about-logo em {
    right: -3px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    border-width: 2px;
    font-size: 11px;
}

.about-pill-row {
    gap: 8px;
}

.about-id-pill,
.about-vip-pill {
    min-height: 32px;
    padding: 0 14px;
}

.about-expire-pill {
    min-height: 32px;
    padding: 0 14px;
}

.about-section {
    gap: 8px;
}

.about-section-title {
    font-size: 17px;
}

.about-service-card {
    grid-template-columns: 50px 1fr auto;
    min-height: 62px;
    padding: 0 12px;
}

.about-service-icon,
.about-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 17px;
}

.about-service-card strong,
.about-row strong {
    font-size: 17px;
}

.about-row {
    grid-template-columns: 50px 1fr auto;
    min-height: 60px;
    padding: 0 12px;
}

.ziku-container,
.faq-container,
.vip-page-container {
    gap: 9px;
    padding: 12px;
}

.ziku-tabs {
    gap: 6px;
}

.ziku-tabs .tab-item {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.ziku-search {
    min-height: 38px;
    border-radius: 12px;
}

.ziku-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.char-card {
    border-radius: 10px;
}

.char-card .char {
    font-size: 20px;
}

.faq-grid {
    gap: 8px;
}

.faq-card {
    border-radius: 12px;
}

.faq-card-header {
    padding: 10px 12px;
}

.faq-card .faq-question {
    font-size: 14px;
}

.faq-answer {
    padding: 0 12px 12px;
    font-size: 13px;
}

/* Home tool list should stay readable on phones */
[data-panel="home"] .cu-list.menu-avatar > .cu-item,
[data-panel="home"] .cu-item {
    min-height: 72px;
    gap: 12px;
    padding: 11px 12px;
}

[data-panel="home"] .cu-avatar.lg {
    width: 52px;
    height: 52px;
}

[data-panel="home"] .cu-item .content {
    gap: 6px;
}

[data-panel="home"] .cu-item .content > div:first-child {
    font-size: 16px;
}

[data-panel="home"] .cu-item .text-sm {
    font-size: 13px !important;
}

[data-panel="home"] .cu-tag.sm {
    min-height: 21px;
    padding: 0 7px;
    font-size: 12px;
}

/* Visual polish pass for mini-program parity */
.mini-web-page {
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 129, 255, 0.13), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(255, 153, 31, 0.10), transparent 28%),
        linear-gradient(180deg, #f4f8ff 0%, #f6f7fb 52%, #ffffff 100%);
}

.mini-page {
    animation: miniSlideIn 0.2s ease both;
}

.swiperbox,
.list,
.name-page-card,
.about-menu-card,
.faq-container,
.ziku-container,
.vip-page-container {
    border: 1px solid rgba(232, 238, 247, 0.95);
    box-shadow: 0 10px 26px rgba(37, 73, 118, 0.08);
}

[data-panel="home"] .swiperbox {
    box-shadow: 0 10px 26px rgba(0, 129, 255, 0.08);
}

[data-panel="home"] .list {
    overflow: visible;
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

[data-panel="home"] .menu-avatar {
    gap: 8px;
    overflow: visible;
    background: transparent;
}

[data-panel="home"] .cu-list.menu-avatar > .cu-item,
[data-panel="home"] .cu-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 238, 247, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(37, 73, 118, 0.06);
}

[data-panel="home"] .cu-list.menu-avatar > .cu-item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--mini-blue);
    opacity: 0.88;
}

[data-panel="home"] .cu-list.menu-avatar > .cu-item:active {
    transform: scale(0.99);
}

[data-panel="home"] .cu-avatar.lg {
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(0, 129, 255, 0.12);
}

[data-panel="home"] .cu-item .content > div:first-child .text-cut {
    color: #2f3540;
    font-weight: 900;
}

[data-panel="home"] .cu-item .action .cu-tag {
    min-width: 42px;
    border-radius: 999px;
    padding: 0 9px;
    box-shadow: 0 6px 12px rgba(251, 189, 8, 0.20);
}

.cu-tag.bg-yellow {
    background: linear-gradient(135deg, #ffe066 0%, #fbbd08 100%) !important;
}

.cu-tag.bg-green {
    background: linear-gradient(135deg, #48d86c 0%, #28b446 100%) !important;
}

.cu-tag.bg-red {
    background: linear-gradient(135deg, #ff7b72 0%, #e54d42 100%) !important;
}

.mini-tabbar {
    box-shadow: 0 12px 34px rgba(25, 45, 76, 0.16);
}

.mini-tabbar .tabbar-item:active,
.cu-btn:active,
.name-generate-button:active,
.name-copy-button:active,
.search-copy-button:active,
.about-row:active,
.about-service-card:active {
    transform: scale(0.985);
}

.tool-modal {
    background: rgba(16, 24, 40, 0.60);
}

.tool-modal .final-dialog {
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(10, 22, 42, 0.32);
}

.tool-modal .dialog-top-image {
    box-shadow: 0 14px 28px rgba(0, 129, 255, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.34);
}

.tool-modal .title-text {
    color: #1f2937;
    letter-spacing: 0;
}

.tool-modal .tags-container {
    gap: 7px;
}

.tool-modal .tool-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    height: 28px;
    border-radius: 9px;
    padding: 0 11px;
    box-shadow: inset 0 0 0 1px rgba(0, 129, 255, 0.04);
    line-height: 1;
}

.tool-modal .notice-section-refined {
    overflow: hidden;
    border-radius: 14px;
}

.tool-modal .notice-header-refined {
    min-height: 42px;
}

.tool-modal .buttons-container {
    gap: 12px;
}

.name-page-card,
.name-results-card,
.search-result-row,
.faq-card,
.char-card {
    box-shadow: 0 8px 18px rgba(37, 73, 118, 0.05);
}

.name-mode-tab.active {
    background: #e8f3ff;
}

.name-ziku-link {
    box-shadow: 0 8px 18px rgba(255, 107, 86, 0.20);
}

.name-result-row:nth-child(even),
.search-result-row:nth-child(even) {
    background: #fbfdff;
}

.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: -40px -80px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.about-hero > * {
    position: relative;
}

.about-row,
.about-service-card {
    transition: transform 0.12s ease, background-color 0.12s ease;
}

@keyframes miniSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .name-mode-row {
        grid-template-columns: 1fr 1fr;
    }

    .name-ziku-link {
        grid-column: 1 / -1;
    }

    .about-row,
    .about-service-card {
        grid-template-columns: 56px 1fr auto;
    }
}

/* Desktop admin console polish: keep the dense data usable at a glance. */
.admin-page {
    min-height: 100vh;
    grid-template-columns: 240px minmax(0, 1fr);
    background: #f5f7fb;
}

.admin-page .sidebar {
    z-index: 2;
    border-right-color: #e3e9f0;
    padding: 24px 14px;
    background: #ffffff;
    box-shadow: none;
}

.admin-page .brand {
    padding: 0 10px;
    font-size: 17px;
}

.admin-page .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.admin-page .side-nav {
    gap: 6px;
    margin-top: 30px;
}

.admin-page .side-nav a {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 14px 0 18px;
    color: #6d7b8b;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.admin-page .side-nav a::before {
    content: "";
    position: absolute;
    left: 7px;
    width: 4px;
    height: 0;
    border-radius: 999px;
    background: #2f80ed;
    transition: height 0.16s ease;
}

.admin-page .side-nav a.active,
.admin-page .side-nav a:hover {
    border-color: #dbe7fb;
    background: #eef4ff;
    color: #1d5fca;
}

.admin-page .side-nav a.active::before {
    height: 22px;
}

.admin-page .admin-main {
    display: block;
    min-width: 0;
    padding: 0 clamp(24px, 3vw, 42px) 48px;
}

.admin-page .admin-main > .admin-header,
.admin-page .admin-main > .admin-view {
    width: min(100%, 1420px);
    margin-right: auto;
    margin-left: auto;
}

.admin-page .admin-header {
    min-height: 78px;
    margin-bottom: 24px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid #e1e7ef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-page .admin-header h1 {
    color: #1e2a3a;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: 0;
}

.admin-page .admin-user {
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #617184;
    font-size: 13px;
}

.admin-page .admin-user .button {
    min-height: 38px;
    border-color: #d9e5f2;
    background: #ffffff;
    color: #41617f;
}

.admin-page .metric-grid {
    gap: 14px;
    margin-bottom: 22px;
}

.admin-page .metric-card {
    min-height: 102px;
    border-color: #e0e6ee;
    border-radius: 11px;
    padding: 17px 19px;
    background: #ffffff;
    box-shadow: none;
}

.admin-page .metric-card span {
    color: #718197;
    font-size: 13px;
}

.admin-page .metric-card strong {
    color: #203247;
    font-size: 31px;
    line-height: 1;
}

.admin-page .admin-section {
    border-color: #e0e6ee;
    border-radius: 12px;
    padding: clamp(20px, 2vw, 28px);
    background: #ffffff;
    box-shadow: none;
}

.admin-page .section-head {
    align-items: flex-start;
}

.admin-page .section-head h2,
.admin-page .admin-section > div > h2 {
    color: #223147;
    font-size: 21px;
}

.admin-page .section-head p {
    max-width: 720px;
    color: #77869a;
    line-height: 1.6;
}

.admin-page .admin-user-toolbar {
    grid-template-columns: minmax(300px, 1fr) auto auto;
    gap: 12px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid #e0e9f3;
    border-radius: 10px;
    background: #f8fafc;
}

.admin-page .admin-user-toolbar .admin-field {
    gap: 7px;
}

.admin-page .admin-user-toolbar .admin-field span {
    color: #66778c;
    font-size: 12px;
}

.admin-page .admin-user-toolbar .admin-field input {
    min-height: 46px;
    border-color: #d7e3ef;
    border-radius: 11px;
    background: #ffffff;
}

.admin-page .admin-user-toolbar .button {
    min-height: 46px;
    border-radius: 11px;
}

.admin-page .admin-user-list {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 22px;
}

.admin-page .admin-user-card {
    gap: 0;
    border-color: #dce6f0;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-page .admin-user-card:hover {
    border-color: #b8d2ec;
    box-shadow: none;
    transform: none;
}

.admin-page .admin-user-card-top {
    align-items: flex-start;
    padding: 20px 20px 16px;
}

.admin-page .admin-user-main {
    flex: 1 1 auto;
}

.admin-page .admin-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.admin-page .admin-user-info strong {
    color: #26364b;
    font-size: 17px;
}

.admin-page .admin-user-info span,
.admin-page .admin-user-vip em {
    color: #7b899b;
    line-height: 1.45;
}

.admin-page .admin-user-openid {
    max-width: 100%;
}

.admin-page .admin-user-vip {
    flex: 0 0 auto;
    justify-items: end;
    text-align: right;
}

.admin-page .admin-vip-pill {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 11px;
}

.admin-page .admin-vip-pill.is-vip {
    background: #fff2cc;
    color: #a26b00;
}

.admin-page .admin-vip-pill.is-normal {
    background: #edf1f5;
    color: #68788c;
}

.admin-page .admin-user-meta {
    gap: 10px;
    padding: 0 20px 18px;
}

.admin-page .admin-user-meta span {
    border: 0;
    border-radius: 11px;
    padding: 10px 11px;
    background: #f6f9fd;
    color: #6b7d91;
}

.admin-page .admin-user-meta b {
    color: #2b3b50;
}

.admin-page .admin-user-actions {
    justify-content: stretch;
    gap: 9px;
    padding: 14px 20px 18px;
    border-top: 1px solid #e6edf5;
    background: #fbfdff;
}

.admin-page .admin-user-actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 10px;
    white-space: nowrap;
}

.admin-page .table-wrap {
    border-color: #dce6f0;
    border-radius: 10px;
    box-shadow: none;
}

.admin-page th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f3f7fb;
    color: #64758a;
}

.admin-page td {
    color: #3e4f63;
}

.admin-page tbody tr:hover td {
    background: #f8fbff;
}

.admin-page .admin-empty {
    min-height: 130px;
    border-color: #cbdbea;
    background: #f7faff;
}

.admin-page .admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

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

.admin-page .admin-pagination-pages {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.admin-page .admin-pagination-nav,
.admin-page .admin-page-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e1ed;
    border-radius: 8px;
    background: #ffffff;
    color: #42556d;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.admin-page .admin-pagination-nav {
    gap: 7px;
    padding: 0 13px;
}

.admin-page .admin-pagination-nav span {
    font-size: 20px;
    line-height: 1;
}

.admin-page .admin-pagination-nav em {
    font-style: normal;
}

.admin-page .admin-page-button {
    width: 38px;
    padding: 0;
}

.admin-page .admin-pagination-nav:hover:not(:disabled),
.admin-page .admin-page-button:hover:not(:disabled) {
    border-color: #9fc0e7;
    background: #eef5ff;
    color: #1d5fca;
}

.admin-page .admin-page-button.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.admin-page .admin-pagination-nav:disabled,
.admin-page .admin-page-button:disabled {
    cursor: default;
}

.admin-page .admin-pagination-nav:disabled {
    border-color: #e3e9f0;
    background: #f7f9fb;
    color: #a4afbc;
}

.admin-page .admin-pagination-ellipsis {
    display: inline-flex;
    width: 24px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: #8795a7;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 941px) {
    .admin-page .admin-user-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    .admin-page {
        display: block;
        grid-template-columns: 1fr;
    }

    .admin-page .sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #e3e9f0;
        padding: 18px;
    }

    .admin-page .side-nav {
        display: flex;
        margin-top: 16px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .admin-page .side-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .admin-page .admin-main {
        max-width: none;
        padding: 22px;
    }

    .admin-page .admin-user-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-page .admin-main {
        padding: 16px 12px 28px;
    }

    .admin-page .admin-header {
        padding: 16px;
    }

    .admin-page .admin-user-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-page .admin-user-toolbar .inline-status {
        grid-column: auto;
    }

    .admin-page .admin-pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .admin-page .admin-pagination-pages {
        gap: 4px;
    }

    .admin-page .admin-pagination-nav {
        flex: 0 0 40px;
        width: 40px;
        padding: 0;
    }

    .admin-page .admin-pagination-nav em {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .admin-page .admin-page-button {
        width: 34px;
        min-height: 36px;
    }

    .admin-page .admin-pagination-ellipsis {
        width: 16px;
        min-height: 36px;
    }
}

/* Name generator modes stay centered when one or more options are hidden. */
.name-mode-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.name-mode-tab {
    flex: 0 1 132px;
    padding: 0 12px;
    white-space: nowrap;
}

.name-ziku-link {
    flex: 0 1 auto;
}

/* Deployment status page and desktop web layout */
.config-main {
    max-width: 1360px;
}

.config-intro {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.config-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.config-check {
    display: grid;
    gap: 7px;
    min-height: 82px;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.config-check span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.config-check strong {
    color: var(--ink);
    font-size: 15px;
}

.config-check.is-ok {
    border-color: #b8dfc9;
}

.config-check.is-warn {
    border-color: #efcf9f;
    background: #fffaf2;
}

.config-section {
    display: grid;
    gap: 18px;
}

.config-list {
    display: grid;
    gap: 10px;
}

.config-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    border-bottom: 1px solid rgba(220, 232, 229, 0.8);
    padding: 9px 0;
}

.config-list > div:last-child {
    border-bottom: 0;
}

.config-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.config-list strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.config-guide ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.7;
}

@media (min-width: 960px) {
    body.mini-web-page {
        display: block;
        min-height: 100vh;
        padding: 24px 0;
    }

    body.mini-web-page .mini-phone-shell {
        width: min(1240px, calc(100vw - 64px));
        min-height: calc(100vh - 48px);
        max-height: none;
        border: 1px solid rgba(218, 229, 242, 0.95);
        border-radius: 22px;
        box-shadow: 0 24px 60px rgba(28, 52, 84, 0.16);
    }

    body.mini-web-page .mini-pages {
        padding: 24px 28px 30px;
    }

    body.mini-web-page .mini-tabbar {
        position: sticky;
        right: auto;
        bottom: 16px;
        left: auto;
        width: min(420px, calc(100% - 56px));
        margin: 0 auto 18px;
        transform: none;
    }

    body.mini-web-page [data-panel="home"] .menu-avatar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.mini-web-page [data-panel="home"] .cu-list.menu-avatar > .cu-item {
        min-width: 0;
    }

    body.mini-web-page [data-panel="name"] > .name-mobile-page,
    body.mini-web-page [data-panel="search"] > .name-mobile-page,
    body.mini-web-page [data-panel="ziku"] > .name-mobile-page,
    body.mini-web-page [data-panel="problem"] > .name-mobile-page {
        width: min(860px, 100%);
        margin: 0 auto;
    }

    body.mini-web-page [data-panel="about"] .about-page {
        width: min(760px, 100%);
        margin: 0 auto;
    }
}

@media (min-width: 1260px) {
    body.mini-web-page [data-panel="home"] .menu-avatar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .config-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .config-check-grid {
        grid-template-columns: 1fr;
    }

    .config-list > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .config-list strong {
        max-width: 100%;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.empty-inline,
.empty-state {
    display: grid;
    min-height: 76px;
    place-items: center;
    border-radius: 14px;
    background: #ffffff;
    color: var(--mini-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.danger-text {
    color: var(--mini-red) !important;
}

@keyframes miniFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 520px) {
    .mini-web-page {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .mini-phone-shell {
        min-height: min(860px, calc(100vh - 48px));
        max-height: calc(100vh - 48px);
        border: 1px solid rgba(218, 229, 242, 0.95);
        border-radius: 30px;
    }
}

@media (max-width: 380px) {
    .mini-pages {
        padding-right: 10px;
        padding-left: 10px;
    }

    .ziku-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .stats-grid,
    .vip-btn-container {
        grid-template-columns: 1fr;
    }

    .cu-list.menu-avatar > .cu-item,
    .cu-item,
    .activity-card {
        align-items: flex-start;
    }
}

/* Final desktop web shell: use the full canvas instead of a phone-shaped card. */
@media (min-width: 960px) {
    body.mini-web-page {
        display: block;
        padding: 0;
        background:
            radial-gradient(circle at 8% 0%, rgba(0, 129, 255, 0.08), transparent 26%),
            linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
    }

    body.mini-web-page .mini-phone-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.mini-web-page .mini-pages {
        width: min(1480px, 100%);
        min-height: 100vh;
        margin: 0 auto;
        padding: 28px clamp(24px, 4vw, 64px) 112px;
        overflow: visible;
    }

    body.mini-web-page .mini-tabbar {
        position: fixed;
        right: auto;
        bottom: 22px;
        left: 50%;
        z-index: 100;
        width: min(420px, calc(100vw - 48px));
        margin: 0;
        border: 1px solid rgba(218, 229, 242, 0.96);
        box-shadow: 0 16px 36px rgba(29, 52, 82, 0.18);
        transform: translateX(-50%);
    }

    body.mini-web-page [data-panel="home"] .swiperbox {
        border-radius: 16px !important;
    }

    body.mini-web-page [data-panel="home"] .support-title {
        margin-top: 18px;
        border-radius: 14px !important;
    }

    body.mini-web-page [data-panel="home"] .menu-avatar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    body.mini-web-page [data-panel="home"] .cu-list.menu-avatar > .cu-item {
        min-height: 86px;
    }

    body.mini-web-page [data-panel="about"] .about-page {
        display: grid;
        grid-template-columns: minmax(320px, 0.84fr) minmax(420px, 1.16fr);
        align-items: start;
        gap: 20px 24px;
        width: min(1040px, 100%);
        margin: 0 auto;
        padding-bottom: 0;
    }

    body.mini-web-page [data-panel="about"] .about-hero {
        grid-row: 1 / span 3;
        align-content: center;
        min-height: 382px;
        margin: 0;
        border-radius: 18px;
        padding: 42px 24px;
    }

    body.mini-web-page [data-panel="about"] .about-section {
        min-width: 0;
    }

    body.mini-web-page [data-panel="about"] .about-service-card,
    body.mini-web-page [data-panel="about"] .about-row {
        min-height: 64px;
    }
}

@media (min-width: 960px) and (max-width: 1120px) {
    body.mini-web-page [data-panel="about"] .about-page {
        grid-template-columns: 1fr;
        width: min(760px, 100%);
    }

    body.mini-web-page [data-panel="about"] .about-hero {
        grid-row: auto;
    }
}

/* Admin user list uses a dense table rhythm on desktop, with cards on smaller screens. */
@media (min-width: 1240px) {
    .admin-page #user-management .admin-user-list-head {
        display: grid;
        grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.85fr) minmax(180px, 1fr) minmax(200px, auto);
        align-items: center;
        gap: 16px;
        margin-top: 22px;
        padding: 11px 18px;
        border: 1px solid #dce6f0;
        border-radius: 13px 13px 0 0;
        background: #f3f7fb;
        color: #718197;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-page #user-management .admin-user-list {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
        border: 1px solid #dce6f0;
        border-top: 0;
        border-radius: 0 0 13px 13px;
        background: #ffffff;
        overflow: hidden;
    }

    .admin-page #user-management .admin-user-card {
        display: grid;
        grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.85fr) minmax(180px, 1fr) minmax(200px, auto);
        align-items: center;
        gap: 16px;
        border: 0;
        border-bottom: 1px solid #e7edf4;
        border-radius: 0;
        padding: 14px 18px;
        box-shadow: none;
        transform: none;
    }

    .admin-page #user-management .admin-user-card:last-child {
        border-bottom: 0;
    }

    .admin-page #user-management .admin-user-card:hover {
        border-color: #e7edf4;
        background: #f9fbfe;
        box-shadow: none;
        transform: none;
    }

    .admin-page #user-management .admin-user-card-top {
        display: contents;
        padding: 0;
    }

    .admin-page #user-management .admin-user-main,
    .admin-page #user-management .admin-user-vip,
    .admin-page #user-management .admin-user-meta,
    .admin-page #user-management .admin-user-actions {
        min-width: 0;
    }

    .admin-page #user-management .admin-user-vip {
        display: flex;
        align-items: center;
        justify-items: initial;
        gap: 8px;
        text-align: left;
    }

    .admin-page #user-management .admin-user-meta {
        display: flex;
        gap: 8px;
        padding: 0;
    }

    .admin-page #user-management .admin-user-meta span {
        min-width: 70px;
        border-radius: 0;
        padding: 2px 8px 2px 0;
        background: transparent;
    }

    .admin-page #user-management .admin-user-actions {
        display: flex;
        justify-content: flex-end;
        gap: 7px;
        padding: 0;
        border-top: 0;
        background: transparent;
    }

    .admin-page #user-management .admin-user-actions .button {
        flex: 0 1 auto;
        min-height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .admin-page #user-management .admin-user-actions .button.primary {
        border-color: #d7e0eb;
        background: #ffffff;
        color: #31506f;
        box-shadow: none;
    }

    .admin-page #user-management .admin-user-actions .button.primary:hover {
        border-color: #9fc0e7;
        background: #eef5ff;
        color: #1d5fca;
    }
}

.admin-page .admin-user-list-head {
    display: none;
}

@media (max-width: 1239px) {
    .admin-page #user-management .admin-user-list-head {
        display: none;
    }
}

@media (max-width: 640px) {
    body.mini-web-page .mini-pages {
        min-height: auto;
    }

    .admin-page #user-management .admin-user-list {
        margin-top: 18px;
    }
}

/* Desktop navigation is a wide workspace header; the compact tabbar stays mobile-only. */
.desktop-nav {
    display: none;
}

@media (min-width: 960px) {
    .desktop-nav {
        position: sticky;
        top: 0;
        z-index: 110;
        display: block;
        border-bottom: 1px solid rgba(215, 226, 239, 0.92);
        background: rgba(247, 250, 254, 0.88);
        box-shadow: 0 8px 24px rgba(37, 73, 118, 0.05);
        backdrop-filter: blur(18px);
    }

    .desktop-nav-inner {
        display: grid;
        grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
        align-items: center;
        gap: 24px;
        width: min(1480px, 100%);
        min-height: 72px;
        margin: 0 auto;
        padding: 0 clamp(24px, 4vw, 64px);
    }

    .desktop-nav-title {
        display: grid;
        gap: 3px;
        color: #26384d;
    }

    .desktop-nav-title span {
        color: #8b9bad;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0;
    }

    .desktop-nav-title strong {
        font-size: 17px;
        font-weight: 900;
    }

    .desktop-nav-tabs {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px;
        border: 1px solid #dce7f3;
        border-radius: 15px;
        background: #edf3fa;
    }

    .desktop-nav-item {
        display: inline-flex;
        min-width: 128px;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        border-radius: 11px;
        padding: 0 22px;
        background: transparent;
        color: #7b8b9e;
        font-weight: 900;
        cursor: pointer;
        transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }

    .desktop-nav-item span {
        font-size: 17px;
        line-height: 1;
    }

    .desktop-nav-item em {
        font-size: 14px;
        font-style: normal;
    }

    .desktop-nav-item:hover {
        color: #2f80ed;
    }

    .desktop-nav-item.active {
        background: #ffffff;
        color: #1672d5;
        box-shadow: 0 7px 16px rgba(37, 73, 118, 0.12);
    }

    .desktop-nav-item:active {
        transform: scale(0.98);
    }

    .desktop-nav-status {
        display: inline-flex;
        align-items: center;
        justify-self: end;
        gap: 8px;
        color: #78899d;
        font-size: 12px;
        font-weight: 800;
    }

    .desktop-nav-status i {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #32b86a;
        box-shadow: 0 0 0 4px rgba(50, 184, 106, 0.12);
    }

    body.mini-web-page .mini-tabbar {
        display: none;
    }

    body.mini-web-page .mini-pages {
        padding-top: 30px;
    }

    body.mini-web-page [data-panel="home"] {
        width: min(1360px, 100%);
        margin: 0 auto;
    }

    body.mini-web-page [data-panel="name"] > .name-mobile-page {
        width: min(1100px, 100%);
        max-width: none;
    }

    body.mini-web-page [data-panel="name"] .name-page-card {
        display: grid;
        grid-template-columns: minmax(340px, 0.9fr) minmax(360px, 1.1fr);
        grid-template-areas:
            "mode mode"
            "image notice"
            "image input"
            "image action";
        gap: 14px 18px;
        align-items: stretch;
        border: 1px solid #dfe7f0;
        border-radius: 14px !important;
        padding: 18px;
        box-shadow: none;
    }

    body.mini-web-page [data-panel="name"] .name-mode-row {
        grid-area: mode;
        min-height: 46px;
        border-bottom: 1px solid #edf1f5;
        padding-bottom: 10px;
    }

    body.mini-web-page [data-panel="name"] .name-demo-image {
        grid-area: image;
        min-height: 300px;
        max-height: 390px;
        border: 1px solid #e6ecf3;
        border-radius: 10px;
    }

    body.mini-web-page [data-panel="name"] .name-demo-image img {
        max-height: 390px;
    }

    body.mini-web-page [data-panel="name"] .name-notice-row {
        grid-area: notice;
        align-items: flex-start;
        justify-content: flex-start;
        font-size: 14px;
        line-height: 1.55;
    }

    body.mini-web-page [data-panel="name"] .name-notice-row strong {
        flex: 1 1 auto;
        min-height: 42px;
    }

    body.mini-web-page [data-panel="name"] .name-input-row {
        grid-area: input;
        align-self: end;
        min-height: 50px;
    }

    body.mini-web-page [data-panel="name"] .name-generate-button {
        grid-area: action;
        align-self: end;
        min-height: 50px;
    }

    body.mini-web-page [data-panel="name"] .name-results-card {
        margin-top: 16px;
        border: 1px solid #dfe7f0;
        border-radius: 12px;
    }

    body.mini-web-page [data-panel="name"] .name-result-row {
        padding-right: 18px;
        padding-left: 18px;
    }

    body.mini-web-page [data-panel="about"] .about-page {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        width: min(1080px, 100%);
    }

    body.mini-web-page [data-panel="about"] .about-hero {
        position: relative;
        top: auto;
        grid-row: auto;
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
        gap: 24px;
        min-height: 0;
        margin: 0 0 20px;
        border: 1px solid #dfe7f0;
        border-radius: 14px;
        padding: 24px 28px;
        background: #ffffff;
        color: #25364a;
        box-shadow: none;
    }

    body.mini-web-page [data-panel="about"] .about-hero::before {
        display: none;
    }

    body.mini-web-page [data-panel="about"] .about-logo {
        width: 76px;
        height: 76px;
        border-width: 2px;
        border-color: #d9e9fb;
        box-shadow: 0 8px 18px rgba(26, 115, 209, 0.14);
    }

    body.mini-web-page [data-panel="about"] .about-logo span {
        font-size: 30px;
    }

    body.mini-web-page [data-panel="about"] .about-logo em {
        right: -2px;
        bottom: 3px;
        width: 26px;
        height: 26px;
        border-width: 2px;
        font-size: 10px;
    }

    body.mini-web-page [data-panel="about"] .about-pill-row {
        min-width: 0;
        justify-content: flex-start;
        gap: 10px;
    }

    body.mini-web-page [data-panel="about"] .about-id-pill,
    body.mini-web-page [data-panel="about"] .about-vip-pill,
    body.mini-web-page [data-panel="about"] .about-expire-pill {
        min-height: 34px;
        overflow-wrap: anywhere;
    }

    body.mini-web-page [data-panel="about"] .about-id-pill {
        background: #eef5ff;
        color: #245f9e;
    }

    body.mini-web-page [data-panel="about"] .about-vip-pill.plain {
        background: #eef1f5;
        color: #64748b;
        box-shadow: none;
    }

    body.mini-web-page [data-panel="about"] .about-expire-pill {
        justify-self: end;
        border: 1px solid #e0e7ef;
        background: #f7f9fc;
        color: #67788c;
        white-space: nowrap;
    }

    body.mini-web-page [data-panel="about"] .about-section {
        grid-template-columns: 132px minmax(0, 1fr);
        align-items: start;
        gap: 24px;
        margin: 0;
        border-right: 1px solid #dfe7f0;
        border-left: 1px solid #dfe7f0;
        padding: 18px 24px;
        background: #ffffff;
    }

    body.mini-web-page [data-panel="about"] .about-hero + .about-section {
        border-top: 1px solid #dfe7f0;
        border-radius: 14px 14px 0 0;
    }

    body.mini-web-page [data-panel="about"] .about-section + .about-section {
        border-top: 1px solid #e8edf3;
    }

    body.mini-web-page [data-panel="about"] .about-section:last-child {
        border-bottom: 1px solid #dfe7f0;
        border-radius: 0 0 14px 14px;
    }

    body.mini-web-page [data-panel="about"] .about-section-title {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 56px;
        padding-left: 4px;
        color: #64748b;
        font-size: 14px;
        letter-spacing: 0;
    }

    body.mini-web-page [data-panel="about"] .about-section-title::before {
        content: "";
        width: 4px;
        height: 16px;
        border-radius: 999px;
        background: #2f80ed;
    }

    body.mini-web-page [data-panel="about"] .about-menu-card,
    body.mini-web-page [data-panel="about"] .about-service-card {
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.mini-web-page [data-panel="about"] .about-service-card,
    body.mini-web-page [data-panel="about"] .about-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        min-height: 56px;
        border: 0;
        border-radius: 8px;
        padding: 0 10px;
        background: transparent;
        color: #27384d;
    }

    body.mini-web-page [data-panel="about"] .about-row + .about-row {
        border-top: 1px solid #edf1f5;
        border-radius: 0;
    }

    body.mini-web-page [data-panel="about"] .about-service-card:hover,
    body.mini-web-page [data-panel="about"] .about-row:hover {
        background: #f7faff;
    }

    body.mini-web-page [data-panel="about"] .about-service-icon,
    body.mini-web-page [data-panel="about"] .about-row-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 16px;
    }

    body.mini-web-page [data-panel="about"] .about-service-icon {
        border-color: #eadcaa;
        background: #fff9e8;
        color: #a47a0e;
    }

    body.mini-web-page [data-panel="about"] .about-service-card strong,
    body.mini-web-page [data-panel="about"] .about-row strong {
        font-size: 15px;
        text-align: left;
    }

    body.mini-web-page [data-panel="about"] .about-service-card em,
    body.mini-web-page [data-panel="about"] .about-row em {
        color: #94a3b8;
        font-size: 24px;
    }
}

@media (min-width: 960px) and (max-width: 1120px) {
    .desktop-nav-inner {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav-status {
        display: none;
    }

    body.mini-web-page [data-panel="about"] .about-page {
        width: min(900px, 100%);
    }

    body.mini-web-page [data-panel="about"] .about-hero {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 18px;
        padding: 22px 24px;
    }

    body.mini-web-page [data-panel="about"] .about-expire-pill {
        grid-column: 2;
        justify-self: start;
    }

    body.mini-web-page [data-panel="about"] .about-section {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 959px) {
    .desktop-nav {
        display: none;
    }

    body.mini-web-page [data-panel="name"] .name-mode-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    body.mini-web-page [data-panel="name"] .name-mode-tab {
        flex: 1 1 0;
        min-width: 0;
    }

    body.mini-web-page [data-panel="name"] .name-ziku-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body.mini-web-page [data-panel="name"] .name-mode-row.is-single .name-mode-tab {
        flex: 0 1 132px;
    }
}
