:root {
    --page-bg: #f4efe5;
    --panel: #ffffff;
    --panel-soft: #f9f6ef;
    --text: #221d16;
    --muted: #6b6559;
    --line: rgba(42, 33, 19, 0.08);
    --accent: #1d4f42;
    --accent-soft: rgba(29, 79, 66, 0.1);
}

/* 优惠页和我的页共用这一套移动端卡片样式。 */
* {
    box-sizing: border-box;
}

body,
body * {
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(205, 171, 115, 0.18), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, var(--page-bg) 100%);
    color: var(--text);
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

.mobile-page {
    display: flex;
    justify-content: center;
    padding: 18px 14px 96px;
    background: #fff;
}

.mobile-page__shell {
    width: min(720px, 100%);
    min-height: calc(100vh - 36px);
    padding: 18px 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(76, 58, 22, 0.12);
    backdrop-filter: blur(12px);
}

.mobile-page__shell--placeholder {
    min-height: auto;
}

.mobile-page__header {
    margin-bottom: 18px;
}

.mobile-page__eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.mobile-page__header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.14;
}

.mobile-page__desc {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.placeholder-card,
.login-card,
.menu-card,
.about-card,
.profile-hero {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.placeholder-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 44px 20px;
    text-align: center;
}

.placeholder-card--plain {
    border: 0;
    box-shadow: none;
}

.placeholder-card__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

.placeholder-card h2,
.login-card h2,
.about-card h2 {
    margin: 0;
    font-size: 22px;
}

.placeholder-card p,
.login-card p,
.about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.profile-hero__avatar {
    display: inline-flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #d9b36a, #c76a51);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.profile-hero__meta {
    min-width: 0;
    flex: 1;
}

.profile-hero__name {
    font-size: 20px;
    font-weight: 700;
}

.profile-hero__sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.profile-hero__badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(29, 79, 66, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.menu-card {
    overflow: hidden;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border-top: 1px solid var(--line);
}

.menu-row:first-child {
    border-top: none;
}

.menu-row__label {
    font-size: 15px;
    font-weight: 600;
}

.menu-row__value {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.login-card,
.about-card {
    padding: 22px 18px;
}

.login-card {
    margin-bottom: 16px;
}

.login-card__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    height: 42px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.about-card {
    margin-top: 16px;
}

.mobile-page--mine {
    align-items: stretch;
}

.mobile-page__header--mine {
    margin-bottom: 20px;
}

.mobile-page__header--mine h1 {
    font-size: 30px;
}

.mobile-page__header--mine .mobile-page__desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.mine-hero,
.mine-guest,
.mine-menu,
.mine-about {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.mine-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.mine-hero__avatar,
.mine-guest__avatar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbc184, #c86e57);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.mine-guest__avatar {
    background: rgba(29, 79, 66, 0.08);
    color: var(--accent);
}

.mine-guest__avatar svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mine-hero__meta {
    min-width: 0;
    flex: 1;
}

.mine-hero__name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.mine-hero__sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.mine-hero__badge {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(29, 79, 66, 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.mine-guest {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 22px 18px;
}

.mine-guest__title {
    font-size: 20px;
    font-weight: 700;
}

.mine-guest__desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.mine-guest__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 108px;
    height: 40px;
    margin-top: 4px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.mine-menu {
    overflow: hidden;
    margin-top: 14px;
}

.mine-menu__item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto 10px;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
}

.mine-menu__item:first-child {
    border-top: none;
}

.mine-menu__icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    justify-content: center;
    align-items: center;
    color: #72727a;
}

.mine-menu__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mine-menu__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mine-menu__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.mine-menu__desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.mine-menu__meta {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.mine-menu__arrow {
    color: #b7b7bd;
    font-size: 18px;
    line-height: 1;
}

.mine-about {
    margin-top: 14px;
    padding: 18px 16px;
}

.mine-about h2 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
}

.mine-about p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.mine-footer {
    padding: 18px 0 2px;
    text-align: center;
}

.mine-footer__icp {
    margin: 0;
    color: #a0a0a8;
    font-size: 11px;
    line-height: 1.5;
}

.mobile-page__shell--mine {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.mine-header {
    padding: 14px 14px 12px;
}

.mine-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.mine-group {
    margin: 0 14px 12px;
    border: 1px solid #ececf1;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.mine-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
}

.mine-profile__avatar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f2f4f7;
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
}

.mine-profile__avatar svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mine-profile__main {
    min-width: 0;
    flex: 1;
}

.mine-profile__name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.mine-profile__sub {
    margin-top: 5px;
    color: #8d8d93;
    font-size: 13px;
    line-height: 1.4;
}

.mine-profile__tag,
.mine-profile__button {
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 74px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.mine-profile__tag {
    background: #f5f7f9;
    color: var(--accent);
}

.mine-profile__button {
    background: var(--accent);
    color: #fff;
}

.mine-list {
    padding: 0;
}

.mine-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 14px;
    border-top: 1px solid #ececf1;
}

.mine-cell:first-child {
    border-top: none;
}

.mine-cell__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    justify-content: center;
    align-items: center;
    color: #7d7d84;
}

.mine-cell__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mine-cell__label {
    min-width: 0;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.mine-cell__value {
    max-width: 112px;
    overflow: hidden;
    color: #8d8d93;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-cell__arrow {
    color: #c0c0c6;
    font-size: 16px;
    line-height: 1;
}

.mine-about {
    padding: 14px;
}

.mine-about__title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.mine-about p {
    margin: 0;
    color: #6f6f75;
    font-size: 13px;
    line-height: 1.75;
}

.mine-footer {
    padding: 8px 14px 4px;
    text-align: center;
}

.mine-footer__icp {
    margin: 0;
    color: #a0a0a8;
    font-size: 11px;
    line-height: 1.5;
}

.mobile-tabbar {
    display: none;
}

.mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
    border-radius: 14px;
    color: #7a8e99;
    font-size: 11px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease, opacity 0.16s ease;
}

.mobile-tabbar__item:focus,
.mobile-tabbar__item:focus-visible {
    outline: none;
    box-shadow: none;
}

.mobile-tabbar__item.active {
    color: var(--accent);
    background: rgba(29, 79, 66, 0.08);
}

.mobile-tabbar__item:active {
    background: transparent;
    transform: translateY(1px) scale(0.98);
    opacity: 0.86;
}

.mobile-tabbar__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    justify-content: center;
    align-items: center;
}

.mobile-tabbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-tabbar__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 640px) {
    /* 小屏下去掉外层卡片，直接贴近手机原生页面感。 */
    .mobile-page {
        padding: 0 0 102px;
    }

    .mobile-page__shell {
        min-height: 100vh;
        padding: 14px 14px 0px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .mobile-page__shell--placeholder {
        min-height: auto;
    }

    .mobile-page__header h1 {
        font-size: 22px;
    }

    .mobile-page__header--mine {
        margin-bottom: 18px;
        padding-top: 2px;
    }

    .mobile-page__header--mine h1 {
        font-size: 28px;
    }

    .mine-hero,
    .mine-guest,
    .mine-menu,
    .mine-about {
        border-radius: 18px;
    }

    .mine-menu__item {
        grid-template-columns: 22px minmax(0, 1fr) auto 10px;
        gap: 10px;
        padding: 0 14px;
    }

    .mine-menu__meta {
        max-width: 104px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .mobile-tabbar {
        position: fixed;
        width: auto;
        max-width: none;
        right: 16px;
        bottom: 12px;
        left: 16px;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 28px rgba(31, 28, 22, 0.12);
        backdrop-filter: blur(16px);
    }
}

@media (max-width: 640px) {
    body {
        background: #fff;
    }

    .mobile-page {
        min-height: 100vh;
        background: #fff;
    }
}

/* 个人中心最终覆盖：去掉大标题和大外框，改成标准 APP 白底分组 */
.mobile-page--mine {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 0 0 calc(67px + env(safe-area-inset-bottom));
    background: #f5f5f7;
}

.mobile-page__shell--mine {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 67px - env(safe-area-inset-bottom));
    padding: 0;
    background: #f5f5f7;
}

.mine-header {
    display: none;
}

.mine-group {
    margin: 0 0 10px;
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.mine-profile {
    padding: 18px 16px 16px;
}

.mine-profile__avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f3f5;
}

.mine-profile__button,
.mine-profile__tag {
    height: 30px;
    border-radius: 8px;
}

.mine-list {
    margin-top: 0;
}

.mine-cell {
    min-height: 54px;
    padding: 0 16px;
}

.mine-footer {
    margin-top: auto;
    padding: 24px 18px 18px;
}

.mine-footer__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    color: #a0a0a8;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .mobile-page__shell--mine {
        background: #f5f5f7;
    }

    .mine-group {
        margin: 0 0 8px;
        border-radius: 0;
    }

    .mine-footer {
        padding: 20px 16px 16px;
    }
}
