:root {
    --bg: #060303;
    --panel: #101010;
    --red: #c9000a;
    --red-dark: #790006;
    --blue: #4d73bf;
    --pink: #e97b92;
    --ink: #101010;
    --white: #fffdf8;
    --muted: #6b6670;
    --shadow: 8px 8px 0 #000;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background:
        radial-gradient(circle at 50% -15%, rgba(190, 0, 0, 0.28), transparent 34%),
        linear-gradient(120deg, #090606 0%, #210506 48%, #7c0007 100%);
}

button,
a {
    font: inherit;
}

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

.feed-page {
    width: min(1720px, calc(100% - 32px));
    margin: 16px auto 32px;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 34px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        radial-gradient(circle at 70% 0%, rgba(194, 0, 10, 0.28), transparent 28%),
        linear-gradient(135deg, #100b0d 0%, #360608 52%, #920006 100%);
    background-size: 34px 34px, 34px 34px, auto, auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.top-shell {
    position: relative;
    padding: 30px 34px 26px;
}

.back-home {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 50px;
    padding: 0 20px;
    border: 3px solid #000;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 5px 5px 0 #000;
}

.hero-banner {
    position: relative;
    min-height: 360px;
    margin-top: -12px;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.24)),
        url("../img/latest-hero-desktop.png") center / cover no-repeat;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 36%, rgba(0, 0, 0, 0.12));
}

.hero-label {
    position: absolute;
    right: 28px;
    top: 22px;
    z-index: 2;
    text-align: right;
    letter-spacing: 0.24em;
}

.hero-label span {
    display: block;
    color: #d49ca2;
    font-size: 12px;
    font-weight: 900;
}

.hero-label strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 18px;
}

.hero-title {
    position: absolute;
    left: 56px;
    bottom: 34px;
    z-index: 2;
    max-width: 640px;
}

.hero-title p {
    margin: 0 0 8px;
    color: #ffb1b8;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.hero-title h1 {
    margin: 0;
    color: #fff;
    font-family: Impact, "Microsoft YaHei", sans-serif;
    font-size: clamp(54px, 7vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-shadow: 4px 4px 0 #000;
}

.hero-strip {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 16px;
    border: 2px solid #000;
    background: var(--red);
    box-shadow: 5px 5px 0 #000;
    font: 900 15px/1 "Courier New", monospace;
    letter-spacing: 0.08em;
}

.stat-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 28px;
    margin-top: 26px;
}

.stat-card {
    overflow: hidden;
    min-height: 132px;
    border: 3px solid #000;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.window-bar,
.feed-card-bar,
.panel-bar {
    display: flex;
    align-items: center;
}

.window-bar {
    height: 34px;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 3px solid #000;
    background: var(--red);
    color: #fff;
}

.window-bar span {
    flex: 1;
    font: 950 13px/1 "Courier New", monospace;
    letter-spacing: 0.12em;
}

.window-bar i {
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.stat-weibo .window-bar {
    background: var(--blue);
}

.stat-gaohui .window-bar {
    background: var(--pink);
}

.stat-body {
    height: 98px;
    display: grid;
    place-items: center;
    padding: 10px;
}

.stat-body span {
    color: #8d8585;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.stat-body strong {
    margin-top: -6px;
    color: var(--red);
    font: 700 54px/1 Georgia, "Times New Roman", serif;
}

.stat-weibo .stat-body strong {
    color: var(--blue);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    padding: 0 34px 38px;
}

.feed-column {
    min-width: 0;
}

.feed-day + .feed-day {
    margin-top: 38px;
}

.day-heading {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px 72px;
    padding: 12px 18px;
    border: 3px solid #000;
    border-radius: 12px;
    background: #fff;
    color: #111;
    box-shadow: 5px 5px 0 #000;
}

.day-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 30px;
    border: 2px solid #000;
    background: var(--red);
    color: #fff;
    font: 900 13px/1 "Courier New", monospace;
}

.day-heading strong {
    color: var(--red);
    font-size: 20px;
}

.day-heading > span:last-child {
    justify-self: end;
    color: #777;
    font: 900 13px/1.3 "Courier New", monospace;
}

.day-timeline {
    position: relative;
    padding-left: 72px;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
}

.feed-card {
    position: relative;
    margin-bottom: 32px;
    border: 3px solid #000;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: var(--shadow);
}

.timeline-dot {
    position: absolute;
    left: -58px;
    top: -2px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #000;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 950;
}

.is-weibo .timeline-dot {
    background: var(--blue);
}

.feed-card-bar {
    height: 44px;
    gap: 10px;
    padding: 0 22px;
    border-bottom: 3px solid #000;
    border-radius: 14px 14px 0 0;
    background: var(--red);
    color: #fff;
}

.is-weibo .feed-card-bar {
    background: #202636;
}

.feed-card-bar strong {
    flex: 1;
    font: 950 15px/1 "Courier New", monospace;
    letter-spacing: 0.03em;
}

.window-tools {
    display: flex;
    gap: 6px;
}

.window-tools i {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 4px;
}

.feed-card-body {
    padding: 28px 28px 24px;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.source-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border: 3px solid #000;
    border-radius: 999px;
    color: var(--red);
    font-weight: 950;
}

.is-weibo .source-pill {
    color: var(--blue);
}

.feed-meta strong {
    font-size: 19px;
    font-weight: 950;
}

.feed-meta time {
    margin-left: auto;
    color: #8d8a8a;
    font: 900 14px/1 "Courier New", monospace;
}

.feed-text {
    position: relative;
    min-height: 98px;
    margin: 18px 0;
    padding: 22px 24px 34px;
    border: 2px dashed #d9d9d9;
    border-radius: 14px;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.feed-text::after {
    content: "#0517 CJM";
    position: absolute;
    right: 18px;
    bottom: 8px;
    color: #d0d0d0;
    font: 900 13px/1 "Courier New", monospace;
    letter-spacing: 0.08em;
}

.feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.metric-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border: 3px solid #000;
    border-radius: 7px;
    background: #fff;
    box-shadow: 3px 3px 0 #000;
    font: 900 14px/1 "Courier New", monospace;
}

.weibo-note {
    color: #8b8b8b;
    font: 900 13px/1 "Courier New", monospace;
    letter-spacing: 0.08em;
}

.feed-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    padding: 0 18px;
    border: 3px solid #000;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    box-shadow: 4px 4px 0 #000;
    font-weight: 950;
}

