* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #18202a;
    background: #f4f6f8;
}

a {
    color: #1769aa;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-panel {
    width: min(420px, 100%);
    padding: 28px;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 37, 54, 0.08);
}

.auth-panel h1 {
    margin: 0 0 22px;
    font-size: 24px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    font-size: 15px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.checkbox-line input {
    width: 16px;
    height: 16px;
}

select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
}

button {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: #1769aa;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.secondary-button {
    background: #e8f1f8;
    color: #164c76;
}

.message {
    min-height: 20px;
    color: #b42318;
}

.form-link {
    text-align: center;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #dce3ea;
}

.dashboard {
    padding: 24px;
}

.app-page {
    min-height: 100vh;
    background: #f4f6f8;
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #dce3ea;
}

.app-nav nav,
.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.app-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.full-span {
    grid-column: 1 / -1;
}

.panel {
    margin-bottom: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
}

.panel h1 {
    margin: 0 0 16px;
    font-size: 20px;
}

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

.summary-grid {
    margin-bottom: 16px;
}

.summary-grid article,
.data-grid article {
    padding: 16px;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
}

.summary-grid span,
.data-grid span {
    display: block;
    color: #667085;
    font-size: 13px;
}

.summary-grid strong,
.data-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
}

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

.tile-grid article,
.detail-list div {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5ebf1;
    border-radius: 6px;
}

.tile-grid span,
.detail-list span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
}

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

.detail-list strong {
    display: block;
    margin-top: 4px;
}

.inline-form {
    display: grid;
    gap: 10px;
}

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

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
}

.check-grid input {
    width: 16px;
    height: 16px;
}

.danger-button {
    background: #b42318;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 240px;
    max-width: 520px;
}

.action-buttons button {
    width: auto;
    min-width: 48px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
}

