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

:root {
    --bg: #f4f6f8;
    --white: #ffffff;
    --text: #1f2a37;
    --text-light: #5f6b7a;
    --line: #dbe2ea;
    --primary: #1f4b7a;
    --primary-deep: #17395d;
    --accent: #c8a96a;
    --soft: #eef3f8;
    --shadow: 0 10px 30px rgba(14, 31, 53, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1200px;
    --transition: all 0.25s ease;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-deep);
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

input,
button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.topbar {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875rem;
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.topbar-text,
.topbar-contact {
    min-width: 0;
}

.topbar-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-contact {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(20, 35, 52, 0.05);
    backdrop-filter: blur(8px);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 18px;
    min-height: 84px;
}

.brand {
    min-width: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-deep);
    letter-spacing: 0.02em;
}

.site-nav {
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus {
    background: var(--soft);
    color: var(--primary-deep);
}

.site-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    max-width: 320px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
}

.site-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
}

.site-search button {
    height: 44px;
    padding: 0 18px;
    color: #fff;
    background: var(--primary);
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-deep);
    border-radius: 999px;
}

.page-main {
    padding: 24px 0 48px;
}

.hero-section {
    padding-top: 6px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 24px;
}

.hero-banner,
.side-card,
.widget,
.article-card,
.news-card,
.product-card,
.faq-card,
.related-card,
.page-title-box,
.empty-state,
.search-result-note,
.about-card,
.contact-panel,
.cta-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-banner {
    overflow: hidden;
}

.hero-banner-image {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #dde6ef;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-content {
    padding: 28px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.hero-banner-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.25;
    color: var(--primary-deep);
    margin-bottom: 14px;
}

.hero-banner-content p {
    color: var(--text-light);
    max-width: 760px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-deep);
    color: #fff;
}

.btn-secondary {
    background: var(--white);
    border-color: var(--line);
    color: var(--primary-deep);
}

.btn-secondary:hover {
    background: var(--soft);
}

.side-card {
    padding: 24px;
}

.side-card h2 {
    font-size: 1.125rem;
    color: var(--primary-deep);
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    gap: 14px;
}

.info-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.info-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list span {
    color: var(--text-light);
    font-size: 0.92rem;
}

.info-list strong {
    word-break: break-word;
    color: var(--text);
}

.section-block {
    margin-top: 28px;
}

.section-soft {
    background: transparent;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--primary-deep);
}

.section-more {
    color: var(--text-light);
    font-size: 0.95rem;
}

.news-grid,
.product-grid,
.faq-grid,
.article-grid,
.related-grid,
.about-grid {
    display: grid;
    gap: 20px;
}

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card,
.product-card,
.article-card,
.related-card {
    overflow: hidden;
}

.news-thumb,
.product-thumb,
.article-thumb,
.related-thumb {
    display: block;
    overflow: hidden;
    background: #e6edf5;
}

.news-thumb,
.article-thumb,
.related-thumb {
    aspect-ratio: 16 / 10;
}

.product-thumb {
    aspect-ratio: 4 / 3;
}

.news-thumb img,
.product-thumb img,
.article-thumb img,
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover img,
.product-card:hover img,
.article-card:hover img,
.related-card:hover img {
    transform: scale(1.04);
}

.news-body,
.product-body,
.article-body,
.related-body,
.faq-card {
    padding: 18px;
}

.news-meta,
.product-tag,
.article-meta,
.faq-footer,
.detail-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-body h3,
.product-body h3,
.article-body h2,
.related-body h3,
.faq-card h3 {
    font-size: 1.08rem;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 10px;
}

.news-body h3 a,
.product-body h3 a,
.article-body h2 a,
.related-body h3 a,
.faq-card h3 a {
    color: var(--text);
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.news-body p,
.product-body p,
.article-body p,
.related-body p,
.faq-card p {
    color: var(--text-light);
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-weight: 600;
}

.product-tag {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary-deep);
    font-size: 0.85rem;
}