.is-weibo .feed-button {
    background: var(--blue);
}

.control-panel {
    align-self: start;
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 20px;
    background: #fff;
    color: #111;
    box-shadow: var(--shadow);
}

.panel-bar {
    height: 52px;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 3px solid #000;
    background: var(--red);
    color: #fff;
}

.panel-bar strong {
    flex: 1;
    font: 950 16px/1 "Courier New", monospace;
}

.panel-body {
    padding: 28px 26px 24px;
}

.panel-kicker {
    margin: 0 0 8px;
    color: #d46c75;
    font: 950 12px/1 "Courier New", monospace;
    letter-spacing: 0.24em;
}

.panel-body h2 {
    margin: 0 0 18px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
    font-weight: 900;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #32a875;
    box-shadow: 0 0 0 4px rgba(50, 168, 117, 0.18);
}

.update-box {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 3px solid #000;
    border-radius: 14px;
    background: #fff7f7;
    box-shadow: 4px 4px 0 #000;
}

.update-box span,
.update-box strong,
.update-box em {
    display: block;
}

.update-box span {
    color: #8a7474;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.update-box strong {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 950;
}

.update-box em {
    margin-top: 6px;
    color: #999;
    font: normal 12px/1.4 "Courier New", monospace;
}

.update-blue {
    background: #f0f4ff;
}

.update-blue span {
    color: var(--blue);
}

.panel-button {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border: 3px solid #000;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    font-size: 17px;
    font-weight: 950;
}

.panel-button:disabled {
    cursor: not-allowed;
    color: #f5f5f5;
    background: #aaa;
    border-color: #777;
    filter: grayscale(1);
    opacity: 0.72;
    box-shadow: 2px 2px 0 #777;
}

.panel-red {
    background: var(--red);
    color: #fff;
}

.panel-blue {
    background: var(--blue);
    color: #fff;
}

.panel-white {
    background: #fff;
    color: #111;
}

.refresh-message,
.notice {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.6;
}

.refresh-message {
    color: #777;
}

.notice {
    padding: 10px 12px;
    border: 2px solid #000;
    border-radius: 8px;
}

.notice.is-warn {
    background: #fff4d8;
    color: #76520f;
}

.notice.is-error {
    background: #ffe0e0;
    color: #9a1717;
}

.panel-foot {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 3px solid #000;
    background: #4a0005;
    color: #d5979d;
    font: 950 14px/1 "Courier New", monospace;
    letter-spacing: 0.12em;
}