textarea {
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    resize: vertical;
    font: inherit;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.toolbar button,
.tab-link {
    width: auto;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #e8f1f8;
    color: #164c76;
}

.tab-link.active {
    background: #1769aa;
    color: #fff;
}

.toolbar button.active {
    background: #1769aa;
    color: #fff;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef0f4;
    color: #667085;
    font-size: 12px;
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-pagination .ghost-button {
    width: auto;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-pagination .ghost-button.active {
    background: #1769aa;
    color: #fff;
    border-color: #1769aa;
}

.admin-pagination .ghost-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.admin-pagination select {
    width: auto;
    flex: 0 0 auto;
    height: 30px;
    min-width: 86px;
    max-width: 96px;
    padding: 0 8px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    color: #344054;
}

.admin-pagination-ellipsis {
    padding: 0 4px;
    color: #98a2b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5ebf1;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

th {
    color: #475467;
    background: #f8fafc;
}

/* 会员管理 / 团队关系 / 会员跟踪 列表：在默认横线基础上补竖线，让 UID / 上级用户等竖列可读 */
table.bordered-grid {
    border: 1px solid #e5ebf1;
}

table.bordered-grid th,
table.bordered-grid td {
    border-right: 1px solid #e5ebf1;
}

table.bordered-grid th:last-child,
table.bordered-grid td:last-child {
    border-right: 0;
}

table.user-grid {
    table-layout: auto;
}

table.user-grid th,
table.user-grid td {
    padding: 5px 6px;
    font-size: 12px;
    line-height: 1.25;
    vertical-align: middle;
}

table.user-grid th:last-child,
table.user-grid td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    background-clip: padding-box;
    box-shadow: -8px 0 14px -14px rgba(15, 23, 42, 0.45);
}

table.user-grid th:last-child {
    z-index: 4;
}

table.user-grid code {
    font-size: 11px !important;
    padding: 1px 4px !important;
}

table.user-grid .action-buttons {
    min-width: 188px;
    max-width: 220px;
    gap: 3px;
    flex-wrap: nowrap;
}

table.user-grid .action-buttons button {
    min-width: 42px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
}

table.user-grid .user-action-buttons[data-expanded="1"] {
    min-width: 260px;
    max-width: 360px;
    flex-wrap: wrap;
}

table.user-grid .user-action-buttons[data-expanded="0"] [data-extra-action] {
    display: none;
}

table.user-grid .user-action-toggle {
    width: 24px;
    min-width: 24px;
    padding: 0;
    font-weight: 700;
}

table.user-grid .parent-user-link {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1769aa;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

table.deposit-grid {
    min-width: 1120px;
    table-layout: auto;
}

table.deposit-grid th,
table.deposit-grid td {
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
}

table.deposit-grid th:nth-child(1),
table.deposit-grid td:nth-child(1) { width: 38px; }

table.deposit-grid th:nth-child(2),
table.deposit-grid td:nth-child(2) { width: 74px; }

table.deposit-grid th:nth-child(3),
table.deposit-grid td:nth-child(3) { width: 62px; }

table.deposit-grid th:nth-child(4),
table.deposit-grid td:nth-child(4) { width: 126px; }

table.deposit-grid th:nth-child(5),
table.deposit-grid td:nth-child(5),
table.deposit-grid th:nth-child(6),
table.deposit-grid td:nth-child(6) { width: 76px; }

table.deposit-grid th:nth-child(7),
table.deposit-grid td:nth-child(7) { width: 168px; }

table.deposit-grid th:nth-child(8),
table.deposit-grid td:nth-child(8) { width: 88px; }

table.deposit-grid th:nth-child(9),
table.deposit-grid td:nth-child(9),
table.deposit-grid th:nth-child(10),
table.deposit-grid td:nth-child(10) { width: 124px; }

table.deposit-grid th:last-child,
table.deposit-grid td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 220px;
    background: #fff;
    background-clip: padding-box;
    box-shadow: -8px 0 14px -14px rgba(15, 23, 42, 0.45);
}

table.deposit-grid th:last-child {
    z-index: 4;
    background: #f8fafc;
}

table.deposit-grid .action-buttons {
    min-width: 210px;
    max-width: 220px;
    gap: 3px;
}

table.deposit-grid .action-buttons button {
    min-width: 42px;
    height: 26px;
    padding: 0 6px;
    font-size: 11px;
}

table.user-grid tr.user-row-highlight td {
    background: #fff4cc;
    transition: background .2s ease;
}

table.user-grid tr.user-row-highlight td:last-child {
    background: #fff4cc;
}

.editable-table input {
    width: 120px;
    height: 34px;
    padding: 0 8px;
    font-size: 14px;
}

.level-editor td {
    vertical-align: middle;
}

.row-message {
    min-width: 120px;
    font-size: 13px;
}

.row-message.success {
    color: #067647;
}

.row-message.error {
    color: #b42318;
}

.empty {
    margin: 0;
    color: #667085;
}

.auth-page {
    background:
        linear-gradient(135deg, rgba(14, 42, 71, 0.92), rgba(35, 106, 171, 0.72)),
        url('/static/img/home_banner.png') center/cover no-repeat;
}

.auth-panel {
    overflow: hidden;
    border: 0;
    box-shadow: 0 18px 50px rgba(16, 40, 72, 0.22);
}

.auth-panel h1 {
    color: #13243a;
}

.auth-panel button {
    background: linear-gradient(135deg, #1769aa, #0f4c81);
    box-shadow: 0 10px 22px rgba(23, 105, 170, 0.22);
}

.app-page {
    min-height: 100vh;
    padding-bottom: 84px;
    color: #172033;
    background: #eef3f8;
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    width: min(460px, 100%);
    margin: 0 auto;
    min-height: 78px;
    padding: 14px 16px 12px;
    align-items: flex-start;
    flex-direction: column;
    border: 0;
    border-radius: 0 0 22px 22px;
    color: #fff;
    background: linear-gradient(135deg, #10243a, #1769aa 62%, #f59e0b);
    box-shadow: 0 16px 34px rgba(16, 42, 67, 0.18);
}

.app-nav strong {
    font-size: 20px;
    letter-spacing: 0;
}

.app-nav nav {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.app-nav nav::-webkit-scrollbar {
    display: none;
}

.app-nav nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 10px;
    color: rgba(255,255,255,0.9);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 13px;
}

.app-nav nav a:hover,
.app-nav nav a.active {
    color: #17324c;
    background: #fff;
}

.app-main {
    width: min(460px, 100%);
    padding: 14px 12px 20px;
}

.app-main.wide-screen {
    width: min(960px, 100%);
}

.app-page .panel {
    margin-bottom: 14px;
    padding: 16px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.08);
}

.app-page .panel h1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #14263d;
    font-size: 18px;
}

.app-hero {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    margin-bottom: 14px;
    padding: 20px;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient(135deg, #1769aa, #0f4c81);
    box-shadow: 0 16px 36px rgba(23, 105, 170, 0.2);
}

.home-hero {
    background:
        linear-gradient(90deg, rgba(12, 37, 62, 0.9), rgba(12, 37, 62, 0.28)),
        url('/static/img/home_banner.png') center/cover no-repeat;
}

.mine-hero {
    background:
        linear-gradient(90deg, rgba(19, 40, 66, 0.84), rgba(19, 40, 66, 0.18)),
        url('/static/img/mine_banner.png') center/cover no-repeat;
}

.level-hero {
    background:
        linear-gradient(90deg, rgba(20, 35, 56, 0.88), rgba(20, 35, 56, 0.22)),
        url('/static/img/level_banner.png') center/cover no-repeat;
}

.app-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #fff7ed;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 12px;
}

.app-hero h1 {
    max-width: 260px;
    margin: 16px 0 8px;
    font-size: 25px;
    line-height: 1.2;
}

.app-hero p {
    max-width: 260px;
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.hero-button,
.ghost-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
}

.hero-button {
    color: #17324c;
    background: #fff;
}

.ghost-hero-button {
    color: #fff;
    background: rgba(255,255,255,0.16);
}

.notice-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.08);
}

.notice-strip span {
    color: #f59e0b;
    font-weight: 700;
}

.notice-strip p {
    overflow: hidden;
    margin: 0;
    color: #475467;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.app-page .summary-grid article,
.app-page .data-grid article {
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.07);
}

.app-page .summary-grid strong,
.app-page .data-grid strong {
    color: #13243a;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.quick-card {
    min-height: 82px;
    padding: 12px 8px;
    text-align: center;
    color: #172033;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.07);
}

.quick-card img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.quick-card span {
    display: block;
    font-size: 13px;
}

.task-card,
.product-card,
.level-card {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.08);
}

.task-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}

.task-card img,
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #eef3f8;
}

.task-card h2,
.product-card h2,
.level-card h2 {
    margin: 0 0 8px;
    color: #14263d;
    font-size: 16px;
}

