* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* 去掉微信内点击灰色背景 */
}

body {
    background-color: #fdf5f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #4a3f3a;
    line-height: 1.6;
    padding: 16px;
    /* 微信内滚动优化 */
    -webkit-overflow-scrolling: touch;
}

.page {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background: white;
    border-radius: 36px;
    padding: 28px 26px;
    box-shadow: 0 15px 30px rgba(170, 130, 100, 0.05);
    border: 1px solid #ffefe6;
    transition: all 0.2s ease;
    /* 微信内防止点击穿透 */
    -webkit-user-select: none;
    user-select: none;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #fff9f5);
}

.avatar-frame {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px rgba(160, 110, 70, 0.15);
    border: 4px solid white;
    overflow: hidden;
    background-image: url('./img/ma.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-color: #eeded3;
    position: relative;
    /* 微信内图片不模糊 */
    image-rendering: -webkit-optimize-contrast;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #593f31;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.greeting {
    font-size: 1.2rem;
    color: #b28266;
    margin-bottom: 8px;
    font-weight: 400;
}

.feature-badge {
    background: #ffe8de;
    padding: 10px 24px;
    border-radius: 60px;
    font-size: 1rem;
    margin: 8px 0 16px;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    color: #764d36;
}

.btn {
    background-color: #e9b8a3;
    color: white;
    border: none;
    padding: 16px 38px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 550;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 12px 22px rgba(233, 184, 163, 0.3);
    transition: all 0.2s;
    border: 1px solid #ffcfbc;
    /* 微信内按钮优化 */
    -webkit-appearance: none;
    appearance: none;
    width: auto;
    min-width: 200px;
}

.btn:hover {
    background-color: #dba48c;
    transform: scale(1.01);
}

/* 微信内点击按钮反馈 */
.btn:active {
    background-color: #dba48c;
    transform: scale(0.98);
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #4d3a2e;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid #ecc6b5;
    padding-left: 18px;
}

.photo-grid {
    display: flex;
    gap: 12px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo {
    width: 100px;
    height: 100px;
    background: #edd7cb;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #b18b76;
    box-shadow: 0 8px 12px #f0dbd0;
    border: 2px solid white;
}

.photo span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 30px;
    margin-top: 4px;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 1.1rem;
    background: #fcf7f3;
    padding: 12px 18px;
    border-radius: 30px;
}

.service-list li span:first-child {
    font-size: 1.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f1ded3;
    color: #6b4d3b;
    padding: 10px 22px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    /* 微信内点击区域优化 */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag:hover {
    background: #e9b8a3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(233, 184, 163, 0.4);
}

.tag:active {
    background: #e9b8a3;
    color: white;
    transform: translateY(0);
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    background: #f1e1d6;
    border-radius: 80px;
    padding: 16px 20px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    /* 可点击提示 */
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 40px;
    transition: background 0.2s;
}

.contact-item:active {
    background: rgba(233, 184, 163, 0.3);
}

.qrcode {
    width: 160px;
    height: 160px;
    background-image: url('./img/qr.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    border-radius: 28px;
    margin: 15px auto 5px;
    border: 2px solid #e9cbbc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.footer {
    text-align: center;
    color: #bca594;
    font-size: 0.95rem;
    padding: 20px 0;
    font-style: italic;
}

hr {
    border: 1px solid #f5ded1;
    margin: 24px 0 10px;
}

/* 弹窗样式 - 微信优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    /* 微信内禁止页面滚动 */
    touch-action: none;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
    animation: zoomIn 0.3s;
    /* 微信内图片不模糊 */
    image-rendering: -webkit-optimize-contrast;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 44px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* 增大点击区域 */
    padding: 10px;
    line-height: 1;
}

.close-modal:active {
    color: #e9b8a3;
    transform: scale(0.9);
}

.caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
    margin: 0 auto;
    width: fit-content;
    border-radius: 60px;
    backdrop-filter: blur(5px);
    max-width: 80%;
    word-break: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 微信内长按保存图片提示 */
.save-tip {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: none;
}

/* 复制号码提示 */
.copy-tip {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    z-index: 1002;
    display: none;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}