:root {
    --zib-bg: #f5f7fb;
    --zib-card: rgba(255, 255, 255, 0.92);
    --zib-text: #172033;
    --zib-muted: #667085;
    --zib-primary: #2f6bff;
    --zib-primary-2: #7c3aed;
    --zib-orange: #ff7a3d;
    --zib-border: rgba(148, 163, 184, 0.22);
    --zib-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
    --zib-radius: 22px;
}

body {
    background:
        radial-gradient(circle at 15% 0%, rgba(47, 107, 255, 0.15), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(255, 122, 61, 0.14), transparent 26%),
        linear-gradient(180deg, #f7f9ff 0%, var(--zib-bg) 52%, #ffffff 100%);
    color: var(--zib-text);
}

.app {
    max-width: 780px;
}

.app::before {
    color: var(--zib-text);
    letter-spacing: 0.02em;
}

.panel,
.profile,
.login-card,
.quick-grid a,
.tile,
.mine-grid a,
.products a,
.products div,
.order-card,
.message-menu a,
.faq details,
.result-card {
    background: var(--zib-card);
    border: 1px solid var(--zib-border);
    border-radius: var(--zib-radius);
    box-shadow: var(--zib-shadow);
    backdrop-filter: blur(14px);
}

.hero {
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(47, 107, 255, 0.92) 54%, rgba(124, 58, 237, 0.9)),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 24%);
    box-shadow: 0 28px 70px rgba(47, 107, 255, 0.24);
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.18);
}

.btn,
button {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    box-shadow: 0 12px 26px rgba(47, 107, 255, 0.25);
}

.btn.ghost,
.ghost-dark {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.section-title h2,
.panel h2 {
    position: relative;
    padding-left: 12px;
}

.section-title h2::before,
.panel h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 4px;
    height: 1em;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--zib-primary), var(--zib-orange));
}

.quick-grid a,
.mine-grid a,
.products a,
.message-menu a {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-grid a:hover,
.mine-grid a:hover,
.products a:hover,
.message-menu a:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 255, 0.32);
    box-shadow: 0 24px 58px rgba(47, 107, 255, 0.14);
}

.products img,
.goods-detail img {
    border-radius: 20px;
    background: linear-gradient(135deg, #e0e7ff, #fef3c7);
}

.products span,
.price {
    color: var(--zib-orange);
    background: rgba(255, 122, 61, 0.10);
}

.bottom {
    border: 1px solid var(--zib-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

.bottom a.on {
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
}

.form input,
.form textarea,
.login-card input {
    border-radius: 18px;
    border-color: var(--zib-border);
    background: rgba(255, 255, 255, 0.88);
}

.empty {
    border-radius: 20px;
    border: 1px dashed rgba(47, 107, 255, 0.30);
    background: rgba(47, 107, 255, 0.05);
}

/* 页面级 UI 细化：覆盖首页、商城、订单、消息、我的、表单、工单、聊天 */
.app {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.app > section,
.app > div,
.app > form {
    animation: xy-page-in 0.28s ease both;
}

@keyframes xy-page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hero h1,
.profile h1,
.login-card h1 {
    margin-bottom: 8px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p,
.profile p,
.login-card p,
.muted {
    color: var(--zib-muted);
    line-height: 1.75;
}

.hero .btn,
.profile .btn,
.panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 800;
}

.quick-grid,
.mine-grid,
.message-menu,
.products,
.plans {
    gap: 14px;
}

.quick-grid a,
.mine-grid a,
.message-menu a {
    position: relative;
    overflow: hidden;
}

.quick-grid a::after,
.mine-grid a::after,
.message-menu a::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.08);
}

.quick-grid b,
.mine-grid b,
.message-menu b {
    position: relative;
    z-index: 1;
    font-size: 15px;
}

.quick-grid span,
.mine-grid span,
.message-menu span {
    position: relative;
    z-index: 1;
    color: var(--zib-muted);
    font-size: 12px;
}

.products a,
.products div {
    overflow: hidden;
    padding: 12px;
}

.products img {
    width: 100%;
    aspect-ratio: 1 / 0.76;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.products h3,
.order-card h3,
.panel h3 {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 900;
    color: var(--zib-text);
}

.products p,
.order-card p,
.panel p {
    line-height: 1.72;
}

.order-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.order-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--zib-primary), var(--zib-primary-2));
}

.order-card .status,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--zib-primary);
    background: rgba(47, 107, 255, 0.10);
    font-size: 12px;
    font-weight: 800;
}

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

.detail p,
.list p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.detail p:last-child,
.list p:last-child {
    border-bottom: 0;
}

