nav a[aria-current="page"] {
    color: var(--primary-light);
}

nav a[aria-current="page"]::after {
    width: 100%;
}

body.products-page,
body.news-page,
body.news-article-page,
body.about-page {
    background: var(--bg-dark);
}

.content-page-head {
    padding: 148px 40px 44px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 26%),
        linear-gradient(180deg, #0b1220 0%, #080c14 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.tutorial-head-wrap {
    max-width: 1240px;
}

.page-intro {
    max-width: 920px;
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-breadcrumb a {
    color: var(--primary-light);
    transition: color 0.3s;
}

.page-breadcrumb a:hover {
    color: var(--text-primary);
}

.page-intro h1 {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.page-intro p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.85;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.article-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.24);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.content-shell {
    padding: 36px 40px 96px;
    background: linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);
}

.article-list-layout,
.article-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.content-stack,
.article-main {
    min-width: 0;
}

.article-main {
    overflow: hidden;
}

.article-list-layout {
    grid-template-columns: 280px minmax(0, 1fr);
}

.article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.article-reading-layout {
    grid-template-columns: 240px minmax(0, 1fr) 260px;
    column-gap: 42px;
    row-gap: 24px;
}

.article-reading-layout-single {
    grid-template-columns: minmax(0, 1fr) 260px;
}

.sidebar-stack,
.article-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
}

.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card,
.article-panel,
.product-list-card,
.detail-section-card,
.news-list-card,
.about-contact-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(11, 18, 32, 0.98) 100%);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.sidebar-card,
.article-panel {
    padding: 24px;
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.sidebar-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.filter-btn small {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 12px;
}

.filter-btn:hover {
    border-color: rgba(96, 165, 250, 0.46);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-btn.is-active {
    border-color: rgba(96, 165, 250, 0.72);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(139, 92, 246, 0.18) 100%);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.16);
}

.news-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#news-count {
    color: var(--text-secondary);
    font-size: 13px;
}

.news-list-head {
    margin-bottom: 20px;
}

.news-list-head h2 {
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-list-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
}

.news-list-card[hidden] {
    display: none !important;
}

.news-media {
    display: block;
    min-height: 210px;
    background: #0f172a;
}

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

.news-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 30%),
        linear-gradient(135deg, #162032 0%, #0f172a 55%, #1d4ed8 100%);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px;
}

.news-card-body h3 {
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.news-card-body h3 a {
    transition: color 0.3s;
}

.news-card-body h3 a:hover {
    color: var(--primary-light);
}

.news-list-summary {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
}

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

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.related-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.08);
}

.related-item strong {
    font-size: 14px;
    line-height: 1.55;
}

.related-item small {
    color: var(--text-secondary);
    font-size: 12px;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-body section + section {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 28px;
}

.article-body h2 {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
}

.article-body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.article-body ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-body li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
}

.article-body li::before,
.detail-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.article-hero-image {
    margin: -24px -24px 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 26%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #7c3aed 100%);
}

.article-hero-image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    opacity: 0.95;
}

.article-preview-image {
    cursor: zoom-in;
}

.article-body p > img:only-child {
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #ffffff;
}

.article-notice {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #fcd34d;
    font-size: 14px;
    line-height: 1.8;
}

.article-reading-body {
    gap: 0;
}

.article-reading-page .container {
    max-width: 1520px;
}

.article-reading-layout .article-sidebar {
    gap: 0;
    align-self: start;
}

.article-reading-layout .article-sidebar-left .sidebar-card {
    position: static;
}

.article-reading-layout .article-sidebar-right {
    position: sticky;
    top: 108px;
}

.article-reading-layout .article-sidebar-right .sidebar-card {
    position: static;
}

.article-reading-main {
    overflow: visible;
}

.article-content-section + .article-content-section {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 28px;
    margin-top: 28px;
}

.article-content-section h2 {
    margin-bottom: 18px;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.article-content-section > h2[id],
.article-content-section > h3[id],
.detail-section-card[id] {
    scroll-margin-top: 108px;
}

.article-content-section hr {
    border: 0;
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, rgba(91, 114, 240, 0), rgba(91, 114, 240, 0.28), rgba(139, 92, 246, 0.28), rgba(91, 114, 240, 0));
}

.article-toc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.article-toc-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.25s ease;
}

.article-toc-link:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.08);
}

.article-toc-link.is-active {
    color: var(--primary-light);
    border-color: rgba(96, 165, 250, 0.24);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.08);
}

.article-related-card h3 {
    margin-bottom: 16px;
}