.task-card p,
.product-card p,
.level-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.card-price {
    display: block;
    margin-top: 10px;
    color: #e86d1f;
    font-weight: 700;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-top: 10px;
    padding: 0 12px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #1769aa, #0f4c81);
    font-size: 13px;
}

.goods-card-grid,
.level-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    padding: 10px;
}

.product-card button,
.level-card button {
    margin-top: 10px;
    background: linear-gradient(135deg, #1769aa, #0f4c81);
}

.level-card {
    padding: 14px;
}

.level-card.is-current {
    outline: 2px solid #f59e0b;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
}

.profile-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
}

.profile-hero p {
    margin: 0;
}

.menu-list {
    display: grid;
}

.menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    color: #344054;
    border-bottom: 1px solid #edf1f5;
}

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

.menu-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.menu-row img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.menu-row::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url('/static/img/ic_arrow_right.png') center/contain no-repeat;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.warn {
    background: #fff7ed;
    color: #c2410c;
}

.support-list,
.team-list {
    display: grid;
    gap: 12px;
}

.support-card,
.team-member-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5ebf1;
}

.support-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
}

.support-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef3f8;
}

.support-card h2,
.team-member-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
}

.support-card p,
.team-member-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.support-card .card-action {
    margin-top: 8px;
}

.team-stat-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.team-stat-line span {
    display: block;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    color: #475467;
    font-size: 12px;
}

.grab-stage {
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 22px;
    text-align: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(23, 105, 170, 0.92), rgba(245, 158, 11, 0.72)),
        url('/static/img/accbg.png') center/cover no-repeat;
    box-shadow: 0 16px 36px rgba(23, 105, 170, 0.2);
}

.grab-button {
    display: grid;
    place-items: center;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: #fff;
    color: #1769aa;
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.22);
    font-weight: 700;
}

.grab-button button {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1769aa, #0f4c81);
    font-size: 18px;
}

.bottom-tabs {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(460px, 100%);
    min-height: 66px;
    transform: translateX(-50%);
    border-top: 1px solid #e4eaf1;
    border-radius: 18px 18px 0 0;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -10px 28px rgba(16, 42, 67, 0.12);
    backdrop-filter: blur(10px);
}

.bottom-tabs a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #667085;
    font-size: 12px;
}

.bottom-tabs img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.bottom-tabs a.active {
    color: #1769aa;
    font-weight: 700;
}

.app-page input,
.app-page select,
.app-page textarea {
    border-color: #d8e1eb;
    border-radius: 10px;
    background: #f8fafc;
}

.app-page button {
    border-radius: 10px;
}

.app-page table {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 420px) {
    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .quick-card {
        min-height: 76px;
        padding: 10px 6px;
    }

    .goods-card-grid,
    .level-card-grid {
        grid-template-columns: 1fr;
    }
}

.admin-page {
    min-height: 100vh;
    background: #eef2f6;
}

.admin-shell {
    display: grid;
    grid-template-columns: 157px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #1f2a37;
    color: #d9e2ec;
    border-right: 1px solid #111827;
}

.admin-brand {
    display: block;
    padding: 16px 12px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-brand strong,
.admin-brand span {
    display: block;
}

.admin-brand strong {
    font-size: 16px;
}

.admin-brand span {
    margin-top: 4px;
    color: #9fb0c3;
    font-size: 11px;
}

.admin-nav {
    padding: 12px 8px 24px;
}

.admin-nav a {
    font-size: 13px;
}

.admin-nav p {
    margin: 16px 8px 8px;
    color: #8fa1b7;
    font-size: 12px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    color: #d9e2ec;
    border-radius: 6px;
    font-size: 14px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #2563eb;
    color: #fff;
}

.admin-nav details {
    margin-top: 8px;
}

.admin-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 10px;
    color: #8fa1b7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
}

.admin-nav summary::-webkit-details-marker {
    display: none;
}

.admin-nav summary::after {
    content: "+";
    color: #9fb0c3;
    font-weight: 700;
}

.admin-nav details[open] summary {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.admin-nav details[open] summary::after {
    content: "-";
}

.admin-nav details a {
    min-height: 32px;
    margin-left: 8px;
    padding-left: 12px;
    font-size: 13px;
}

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

.admin-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #d9e1ea;
    backdrop-filter: blur(10px);
}

.admin-header h1 {
    margin: 4px 0 0;
    font-size: 22px;
}

.admin-breadcrumb {
    color: #667085;
    font-size: 13px;
}

.admin-breadcrumb em {
    color: #18202a;
    font-style: normal;
}

.admin-header-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.ghost-button,
.toolbar-primary,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.ghost-button {
    min-height: 36px;
    padding: 0 12px;
    color: #164c76;
    background: #e8f1f8;
    border-radius: 6px;
}

.toolbar-primary {
    min-height: 36px;
    padding: 0 14px;
}

.panel {
    box-shadow: 0 12px 28px rgba(24, 32, 42, 0.06);
}

.table-thumb {
    width: 48px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dce3ea;
    background: #f8fafc;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(820px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.modal-header,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5ebf1;
}

.modal-actions {
    justify-content: flex-end;
    border-top: 1px solid #e5ebf1;
    border-bottom: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.icon-button {
    width: 32px;
    height: 32px;
    color: #475467;
    background: #eef2f6;
    font-size: 22px;
}

.modal-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 16px;
    padding: 20px;
}

.modal-fields label:has(textarea) {
    grid-column: 1 / -1;
}