.empty-panel {
    margin-left: 72px;
    padding: 36px;
    border: 3px solid #000;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: var(--shadow);
}

.empty-panel p {
    margin: 0 0 10px;
    color: var(--red);
    font: 900 13px/1 "Courier New", monospace;
    letter-spacing: 0.14em;
}

.empty-panel h2 {
    margin: 0 0 12px;
}

.empty-panel span {
    color: #777;
}

@media (max-width: 1180px) {
    .hero-art {
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.24)),
            url("../img/latest-hero-tablet.jpg");
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .control-panel {
        position: static;
    }

    .hero-title {
        left: 28px;
        bottom: 24px;
        max-width: 80%;
    }
}

@media (max-width: 760px) {
    .feed-page {
        width: min(100% - 12px, 1720px);
        margin-top: 6px;
        border-radius: 22px;
    }

    .top-shell,
    .content-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .top-shell {
        padding-top: 18px;
    }

    .back-home {
        min-width: 102px;
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .hero-banner {
        min-height: 440px;
        border-radius: 20px;
    }

    .hero-art {
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.44)),
            url("../img/latest-hero-mobile.jpg");
        background-position: center top;
    }

    .hero-label {
        right: 14px;
        top: 16px;
    }

    .hero-label span {
        font-size: 9px;
    }

    .hero-label strong {
        font-size: 13px;
    }

    .hero-title {
        left: 18px;
        bottom: 18px;
        max-width: calc(100% - 36px);
    }

    .hero-title h1 {
        font-size: clamp(44px, 15vw, 62px);
    }

    .hero-strip {
        padding: 7px 10px;
        font-size: 11px;
    }

    .stat-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .stat-card {
        min-height: 100px;
        border-radius: 10px;
        box-shadow: 4px 4px 0 #000;
    }

    .window-bar {
        height: 28px;
        padding: 0 7px;
    }

    .window-bar span {
        font-size: 10px;
    }

    .window-bar i {
        display: none;
    }

    .stat-body {
        height: 70px;
    }

    .stat-body span {
        text-align: center;
        font-size: 10px;
        letter-spacing: 0;
    }

    .stat-body strong {
        font-size: 34px;
    }

    .content-layout {
        gap: 24px;
        padding-bottom: 24px;
    }

    .feed-day + .feed-day {
        margin-top: 28px;
    }

    .day-heading {
        grid-template-columns: auto 1fr;
        gap: 8px 10px;
        margin: 0 0 16px 44px;
        padding: 10px;
        box-shadow: 4px 4px 0 #000;
    }

    .day-heading > span:last-child {
        grid-column: 1 / -1;
        justify-self: start;
        font-size: 10px;
    }

    .day-heading strong {
        font-size: 17px;
    }

    .day-timeline {
        padding-left: 44px;
    }

    .timeline-line {
        left: 17px;
    }

    .timeline-dot {
        left: -43px;
        width: 34px;
        height: 34px;
    }

    .feed-card {
        margin-bottom: 22px;
        border-radius: 14px;
        box-shadow: 5px 5px 0 #000;
    }

    .feed-card-bar {
        height: 40px;
        padding: 0 12px;
    }

    .feed-card-bar strong {
        font-size: 12px;
    }

    .window-tools i {
        width: 9px;
        height: 9px;
    }

    .feed-card-body {
        padding: 18px 16px 17px;
    }

    .feed-meta {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .feed-meta time {
        flex-basis: 100%;
        margin-left: 0;
        font-size: 12px;
    }

    .feed-text {
        min-height: 0;
        padding: 16px 16px 32px;
        font-size: 15px;
        line-height: 1.75;
    }

    .feed-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .metric-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .metric-row span {
        min-width: 0;
        justify-content: center;
        padding: 0 5px;
        box-shadow: 2px 2px 0 #000;
        font-size: 10px;
        white-space: nowrap;
    }

    .feed-button {
        width: 100%;
    }

    .panel-body {
        padding: 22px 18px 20px;
    }

    .panel-body h2 {
        font-size: 25px;
    }

    .empty-panel {
        margin-left: 44px;
        padding: 24px 20px;
    }
}

@media (max-width: 390px) {
    .hero-banner {
        min-height: 410px;
    }

    .day-timeline {
        padding-left: 38px;
    }

    .timeline-line {
        left: 14px;
    }

    .timeline-dot {
        left: -38px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .day-heading {
        margin-left: 38px;
    }

    .feed-card-bar strong {
        font-size: 11px;
    }

    .window-tools {
        display: none;
    }
}