.detail b,
.list b {
    color: var(--zib-text);
    font-weight: 850;
}

.detail span,
.list span {
    color: var(--zib-muted);
    text-align: right;
}

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

.form input,
.form textarea,
.login-card input {
    min-height: 48px;
    padding: 0 15px;
    color: var(--zib-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form textarea {
    min-height: 110px;
    padding-top: 14px;
    resize: vertical;
}

.form input:focus,
.form textarea:focus,
.login-card input:focus {
    outline: none;
    border-color: rgba(47, 107, 255, 0.62);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.10);
}

.chat {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.chat p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(47, 107, 255, 0.06);
}

.chat p:nth-child(even) {
    background: rgba(124, 58, 237, 0.07);
}

.chat b {
    color: var(--zib-primary);
}

.faq details {
    padding: 14px 16px;
}

.faq summary {
    cursor: pointer;
    font-weight: 850;
    color: var(--zib-text);
}

.steps {
    display: grid;
    gap: 12px;
}

.steps p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(47, 107, 255, 0.06);
}

.steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.result-card {
    text-align: center;
    padding: 34px 24px;
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    box-shadow: 0 20px 42px rgba(47, 107, 255, 0.25);
    font-size: 34px;
    font-weight: 900;
}

.popup-overlay {
    position:fixed;
    inset:0;
    z-index:999999;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    animation:popupFadeIn .25s ease-out
}
.popup-modal {
    background:#fff;
    border-radius:24px;
    padding:32px 28px 24px;
    max-width:440px;
    width:100%;
    position:relative;
    box-shadow:0 32px 64px rgba(0,0,0,.25);
    animation:popupSlideIn .3s ease-out
}
.popup-close {
    position:absolute;
    top:12px;
    right:16px;
    background:none;
    border:none;
    font-size:26px;
    color:#94a3b8;
    cursor:pointer;
    padding:4px 8px;
    line-height:1
}
.popup-close:hover {
    color:#475569
}
.popup-badge {
    display:inline-block;
    padding:3px 12px;
    border-radius:999px;
    background:linear-gradient(135deg,#6366f1,#8b5cf6);
    color:#fff;
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
    margin-bottom:14px
}
.popup-title {
    font-size:18px;
    font-weight:800;
    color:#0f172a;
    margin:0 0 12px;
    line-height:1.4
}
.popup-content {
    font-size:14px;
    line-height:1.7;
    color:#334155;
    margin-bottom:16px;
    max-height:200px;
    overflow-y:auto
}
.popup-link {
    display:inline-block;
    color:#6366f1;
    font-weight:600;
    font-size:13px;
    text-decoration:none;
    margin-bottom:16px
}
.popup-link:hover {
    text-decoration:underline
}
.popup-btn {
    display:block;
    width:100%;
    padding:12px;
    border-radius:12px;
    border:none;
    background:linear-gradient(135deg,#6366f1,#8b5cf6);
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:opacity .2s
}
.popup-btn:hover {
    opacity:.85
}
@keyframes popupFadeIn {
    from { opacity:0 }
    to { opacity:1 }
}
@keyframes popupSlideIn {
    from { opacity:0; transform:translateY(20px) scale(.96) }
    to { opacity:1; transform:translateY(0) scale(1) }
}

.result-card.fail .result-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.bottom {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(756px, calc(100vw - 24px));
    max-width: none;
    height: 64px;
    margin: 0;
    padding: 8px;
    z-index: 999;
}

.bottom a {
    border-radius: 18px;
    color: var(--zib-muted);
    font-weight: 800;
}

.bottom a.on {
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(47, 107, 255, 0.22);
}

@media (max-width: 430px) {
    .app {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero,
    .profile,
    .panel,
    .login-card {
        border-radius: 22px;
    }

    .products,
    .quick-grid,
    .mine-grid {
        gap: 10px;
    }

    .detail p,
    .list p {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail span,
    .list span {
        text-align: left;
    }
}

/* PHP 模板新增结构对应样式 */
.page-head {
    position: relative;
    overflow: hidden;
    margin: 14px 0;
    padding: 24px;
    border: 1px solid var(--zib-border);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
        radial-gradient(circle at 92% 12%, rgba(47, 107, 255, 0.18), transparent 28%);
    box-shadow: var(--zib-shadow);
}

.page-head::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -46px;
    width: 136px;
    height: 136px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
}

.page-head h1 {
    position: relative;
    z-index: 1;
    margin: 8px 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-head p,
.page-head .head-actions {
    position: relative;
    z-index: 1;
}

.eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--zib-primary);
    background: rgba(47, 107, 255, 0.10);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.icon-grid a,
.page-card-grid a {
    display: grid;
    gap: 6px;
    min-height: 112px;
    align-content: center;
}

.icon-grid i,
.page-card-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: rgba(47, 107, 255, 0.10);
    font-style: normal;
}

.product-grid-rich {
    align-items: stretch;
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-cover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.product-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.18));
}

