/* ============================================================
 * 响应式基准：1rem = 10px (设计稿基准 375px 宽)
 * 视口 ≤ 480px 时按宽度等比缩放，> 480px 时锁定到 480px 等效
 * ============================================================ */
html {
    font-size: calc(min(100vw, 480px) / 37.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    background: #2b0201;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    background: #2b0201;
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    color: #000;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.phone {
    position: relative;
    width: 37.5rem;
    min-height: 88.4rem;
    overflow: hidden;
    background: #8c0a12;
}

.hero {
    position: absolute;
    inset: 0 0 auto 0;
    width: 37.5rem;
    height: 66.7rem;
    overflow: hidden;
    pointer-events: none;
}

.hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(140, 10, 18, 0) 66.44%, #8c0a12 100%);
}

.title {
    position: absolute;
    top: 9.4rem;
    left: 2.5rem;
    width: 32.5rem;
    height: 4.6rem;
    object-fit: cover;
    z-index: 3;
}

.subtitle {
    position: absolute;
    top: 16.1rem;
    left: 2.5rem;
    width: 27.8rem;
    height: 4.6rem;
    object-fit: cover;
    z-index: 3;
}

.light-effect {
    position: absolute;
    width: 16.8rem;
    height: 5rem;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}

.light-effect--right {
    top: 11.5rem;
    left: 22.6rem;
}

.light-effect--left {
    top: 18.2rem;
    left: -0.7rem;
}

.decor-dove {
    position: absolute;
    top: 16.5rem;
    left: 30.5rem;
    width: 5.8rem;
    height: 7rem;
    object-fit: cover;
    pointer-events: none;
    z-index: 4;
}

.nav-bar {
    position: absolute;
    top: 3.2rem;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.2rem 1.2rem 0.4rem;
    display: flex;
    align-items: center;
}

.nav-bar__back {
    width: 4.2rem;
    height: 4.2rem;
    padding: 0;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-bar__back svg {
    width: 1.2rem;
    height: 1.4rem;
    transform: scaleX(-1);
    display: block;
}

.card {
    position: absolute;
    top: 25.6rem;
    left: 1.4rem;
    width: 34.7rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #fdfffd 0%, #ffeeca 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.2rem;
    z-index: 5;
}

.card__title {
    position: relative;
    width: 15.4rem;
    height: 3.2rem;
    background-image: url("../img/kefu/card-title-bg.png");
    background-repeat: no-repeat;
    background-size: 15.4rem 15.4rem;
    background-position: 0 -6.1rem;
}

.card__title-bg {
    display: none;
}

.card__title span {
    position: absolute;
    left: 4.5rem;
    top: 0.5rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2rem;
    white-space: nowrap;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    align-items: center;
}

.contact-block {
    width: 32.3rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-row {
    width: 100%;
    height: 4.8rem;
    padding: 0.8rem;
    border: 0.1rem solid #c12010;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.contact-row__label {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8rem;
    color: #000;
}

.contact-row__action {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8rem;
    color: #b61714;
}
.contact-row__action--url {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
    word-break: break-all;
    text-align: right;
    max-width: 22rem;
}

.divider {
    width: 100%;
    height: 0.066rem;
    background: rgba(0, 0, 0, 0.2);
}

.qr-list {
    width: 34.7rem;
    padding: 0 2.4rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qr-list--single { justify-content: center; }
.qr-list--single .qr-item__code { width: 18rem; height: 18rem; }
.qr-list--single .qr-item figcaption { font-size: 1.55rem; font-weight: 700; }

.qr-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.qr-item__code {
    width: 14.2rem;
    height: 14.2rem;
    border: 0.033rem solid #c3080c;
    background: #fff;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-item__code img,
.qr-item__code canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.qr-item figcaption {
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: #000;
}

.bottom-decor {
    position: absolute;
    top: 66.7rem;
    left: 0;
    width: 37.5rem;
    height: 14.5rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bottom-decor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bottom-decor__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #8c0a12 0%, rgba(140, 10, 18, 0) 23.3%);
}

/* ============================================================
   底部 Tabbar（与 home / yunchuangye / profile 三页统一）
   ============================================================ */
.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 37.5rem;
    height: 5.8rem;
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 -0.2rem 0.8rem rgba(0, 0, 0, 0.06);
    border-top: 0.05rem solid #f0e0c0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 20;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #777;
    font-size: 1.05rem;
    cursor: pointer;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.tab__icon {
    width: 2.4rem;
    height: 2.4rem;
    color: inherit;
}

.tab__icon--img {
    object-fit: contain;
    transition: filter 0.15s ease;
}

/* PNG 图标在未选中态做灰阶 + 半透明，模拟 SVG 跟随选中态变色的效果 */
.tab:not(.tab--active) .tab__icon--img {
    filter: grayscale(1) opacity(0.55);
}

.tab--active {
    color: #d8131c;
    font-weight: 700;
}

/* ============================================================
   全局轻量 Toast（同 profile.css，便于跨页面复用）
   ============================================================ */
.pf-toast {
    position: fixed;
    left: 50%;
    bottom: 8rem;
    transform: translate(-50%, 0.6rem);
    max-width: 28rem;
    padding: 0.9rem 1.6rem;
    border-radius: 1.6rem;
    background: rgba(20, 20, 20, 0.86);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pf-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}
