* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f3f3f3;
    color: #222;
}

a {
    color: inherit;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    min-height: 74px;
}

.logo {
    width: 128px;
}

.logo img {
    display: block;
    width: 100%;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
}

.nav a:hover,
.nav a.active,
.nav-dropdown:hover .nav-dropdown-trigger {
    color: #e60000;
}

.nav-dropdown {
    position: relative;
}

.mega-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100vw;
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-img {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.mega-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-cat-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mega-divider {
    width: 52px;
    height: 2px;
    background: #e60000;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-links a {
    font-size: 13px;
    color: #666;
}

.articles-hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
}

.articles-hero-media,
.articles-hero-overlay {
    position: absolute;
    inset: 0;
}

.articles-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.articles-hero-overlay {
    background: linear-gradient(90deg, rgba(28, 29, 34, 0.62) 0%, rgba(34, 35, 40, 0.32) 100%);
}

.articles-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 74px;
}

.hero-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    margin-bottom: 12px;
    opacity: 0.84;
}

.articles-hero-content h1 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.articles-hero-content p {
    max-width: 700px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.articles-main-section {
    padding-bottom: 72px;
}

.articles-main-shell {
    position: relative;
}

.articles-tabs-wrap {
    position: relative;
    z-index: 5;
    width: fit-content;
    margin: -13px auto 38px;
}

.articles-tabs {
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.articles-tabs a {
    min-width: 206px;
    min-height: 66px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid #efefef;
    background: #fff;
    transition: all 0.2s ease;
}

.articles-tabs a:last-child {
    border-right: 0;
}

.articles-tabs a.active,
.articles-tabs a:hover {
    background: #e60000;
    color: #fff;
}

.tab-icon {
    font-size: 14px;
}

.featured-recommend-section {
    margin-top: -10px;
    margin-bottom: 18px;
}

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

.featured-card {
    background: #fff;
    padding: 24px 22px 18px;
    border: 1px solid #ededed;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
}

.featured-card-active {
    background: #e60000;
    border-color: #e60000;
    color: #fff;
}

.featured-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 14px;
}

.featured-card-active .featured-date,
.featured-card-active p,
.featured-card-active .type-tag,
.featured-card-active .read-more {
    color: rgba(255, 255, 255, 0.9);
}

.featured-card h3 {
    min-height: 72px;
    margin-bottom: 14px;
    font-size: 26px;
    line-height: 1.38;
    font-weight: 500;
}

.featured-card h3 a {
    text-decoration: none;
}

.featured-cover {
    display: block;
    margin-bottom: 14px;
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: #eaeaea;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card p {
    min-height: 74px;
    font-size: 13px;
    line-height: 1.85;
    color: #555;
}

.featured-footer {
    margin: 16px 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9e9e9;
}

.featured-card-active .featured-footer {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 28px;
    padding: 0 14px;
    background: #eef1f5;
    color: #818181;
    font-size: 11px;
}

.featured-card-active .type-tag {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.read-more-line {
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.read-more-dot {
    font-size: 16px;
    line-height: 1;
}

.text-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-article-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 160px;
    align-items: center;
    gap: 20px;
    min-height: 124px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #ececec;
}

.text-date {
    align-self: start;
    font-size: 12px;
    color: #1b69dd;
    padding-top: 4px;
}

.text-main h3 {
    margin-bottom: 10px;
    font-size: 31px;
    line-height: 1.28;
    font-weight: 500;
}

.text-main h3 a {
    text-decoration: none;
}

.text-main p {
    margin-bottom: 14px;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.read-more-inline {
    justify-self: end;
    width: 130px;
}

.empty-box {
    padding: 44px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ddd;
    color: #888;
}

.article-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn,
.page-num {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    background: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
}

.page-num.active,
.page-btn:hover,
.page-num:hover {
    color: #1b69dd;
    border-color: #1b69dd;
    background: #fff;
}

.footer {
    background: #09182b;
    color: #fff;
    padding-top: 56px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-section p,
.footer-section li,
.footer-section .contact-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    text-decoration: none;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.icon-wrapper {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.icon-wrapper svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

.sidebar-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    width: 56px;
    padding: 16px 0;
    background: rgba(125, 125, 125, 0.92);
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.side-item-wrapper {
    position: relative;
}

.side-item {
    width: 56px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.side-item svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.hover-panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    background: #1f5fb5;
    padding: 12px 62px 12px 18px;
    border-radius: 18px;
}

.hover-panel-text {
    color: #fff;
    font-size: 18px;
}

.hover-panel-image {
    padding: 14px 62px 14px 14px;
}

.hover-panel-image img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    display: block;
}

.side-item-wrapper:hover .hover-panel {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1100px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .text-article-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .read-more-inline {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .header .container {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 14px 0;
    }

    .nav {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .articles-tabs {
        flex-direction: column;
        width: calc(100vw - 40px);
        max-width: 420px;
    }

    .articles-tabs a {
        min-width: 0;
        border-right: 0;
        border-bottom: 1px solid #efefef;
    }

    .articles-tabs a:last-child {
        border-bottom: 0;
    }

    .footer .container {
        grid-template-columns: 1fr;
    }

    .sidebar-actions {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 24px);
    }

    .articles-hero-content h1 {
        font-size: 30px;
    }

    .featured-card,
    .text-article-row {
        padding: 18px 16px;
    }

    .featured-card h3,
    .text-main h3 {
        font-size: 22px;
    }
}