.modal-actions button {
    width: auto;
    min-width: 96px;
    padding: 0 16px;
}

.message.success {
    color: #067647;
}

.config-editor {
    display: grid;
    gap: 16px;
}

.config-group {
    padding: 16px;
    border: 1px solid #e5ebf1;
    border-radius: 8px;
    background: #fbfcfe;
}

.config-group h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-footer button {
    width: auto;
    min-width: 140px;
    padding: 0 18px;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-nav p {
        width: 100%;
    }

    .admin-nav details {
        width: 100%;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.app-toast {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.app-toast-bubble {
    max-width: 80%;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    animation: app-toast-pop 0.18s ease-out;
}

@keyframes app-toast-pop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
}

.app-loader-card {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 22px 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.app-loader-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e3eaf2;
    border-top-color: #1769aa;
    border-radius: 50%;
    animation: app-loader-spin 0.9s linear infinite;
}

.app-loader-text {
    color: #475467;
    font-size: 13px;
}

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

.auth-page .auth-back {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #475467;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.auth-panel {
    position: relative;
}

.auth-greeting {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #18202a;
}

.auth-subtitle {
    margin: 0 0 18px;
    color: #667085;
    font-size: 13px;
}

.auth-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid #eef0f4;
}

.auth-row .auth-row-icon {
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    text-align: left;
    color: #1769aa;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.auth-row input {
    flex: 1;
    height: 36px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    background: transparent;
}

.auth-row input:focus {
    outline: 0;
}

.auth-row .auth-eye {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #98a2b3;
    border: 0;
    font-size: 14px;
    cursor: pointer;
}

.auth-row .auth-getcode {
    width: auto;
    min-width: 92px;
    height: 32px;
    padding: 0 10px;
    background: #e8f1f8;
    color: #164c76;
    border-radius: 6px;
    font-size: 13px;
}

.auth-row .auth-getcode[disabled] {
    background: #f0f3f7;
    color: #98a2b3;
    cursor: not-allowed;
}

.auth-checkbox-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    color: #667085;
    font-size: 13px;
}

.auth-checkbox-line input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.auth-checkbox-line label {
    display: inline;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    line-height: 1.4;
}

.auth-checkbox-line .auth-link {
    flex: 0 0 auto;
    color: #c4351c;
}

.auth-divider {
    position: relative;
    margin: 22px 0 14px;
    border: 0;
    border-top: 1px solid #eef0f4;
}

.auth-divider span {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    padding: 0 8px;
    background: #fff;
    color: #98a2b3;
    font-size: 12px;
}

.auth-helper {
    margin-top: 14px;
    text-align: center;
    color: #667085;
    font-size: 13px;
}

.auth-helper a {
    color: #1769aa;
    margin: 0 6px;
}

.auth-submit {
    margin-top: 18px;
}

.zhaohui-success {
    text-align: center;
    padding: 30px 16px;
}

.zhaohui-success .zhaohui-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e6f7ec;
    color: #067647;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.xieyi-page {
    padding: 20px;
    line-height: 1.7;
    color: #344054;
    font-size: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.xieyi-page h2 {
    margin: 22px 0 10px;
    color: #18202a;
    font-size: 16px;
}

.xieyi-page ul {
    padding-left: 20px;
}

.xieyi-page li {
    margin-bottom: 8px;
}

.xieyi-page .xieyi-back {
    margin-top: 24px;
    width: auto;
    min-width: 120px;
    padding: 0 16px;
}

.subpage-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    background: #228aff;
    color: #fff;
}

.subpage-header .subpage-back {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.subpage-header h3 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding-right: 32px;
}

.subpage-body {
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.account-banner {
    margin: 12px 16px 18px;
    padding: 26px 22px;
    background: linear-gradient(135deg, #228aff 0%, #4ea7ff 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(34, 138, 255, 0.25);
}

.account-banner .account-balance-label {
    font-size: 13px;
    opacity: 0.85;
}

.account-banner .account-balance-num {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 600;
}

.account-banner .account-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 12px;
}

.account-banner .account-summary span {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.95;
}

.menu-card {
    margin: 0 16px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.menu-card .menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #344054;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    text-decoration: none;
}

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

.menu-card .menu-row .menu-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #228aff;
}

.menu-card .menu-row .menu-icon img {
    width: 22px;
    height: 22px;
}

.menu-card .menu-row .menu-label {
    flex: 1;
}

.menu-card .menu-row .menu-arrow {
    color: #98a2b3;
    font-size: 16px;
}

.menu-card .menu-row .menu-extra {
    color: #98a2b3;
    font-size: 13px;
    margin-right: 4px;
}

.my-hero {
    position: relative;
    padding: 40px 20px 30px;
    color: #fff;
    background: url('/static/img/mine_banner.png') center/cover, linear-gradient(135deg, #228aff, #5aaaff);
}

.my-hero .my-hero-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
}

.my-hero .my-hero-row > div {
    display: contents;
}

.my-hero .my-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
    background: #fff;
}

.my-hero .my-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
    font-weight: 600;
}

.my-hero .my-invite {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    font-size: 13px;
    opacity: 0.9;
    cursor: pointer;
}

.my-hero .my-credit {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
    font-size: 12px;
}

.my-level-banner {
    margin: 18px 16px 20px;
    padding: 18px 22px;
    background: #2c2218;
    color: #ffddbd;
    border-radius: 12px;
    background-image: url('/static/img/level_banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    gap: 14px;
}

.my-level-banner .my-level-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    padding: 2px;
}