.article-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-related-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.article-related-item:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.article-related-item.is-active {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.article-related-title {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.article-related-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.article-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.article-image-viewer.is-open {
    display: block;
}

.article-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

.article-image-viewer-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.article-image-viewer-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 18px;
    color: white;
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.article-image-viewer-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    max-width: calc(100% - 120px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.article-image-viewer-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.article-image-viewer-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: stretch;
    gap: 0;
}

.article-image-viewer-nav {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 54px;
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s;
}

.article-image-viewer-nav.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.article-image-viewer-frame {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.article-image-viewer-canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.article-image-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

.article-image-viewer-actions {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.article-image-viewer-action {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.article-image-viewer-thumbs-shell {
    flex: 0 0 auto;
    padding: 14px 16px 16px;
    background: rgba(2, 6, 23, 0.94);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.55) rgba(255, 255, 255, 0.12);
    scrollbar-gutter: stable both-edges;
}

.article-image-viewer-thumbs-shell::-webkit-scrollbar {
    height: 8px;
}

.article-image-viewer-thumbs-shell::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.article-image-viewer-thumbs-shell::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.article-image-viewer-thumbs {
    display: flex;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
    padding: 0 8px 10px;
}

.article-image-viewer-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    padding: 0;
    cursor: pointer;
    position: relative;
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-image-viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-image-viewer-thumb.is-active {
    border-color: #ffffff;
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 0 3px rgba(91, 114, 240, 0.35), 0 14px 30px rgba(91, 114, 240, 0.22);
}

.article-image-viewer-thumb:hover {
    border-color: rgba(255, 255, 255, 0.65);
    opacity: 0.92;
}

.article-image-viewer-thumb.is-active::after {
    content: 'Current';
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(91, 114, 240, 0.95);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.article-static-page .article-main,
.article-static-page .sidebar-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.about-page .container,
.about-page .article-reading-layout {
    max-width: 1200px;
}

body.modal-open {
    overflow: hidden;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.about-contact-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.about-contact-card h3 {
    color: var(--text-primary);
    font-size: 20px;
}

.about-contact-card p {
    margin: 0;
}

.about-contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.about-contact-image-wide {
    min-height: 112px;
    padding: 18px;
}

.about-contact-image-qr {
    width: 198px;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
}

.about-contact-image img {
    display: block;
    width: 100%;
    height: auto;
}

.products-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.product-category-stack {
    gap: 0;
}
.product-category-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.product-category-block .section-split {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}
.product-category-block .section-split h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 34px;
    line-height: 1.2;
}
.product-category-block .section-split p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}
.product-category-block + .product-category-block {
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.product-list-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-list-floating-badge,
.detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-list-floating-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
}

.product-list-cover {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 320px;
    color: var(--text-primary);
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

/* 产品封面图：有封面时铺满卡片（与中文站一致）；无封面时模板回退到下方的示意图形 */
.product-list-cover img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 38%);
    opacity: 0.9;
}

.product-list-cover-support {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 46%, #06b6d4 100%);
}

.product-list-cover-nozzle {
    background: linear-gradient(135deg, #0b132b 0%, #2563eb 42%, #38bdf8 100%);
}

.product-list-cover-opening {
    background: linear-gradient(135deg, #102a43 0%, #0f766e 46%, #2dd4bf 100%);
}

.product-list-cover-material {
    background: linear-gradient(135deg, #1f2937 0%, #4f46e5 48%, #8b5cf6 100%);
}

.product-list-cover-iso {
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 44%, #7c3aed 100%);
}

.product-list-cover-lined {
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 46%, #22c55e 100%);
}

.product-list-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.product-list-visual svg {
    display: block;
    width: 100%;
    height: 100%;
}

.product-list-visual rect,
.product-list-visual circle,
.product-list-visual path {
    fill: rgba(255, 255, 255, 0.12);
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-list-visual circle {
    fill: rgba(255, 255, 255, 0.08);
}

.product-list-cover-opening .product-list-visual rect,
.product-list-cover-opening .product-list-visual circle,
.product-list-cover-opening .product-list-visual path {
    stroke: rgba(220, 252, 231, 0.74);
}

.product-list-cover-material .product-list-visual rect,
.product-list-cover-material .product-list-visual circle,
.product-list-cover-material .product-list-visual path {
    stroke: rgba(233, 213, 255, 0.76);
}

.product-list-cover-iso .product-list-visual rect,
.product-list-cover-iso .product-list-visual circle,
.product-list-cover-iso .product-list-visual path {
    stroke: rgba(219, 234, 254, 0.76);
}

.product-list-cover-lined .product-list-visual rect,
.product-list-cover-lined .product-list-visual circle,
.product-list-cover-lined .product-list-visual path {
    stroke: rgba(220, 252, 231, 0.76);
}

.product-list-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 30px 30px;
}

.product-list-body h2 {
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.product-list-body p,
.detail-copy p,
.detail-copy li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
}

.product-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.product-list-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-list-link.secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text-primary);
}

.product-list-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
}

.empty-state {
    padding: 48px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 30px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .article-list-layout,
    .article-layout,
    .article-reading-layout,
    .article-reading-layout-single,
    .products-list-grid,
    .about-contact-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-stack,
    .article-sidebar {
        position: static;
    }

    .article-image-viewer-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px;
        border-radius: 10px;
    }

    .article-image-viewer-stage {
        grid-template-columns: 56px minmax(0, 1fr) 56px;
    }

    .article-image-viewer-nav {
        font-size: 42px;
    }
}

@media (max-width: 860px) {
    .news-list-card {
        grid-template-columns: 1fr;
    }

    .news-media,
    .news-fallback {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .content-page-head,
    .content-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .content-page-head {
        padding-top: 132px;
        padding-bottom: 34px;
    }

    .page-intro h1 {
        font-size: 42px;
    }

    .page-intro p {
        font-size: 15px;
    }

    .article-meta-row,
    .article-meta-line {
        gap: 12px;
    }

    .news-card-body h3 {
        font-size: 24px;
    }

    .about-contact-card {
        padding: 22px;
    }

    .article-hero-image {
        margin-left: -24px;
        margin-right: -24px;
    }

    .about-contact-image-qr {
        width: 176px;
    }

    .article-image-viewer-header {
        padding: 12px 14px;
    }

    .article-image-viewer-title {
        font-size: 14px;
        max-width: calc(100% - 90px);
    }

    .article-image-viewer-stage {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .article-image-viewer-nav {
        font-size: 32px;
    }

    .article-image-viewer-actions {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .article-image-viewer-action {
        width: 36px;
        height: 36px;
    }

    .article-image-viewer-thumbs-shell {
        padding: 12px;
    }

    .article-image-viewer-thumb {
        width: 64px;
        height: 64px;
    }
}

/* --- Documents (document center) --- */
body.documents-page {
    background: var(--bg-dark);
}

.documents-shell {
    padding: 148px 40px 90px;
    background: var(--bg-dark);
}

.documents-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

/* 正文存在章节时，右侧显示文章章节 TOC；无章节时模板不输出该列 */
.documents-layout.documents-layout-with-toc {
    grid-template-columns: 280px minmax(0, 1fr) 240px;
}

.documents-layout-with-toc .article-sidebar-right {
    position: sticky;
    top: 100px;
}

.documents-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.8);
}

.documents-sidebar-title {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.documents-group + .documents-group {
    margin-top: 8px;
}

.documents-group-toggle,
.documents-subgroup-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.documents-group-toggle:hover,
.documents-subgroup-toggle:hover {
    background: var(--bg-card-hover);
}

.documents-group.is-active > .documents-group-toggle {
    color: var(--primary-light);
}

.documents-arrow {
    width: 8px;
    height: 8px;
    flex: none;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.documents-group.is-open > .documents-group-toggle .documents-arrow {
    transform: rotate(-135deg);
}

.documents-group-body {
    display: none;
    padding: 2px 0 4px 6px;
}

.documents-group.is-open > .documents-group-body {
    display: block;
}

.documents-subgroup-toggle {
    padding: 8px 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.documents-subgroup.is-active > .documents-subgroup-toggle {
    color: var(--primary-light);
}

.documents-subgroup.is-expanded > .documents-subgroup-toggle .documents-arrow {
    transform: rotate(-135deg);
}

.documents-articles {
    display: none;
    margin: 2px 0 6px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.documents-subgroup.is-expanded > .documents-articles {
    display: block;
}

.documents-article-link {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    transition: background 0.2s, color 0.2s;
}

.documents-article-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.documents-article-link.is-active {
    background: rgba(59, 130, 246, 0.16);
    color: var(--primary-light);
    font-weight: 600;
}

.documents-main {
    min-height: 60vh;
    padding: 40px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.9);
}

.documents-title {
    margin: 0 0 22px;
    color: var(--text-primary);
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.documents-body {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.85;
}

.documents-body h2 {
    margin: 30px 0 14px;
    color: var(--text-primary);
    font-size: 24px;
}

.documents-body h3 {
    margin: 24px 0 12px;
    color: var(--text-primary);
    font-size: 19px;
}

.documents-body p {
    margin: 0 0 16px;
}

.documents-body ul,
.documents-body ol {
    margin: 0 0 16px 22px;
}

.documents-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.documents-body pre {
    padding: 16px;
    overflow: auto;
    border-radius: 12px;
    background: #0b1220;
    border: 1px solid var(--border);
    color: #e2e8f0;
}

.documents-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--bg-card-hover);
    font-size: 0.92em;
}

.documents-body pre code {
    padding: 0;
    background: transparent;
}

.documents-body table {
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
}

.documents-body th,
.documents-body td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

@media (max-width: 1024px) {
    .documents-shell {
        padding: 128px 24px 64px;
    }

    .documents-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .documents-layout.documents-layout-with-toc {
        grid-template-columns: 1fr;
    }

    .documents-layout-with-toc .article-sidebar-right {
        position: static;
    }

    .documents-sidebar {
        position: static;
        max-height: none;
    }

    .documents-main {
        padding: 26px 22px;
    }
}

/* ==== Markdown 正文视频块（[标题](视频地址) 渲染为 HTML5 video） ==== */
.article-video {
    margin: 0 0 20px;
}

.article-video video {
    width: 100%;
    display: block;
    border-radius: 16px;
    background: #0a1843;
}

.article-video figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}
