:root {
    --primary: #b9000a;
    --primary-dark: #940008;
    --primary-soft: #fff3f3;
    --text-main: #2f2f2f;
    --text-secondary: #666666;
    --text-light: #8b8b8b;
    --line: #e8dfdf;
    --bg-page: #f6f4f3;
    --bg-card: #ffffff;
    --shadow: 0 18px 45px rgba(61, 17, 20, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

button,
input {
    font: inherit;
}

ul,
li {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: static;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(19, 20, 21, 0.04);
}

.topbar {
    background: linear-gradient(90deg, #7c0006, var(--primary));
    color: #fff5f5;
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

.topbar-links {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.topbar-links a:hover {
    color: #ffffff;
}

.header-main {
    background: #ffffff;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-logo {
    width: 320px;
    height: 100px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    align-items: center;
}

.logo-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

.header-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.header-contact {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    width: 280px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #e3d8d8;
    background: #faf9f9;
    padding: 0 18px;
    outline: none;
}

.search-input:focus {
    border-color: rgba(185, 0, 10, 0.4);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(185, 0, 10, 0.08);
}

.search-btn,
.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.search-btn {
    height: 44px;
    padding: 0 22px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.search-btn:hover,
.primary-btn:hover {
    background: var(--primary-dark);
}

.nav-bar {
    background: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 58px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.16);
}

.submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 220px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(185, 0, 10, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(61, 17, 20, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 50;
}

.submenu li + li {
    margin-top: 4px;
}

.submenu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.submenu a:hover,
.submenu a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-item:hover > .submenu,
.nav-item:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-section {
    padding-top: 24px;
}

.hero-banner-link {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background: #efe7e7;
    border: 1px solid rgba(185, 0, 10, 0.08);
    box-shadow: var(--shadow);
}

.hero-banner-image {
    width: 100%;
    aspect-ratio: 12 / 3.8;
    object-fit: cover;
}

.overview-section,
.content-section,
.service-section,
.topic-section,
.page-shell {
    padding: 42px 0 0;
}

.overview-grid,
.content-grid,
.service-grid,
.topic-grid,
.detail-grid {
    display: grid;
    gap: 24px;
}

.overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card,
.panel,
.service-card,
.topic-card,
.sidebar-card,
.page-content,
.article-detail,
.detail-side-card {
    background: var(--bg-card);
    border: 1px solid rgba(185, 0, 10, 0.06);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.overview-card {
    padding: 28px;
}

.highlight-card {
    background: linear-gradient(180deg, #fff7f7, #ffffff);
    border-color: rgba(185, 0, 10, 0.14);
}

.card-kicker,
.panel-label,
.sub-banner-tag,
.meta-label {
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
}

.overview-card h2,
.panel h2,
.service-card h3,
.topic-card h2,
.sidebar-title,
.page-title,
.article-h1 {
    line-height: 1.35;
}

.overview-card h2 {
    margin: 10px 0 12px;
    font-size: 24px;
}

.overview-card p,
.service-card p,
.topic-card p,
.page-subtitle,
.detail-summary {
    color: var(--text-secondary);
}

.content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.panel {
    padding: 28px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 28px;
}

.panel-more,
.text-link {
    color: var(--primary);
    font-weight: 600;
}

.panel-more:hover,
.text-link:hover {
    color: var(--primary-dark);
}

.simple-list {
    display: grid;
}

.simple-list-item,
.notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
}

.simple-list-item:first-child {
    border-top: 1px dashed var(--line);
}

.simple-list-item:hover,
.notice-row:hover,
.article-list-item:hover,
.related-item:hover {
    color: var(--primary);
}

.simple-list-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simple-list-date,
.notice-row-date,
.article-list-date,
.info-list span,
.related-date {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.service-card:hover,
.topic-card:hover,
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(61, 17, 20, 0.12);
}

.service-header {
    margin-bottom: 24px;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    display: flex;
    gap: 18px;
    padding: 24px;
}

.service-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.topic-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    padding-bottom: 56px;
}

.sub-banner {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: #6f0006;
    color: #ffffff;
}

.sub-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(94, 0, 8, 0.82) 0%, rgba(132, 0, 8, 0.62) 45%, rgba(185, 0, 10, 0.24) 100%);
    z-index: 1;
}

.sub-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-banner-content {
    position: relative;
    z-index: 2;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-banner-tag {
    color: rgba(255, 255, 255, 0.82);
}

.sub-banner-content h1 {
    margin-top: 14px;
    font-size: 38px;
    line-height: 1.2;
}

.sub-banner-content p {
    margin-top: 10px;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
}

.topic-card {
    padding: 28px;
}

.topic-primary {
    background: linear-gradient(135deg, #fff7f7, #ffffff);
}

.topic-card h2 {
    margin: 12px 0;
    font-size: 28px;
}

.site-footer {
    margin-top: 24px;
    background: linear-gradient(90deg, #7c0006, var(--primary));
    color: #efe7e7;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding: 36px 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    object-fit: contain;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-meta {
    text-align: right;
}

.footer-meta p,
.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
    padding: 30px 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb a:hover,
.breadcrumb .current {
    color: var(--primary);
}

.page-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 56px;
}

.sidebar-card {
    padding: 24px;
}

.sidebar-title {
    font-size: 28px;
    color: var(--primary);
}

.sidebar-desc {
    margin: 14px 0 20px;
    color: var(--text-secondary);
}

.sidebar-menu {
    display: grid;
    gap: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: #faf7f7;
    color: var(--text-main);
    font-weight: 500;
}

.sidebar-menu a::after {
    content: "\2192";
    color: var(--text-light);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.page-content {
    padding: 32px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.page-title {
    font-size: 34px;
    color: var(--text-main);
}

.page-subtitle {
    margin-top: 10px;
    max-width: 720px;
}

.page-meta {
    min-width: 180px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #faf7f7;
    color: var(--text-secondary);
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.article-list {
    display: grid;
    gap: 14px;
}

.article-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--line);
}

.article-list-item:first-child {
    border-top: 1px dashed var(--line);
}

.article-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 18px;
    font-weight: 500;
}

.article-list-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list-summary {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.status-badge {
    min-width: 42px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3eeee;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    padding-bottom: 56px;
}

.article-detail {
    padding: 36px 42px 40px;
}

.detail-summary {
    margin-top: 16px;
    padding: 18px 22px;
    border-radius: 20px;
    background: #faf7f7;
}

.article-header {
    text-align: center;
    margin-bottom: 28px;
}

.article-h1 {
    font-size: 36px;
    margin-top: 12px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--text-light);
    font-size: 14px;
}

.article-body {
    padding-top: 28px;
    font-size: 17px;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 22px;
    text-indent: 2em;
}

.article-image {
    margin: 30px 0;
    border-radius: 26px;
    background: linear-gradient(135deg, #7d0007, #c7141d);
    overflow: hidden;
    color: #ffffff;
}

.article-image-inner {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 55%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 35%);
}

.article-image span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.article-image strong {
    margin-top: 10px;
    font-size: 26px;
    line-height: 1.35;
}

.article-nav,
.detail-side-card {
    margin-top: 0px;
}

.detail-side-card {
    padding: 24px;
}

.detail-side-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.article-nav {
    display: grid;
    gap: 12px;
}

.article-nav a {
    padding: 16px 20px;
    border-radius: 18px;
    background: #faf7f7;
}

.article-nav a:hover {
    background: var(--primary-soft);
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.side-panel-list {
    display: grid;
    gap: 12px;
}

.side-panel-list a {
    padding: 14px 16px;
    border-radius: 18px;
    background: #faf7f7;
}

.side-panel-list a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.side-contact li {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    color: var(--text-secondary);
}

.side-contact li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 1080px) {
    .header-main-inner,
    .topbar-inner,
    .page-head,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-tools,
    .footer-meta {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .hero-inner,
    .content-grid,
    .page-layout,
    .detail-grid,
    .topic-grid,
    .overview-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-wrap: wrap;
        padding: 10px 0;
    }

}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .logo-title {
        font-size: 28px;
    }

    .site-logo {
        width: 180px;
        height: 52px;
    }

    .header-contact,
    .search-area,
    .article-meta,
    .article-list-item,
    .attachment-item,
    .related-item {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .sub-banner-content h1,
    .page-title,
    .article-h1 {
        font-size: 30px;
    }

    .panel,
    .overview-card,
    .page-content,
    .article-detail,
    .service-card,
    .topic-card {
        padding: 22px;
    }

    .simple-list-title {
        white-space: normal;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-item {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
        padding: 0 18px;
        border-radius: 18px;
    }

    .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
    }

    .submenu a {
        color: #ffffff;
    }

    .submenu a:hover,
    .submenu a.active {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
    }
}
