* {
    box-sizing: border-box;
}

:root {
    --ink: #182033;
    --muted: #68718a;
    --paper: #ffffff;
    --ground: #f5f7fb;
    --brand: #ff4d61;
    --brand-deep: #e42e48;
    --sun: #ffbd3d;
    --line: #e8ebf2;
    --shadow: 0 12px 32px rgba(31, 42, 71, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--ground);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner,
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 74px;
}

.logo {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.logo-mark {
    display: inline-grid;
    width: 31px;
    height: 31px;
    place-items: center;
    margin-right: 6px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #ff8b57);
    font-size: 17px;
    vertical-align: -2px;
}

.main-nav {
    display: flex;
    flex: 1;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 9px;
    color: #4e5770;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand);
    background: #fff0f2;
}

.nav-icon {
    margin-right: 3px;
}

.header-note {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.hreo {
    margin-top: 26px;
}

.hreo-carousel {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hreo-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.hreo-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hreo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    color: #fff;
    background: linear-gradient(135deg, #20294a, #e83957);
}

.hreo-slide:nth-child(2) .hreo-copy {
    background: linear-gradient(135deg, #25385c, #ea7b38);
}

.hreo-slide:nth-child(3) .hreo-copy {
    background: linear-gradient(135deg, #34305a, #8d54c5);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffe49c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hreo h2 {
    max-width: 540px;
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.28;
}

.hreo p {
    max-width: 510px;
    margin: 16px 0 22px;
    color: rgba(255,255,255,.84);
}

.hreo-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 17px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.hreo-cta {
    color: #212842;
    background: #fff;
}

.hreo-image {
    min-height: 330px;
}

.hreo-image img {
    height: 100%;
}

.carousel-controls {
    position: absolute;
    right: 18px;
    bottom: 17px;
    display: flex;
    gap: 8px;
}

.carousel-controls button {
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgba(24,32,51,.62);
}

.section {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
}

.section-heading a {
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.article-card,
.feature-card,
.topic-card,
.info-card,
.article-body,
.category-head,
.subscribe {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 4px 14px rgba(31,42,71,.035);
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 312px;
}

.article-card img {
    aspect-ratio: 16 / 10;
}

.card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 15px;
}

.tag {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.article-card h3,
.feature-card h3,
.topic-card h3 {
    margin: 6px 0 9px;
    font-size: 16px;
    line-height: 1.48;
}

.article-card p,
.feature-card p,
.topic-card p,
.muted {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.meta {
    margin-top: auto;
    padding-top: 12px;
    color: #9aa1b2;
    font-size: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    display: grid;
    grid-template-columns: 106px 1fr;
    min-height: 128px;
}

.feature-card img {
    height: 100%;
}

.feature-card .card-copy {
    padding: 14px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.topic-card {
    min-height: 127px;
    padding: 17px;
}

.topic-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #fff2e2;
    font-size: 20px;
}

.topic-card:nth-child(even) .topic-icon {
    background: #f2efff;
}

.two-column {
    display: grid;
    grid-template-columns: 1.45fr .85fr;
    gap: 18px;
}

.list-panel,
.rank-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.list-row,
.rank-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.list-row:last-child,
.rank-row:last-child {
    border-bottom: 0;
}

.list-num {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: var(--brand);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
}

.list-row h3,
.rank-row h3 {
    margin: 0;
    font-size: 15px;
}

.list-row time,
.rank-row span {
    color: #a0a7b6;
    font-size: 12px;
}

.rank-row strong {
    color: var(--brand);
    font-size: 13px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.info-card {
    min-height: 188px;
    padding: 22px;
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.subscribe {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    margin: 30px 0;
    padding: 26px 30px;
    color: #fff;
    border: 0;
    background: linear-gradient(110deg, #273252, #e73c57);
}

.subscribe h2 {
    margin: 0 0 7px;
    font-size: 23px;
}

.subscribe p {
    margin: 0 0 15px;
    color: rgba(255,255,255,.8);
}

.subscribe .button {
    color: #24304d;
    background: #fff;
}

.qr-placeholder {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 12px;
    color: #283451;
    background: repeating-conic-gradient(#273252 0 25%, #fff 0 50%) 50% / 18px 18px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.site-footer {
    margin-top: 36px;
    padding: 28px 0;
    color: #758097;
    background: #1f2945;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.breadcrumb {
    margin: 23px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    color: #58627b;
}

.category-head {
    padding: 26px;
}

.category-head h1 {
    margin: 0 0 7px;
    font-size: 29px;
}

.category-head p {
    margin: 0;
    color: var(--muted);
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    margin-top: 18px;
}

.article-list {
    display: grid;
    gap: 14px;
}

.list-article {
    display: grid;
    grid-template-columns: 225px 1fr;
    overflow: hidden;
    min-height: 155px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.list-article img {
    height: 100%;
}

.list-article .card-copy {
    padding: 18px;
}

.list-article h2 {
    margin: 3px 0 6px;
    font-size: 18px;
    line-height: 1.45;
}

.side-card {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.side-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.side-card a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    color: #536079;
    font-size: 14px;
}

.article-body {
    padding: clamp(20px, 4vw, 42px);
}

.article-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin: 9px 0 12px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.36;
}

.article-info {
    color: var(--muted);
    font-size: 13px;
}

.reading-note {
    margin: 23px 0;
    padding: 13px 15px;
    border-left: 4px solid var(--sun);
    border-radius: 0 10px 10px 0;
    background: #fff8e8;
    color: #79581b;
    font-size: 14px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin: 30px 0 10px;
    font-size: 22px;
}

.article-content p {
    margin: 0 0 15px;
    color: #3f4960;
}

.article-figure {
    margin: 23px 0;
}

.article-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 13px;
}

.article-figure figcaption {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.article-end {
    margin-top: 28px;
    padding: 18px;
    border-radius: 13px;
    color: #57627a;
    background: #f3f5f9;
    text-align: center;
}

.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.page-nav a {
    flex: 1;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--brand);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 900px) {
    .header-inner {
        gap: 14px;
    }

    .header-note {
        display: none;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-layout,
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 62px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 14px;
    }

    .main-nav a {
        padding: 7px 8px;
        font-size: 13px;
    }

    .hreo {
        margin-top: 16px;
    }

    .hreo-carousel {
        min-height: 490px;
        border-radius: 18px;
    }

    .hreo-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 190px;
    }

    .hreo-copy {
        padding: 28px 24px;
    }

    .hreo-image {
        min-height: 190px;
    }

    .card-grid,
    .feature-grid,
    .topic-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        min-height: 0;
    }

    .feature-card {
        grid-template-columns: 115px 1fr;
    }

    .subscribe {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .qr-placeholder {
        width: 100px;
        height: 100px;
    }

    .footer-inner,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-article {
        grid-template-columns: 120px 1fr;
        min-height: 135px;
    }

    .list-article h2 {
        font-size: 15px;
    }

    .list-article p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-nav {
        flex-direction: column;
    }
}