.my-level-banner .my-level-name {
    font-size: 16px;
    color: #fff;
}

.my-level-banner .my-level-tag {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.8;
}

.my-level-banner .my-level-cta {
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #ffddbd;
    color: #ffddbd;
    border-radius: 999px;
    font-size: 12px;
}

.bank-history-card,
.bank-auth-notice {
    margin: 16px 16px 0;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.bank-history-card[hidden] {
    display: none;
}

.bank-auth-notice {
    background: #e8f4ff;
    border: 1px solid #d1e8ff;
}

.bank-auth-notice + .form-card,
.bank-history-card + .bank-auth-notice {
    margin-top: 14px;
}

.bank-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    color: #243044;
    font-size: 15px;
}

.bank-auth-notice .bank-card-heading {
    color: #228aff;
}

.bank-card-icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.bank-card-icon-history {
    background: #667085;
}

.bank-card-icon-history::before,
.bank-card-icon-history::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 5px;
    width: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: bottom center;
}

.bank-card-icon-history::before {
    height: 7px;
}

.bank-card-icon-history::after {
    height: 6px;
    transform: rotate(120deg);
}

.bank-card-icon-info {
    display: grid;
    place-items: center;
    background: #228aff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.bank-card-icon-info::before {
    content: "i";
}

.bank-history-item {
    display: grid;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 64px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #18202a;
    text-align: left;
    cursor: pointer;
}

.bank-history-bank {
    color: #18202a;
    font-size: 14px;
    line-height: 1.4;
}

.bank-history-cardnum {
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.4;
}

.bank-auth-notice p {
    margin: 10px 0 0;
    color: #228aff;
    font-size: 13px;
    line-height: 1.6;
}

