* {
    box-sizing: border-box;
}
html,
body {
    min-height: 100%;
    margin: 0;
    background: #eef1f4;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}
body {
    padding: 18px;
}
.phone {
    width: min(100%, 390px);
    min-height: calc(100vh - 36px);
    margin: 0 auto;
    overflow: hidden;
    background: #f7f8fa;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(24, 36, 51, 0.16);
}
.status-bar {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    line-height: 1;
}
.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}
.signal,
.wifi,
.battery {
    display: inline-block;
    border: 1px solid #111827;
}
.signal {
    width: 14px;
    height: 9px;
    border-top: 0;
    border-left: 0;
    transform: skew(-12deg);
}
.wifi {
    width: 12px;
    height: 8px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 10px 0 0 0;
    transform: rotate(45deg);
}
.battery {
    width: 20px;
    height: 10px;
    position: relative;
    border-radius: 2px;
}
.battery::after {
    content: "";
    width: 2px;
    height: 5px;
    position: absolute;
    right: -4px;
    top: 2px;
    background: #111827;
    border-radius: 0 2px 2px 0;
}
.nav-bar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0 126px 0 76px;
    background: #fff;
    border-bottom: 1px solid #eef1f4;
}
.nav-title {
    width: 100%;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.capsule {
    width: 62px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    right: 12px;
    top: 11px;
    border: 1px solid #d3d8df;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}
.lang-switch {
    min-width: 44px;
    height: 28px;
    position: absolute;
    right: 82px;
    top: 11px;
    padding: 0 10px;
    border: 1px solid #d3d8df;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}
.capsule span:first-child {
    width: 16px;
    height: 4px;
    border-top: 2px solid #222;
    border-radius: 999px;
}
.capsule span:last-child {
    width: 6px;
    height: 6px;
    background: #222;
    border-radius: 50%;
    box-shadow: -8px 0 0 #222, 8px 0 0 #222;
}
.page-content {
    min-height: calc(100vh - 114px);
    padding: 0 0 24px;
}
.module {
    margin: 0;
    background: transparent;
    border: 0;
}
.module-text {
    padding: 14px;
    background: #fff;
}
.module-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.35;
    word-break: break-word;
}
.module-copy {
    margin: 7px 0 0;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}
.preview-image,
.preview-video {
    display: block;
    width: 100%;
    background: #e7ebf0;
    vertical-align: top;
}
.preview-image {
    height: auto;
}
.preview-video {
    aspect-ratio: 16 / 9;
}
.rich-text {
    padding: 14px;
    background: #fff;
    color: #303946;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}
.rich-text img,
.rich-text video {
    max-width: 100%;
    height: auto;
}
.rich-text [data-i18n-rich-part="en"] {
    display: none;
}
html[data-lang="en"] [data-i18n-rich-part="zh"] {
    display: none;
}
html[data-lang="en"] [data-i18n-rich-part="en"] {
    display: block;
}
.empty {
    margin: 34px 18px;
    padding: 28px 20px;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}
@media (max-width: 430px) {
    body {
        padding: 0;
        background: #f7f8fa;
    }
    .phone {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .page-content {
        min-height: calc(100vh - 78px);
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}