.product-body {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.product-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 42px;
    margin: 0;
    color: var(--zib-muted);
    font-size: 13px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-meta small,
.rich-order small {
    color: var(--zib-muted);
    font-size: 12px;
}

.rich-empty {
    display: grid;
    gap: 6px;
    place-items: center;
    min-height: 130px;
    text-align: center;
}

.rich-empty b {
    color: var(--zib-text);
    font-size: 17px;
}

.rich-empty span {
    color: var(--zib-muted);
    font-size: 13px;
}

.order-list-rich {
    gap: 12px;
}

.rich-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 16px 20px;
}

.rich-order > div {
    display: grid;
    gap: 6px;
}

.rich-order b {
    font-size: 16px;
}

.order-card .status.paid {
    background: #fef3c7;
    color: #92400e;
}

.order-card .status.shipped {
    background: #dbeafe;
    color: #1e40af;
}

.order-card .status.finished {
    background: #d1fae5;
    color: #065f46;
}

.order-card .status.closed {
    background: #e5e7eb;
    color: #4b5563;
}

@media (max-width: 430px) {
    .page-head {
        padding: 20px;
        border-radius: 24px;
    }

    .page-head h1 {
        font-size: 24px;
    }

    .rich-order {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 剩余用户可见页面 PHP 结构升级配套样式 */
.mine-hero {
    align-items: center;
    gap: 18px;
}

.profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.profile-avatar-wrap::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #22c55e;
}

.profile-info strong {
    display: block;
    margin: 4px 0 10px;
    font-size: 34px;
    line-height: 1;
    color: var(--zib-primary);
}

.form-panel label,
.login-form-block label {
    display: grid;
    gap: 7px;
}

.form-panel label > span,
.login-form-block label > span {
    color: var(--zib-muted);
    font-size: 13px;
    font-weight: 800;
}

.ticket-head,
.chat-head,
.help-head,
.notice-head,
.points-head,
.address-head,
.profile-head,
.recharge-head,
.checkin-head,
.order-detail-head,
.install-head {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at 90% 8%, rgba(255, 122, 61, 0.14), transparent 30%),
        radial-gradient(circle at 6% 100%, rgba(47, 107, 255, 0.12), transparent 26%);
}

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

.plan-card button {
    display: grid;
    width: 100%;
    min-height: 132px;
    padding: 18px;
    text-align: left;
    border: 0;
    border-radius: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2)),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3), transparent 25%);
}

.plan-card span {
    font-weight: 850;
}

.plan-card b {
    font-size: 28px;
}

.plan-card small {
    opacity: 0.9;
}

.reward-copy {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(47, 107, 255, 0.06);
}

.rich-steps p {
    border: 1px solid rgba(47, 107, 255, 0.08);
}

.point-row span {
    display: grid;
    gap: 4px;
    font-weight: 900;
}

.point-row span small {
    color: var(--zib-muted);
    font-size: 12px;
    font-weight: 600;
}

.point-row.plus span {
    color: #16a34a;
}

.point-row.minus span {
    color: #ef4444;
}

.notice-list-rich {
    gap: 12px;
}

.notice-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.notice-card b {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.notice-card p {
    margin: 0;
    color: var(--zib-muted);
}

.goods-cover-large {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--zib-shadow);
}