body.bank-bind-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.form-card {
    margin: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.form-row-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.form-row-line:last-of-type {
    border-bottom: 0;
}

.form-row-line .form-label {
    width: 90px;
    flex: none;
    color: #475467;
}

.bank-field-control {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-row-line input,
.form-row-line select,
.form-row-line textarea {
    flex: 1;
    height: 36px;
    border: 0;
    padding: 0;
    font-size: 14px;
    background: transparent;
}

.bank-field-control input {
    width: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.form-row-line input:focus,
.form-row-line select:focus,
.form-row-line textarea:focus {
    outline: 0;
}

.form-row-line .paste-button {
    flex: none;
    width: 38px;
    min-width: 38px;
    height: 28px;
    padding: 0;
    border: 1px solid #228aff;
    background: #fff;
    color: #228aff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 26px;
    cursor: pointer;
}

.form-row-line .paste-button:active {
    background: #228aff;
    color: #fff;
}

.form-tip {
    margin: 12px 16px 0;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.6;
}

.form-submit {
    margin: 22px 16px 16px;
    width: calc(100% - 32px);
    height: 44px;
    background: #228aff;
    color: #fff;
    border-radius: 10px;
    border: 0;
    font-size: 15px;
    cursor: pointer;
}

body.bank-bind-page .form-submit {
    position: fixed;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 35;
    width: min(428px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 12px 28px rgba(34, 138, 255, 0.28);
}

body.bank-bind-page .bottom-tabs {
    z-index: 34;
}

.form-submit[disabled] {
    background: #c9d3df;
    cursor: not-allowed;
}

.mingxi-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    -webkit-overflow-scrolling: touch;
}

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

.mingxi-tabs .mingxi-tab {
    flex: none;
    padding: 8px 12px;
    color: #475467;
    font-size: 13px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.mingxi-tabs .mingxi-tab.active {
    background: #228aff;
    color: #fff;
}

.mingxi-head {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 0.9fr;
    align-items: center;
    padding: 12px 16px;
    background: #f7f9fb;
    color: #667085;
    font-size: 12px;
    border-bottom: 1px solid #eef0f4;
}

.mingxi-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 0.9fr;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f6f8;
    color: #344054;
    font-size: 13px;
}

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

.empty-state {
    padding: 50px 16px;
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
}

.empty-state img {
    width: 120px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.headimg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 16px;
}

.headimg-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f8fafc;
}

.headimg-grid img.selected {
    border-color: #228aff;
}

.headimg-current {
    text-align: center;
    padding: 24px 16px 12px;
}

.headimg-current img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.invite-card {
    margin: 30px 16px 16px;
    padding: 30px 22px;
    background: linear-gradient(180deg, #2563eb, #0c4a9b);
    color: #fff;
    border-radius: 16px;
    text-align: center;
}

.invite-card .invite-qr {
    width: 200px;
    height: 200px;
    margin: 18px auto;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.invite-card .invite-qr img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.invite-card .invite-code {
    font-size: 18px;
    margin: 8px 0;
}

.invite-card .invite-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.invite-card .invite-actions button {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.msg-list .msg-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f6f8;
}

.msg-list .msg-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 18px;
}

.msg-list .msg-content {
    flex: 1;
}

.msg-list .msg-content p {
    margin: 0;
    color: #344054;
    font-size: 14px;
    line-height: 1.5;
}

.msg-list .msg-time {
    color: #98a2b3;
    font-size: 12px;
    margin-top: 6px;
}

.subpage-page {
    min-height: 100vh;
    background: #f4f6f8;
    padding-bottom: 24px;
}

.task-hero {
    margin: 0 16px 16px;
    padding: 26px 22px;
    color: #fff;
    background: linear-gradient(135deg, #228aff 0%, #4ea7ff 100%);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 14px 28px rgba(34, 138, 255, 0.25);
}

.task-hero .task-hero-label {
    font-size: 13px;
    opacity: 0.85;
}

.task-hero .task-hero-num {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 600;
}

.task-hero .task-hero-tip {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.85;
}

.task-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #18202a;
    font-size: 13px;
}

.task-counter .task-digit {
    width: 22px;
    height: 28px;
    background: #18202a;
    color: #ffd84d;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-family: monospace;
}

.task-ads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 16px 14px;
}

.task-ads img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.task-level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.task-level-card {
    position: relative;
    height: 152px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    cursor: pointer;
}

.task-level-card.is-locked {
    cursor: default;
    filter: grayscale(0.18);
}

.task-level-card.is-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.task-level-card .task-level-tag {
    font-size: 12px;
    color: #228aff;
}

.task-level-card .task-level-name {
    margin-top: 4px;
    font-size: 13px;
    color: #475467;
}

.task-level-card .task-level-status {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1769aa;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.task-level-card.is-locked .task-level-status {
    background: #64748b;
}

.task-level-card img {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 110px;
    height: 90px;
    object-fit: contain;
}

.type-banner {
    margin: 0 16px 14px;
    padding: 18px;
    background: linear-gradient(180deg, #228aff 0%, #ffffff 100%);
    border-radius: 14px;
    color: #18202a;
}

.type-banner .type-banner-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    color: #fff;
    font-size: 12px;
    padding-bottom: 12px;
}

.type-banner .type-banner-row b {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.type-banner .type-banner-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.type-banner .type-banner-actions a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
}

.type-banner .type-action-primary {
    background: #fff;
    color: #228aff;
}

.type-banner .type-action-secondary {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
    border: 1px solid #fff;
}

.type-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e5ebf1;
    margin: 0 16px 14px;
    border-radius: 10px;
    overflow: hidden;
}

.type-action-grid .type-action {
    padding: 16px 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: #344054;
}

.type-action-grid .type-action img {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
}

.type-action-grid .type-action-title {
    font-size: 14px;
    color: #18202a;
}

.type-action-grid .type-action-desc {
    margin-top: 4px;
    font-size: 11px;
    color: #98a2b3;
}

.task-list {
    margin: 0 16px;
}

.task-card {
    margin-bottom: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.task-card .task-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-card .task-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
}

.task-card .task-info {
    flex: 1;
    min-width: 0;
}

.task-card .task-title {
    font-size: 15px;
    color: #18202a;
    font-weight: 500;
}

.task-card .task-desc {
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task-card .task-cta {
    width: auto;
    min-width: 64px;
    height: 32px;
    padding: 0 12px;
    background: #228aff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.task-card .task-cta.disabled {
    background: #c9d3df;
    cursor: not-allowed;
}

.task-card .task-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eef0f4;
    color: #98a2b3;
    font-size: 12px;
}

.task-tabs {
    display: flex;
    background: #fff;
    padding: 0 8px;
    border-bottom: 1px solid #eef0f4;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 48px;
    z-index: 4;
}

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

.task-tabs .task-tab {
    flex: none;
    padding: 12px 16px;
    color: #475467;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.task-tabs .task-tab.active {
    color: #228aff;
    border-bottom-color: #228aff;
}

.apply-card {
    margin: 12px 16px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.apply-card .apply-row {
    display: flex;
    gap: 12px;
}

.apply-card .apply-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
}

.apply-card .apply-info { flex: 1; min-width: 0; }

.apply-card .apply-title {
    font-size: 14px;
    color: #18202a;
    font-weight: 500;
}

.apply-card .apply-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
    line-height: 1.5;
}

.apply-card .apply-action {
    align-self: center;
}

.apply-card .apply-action button,
.apply-card .apply-action a {
    width: auto;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #228aff;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    display: inline-grid;
    place-items: center;
}

.apply-card .apply-action a.danger { background: #b42318; }
.apply-card .apply-action a.muted  { background: #98a2b3; }

.apply-card .apply-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eef0f4;
    color: #475467;
    font-size: 12px;
}

/* 后台提现列表「用户信息 / 银行信息」多行单元格：每行一行字，与 PHP deposit_list 的 <br> 堆叠对齐 */
.multi-line-cell { display:flex; flex-direction:column; gap:2px; line-height:1.4; font-size:12px; }
.multi-line-cell > div { white-space:nowrap; }
span.muted { color:#98a2b3; font-size:12px; }

.apply-card .apply-countdown {
    color: #c4351c;
    font-weight: 500;
}

.upload-card {
    margin: 16px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.upload-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    color: #344054;
    font-size: 13px;
}

.upload-card li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f6f8;
}

.upload-card li:last-child { border-bottom: 0; }

.upload-box {
    width: 160px;
    height: 160px;
    margin: 16px auto 8px;
    border: 2px dashed #cfd8e3;
    border-radius: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-box .upload-placeholder {
    color: #98a2b3;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.upload-box input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.video-frame {
    width: 100%;
    background: #000;
}

.video-frame video {
    width: 100%;
    max-height: calc(100vh - 48px);
    display: block;
}

.grab-hero {
    margin: 16px;
    padding: 28px 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 50%),
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1769aa 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.25);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.grab-hero .grab-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.grab-hero .grab-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd84d;
    box-shadow: 0 0 0 0 rgba(255, 216, 77, 0.6);
}

.grab-hero.is-running .grab-status-dot {
    background: #34d399;
    animation: grab-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes grab-dot-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(52, 211, 153, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0    rgba(52, 211, 153, 0); }
}

.grab-orb-wrap {
    position: relative;
    display: grid;
    place-items: center;
    margin: 22px auto;
    width: 220px;
    height: 220px;
}

.grab-orb-wrap::before,
.grab-orb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    opacity: 0;
    pointer-events: none;
}

