/* 红日提码页：品牌侧栏 + 纵向操作区 */
body.entry-theme-hongri {
    --cx-primary: #b52b35;
    --cx-primary-hover: #96232b;
    --cx-primary-active: #7f1d25;
    --cx-primary-light: #f9dfe2;
    --cx-primary-lighter: #fff2f3;
    --cx-primary-border: #e9aab0;
    --cx-bg-page: #edf1f4;
    --cx-bg-surface: #ffffff;
    --cx-bg-soft: #f3f5f7;
    --cx-bg-hover: #f8f9fa;
    --cx-text-primary: #202831;
    --cx-text-secondary: #46515d;
    --cx-text-muted: #697581;
    --cx-text-tertiary: #9aa4ae;
    --cx-border: #dce2e7;
    --cx-border-light: #e9edf0;
    --cx-border-strong: #c8d0d7;
    --cx-danger: #b52b35;
    --cx-danger-light: #fbeaec;
    --cx-danger-border: #efbbc0;
    --cx-radius-sm: 4px;
    --cx-radius-md: 6px;
    background: #edf1f4;
    color: var(--cx-text-primary);
}

.entry-theme-hongri,
.entry-theme-hongri *,
.entry-theme-hongri *::before,
.entry-theme-hongri *::after {
    box-sizing: border-box;
}

.entry-theme-hongri .cx-shell,
.entry-theme-hongri .cx-shell * {
    letter-spacing: 0;
}

.entry-theme-hongri .cx-shell {
    width: min(1080px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 0 44px;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    grid-template-areas:
        "brand status"
        "brand flash"
        "brand form"
        "brand result";
    grid-template-rows: auto auto auto auto;
    gap: 14px 24px;
    align-content: center;
    align-items: start;
}

.entry-theme-hongri .cx-logo-wrap {
    grid-area: brand;
    position: sticky;
    top: 34px;
    align-self: stretch;
    min-height: 520px;
    margin: 0;
    padding: 46px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    text-align: left;
    background: #8f2028;
    border: 1px solid #761820;
    border-radius: 6px;
    color: #ffffff;
}

.entry-theme-hongri .cx-logo-wrap::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: 48px;
    width: 188px;
    height: 78px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transform: skewY(-8deg);
    pointer-events: none;
}

.entry-theme-hongri .cx-logo-wrap img {
    width: 92px;
    height: 92px;
    max-width: none;
    max-height: none;
    margin: 0 0 28px;
    padding: 8px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
}

.entry-theme-hongri .cx-brand-label {
    position: relative;
    z-index: 1;
    font-family: "Arial Narrow", "Microsoft YaHei", sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.entry-theme-hongri .cx-subtitle {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 500;
}

.entry-theme-hongri .cx-status-row {
    grid-area: status;
    justify-content: flex-end;
    margin: 0;
}

.entry-theme-hongri .cx-status {
    min-width: 104px;
    justify-content: center;
    background: #ffffff;
    border-color: #d8dfe5;
    box-shadow: 0 3px 12px rgba(32, 40, 49, .06);
}

.entry-theme-hongri .cx-flash {
    grid-area: flash;
    min-height: 28px;
    justify-content: flex-start;
    padding: 0 4px;
    text-align: left;
}

.entry-theme-hongri .cx-card {
    max-width: none;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d9e0e5;
    border-left: 4px solid #b52b35;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(39, 49, 58, .08);
}

.entry-theme-hongri .cx-card:not(.is-result) {
    grid-area: form;
    padding: 28px 30px 26px;
}

.entry-theme-hongri .cx-card.is-result {
    grid-area: result;
    padding: 26px 30px;
}

.entry-theme-hongri .cx-form {
    gap: 18px;
}

.entry-theme-hongri .cx-field-label {
    margin-bottom: 8px;
    color: #596570;
    font-size: 12px;
}

.entry-theme-hongri .cx-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    border-radius: 0;
}

.entry-theme-hongri .cx-tab,
.entry-theme-hongri .cx-tab:first-child,
.entry-theme-hongri .cx-tab:last-child {
    height: 38px;
    padding: 0 6px;
    background: #f3f5f7;
    border: 1px solid #dde3e8;
    border-radius: 4px;
    color: #46515d;
}

.entry-theme-hongri .cx-tab:hover {
    background: #fff2f3;
    border-color: #e2a0a6;
    color: #96232b;
}

.entry-theme-hongri .cx-tab.active {
    background: #b52b35;
    border-color: #b52b35;
    color: #ffffff;
}

.entry-theme-hongri .cx-input {
    height: 46px;
    border-radius: 4px;
    background: #fbfcfd;
}

.entry-theme-hongri .cx-input:focus {
    background: #ffffff;
    border-color: #b52b35;
    box-shadow: 0 0 0 3px rgba(181, 43, 53, .12);
}

.entry-theme-hongri .cx-btn {
    height: 44px;
    border-radius: 4px;
}

.entry-theme-hongri .cx-mode-options {
    justify-content: flex-start;
    gap: 22px;
}

.entry-theme-hongri .cx-mode-tip {
    margin-top: -6px;
    color: #9b3940;
    text-align: left;
}

.entry-theme-hongri .cx-result-main {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    justify-items: stretch;
}

.entry-theme-hongri .cx-qr-zone {
    min-height: 210px;
    background: #f5f7f8;
    border: 1px solid #e0e5e9;
    border-radius: 4px;
}

.entry-theme-hongri .cx-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-theme-hongri .cx-btn-sm {
    border-radius: 4px;
}

.entry-theme-hongri .cx-btn-sm.danger {
    background: #25313c;
}

.entry-theme-hongri .cx-btn-sm.danger:hover:not(:disabled) {
    background: #151d24;
}

.entry-theme-hongri .cx-stat-btn {
    top: 18px;
    right: 22px;
    height: 36px;
    border-radius: 4px;
    border-color: #cfd7dd;
    color: #29343e;
    box-shadow: 0 4px 16px rgba(32, 40, 49, .08);
}

.entry-theme-hongri .cx-stat-btn:hover {
    color: #96232b;
    border-color: #d5979d;
    transform: none;
}

@media (max-width: 860px) {
    .entry-theme-hongri .cx-shell {
        width: min(680px, calc(100% - 24px));
        padding: 24px 0 36px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "status"
            "flash"
            "form"
            "result";
        gap: 12px;
    }

    .entry-theme-hongri .cx-logo-wrap {
        position: relative;
        top: auto;
        min-height: 164px;
        padding: 24px;
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        column-gap: 18px;
        align-content: center;
    }

    .entry-theme-hongri .cx-logo-wrap img {
        grid-row: 1 / 3;
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .entry-theme-hongri .cx-brand-label { font-size: 30px; }
    .entry-theme-hongri .cx-subtitle { margin-top: 7px; }
    .entry-theme-hongri .cx-status-row { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .entry-theme-hongri .cx-shell { width: calc(100% - 20px); padding-top: 68px; }
    .entry-theme-hongri .cx-card:not(.is-result),
    .entry-theme-hongri .cx-card.is-result { padding: 20px 16px; }
    .entry-theme-hongri .cx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .entry-theme-hongri .cx-result-main { grid-template-columns: 1fr; gap: 18px; }
    .entry-theme-hongri .cx-action-row { grid-template-columns: 1fr; }
    .entry-theme-hongri .cx-btn-sm { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .entry-theme-hongri *,
    .entry-theme-hongri *::before,
    .entry-theme-hongri *::after { transition: none !important; }
}
