/* WeChat Moments simulator */

.wm-page {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 8px;
}

.wm-preview-col {
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}

.wm-device {
    position: relative;
    width: 402px;
    padding: 14px 12px 18px;
    background: linear-gradient(160deg, #3a3d44 0%, #1c1e24 42%, #111318 100%);
    border-radius: 42px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -2px 6px rgba(0,0,0,0.45);
    box-sizing: border-box;
}

.wm-device__btn {
    position: absolute;
    background: #2a2d34;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}

.wm-device__btn--vol {
    left: -3px;
    top: 108px;
    width: 4px;
    height: 72px;
}

.wm-device__btn--power {
    right: -3px;
    top: 140px;
    width: 4px;
    height: 48px;
}

.wm-phone {
    width: 375px;
    background: #ededed;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    border: 1px solid #0f1115;
}

/* Screenshot: flat screen only, no mockup bezel or home bar */
.wm-phone.is-shot {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.wm-phone.is-shot .wm-home {
    display: none !important;
}

.wm-home {
    display: none;
    height: 18px;
    background: #fff;
    position: relative;
}

.wm-home::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 108px;
    height: 4px;
    margin-left: -54px;
    background: #111;
    border-radius: 4px;
    opacity: 0.85;
}

.wm-device[data-os="ios"] .wm-home {
    display: block;
}

.wm-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 4px 14px 0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    position: relative;
    z-index: 2;
}

.wm-island {
    display: none;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    background: #111;
    z-index: 3;
}

.wm-device[data-os="ios"] .wm-island {
    display: block;
    width: 96px;
    height: 22px;
    border-radius: 12px;
}

.wm-device[data-os="android"] .wm-island {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 8px;
    left: 50%;
}

.wm-device[data-os="harmony"] .wm-island {
    display: block;
    width: 78px;
    height: 20px;
    border-radius: 10px;
    top: 7px;
}

.wm-device[data-os="ios"] .wm-status,
.wm-device[data-os="harmony"] .wm-status {
    padding-top: 8px;
    height: 40px;
}

.wm-device[data-os="ios"] .wm-status__time {
    padding-left: 8px;
    font-size: 15px;
    font-weight: 700;
}

.wm-device[data-os="android"] .wm-status__time {
    font-size: 13px;
    font-weight: 500;
}

.wm-status__right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wm-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.wm-signal i {
    display: block;
    width: 3px;
    background: #111;
    border-radius: 1px;
}

.wm-signal i:nth-child(1) { height: 4px; }
.wm-signal i:nth-child(2) { height: 6px; }
.wm-signal i:nth-child(3) { height: 9px; }
.wm-signal i:nth-child(4) { height: 12px; }

.wm-signal[data-bars="1"] i:nth-child(n+2),
.wm-signal[data-bars="2"] i:nth-child(n+3),
.wm-signal[data-bars="3"] i:nth-child(n+4) {
    background: #c4c4c4;
}

.wm-wifi {
    width: 14px;
    height: 12px;
    display: none;
    color: #111;
}

.wm-wifi svg {
    display: block;
}

.wm-wifi.is-on {
    display: inline-block;
}

.wm-wifi__arc {
    stroke: #c4c4c4;
}

.wm-wifi__dot {
    fill: #c4c4c4;
}

.wm-wifi.is-on[data-bars="1"] .wm-wifi__dot,
.wm-wifi.is-on[data-bars="2"] .wm-wifi__dot,
.wm-wifi.is-on[data-bars="3"] .wm-wifi__dot {
    fill: #111111;
}

.wm-wifi.is-on[data-bars="2"] .wm-wifi__arc--1,
.wm-wifi.is-on[data-bars="3"] .wm-wifi__arc--1,
.wm-wifi.is-on[data-bars="3"] .wm-wifi__arc--2 {
    stroke: #111111;
}

.wm-net {
    font-size: 11px;
    font-weight: 600;
}

.wm-device[data-os="ios"] .wm-net {
    display: none;
}

.wm-battery {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #111;
    line-height: 0;
}

.wm-batt-ui {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.wm-batt-ui__body {
    display: block;
    width: 27px;
    height: 13px;
    border: 1.5px solid #111;
    border-radius: 3px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.wm-batt-ui__fill {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #111;
    border-radius: 2px;
    box-sizing: border-box;
    font-style: normal;
    line-height: 0;
}

.wm-batt-ui__nub {
    width: 2px;
    height: 6px;
    margin-left: 1px;
    background: #111;
    border-radius: 0 1px 1px 0;
    flex-shrink: 0;
}

.wm-batt-ui__bolt {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 9px;
    margin: 0;
    transform: translate(-50%, -50%);
    line-height: 0;
    z-index: 1;
}

.wm-batt-ui__bolt svg {
    display: block;
}

.wm-battery__pct {
    display: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.wm-device[data-os="android"] .wm-battery__pct,
.wm-device[data-os="harmony"] .wm-battery__pct {
    display: inline;
}

.wm-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
    padding-top: 22px;
    color: #334155;
    font-size: 13px !important;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .wm-preview-col {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

.wm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.wm-nav__title {
    font-size: 17px;
    font-weight: 600;
    color: #111;
}

.wm-nav__back {
    width: 10px;
    height: 10px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
}

.wm-nav__cam {
    width: 48px;
    min-width: 48px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: #111;
}

.wm-nav__cam svg {
    display: block;
}

.wm-feed {
    min-height: 420px;
    background: #fff;
}

.wm-post {
    display: flex;
    gap: 10px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.wm-post__avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

.wm-post__body {
    flex: 1;
    min-width: 0;
}

.wm-post__name {
    font-size: 15px;
    font-weight: 600;
    color: #576b95;
    line-height: 1.3;
    margin-bottom: 4px;
}

.wm-post__text {
    font-size: 15px;
    color: #111;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.wm-imgs {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.wm-imgs.count-1 { grid-template-columns: minmax(0, 180px); }
.wm-imgs.count-2,
.wm-imgs.count-4 { grid-template-columns: repeat(2, 88px); }
.wm-imgs.count-3,
.wm-imgs.count-5,
.wm-imgs.count-6,
.wm-imgs.count-7,
.wm-imgs.count-8,
.wm-imgs.count-9 { grid-template-columns: repeat(3, 78px); }

.wm-imgs img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.wm-imgs.count-1 img {
    height: auto;
    max-height: 220px;
}

.wm-imgs.count-2 img,
.wm-imgs.count-4 img {
    height: 88px;
}

.wm-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #b2b2b2;
}

.wm-interact {
    margin-top: 6px;
    background: #f7f7f7;
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.5;
}

.wm-likes {
    color: #576b95;
}

.wm-likes::before {
    content: "♡ ";
    color: #576b95;
}

.wm-comments {
    border-top: 1px solid #ececec;
    margin-top: 4px;
    padding-top: 4px;
}

.wm-comment {
    color: #111;
}

.wm-comment__name {
    color: #576b95;
    font-weight: 600;
}

.wm-empty {
    padding: 48px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.wm-form-col {
    min-width: 0;
}

.wm-card {
    background: #fff;
    border: 1px solid var(--dev-border, #e2e8f0);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.wm-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.wm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.wm-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.wm-field-hint {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

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

.wm-users {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.wm-photo,
.wm-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.wm-photo {
    width: 72px;
}

.wm-user {
    width: auto;
    min-width: 0;
    padding: 12px 10px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.wm-user__key {
    font-size: 12px;
    color: #64748b;
}

.wm-user__name {
    width: 100%;
    min-width: 0;
    height: 32px;
    text-align: center;
}

.wm-thumb__x {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.wm-empty-inline {
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 0;
}

.wm-upload-btn {
    margin-top: 0;
}

.wm-photo img,
.wm-user img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}

.wm-photo span,
.wm-user span {
    font-size: 11px;
    color: #64748b;
}

.wm-post-edit {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wm-post-edit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wm-post-edit label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.wm-post-edit__label {
    font-size: 12px;
    color: #64748b;
}

.wm-post-edit__text {
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.wm-pic-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wm-pic-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
}

.wm-pic-check img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
}

.wm-pic-check input {
    margin: 0;
}

.wm-pic-check input:checked + img,
.wm-pic-check:has(input:checked) img {
    border-color: #2563eb;
}

.wm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.wm-tab {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
}

.wm-tab.is-on {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.wm-cmt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.wm-cmt-row__text,
.wm-cmt-row .dev-btn {
    grid-column: 1 / -1;
}

.wm-script-box {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.wm-script-box summary {
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.wm-hint {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.wm-hint--block {
    margin: 0 0 8px;
    line-height: 1.5;
}

.wm-fun-banner {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.wm-script {
    display: block;
    width: 100%;
    min-height: 180px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.wm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wm-actions--top {
    margin-top: 0;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .wm-page {
        grid-template-columns: 1fr;
    }
}

.wc-page {
    margin-bottom: 12px;
}

.wc-lead {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.wc-search {
    width: 100%;
    max-width: 420px;
    height: 38px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.wc-list {
    display: grid;
    gap: 16px;
}

.wc-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.wc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.wc-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.wc-card__body {
    margin: 0;
    padding: 14px;
    max-height: 280px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
    font-family: inherit;
}

.wc-empty {
    padding: 32px 0;
    text-align: center;
    color: #94a3b8;
}

/* Ads sit under the page title; the rest of the page uses normal document scroll */
.dev-social-page .dev-page-title {
    margin-bottom: 10px;
}

.dev-social-page .dev-ad-slot {
    margin: 0 0 16px;
}

.wx-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 10px 0 8px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.wx-nav__left {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 48px;
}

.wx-nav__badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #f54e44;
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
}

.wx-nav__badge.is-hidden {
    display: none;
}

.wx-nav__name {
    font-size: 17px;
    font-weight: 600;
    color: #111;
}

.wx-nav__more {
    display: inline-flex;
    align-items: center;
    min-width: 48px;
    justify-content: flex-end;
    color: #111;
    line-height: 0;
}

.wx-thread {
    min-height: 380px;
    max-height: 480px;
    overflow: auto;
    padding: 12px 10px 8px;
    background: #ededed;
}

.wx-time {
    text-align: center;
    font-size: 12px;
    color: #b2b2b2;
    margin: 8px 0 12px;
}

.wx-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.wx-row.is-me {
    flex-direction: row-reverse;
}

.wx-ava {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 40px;
    background: #ccc;
}

.wx-bubble {
    max-width: 70%;
    padding: 8px 10px;
    background: #fff;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.45;
    color: #111;
    word-break: break-word;
    position: relative;
}

.wx-row:not(.is-me) .wx-bubble::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 12px;
    border: 5px solid transparent;
    border-right-color: #fff;
    border-left: 0;
}

.wx-row.is-me .wx-bubble {
    background: #95ec69;
}

.wx-row.is-me .wx-bubble::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 12px;
    border: 5px solid transparent;
    border-left-color: #95ec69;
    border-right: 0;
}

.wx-packet {
    width: 236px;
    background: #f79c46;
    border-radius: 4px;
    color: #fff;
    overflow: visible;
    position: relative;
    flex: 0 0 auto;
}

.wx-packet.is-got {
    background: #f8e2c6;
}

.wx-row.is-packet .wx-packet::before,
.wx-row.is-packet.is-me .wx-packet::after {
    content: "";
    position: absolute;
    top: 14px;
    border: 5px solid transparent;
}

.wx-row.is-packet:not(.is-me) .wx-packet::before {
    left: -5px;
    border-right-color: #f79c46;
    border-left: 0;
}

.wx-row.is-packet.is-me .wx-packet::after {
    right: -5px;
    border-left-color: #f79c46;
    border-right: 0;
}

.wx-row.is-packet:not(.is-me) .wx-packet.is-got::before {
    border-right-color: #f8e2c6;
}

.wx-row.is-packet.is-me .wx-packet.is-got::after {
    border-left-color: #f8e2c6;
}

.wx-packet__main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 0;
    min-height: 62px;
    box-sizing: border-box;
    position: relative;
}

.wx-packet__main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f0b36f;
}

.wx-packet.is-got .wx-packet__main::after {
    background: #f9e7d1;
}

.wx-packet__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: center / contain no-repeat;
    margin-left: 2px;
}

.wx-packet--hb .wx-packet__icon {
    background-image: url('/static/default/img/social/wx-redp.png');
}

.wx-packet--hb.is-got .wx-packet__icon {
    background-image: url('/static/default/img/social/wx-redp-got.png');
}

.wx-packet--tf .wx-packet__icon {
    background-image: url('/static/default/img/social/wx-trans.png');
}

.wx-packet--tf.is-got .wx-packet__icon {
    background-image: url('/static/default/img/social/wx-trans-got.png');
}

.wx-packet__wish {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 6px 10px 4px;
}

.wx-packet__wish span {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-packet__got,
.wx-packet__remark {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-packet__foot {
    padding: 6px 10px 7px;
    font-size: 11px;
    line-height: 1.2;
    color: #faecda;
}

.wx-packet.is-got .wx-packet__foot {
    color: #fff;
}

.wx-bar {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 7px 8px 7px 6px;
    background: #f7f7f7;
    border-top: 1px solid #d9d9d9;
    box-sizing: border-box;
}

.wx-bar__btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: center / 38px 38px no-repeat;
}

.wx-bar__btn--voice {
    background-image: url('/static/default/img/social/wx-bar-voice.png');
    margin-right: 10px;
}

.wx-bar__btn--emoji {
    background-image: url('/static/default/img/social/wx-bar-emoji.png');
    margin-left: 10px;
    margin-right: 8px;
}

.wx-bar__btn--plus {
    background-image: url('/static/default/img/social/wx-bar-plus.png');
}

.wx-bar__field {
    flex: 1;
    height: 40px;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    position: relative;
}

.wx-bar__field-mic {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    line-height: 0;
    opacity: 0.9;
}

.wx-bar__field-mic svg {
    display: block;
}

.wx-avatars {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.wx-avatar-edit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.wx-avatar-edit--bg {
    cursor: default;
}

.wx-avatar-edit--bg label {
    cursor: pointer;
}

.wx-avatar-edit img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}

.wx-bg-preview {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect fill='%23e2e8f0' width='56' height='56'/%3E%3Ctext x='28' y='32' text-anchor='middle' fill='%2394a3b8' font-size='11' font-family='sans-serif'%3E背景%3C/text%3E%3C/svg%3E") center/cover no-repeat;
}

.wx-bg-clear {
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 12px;
}

.wx-edit-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.wx-font-custom {
    grid-column: 1 / -1;
}

#wxPhone,
#wmPhone,
#wgPhone,
#wwPhone {
    --wx-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    --wx-font-scale: 1;
    font-family: var(--wx-font);
}

#wxPhone .wm-status,
#wxPhone .wx-nav,
#wxPhone .wx-thread,
#wxPhone .wx-bar,
#wxPhone .wx-bubble,
#wxPhone .wx-packet,
#wmPhone .wm-status,
#wmPhone .wm-nav,
#wmPhone .wm-feed,
#wgPhone .wm-status,
#wgPhone .wx-nav,
#wgPhone .wx-thread,
#wgPhone .wx-bar,
#wgPhone .wx-bubble {
    font-family: var(--wx-font);
}

#wxPhone .wm-status__time,
#wmPhone .wm-status__time,
#wgPhone .wm-status__time {
    font-size: calc(15px * var(--wx-font-scale));
}

#wxPhone .wm-net,
#wxPhone .wm-battery__pct,
#wxPhone .wx-nav__badge,
#wxPhone .wx-packet__foot,
#wmPhone .wm-net,
#wmPhone .wm-battery__pct,
#wmPhone .wx-nav__badge,
#wgPhone .wm-net,
#wgPhone .wm-battery__pct,
#wgPhone .wx-nav__badge {
    font-size: calc(11px * var(--wx-font-scale));
}

#wxPhone .wx-nav__name,
#wmPhone .wm-nav__title,
#wgPhone .wx-nav__name {
    font-size: calc(17px * var(--wx-font-scale));
}

#wxPhone .wx-bubble,
#wxPhone .wx-packet__wish span,
#wmPhone .wm-post__name,
#wmPhone .wm-post__text,
#wmPhone .wm-interact,
#wgPhone .wx-bubble {
    font-size: calc(15px * var(--wx-font-scale));
}

#wxPhone .wx-time,
#wxPhone .wx-packet__got,
#wxPhone .wx-packet__remark,
#wmPhone .wm-meta,
#wgPhone .wx-time,
#wgPhone .wx-sys,
#wgPhone .wx-from {
    font-size: calc(12px * var(--wx-font-scale));
}

@media (max-width: 700px) {
    .wx-edit-row {
        grid-template-columns: 1fr auto;
    }
    .wx-edit-row select {
        grid-column: 1 / -1;
    }
}

.wx-col {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    min-width: 0;
}

.wx-col .wx-bubble {
    max-width: 100%;
}

.wx-from {
    font-size: 11px;
    color: #888;
    margin: 0 0 4px 2px;
    line-height: 1.2;
}

.wx-sys {
    text-align: center;
    font-size: 12px;
    color: #b2b2b2;
    margin: 8px 0 12px;
}

.wg-member {
    grid-template-columns: 48px 1fr auto;
    align-items: center;
}

.wg-member .wx-avatar-edit img {
    width: 40px;
    height: 40px;
}

.pc-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 20px;
    align-items: start;
    margin-bottom: 16px;
}

.pc-local-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 13px;
    line-height: 1.6;
}

.pc-local-note strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.pc-preview-card {
    min-height: 420px;
}

.pc-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pc-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.pc-drop {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
}

.pc-drop:hover {
    border-color: #07c160;
    background: #f0fdf4;
}

.pc-upload__img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.pc-drop.is-filled .pc-upload__img {
    display: block;
}

.pc-drop__hint {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
    pointer-events: none;
}

.pc-drop__hint small {
    margin-top: 4px;
    font-size: 11px;
    color: #16a34a;
}

.pc-drop.is-filled .pc-drop__hint {
    display: none;
}

.pc-preview {
    overflow-x: auto;
}

.pc-poster {
    width: 360px;
    margin: 0 auto;
    padding: 28px 20px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.pc-poster__title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.pc-poster__sub {
    font-size: 13px;
    color: #888;
    margin: 6px 0 18px;
}

.pc-poster__codes {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.pc-qr {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.pc-qr img,
.pc-qr canvas {
    width: 140px !important;
    height: 140px !important;
}

.pc-qr--lg,
.pc-qr--lg img,
.pc-qr--lg canvas {
    width: 200px !important;
    height: 200px !important;
}

.pc-poster__tag {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
}

.pc-poster__tag--wx { background: #07c160; }
.pc-poster__tag--ali { background: #1677ff; }

.pc-poster__tip {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 900px) {
    .pc-page {
        grid-template-columns: 1fr;
    }
    .pc-uploads {
        grid-template-columns: 1fr;
    }
}

.ww-page {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 8px;
}

.ww-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ww-panel__hd {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.ww-preview {
    display: flex;
    justify-content: center;
    padding: 20px 16px 24px;
    background: #f3f4f6;
}

.ww-screen {
    width: 320px !important;
    min-height: 568px;
    border-radius: 12px !important;
    border: 1px solid #e5e5e5 !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #111;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

#wwPhone .wm-status {
    background: #fff;
    color: #111;
    height: 34px;
    padding: 6px 14px 0;
}

#wwPhone .wm-net {
    display: inline;
    color: #111;
    font-size: 12px;
}

#wwPhone .wm-battery__pct {
    display: inline;
    color: #111;
}

.ww-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    flex-shrink: 0;
}

.ww-nav__back {
    width: 11px;
    height: 11px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
}

.ww-nav__more {
    width: 22px;
    height: 22px;
    background:
        radial-gradient(circle, #111 1.3px, transparent 1.4px) 3px 50% / 5px 5px no-repeat,
        radial-gradient(circle, #111 1.3px, transparent 1.4px) 10.5px 50% / 5px 5px no-repeat,
        radial-gradient(circle, #111 1.3px, transparent 1.4px) 18px 50% / 5px 5px no-repeat;
}

.ww-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 18px;
}

.ww-coin {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f5c518;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ww-coin span {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-top: -2px;
}

.ww-caption {
    color: #888;
    font-size: 15px;
    margin-bottom: 10px;
}

.ww-money {
    color: #111;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.ww-yen {
    font-size: 26px;
    font-weight: 500;
    vertical-align: 2px;
}

.ww-promo {
    margin-top: 12px;
    color: #e6a23c;
    font-size: 13px;
}

.ww-promo span {
    font-size: 14px;
}

.ww-actions {
    margin-top: auto;
    width: 100%;
    padding: 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.ww-btn {
    display: block;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
}

.ww-btn--pay {
    background: #07c160;
    color: #fff;
}

.ww-btn--out {
    background: #f2f2f2;
    color: #111;
}

.ww-foot {
    margin-top: 36px;
    text-align: center;
}

.ww-faq {
    color: #576b95;
    font-size: 14px;
}

.ww-tenpay {
    margin-top: 8px;
    color: #b2b2b2;
    font-size: 11px;
}

.ww-form {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ww-form__label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.ww-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.ww-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww-range input[type="range"] {
    flex: 1;
    accent-color: #16a34a;
}

.ww-shot-btn {
    height: 40px;
    border: none;
    width: 100%;
    justify-content: center;
}

@media (max-width: 800px) {
    .ww-page {
        grid-template-columns: 1fr;
    }
}