.grab-hero.is-running .grab-orb-wrap::before {
    animation: grab-ripple 2.2s ease-out infinite;
}

.grab-hero.is-running .grab-orb-wrap::after {
    animation: grab-ripple 2.2s ease-out 1.1s infinite;
}

@keyframes grab-ripple {
    0%   { transform: scale(0.86); opacity: 0.65; }
    100% { transform: scale(1.18); opacity: 0;    }
}

.grab-orb {
    position: relative;
    width: 162px;
    height: 162px;
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, #ddeaff 28%, #93c5fd 70%, #2563eb 100%);
    color: #1e3a8a;
    cursor: pointer;
    box-shadow:
        0 14px 34px rgba(8, 15, 35, 0.32),
        inset 0 0 0 6px rgba(255, 255, 255, 0.55),
        inset 0 -8px 14px rgba(30, 58, 138, 0.18);
    display: grid;
    place-items: center;
    gap: 4px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grab-orb:active {
    transform: scale(0.96);
}

.grab-hero.is-running .grab-orb {
    background:
        radial-gradient(circle at 30% 30%, #ffe8e6 0%, #fda4a4 38%, #ef4444 78%, #991b1b 100%);
    color: #fff;
    box-shadow:
        0 14px 34px rgba(127, 0, 0, 0.4),
        inset 0 0 0 6px rgba(255, 255, 255, 0.45),
        inset 0 -8px 14px rgba(127, 0, 0, 0.25);
}

.grab-orb-label {
    font-size: 22px;
    letter-spacing: 1px;
}

.grab-orb-tip {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.grab-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
    color: #fff;
    font-size: 12px;
    text-align: left;
}

.grab-stats-row article {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
}

.grab-stats-row article span {
    display: block;
    opacity: 0.8;
    font-size: 11px;
}

.grab-stats-row article strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
}

.grab-log-card {
    margin: 0 16px 24px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.grab-log-card h2 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #18202a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grab-log-card .grab-log-clear {
    width: auto;
    height: 24px;
    padding: 0 10px;
    background: #eef2f6;
    color: #475467;
    border-radius: 6px;
    font-size: 12px;
    border: 0;
}

.grab-log-list {
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grab-log-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef0f4;
    font-size: 13px;
    line-height: 1.5;
}

.grab-log-list li:last-child {
    border-bottom: 0;
}

.grab-log-list .grab-log-time {
    flex: 0 0 56px;
    color: #98a2b3;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.grab-log-list .grab-log-msg {
    flex: 1;
    color: #344054;
    word-break: break-all;
}

.grab-log-list .grab-log-ok    { color: #067647; font-weight: 500; }
.grab-log-list .grab-log-warn  { color: #b54708; }
.grab-log-list .grab-log-err   { color: #b42318; }

.grab-log-empty {
    padding: 24px 8px;
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
}

/* ===== Home page (PHP-aligned) ===== */

.home-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero-banner .home-hero-text {
    position: absolute;
    left: 30px;
    top: 60px;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 500;
}

/* 兜底样式（图片缺失时用渐变 + 占位高度） */
.home-hero-banner.fallback {
    height: 180px;
    background:
        linear-gradient(135deg, rgba(34, 138, 255, 0.92), rgba(15, 76, 129, 0.85)),
        url('/static/img/home_banner.png') center/cover no-repeat;
}

.home-hero-banner.fallback img { display: none; }
.home-hero-banner.fallback .home-hero-text { top: 50px; }

.home-tanchuang-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: grid;
    place-items: center;
    padding: 24px;
}

.home-tanchuang-card {
    width: min(360px, 100%);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0,0,0,0.35);
}

.home-tanchuang-header {
    height: 80px;
    background: url('/static/img/task_head.png') center/cover no-repeat,
                linear-gradient(135deg, #228aff, #0c4a81);
    color: #fff;
    text-align: center;
    line-height: 80px;
    font-size: 20px;
    font-weight: 600;
}

.home-tanchuang-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    color: #344054;
    font-size: 15px;
    line-height: 1.6;
    min-height: 30vh;
    max-height: 40vh;
    white-space: pre-wrap;
    word-break: break-word;
}

.home-tanchuang-body.is-html {
    white-space: normal;
}

.home-tanchuang-body.is-html p {
    margin: 0 0 0.8em;
}

.home-tanchuang-body.is-html p:last-child {
    margin-bottom: 0;
}

.home-tanchuang-footer {
    height: 50px;
    border: 0;
    background: #ccc;
    color: #0e90d2;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.home-quick-card {
    position: relative;
    margin: -50px 16px 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    z-index: 2;
}

.home-quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.home-quick-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: #475467;
    text-decoration: none;
    font-size: 13px;
}

.home-quick-row img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.home-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px 12px;
    padding: 12px 16px;
    background: #f7fcff;
    border: 1px solid #e0eeff;
    border-radius: 10px;
    overflow: hidden;
}