.goods-cover-large img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.goods-info-card h1 {
    margin: 10px 0;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.price-large {
    display: inline-flex;
    margin: 10px 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.notice-copy {
    margin-top: 14px;
}

.detail-card-list p {
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.login-required-card {
    text-align: center;
}

.ticket-thread {
    margin-bottom: 14px;
}

.ticket-thread p.staff {
    background: rgba(47, 107, 255, 0.08);
}

.ticket-thread p.mine {
    background: rgba(255, 122, 61, 0.08);
}

.rich-chat {
    margin-bottom: 14px;
}

.chat-form {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.chat-form button {
    min-width: 88px;
}

.rich-faq {
    display: grid;
    gap: 12px;
}

.ok-empty {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.07);
}

.fail-empty {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.06);
}

.error-copy {
    padding: 12px 14px;
    border-radius: 16px;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.rich-result .eyebrow {
    margin-bottom: 10px;
}

.rich-login {
    display: grid;
    gap: 16px;
}

.login-form-block {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.login-form-block button {
    min-height: 44px;
}

@media (max-width: 430px) {
    .rich-plans {
        grid-template-columns: 1fr;
    }

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

    .profile-info strong {
        font-size: 30px;
    }
}

/* 核心用户页重做：个人中心、聊天室、资料、地址 */
.mine-dashboard {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 16px;
    margin: 14px 0;
}

.mine-profile-card,
.mine-balance-card,
.profile-preview-card,
.address-preview-card,
.chat-room-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--zib-border);
    border-radius: 28px;
    background: var(--zib-card);
    box-shadow: var(--zib-shadow);
    backdrop-filter: blur(14px);
}

.mine-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}

.big-avatar img,
.big-avatar .avatar-placeholder,
.profile-preview img,
.profile-preview .avatar-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    object-fit: cover;
}

.big-avatar .avatar-placeholder,
.profile-preview .avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    font-size: 28px;
    font-weight: 950;
}

.mine-profile-card h1,
.profile-preview-card h1,
.address-preview-card h1,
.chat-room-head h1 {
    margin: 8px 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.mine-profile-card p,
.profile-preview-card p,
.address-preview-card p,
.chat-room-head p {
    margin: 0;
    color: var(--zib-muted);
    line-height: 1.7;
}

.mine-balance-card {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2)),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.34), transparent 24%);
}

.mine-balance-card span {
    opacity: 0.9;
    font-weight: 800;
}

.mine-balance-card strong {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.balance-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.balance-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 850;
}

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

.mine-overview-grid a,
.mine-service-list a {
    border: 1px solid var(--zib-border);
    background: var(--zib-card);
    box-shadow: var(--zib-shadow);
    backdrop-filter: blur(14px);
}

.mine-overview-grid a {
    display: grid;
    gap: 8px;
    min-height: 128px;
    padding: 18px;
    border-radius: 24px;
}

.mine-overview-grid i,
.mine-service-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: rgba(47, 107, 255, 0.10);
    font-style: normal;
}

.mine-overview-grid b,
.mine-service-list b {
    color: var(--zib-text);
    font-size: 16px;
    font-weight: 900;
}

.mine-overview-grid span,
.mine-service-list span {
    color: var(--zib-muted);
    line-height: 1.55;
}

.mine-service-list {
    display: grid;
    gap: 12px;
}

.mine-service-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
}

.mine-service-list div {
    display: grid;
    gap: 3px;
}

.mine-service-list em {
    color: var(--zib-muted);
    font-style: normal;
    font-size: 24px;
}

.chat-room-shell {
    display: grid;
    min-height: 72vh;
    margin: 14px 0;
}

.chat-room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at 90% 0%, rgba(47, 107, 255, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.52);
}

.chat-room-head > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--zib-primary);
    background: rgba(47, 107, 255, 0.10);
    font-weight: 850;
    white-space: nowrap;
}

.chat-room-body {
    display: grid;
    gap: 14px;
    align-content: start;
    max-height: 58vh;
    overflow: auto;
    padding: 20px;
}

.chat-bubble {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.chat-bubble.right {
    justify-self: end;
    flex-direction: row-reverse;
}

.chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    font-weight: 900;
}

.chat-content {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(47, 107, 255, 0.08);
}

.chat-bubble.right .chat-content {
    color: #ffffff;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
}

.chat-content b {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.chat-content p {
    margin: 0;
    line-height: 1.65;
}

.chat-room-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.68);
}

.chat-room-input input {
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--zib-border);
    border-radius: 999px;
}

.chat-room-input button {
    min-width: 86px;
    border: 0;
}

.profile-edit-shell,
.address-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 16px;
    margin: 14px 0;
}

.profile-preview-card,
.address-preview-card {
    padding: 24px;
}

