* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: #eef1f0;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
    font: inherit;
}

.responsive-container {
    background: #f5f7f4;
    margin: 0 auto;
    max-width: 375px;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .responsive-container {
        max-width: 420px;
    }
}

@media (min-width: 1280px) {
    body.prototype-page-body {
        align-items: center;
        background: linear-gradient(135deg, #dfe7e2 0%, #7f9188 100%);
        display: flex;
        justify-content: center;
        min-height: 100vh;
        padding: 20px;
    }

    .responsive-container {
        border-radius: 40px;
        box-shadow: 0 24px 70px rgba(18, 35, 32, 0.28);
        height: 812px;
        max-width: 375px;
        min-height: auto;
    }

    .responsive-container::before {
        background: #000;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        content: "";
        height: 30px;
        left: 50%;
        position: absolute;
        top: 0;
        transform: translateX(-50%);
        width: 150px;
        z-index: 50;
    }
}

.status-bar {
    align-items: center;
    background: #fff;
    display: flex;
    height: 48px;
    justify-content: space-between;
    padding: 0 22px;
    position: relative;
    z-index: 20;
}

.wechat-nav {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e6ece9;
    display: flex;
    min-height: 64px;
    padding: 8px 112px 10px 20px;
    position: relative;
    z-index: 20;
}

.wechat-nav.compact {
    min-height: 52px;
    padding-bottom: 8px;
    padding-top: 8px;
}

.nav-title {
    color: #1f2933;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-subtitle {
    color: #718096;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.nav-back {
    align-items: center;
    color: #41524a;
    display: flex;
    height: 36px;
    justify-content: center;
    margin-right: 8px;
    width: 36px;
}

.wechat-capsule {
    align-items: center;
    border: 1px solid #d5dcd8;
    border-radius: 999px;
    display: flex;
    gap: 16px;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 88px;
}

.content-bg {
    background: #f5f7f4;
    height: calc(100vh - 112px);
    overflow-y: auto;
    padding-bottom: 112px;
    -webkit-overflow-scrolling: touch;
}

.content-bg.no-tab {
    padding-bottom: 24px;
}

@media (min-width: 1280px) {
    .content-bg {
        height: 700px;
    }

    .wechat-nav.compact + .content-bg {
        height: 712px;
    }
}

.content-bg::-webkit-scrollbar {
    width: 4px;
}

.content-bg::-webkit-scrollbar-track {
    background: transparent;
}

.content-bg::-webkit-scrollbar-thumb {
    background: rgba(31, 41, 51, 0.16);
    border-radius: 4px;
}

.fixed-bottom-bar {
    background: #fff;
    border-top: 1px solid #dfe7e2;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(31, 41, 51, 0.06);
    left: 0;
    padding-bottom: 24px;
    position: absolute;
    right: 0;
    z-index: 30;
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
}

.tab-item {
    align-items: center;
    color: #718096;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    justify-content: center;
}

.tab-item i {
    font-size: 18px;
}

.tab-item.active {
    color: #1f6f5b;
}

.phone-frame {
    background: #f5f7f4;
    border: 10px solid #17212b;
    border-radius: 42px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
    height: 812px;
    overflow: hidden;
    position: relative;
    width: 375px;
}

.phone-notch {
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    height: 30px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 150px;
    z-index: 4;
}

.phone-content {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.phone-content iframe,
.phone-mockup iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.text-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.text-heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.text-body {
    font-size: 14px;
    line-height: 1.65;
}

.text-caption {
    font-size: 12px;
    line-height: 1.5;
}

.line-clamp-2 {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
