.wechat-app-body {
    margin: 0;
    padding: 0 !important;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f7f8fa;
    color: #333;
}

.wechat-app,
.wechat-app *,
.wechat-app *::before,
.wechat-app *::after {
    box-sizing: border-box;
}

.wechat-app {
    --primary-color: #ff4772;
    --bg-color: #f7f8fa;
    --text-main: #333;
    --text-sub: #999;
    --border-color: #eee;
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
}

.wechat-app h1,
.wechat-app h2,
.wechat-app h3,
.wechat-app p {
    margin: 0;
}

.wechat-app button,
.wechat-app input,
.wechat-app textarea {
    margin: 0;
    font: inherit;
    letter-spacing: 0;
}

.wechat-app button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.wechat-app a,
.wechat-app a:hover,
.wechat-app a:focus {
    color: inherit;
    text-decoration: none;
}

.wechat-app button:focus-visible,
.wechat-app input:focus-visible,
.wechat-app textarea:focus-visible,
.wechat-app a:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.wechat-app [hidden] {
    display: none !important;
}

.page-content {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    background: var(--bg-color);
    scrollbar-width: none;
}

.page-content::-webkit-scrollbar {
    display: none;
}

.header-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.avatar {
    display: block;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0 auto 5px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}

.tag {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    font-size: 10px;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    max-width: 750px;
    height: calc(60px + env(safe-area-inset-bottom));
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.nav-item {
    display: flex;
    width: 25%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-sub) !important;
    font-size: 10px;
}

.nav-item.active {
    color: var(--primary-color) !important;
}

.nav-icon {
    margin-bottom: 4px;
    font-size: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .wechat-app *,
    .wechat-app *::before,
    .wechat-app *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