.profile-preview,
.address-preview {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-preview div:last-child {
    display: grid;
    gap: 5px;
}

.profile-preview b {
    font-size: 17px;
}

.profile-preview span,
.address-preview span {
    color: var(--zib-muted);
}

.address-preview {
    display: grid;
    gap: 10px;
}

.address-preview p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.address-preview p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rich-form label {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 640px) {
    .mine-dashboard,
    .profile-edit-shell,
    .address-shell {
        grid-template-columns: 1fr;
    }

    .mine-overview-grid {
        grid-template-columns: 1fr;
    }

    .mine-profile-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-room-head {
        flex-direction: column;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .chat-room-input {
        grid-template-columns: 1fr;
    }
}

/* 百行级核心页面补强样式 */
.mine-task-list,
.tips-list,
.chat-rule-list {
    display: grid;
    gap: 12px;
}

.mine-task-list a,
.tips-list p,
.chat-rule-list p,
.chat-room-notice,
.chat-room-tools a,
.chat-topic-grid a {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.mine-task-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.mine-task-list i,
.chat-room-notice i,
.chat-room-tools i,
.chat-topic-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: rgba(47, 107, 255, 0.10);
    font-style: normal;
}

.mine-task-list div {
    display: grid;
    gap: 4px;
}

.mine-task-list b,
.tips-list b,
.chat-rule-list b,
.chat-topic-grid b {
    color: var(--zib-text);
    font-weight: 900;
}

.mine-task-list span,
.tips-list span,
.chat-rule-list span,
.chat-topic-grid span {
    color: var(--zib-muted);
    line-height: 1.58;
}

.mine-task-list em {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--zib-primary);
    background: rgba(47, 107, 255, 0.10);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

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

.asset-grid div {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.asset-grid span,
.asset-grid small {
    color: var(--zib-muted);
}

.asset-grid b {
    color: var(--zib-primary);
    font-size: 24px;
    font-weight: 950;
}

.tips-list p,
.chat-rule-list p {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 14px;
}

.chat-room-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 20px 0;
    padding: 12px;
}

.chat-room-notice div {
    display: grid;
    gap: 4px;
}

.chat-room-notice span {
    color: var(--zib-muted);
    line-height: 1.55;
}

.chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.chat-meta span {
    opacity: 0.65;
    font-size: 12px;
}

.chat-room-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 20px 14px;
}

.chat-room-tools a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--zib-text);
}

.chat-room-tools span {
    color: var(--zib-muted);
    line-height: 1.5;
}

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

.chat-topic-grid a {
    display: grid;
    gap: 8px;
    padding: 14px;
}

@media (max-width: 640px) {
    .asset-grid,
    .chat-room-tools,
    .chat-topic-grid {
        grid-template-columns: 1fr;
    }

    .mine-task-list a {
        grid-template-columns: auto 1fr;
    }

    .mine-task-list em {
        grid-column: 2;
        justify-self: start;
    }
}

body .bottom {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    transform: translate3d(-50%, 0, 0) !important;
    width: min(756px, calc(100vw - 24px)) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 8px !important;
    z-index: 99999 !important;
}

body .bottom a {
    min-width: 0 !important;
}

.login-msg {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(47, 107, 255, 0.08);
    font-weight: 800;
    line-height: 1.6;
}

.result-card .actions .btn {
    color: #fff;
    min-width: 96px;
}

.result-card .actions .ghost-dark {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: none;
}

.page-head .head-actions .btn,
.page-head .head-actions .ghost-dark,
.mall-head .head-actions .btn,
.checkin-head .head-actions .btn,
.mine-profile-card .btn,
.mine-profile-card .ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    border: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(47, 107, 255, 0.22);
}

.mine-profile-card .btn,
.mine-profile-card .ghost-dark {
    margin-top: 12px;
}

.mine-overview-grid a,
.mine-task-list a,
.mine-service-list a,
.asset-grid div {
    color: var(--zib-text);
    text-decoration: none;
}

.mine-overview-grid b,
.mine-task-list b,
.mine-service-list b,
.asset-grid b {
    color: var(--zib-text);
}

.mine-overview-grid span,
.mine-task-list span,
.mine-service-list span,
.asset-grid span,
.asset-grid small {
    color: var(--zib-muted);
}

.balance-actions a {
    color: #fff;
    text-decoration: none;
}

.avatar-upload-box {
    cursor: pointer;
}

.avatar-upload-box input[type="file"] {
    display: none;
}

.avatar-upload-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    margin: 8px auto;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    color: #fff;
    box-shadow: 0 18px 38px rgba(47, 107, 255, 0.24);
}

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

.avatar-upload-preview b {
    font-size: 38px;
    font-weight: 950;
}

.avatar-upload-preview em {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    padding: 5px 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.profile-next-card .guide-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(47, 107, 255, 0.06);
    color: var(--zib-text);
    text-decoration: none;
}

.profile-next-card .guide-list a b {
    color: var(--zib-text);
    font-size: 15px;
}

.profile-next-card .guide-list a span {
    color: var(--zib-muted);
}

.profile-next-card .guide-list a em {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--zib-primary), var(--zib-primary-2));
    color: #fff;
    font-style: normal;
    font-weight: 900;
}