.home-notice .home-notice-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb84d, #f97316);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
}

.home-notice .home-notice-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.home-notice .home-notice-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #475467;
    font-size: 13px;
}

.home-notice .home-notice-track span {
    display: inline-block;
    padding-left: 100%;
    animation: home-notice-scroll 22s linear infinite;
}

@keyframes home-notice-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-100%, 0, 0); }
}

.home-banner-swiper {
    position: relative;
    margin: 0 16px 14px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    background: #f4f6f8;
}

.home-banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.home-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    display: block;
}

.home-banner-slide img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.home-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.home-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.3s, width 0.3s;
}

.home-banner-dot.active {
    width: 16px;
    border-radius: 4px;
    background: #fff;
}

.home-user-card {
    margin: 0 16px 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.home-user-card .home-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-user-card .home-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f6f8;
}

.home-user-card .home-user-name {
    flex: 1;
    font-weight: 600;
    color: #18202a;
    font-size: 15px;
}

.home-user-card .home-user-emblem {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(245, 158, 11, 0.12);
    padding: 4px;
}

.home-user-card .home-user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #eef0f4;
}

.home-user-card .home-user-stats article {
    text-align: center;
}

.home-user-card .home-user-stats span {
    color: #98a2b3;
    font-size: 12px;
}

.home-user-card .home-user-stats strong {
    display: block;
    margin-top: 4px;
    color: #18202a;
    font-size: 22px;
    font-weight: 600;
}

.home-user-card .start-grab-btn {
    margin-top: 16px;
    height: 44px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffa045, #f97316);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.home-section-title {
    margin: 12px 16px 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 500;
}

/* ===== 任务大厅卡片 - 右侧按钮版 ===== */
.hall-cate-card {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 16px 10px;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(204, 204, 204, 0.6);
    height: 88px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.hall-cate-card.locked {
    cursor: default;
}

.hall-cate-card .hall-cate-pic {
    width: 150px;
    height: 88px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    background: #f8fafc;
    padding: 6px;
}

.hall-cate-card .hall-cate-info {
    flex: 1;
    padding: 0 14px;
    line-height: 22px;
    text-align: center;
}

.hall-cate-card .hall-cate-info .hall-cate-name {
    color: #0b142f;
    font-size: 15px;
    font-weight: 500;
}

.hall-cate-card .hall-cate-info .hall-cate-bili {
    color: #6e7689;
    font-size: 12px;
    margin-top: 4px;
}

.hall-cate-card .hall-cate-info .hall-cate-bili b {
    color: #f97316;
    font-weight: 600;
}

.hall-cate-card .hall-cate-action {
    flex: 0 0 auto;
    margin-right: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1769aa);
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.hall-cate-card.locked .hall-cate-action {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    cursor: default;
}

.hall-cate-card.locked .hall-cate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.314);
    pointer-events: none;
}

.hall-current-banner {
    margin: 12px 16px 10px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(238, 238, 238, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hall-current-banner img {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.hall-current-banner .hall-current-label {
    color: #475467;
    font-size: 13px;
    flex: 1;
}

.hall-current-banner .hall-current-name {
    color: #2f86f6;
    font-size: 14px;
    font-weight: 600;
}

.hall-section-title {
    margin: 18px 16px 12px;
    font-size: 15px;
    color: #18202a;
    font-weight: 600;
}

/* ===== 4 篇文章 2x2 网格 ===== */
.home-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px;
}

.home-articles a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 80px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: #18202a;
}

.home-articles a img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex: 0 0 auto;
}

.home-articles a span {
    font-size: 14px;
    color: #18202a;
    line-height: 1.3;
}

.hall-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f4f6f8;
    border-radius: 10px;
    font-size: 13px;
    color: #475467;
}
.hall-current img { width: 26px; height: 26px; flex: 0 0 auto; }
.hall-current strong { color: #1769aa; font-weight: 600; }

.hall-level-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hall-level-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    overflow: hidden;
    min-height: 76px;
}

.hall-level-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #f8fafc;
    padding: 4px;
}

.hall-level-info { flex: 1; min-width: 0; }
.hall-level-info strong { display: block; font-size: 15px; color: #18202a; }
.hall-level-info span { color: #f59e0b; font-size: 12px; margin-top: 4px; display: inline-block; }

.hall-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: grid;
    place-items: center;
    backdrop-filter: blur(1px);
}

.hall-locked-overlay span {
    padding: 6px 18px;
    background: #fff;
    color: #475467;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    color: #18202a;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.info-card img { width: 40px; height: 40px; object-fit: contain; }
.info-card span { font-size: 14px; color: #18202a; }

.help-card {
    margin: 16px;
    padding: 20px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    line-height: 1.9;
    color: #344054;
    font-size: 16px;
}

.help-card h2 {
    margin: 0 0 12px;
    color: #18202a;
    font-size: 19px;
}

.help-card p {
    margin: 0 0 12px;
}

.help-card p:last-child { margin-bottom: 0; }

.kefu-hero {
    padding: 40px 0 24px;
    background: url('/static/img/mine_banner.png') center/cover, linear-gradient(135deg, #228aff, #5aaaff);
    text-align: center;
}

.kefu-hero img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.kefu-contact {
    margin: 0 60px 18px;
}

.kefu-contact a {
    display: block;
    height: 44px;
    line-height: 44px;
    border-radius: 999px;
    background: #2f86f6;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
}
