:root {
    --bg_color: #eef2f4;
    --current_category_color: #000;
    --card_title_text_color: #000;
    --timeline_color: #666;
    --border_color: #f0f0f0;
    --header_height: 64px;
    --header_current_category_color: #fff;
    --header_bg_color: #0eb0c9;
    --header_bg_color_dark: #0eb0c9;
    --header_li_color: #fff;
    --header_li_active_bg: #fff;
    --header_li_active_color: #0eb0c9;
    --header_li_font_active_color: #0eb0c9;
    --footer_border_color: #e8ecef;
    --content_max: 960px;
    --shell_radius: 14px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    background: var(--bg_color);
    color: var(--card_title_text_color);
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, p, time {
    margin: 0;
}

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: var(--header_height);
    background: var(--header_bg_color);
    box-shadow: none;
    border-bottom: none;
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-width: 1200px;
    height: var(--header_height);
    margin: 0 auto;
    padding: 0 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 4px 0;
    background: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: visible;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-divider {
    display: block;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.current-category {
    font-size: 17px;
    font-weight: 400;
    color: var(--header_current_category_color);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.category-nav {
    display: none;
    flex: 1;
    min-width: 0;
    justify-content: center;
    margin: 0 8px;
}

.category-nav .taps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav .taps::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.category-nav .taps li {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.category-nav .taps a,
.category-nav .nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--header_li_color);
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
}

.category-nav .taps a:hover,
.category-nav .nav-more-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.category-nav .taps li.active a,
.category-nav .header-more.is-active .nav-more-btn {
    background: var(--header_li_active_bg);
    color: var(--header_li_active_color);
    box-shadow: none;
    font-weight: 600;
}

.category-nav .taps li.header-more {
    position: relative;
    flex-direction: column;
    align-items: flex-end;
}

.header-more {
    position: relative;
}

.nav-more-details {
    position: relative;
}

.nav-more-btn {
    list-style: none;
}

.nav-more-btn::-webkit-details-marker {
    display: none;
}

.nav-more-chevron {
    display: block;
    margin-top: 1px;
    color: currentColor;
}

.nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e8ec;
    border-radius: 10px;
    z-index: 200;
    pointer-events: auto;
}

.nav-more-details[open] .nav-more-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* 下拉项在 .taps 内，需覆盖顶栏白色链接样式 */
.category-nav .nav-more-menu li {
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.category-nav .nav-more-menu a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    background: transparent;
    border-radius: 8px;
    white-space: nowrap;
}

.category-nav .nav-more-menu a:hover {
    background: #f0f7f9;
    color: var(--header_bg_color);
}

.category-nav .nav-more-menu li.active a {
    background: #e6f7fa;
    color: var(--header_bg_color);
    font-weight: 600;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

a.header-icon-btn {
    text-decoration: none;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.menu-list a {
    color: inherit;
    display: block;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.menu-btn svg path {
    fill: #fff;
}

@media (min-width: 1025px) {
    .header,
    .header-inner,
    .category-nav {
        overflow: visible;
    }

    .category-nav {
        display: flex;
    }

    .category-nav .taps {
        overflow: visible;
    }

    .header-actions {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .current-category {
        max-width: 240px;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 12px 0 8px;
    }

    .header-brand {
        flex: 1;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .header-divider {
        display: block;
        height: 18px;
    }

    .logo {
        font-size: 18px;
        min-height: 32px;
        padding: 2px 0;
    }

    .current-category {
        font-size: 16px;
        max-width: none;
    }

    .category-nav,
    .header-actions {
        display: none;
    }

    .menu-btn {
        flex-shrink: 0;
    }
}

/* Mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header_height);
    z-index: 98;
    background: linear-gradient(
            180deg,
            var(--header_bg_color_dark) 0%,
            #087f92 100%
    );
    padding: 16px 20px 32px;
    overflow-y: auto;
}

.menu-overlay.open {
    display: block;
}

.menu-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 44px;
    margin-bottom: 12px;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-close svg path {
    stroke: #fff;
}

.menu-list ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-list li {
    border-radius: 12px;
    overflow: hidden;
}

.menu-list li a {
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-list li.active a {
    background: var(--header_li_active_bg);
    color: var(--header_li_active_color);
    box-shadow: none;
}

/* 移动端菜单展平全部分类，不显示 More 下拉 */
.menu-list .header-more {
    list-style: none;
}

.menu-list .nav-more-btn {
    display: none;
}

.menu-list .nav-more-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.menu-list .nav-more-menu li a {
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

/* ----- Main layout ----- */
.page {
    padding-top: calc(var(--header_height) + 20px);
    padding-bottom: 32px;
}

.content-shell {
    max-width: var(--content_max);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.content-shell {
    border-radius: var(--shell_radius);
    overflow: hidden;
    background: #fff;
}

.content-shell > .content {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.content-list-pc {
    width: 100%;
    padding-bottom: 4px;
}

.row-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    gap: 12px;
    padding: 16px 16px 8px;
    box-sizing: border-box;
}

/* ----- Cards ----- */
.card {
    display: flex;
    color: inherit;
    box-sizing: border-box;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.card:hover {
    opacity: 0.92;
}

/* Featured hero cards */
.card--big {
    display: block;
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
    width: calc(50% - 6px);
    border: none;
}

.card--big .card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 429 / 237;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1a2a32;
}

.card--big .card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card--big .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px 16px;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.82) 100%
    );
}

.card-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--header_bg_color);
    border-radius: 4px;
    line-height: 1.2;
}

.card--big .card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.card-meta .card-time {
    font-size: 13px;
    color: inherit;
}

.card-clock {
    flex-shrink: 0;
    color: currentColor;
}

/* List rows */
.card--list {
    flex: 0 0 100%;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border_color);
    min-height: 124px;
}

.content-list-pc > .card--list:last-of-type {
    border-bottom: none;
}

.card--list .card-icon {
    position: relative;
    flex-shrink: 0;
    width: 132px;
    min-width: 132px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.card--list .card-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card--list .card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.card-topic {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--header_bg_color);
    line-height: 1.2;
    min-height: 1.2em;
}

.card--list .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    color: var(--card_title_text_color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card--list .card-time {
    font-size: 13px;
    color: var(--timeline_color);
    line-height: 1.3;
}

.card-arrow-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #c8d0d6;
}

.card-arrow {
    display: block;
}

@media (max-width: 767px) {
    .row-content {
        flex-direction: column;
        padding: 12px 12px 4px;
        gap: 10px;
    }

    .card--big {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .card--big .card-media {
        min-height: calc((100vw - 40px) * 237 / 429);
        max-height: 420px;
    }

    .card--list {
        padding: 14px 12px;
        gap: 10px;
        min-height: 110px;
        align-items: flex-start;
    }

    .card--list .card-icon {
        width: 108px;
        min-width: 108px;
        height: 76px;
    }

    .card--list .card-main {
        min-height: 76px;
    }
}

/* ----- Footer ----- */
.footer {
    position: static;
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
    padding: 0 0 32px;
    background: #e8ecef;
    border-top: 1px solid #dde3e7;
    box-sizing: border-box;
    min-height: 72px;
}

.footer-inner {
    width: 100%;
    max-width: var(--content_max);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #5c6b73;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    font-weight: 600;
    color: #3d4f58;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--header_bg_color);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 16px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

.content-loading {
    padding: 24px 0;
    text-align: center;
    color: var(--timeline_color);
    font-size: 14px;
    min-height: 200px;
}

.feed-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.feed-loading {
    min-height: 0;
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
}

.feed-loading[aria-hidden="false"] {
    min-height: 80px;
    padding: 24px 0;
    height: auto;
    overflow: visible;
}

.feed-sentinel {
    margin-top: 8px;
}

.hide {
    display: none;
}

.page-search.content {
    padding: 24px 20px 32px;
    display: block;
    margin-bottom: 20px;
}

.search-panel__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #fafafa;
}

.search-form__input:focus {
    outline: none;
    border-color: #c41e3a;
    background: #fff;
}

.search-form__submit {
    flex-shrink: 0;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #c41e3a;
    cursor: pointer;
}

.search-form__submit:hover {
    background: #a81832;
}

.search-status {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #666;
    min-height: 1.25em;
}

.search-results .card--list {
    margin-bottom: 12px;
}

.search-results .card--list:last-child {
    margin-bottom: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 520px) {
    .search-form {
        flex-direction: column;
    }

    .search-form__submit {
        width: 100%;
    }
}


.card--big {
    display: block;
    width: 100%;
}

.card--big .card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 429 / 237;
    background: #1a2a32;
    overflow: hidden;
}

.card--big .card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:root {
    --header_bg_color: #0EB0C9;
}


.page-size {
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.page-size a {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    float: left;
    background: transparent;
    border: solid 1px #ececec;
    color: #111;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    transition: all .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-decoration: auto;
    border-radius: 99px;
}

.page-size a.is-current {
    background: #0eb0c9;
    border: solid 1px #0eb0c9;
    color: #fff;
}

.page-size span {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    float: left;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    transition: all .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background: #0eb0c9;
    border: solid 1px #0eb0c9;
    color: #fff;
    border-radius: 99px;
}

.page-size a:hover, .page-size span:hover {
    background: #0eb0c9;
    border-color: #0eb0c9;
    color: #fff;
}

.page-size ul {
    display: flex;
    gap: 1.5rem;
    justify-content: start;
    align-items: center;
}

.page-size ul, .page-size li {
    list-style: none;
    margin: 0;
}

.article-info p, .article-info li {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-info ul, .article-info li {
    list-style: disc;
}

.article-info ul {
    padding-left: 2rem;
}

.article-info table {
    width: 100%;
    font-size: 10px;
}

.article-info h1, .article-info h2, .article-info h3, .article-info h4, .article-info h5, .article-info h6 {
    font-weight: 700;
    margin: 10px 0;
    color: #000;
    line-height: 1.1;
}

.article-info h1 {
    font-size: 30px;
}

.article-info h2 {
    font-size: 28px;
}

.article-info h3 {
    font-size: 25px;
}

.article-info h4 {
    font-size: 22px;
}

.article-info h5, .article-info h6 {
    font-size: 19px;
}

.article-info a {
    color: #0eb0c9;
    text-decoration: underline;
}

.article-info img {
    max-width: 450px;
    width: 100%;
}


.to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #000;
    font-size: 2rem;
    color: #fff;
    z-index: 50;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    border:none;
}

.to-top img {
    font-size: 1rem;
    height: 1rem;
    width: 1rem;
}

.to-top.show {
    opacity: 1;
    visibility: visible
}

.to-top:hover {
    opacity: .9;
    background: #0EB0C9;
}


/* Article detail page — aligned with homepage content-shell layout */

.page--detail {
    padding-bottom: 32px;
}

.page--detail .content-shell {
    max-width: var(--content_max);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.page--detail .content-shell > .content {
    background: #fff;
    border-radius: var(--shell_radius);
    overflow: hidden;
}

.article-detail {
    padding: 24px 20px 8px;
    max-width: 100%;
    margin: 0;
}

.article-detail__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--card_title_text_color);
    margin: 0 0 20px;
}

.article-detail__section-head,
.article-detail__recommend-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-detail__section-head h2,
.article-detail__recommend-head h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.article-detail__bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--header_bg_color);
    border-radius: 2px;
    flex-shrink: 0;
}

.article-detail__hero {
    margin: 0 0 20px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.article-detail__hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 429 / 237;
}

.article-detail__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--card_title_text_color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-detail__body p {
    margin: 0 0 1em;
}

.article-detail__body p:last-child {
    margin-bottom: 0;
}

.article-detail__body a {
    text-decoration: underline;
}

.article-detail__recommend-head {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border_color);
}

.article-detail__see-all {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--timeline_color);
    text-decoration: underline;
    white-space: nowrap;
}

.article-detail__recommend {
    margin-top: 0;
    padding-bottom: 4px;
}

.article-detail__recommend .card--list:last-of-type {
    border-bottom: none;
}

@media (min-width: 768px) {
    .article-detail {
        padding: 28px 24px 8px;
    }

    .article-detail__title {
        font-size: 28px;
    }

    .article-detail__section-head h2,
    .article-detail__recommend-head h2 {
        font-size: 22px;
    }
}