.faq-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.faq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
}

.cta-content h2 {
    font-size: 1.6rem;
    color: var(--primary-deep);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-light);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.92rem;
}

.breadcrumb span {
    color: var(--text-light);
    word-break: break-word;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.content-area {
    min-width: 0;
}

.page-title-box {
    padding: 24px;
    margin-bottom: 18px;
}

.page-title-box h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: var(--primary-deep);
    line-height: 1.3;
    word-break: break-word;
}

.page-title-box p {
    margin-top: 10px;
    color: var(--text-light);
}

.article-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.article-body {
    min-width: 0;
}

.article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pagination a {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sidebar {
    min-width: 0;
}

.widget {
    padding: 20px;
    margin-bottom: 20px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary-deep);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.side-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.side-list a {
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.side-list span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.article-detail {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    overflow: hidden;
}

.detail-head {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.detail-head h1 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.35;
    color: var(--primary-deep);
    word-break: break-word;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.detail-content {
    color: var(--text);
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.detail-content > * {
    max-width: 100%;
}

.detail-content p,
.detail-content div,
.detail-content li,
.detail-content td,
.detail-content th,
.detail-content span {
    word-break: break-word;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.detail-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.detail-content iframe,
.detail-content video,
.detail-content embed {
    max-width: 100%;
}

.related-section {
    margin-top: 28px;
}

.search-result-note,
.empty-state {
    padding: 24px;
    margin-bottom: 18px;
}

.search-result-note p,
.empty-state p {
    color: var(--text-light);
}

.empty-state h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-deep);
}

.about-page .about-section {
    margin-bottom: 24px;
}

.about-page .about-section:last-child {
    margin-bottom: 0;
}

.about-page .about-section h2 {
    font-size: 1.35rem;
    color: var(--primary-deep);
    margin-bottom: 14px;
}

.about-card {
    padding: 22px;
}

.contact-panel {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-item {
    padding: 16px;
    border-radius: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    min-width: 0;
}

.contact-label {
    display: block;
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.contact-item strong {
    color: var(--primary-deep);
    word-break: break-word;
}

.site-footer {
    margin-top: 48px;
    background: #15293f;
    color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
    padding: 42px 0 18px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title,
.footer-subtitle {
    color: #fff;
}

.footer-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.footer-desc,
.footer-contact li,
.footer-links li {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact,
.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 1100px) {
    .header-main {
        grid-template-columns: auto auto;
        grid-template-areas:
            "brand toggle"
            "nav nav"
            "search search";
        gap: 14px;
        padding: 16px 0;
        min-height: auto;
    }

    .brand {
        grid-area: brand;
    }

    .menu-toggle {
        grid-area: toggle;
        display: inline-flex;
        justify-self: end;
    }

    .site-nav {
        grid-area: nav;
        display: none;
        width: 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--white);
    }

    .nav-list li,
    .nav-list a {
        width: 100%;
    }

    .site-search {
        grid-area: search;
        min-width: 0;
        max-width: none;
    }

    .hero-grid,
    .page-shell,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .faq-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-contact {
        justify-content: flex-start;
        gap: 8px 14px;
    }

    .hero-banner-content,
    .side-card,
    .widget,
    .page-title-box,
    .search-result-note,
    .empty-state,
    .about-card,
    .article-detail,
    .contact-panel,
    .cta-box {
        padding: 18px;
    }

    .news-grid,
    .product-grid,
    .faq-grid,
    .article-grid,
    .related-grid,
    .about-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .hero-banner-image {
        aspect-ratio: 16 / 9;
    }

    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-head h1,
    .page-title-box h1,
    .hero-banner-content h1 {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .site-search input {
        padding: 0 12px;
    }

    .site-search button {
        padding: 0 14px;
    }

    .nav-list a {
        min-height: 42px;
        padding: 0 12px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-meta,
    .article-meta,
    .faq-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}