﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Shared resource-center layout for LimChip news and blog pages. */
:root {
    --font-en: "Montserrat", Arial, Helvetica, sans-serif;
    --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
    --font-mono: "Consolas", "SFMono-Regular", monospace;
    --rc-bg: #f6f8fb;
    --rc-surface: #ffffff;
    --rc-surface-soft: #f9fbfd;
    --rc-ink: #111827;
    --rc-body: #344054;
    --rc-muted: #667085;
    --rc-soft: #98a2b3;
    --rc-line: #e4e7ec;
    --rc-line-strong: #d0d5dd;
    --rc-blue: #0b63ce;
    --rc-blue-soft: #eef6ff;
    --rc-cyan: #0f9f9a;
    --rc-shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--rc-bg);
}

body.lim-article-page {
    min-height: 100vh;
    margin: 0;
    background: var(--rc-bg);
    color: var(--rc-body);
    font-family: var(--font-en);
    line-height: 1.72;
    letter-spacing: 0;
}

html[lang="zh-CN"] body.lim-article-page {
    font-family: var(--font-cn);
}

.lim-article-page a {
    color: inherit;
}

/* Lightweight shell for News/Blog resource indexes. */
.resource-news-page {
    background: #ffffff;
}

.resource-header {
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
}

.resource-header-inner {
    display: grid;
    grid-template-columns: minmax(136px, 210px) minmax(390px, 1fr) minmax(260px, 340px);
    align-items: center;
    gap: clamp(20px, 3vw, 42px);
    width: min(1440px, calc(100% - 56px));
    min-height: 62px;
    margin: 0 auto;
}

.resource-logo,
.resource-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.resource-logo img {
    width: 136px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.resource-logo span {
    font-size: 17px;
    line-height: 1;
}

.resource-footer-logo {
    position: relative;
    width: fit-content;
    padding: 2px 0 9px;
}

.resource-footer-logo::after {
    content: "";
    position: absolute;
    left: 6%;
    bottom: 0;
    width: 72%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0), rgba(29, 155, 240, 0.72), rgba(20, 184, 166, 0.46), rgba(14, 165, 233, 0));
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.16);
    opacity: 0.82;
    transition: width 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.resource-footer-logo:hover::after {
    width: 84%;
    opacity: 1;
    box-shadow: 0 5px 16px rgba(29, 155, 240, 0.22);
}

.resource-nav {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 3vw, 38px);
    min-width: 0;
}

.resource-nav a {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 420;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease;
    white-space: nowrap;
}

.resource-nav a:hover,
.resource-nav a.active {
    color: #1d9bf0;
}

.resource-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.resource-part-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(286px, 100%);
    min-width: 210px;
    height: 34px;
}

.resource-part-search input {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 999px;
    outline: 0;
    background: rgba(248, 250, 252, 0.78);
    color: #0f172a;
    padding: 0 37px 0 14px;
    font-size: 12.5px;
    font-weight: 420;
    line-height: 34px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.resource-part-search input::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.resource-part-search input:focus {
    border-color: rgba(29, 155, 240, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.08);
}

.resource-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 160ms ease, background 160ms ease;
}

.resource-search-submit:hover,
.resource-part-search input:focus + .resource-search-submit {
    background: rgba(29, 155, 240, 0.08);
    color: #0b63ce;
}

.resource-search-submit svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.resource-part-search .part-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 80;
    display: none;
    width: min(420px, calc(100vw - 40px));
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 7px;
}

.resource-part-search .nav-search-item,
.resource-part-search .nav-search-empty {
    display: block;
    border-radius: 10px;
    padding: 10px 11px;
    color: #334155;
    text-decoration: none;
}

.resource-part-search .nav-search-item:hover {
    background: #f1f7ff;
}

.resource-part-search .nav-search-item strong {
    display: block;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.25;
}

.resource-part-search .nav-search-item span,
.resource-part-search .nav-search-empty {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12.25px;
    line-height: 1.45;
}

.resource-breadcrumb-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 24px;
    margin: -3px 0 0;
    padding: 0 max(28px, calc((100% - 1440px) / 2 + 28px));
}

.resource-trail {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    max-width: 100%;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 420;
    line-height: 1.45;
    padding-bottom: 2px;
    overflow: visible;
    white-space: nowrap;
}

.resource-trail a,
.resource-trail span {
    line-height: 1.45;
}

.resource-trail a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 160ms ease;
}

.resource-trail a:hover {
    color: #64748b;
}

.resource-trail span:last-child {
    color: #64748b;
    font-weight: 460;
}

.resource-current-title {
    display: inline-block;
    max-width: min(680px, calc(100vw - 240px));
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: baseline;
    line-height: 1.45;
    padding-bottom: 2px;
}

.resource-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(29, 155, 240, 0.2);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.78);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-email img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.72;
    transition: opacity 160ms ease;
}

.resource-email:hover {
    border-color: rgba(29, 155, 240, 0.48);
    background: rgba(29, 155, 240, 0.07);
    transform: translateY(-1px);
}

.resource-email:hover img {
    opacity: 1;
}

.resource-rfq {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
}

.resource-rfq:hover {
    color: #1d9bf0;
}

.resource-news-main {
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 48px 0 54px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 170ms ease, transform 170ms ease;
}

.resource-news-main.resource-main-leaving,
.resource-news-main.resource-main-entering {
    opacity: 0;
    transform: translateY(6px);
}

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

@media (max-width: 1180px) {
    .news-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .resource-news-main {
        padding: 34px 0 42px;
    }

    .news-tile {
        min-height: auto;
    }
}

.news-tile {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 24px 22px 21px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.news-tile:hover {
    border-color: rgba(29, 155, 240, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.news-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 48px;
    margin-bottom: 28px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(29, 155, 240, 0.72)),
        #0f172a;
    color: #ffffff;
    overflow: hidden;
}

.news-thumb span {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.news-thumb-memory {
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.news-thumb-fpga {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.news-thumb-qc {
    background: linear-gradient(135deg, #0f172a, #0ea5e9);
}

.news-tile h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 18.25px;
    font-weight: 820;
    line-height: 1.36;
    letter-spacing: 0;
}

.news-tile time {
    margin-bottom: 11px;
    color: #64748b;
    font-size: 12.75px;
    line-height: 1;
}

.news-tile p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.resource-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 34px auto 0;
    color: #64748b;
    font-size: 13px;
}

.resource-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resource-page-link,
.resource-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 11px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-weight: 520;
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-page-link {
    min-width: 82px;
}

.resource-page-link:hover,
.resource-page-number:hover {
    border-color: rgba(29, 155, 240, 0.38);
    background: rgba(29, 155, 240, 0.06);
    color: #0f7fc4;
    transform: translateY(-1px);
}

.resource-page-number.is-active {
    border-color: #1d9bf0;
    background: #1d9bf0;
    color: #ffffff;
    cursor: default;
}

.resource-page-disabled {
    opacity: 0.42;
    pointer-events: none;
}

@media (max-width: 620px) {
    .resource-pagination {
        gap: 8px;
        margin-top: 26px;
        font-size: 12px;
    }

    .resource-page-link {
        min-width: 68px;
        padding: 0 9px;
    }

    .resource-page-number {
        min-width: 30px;
        height: 30px;
    }
}

.no-results-main {
    background: #ffffff;
}

.no-results-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #0f4f73 0%, #13727d 48%, #229c8b 100%);
    color: #ffffff;
}

.no-results-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 124px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 124' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 22C248 76 484 104 720 104C956 104 1192 76 1440 22V124H0V22Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
    pointer-events: none;
}

.no-results-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 126px;
    text-align: center;
}

.no-results-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.no-results-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.18;
    letter-spacing: 0;
    font-weight: 850;
}

.no-results-hero p {
    max-width: 980px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15.5px;
    line-height: 1.72;
}

.rfq-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(34px, 6vw, 92px);
    margin: 50px auto 0;
}

.rfq-step-card {
    color: #ffffff;
}

.rfq-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border: 2px solid rgba(62, 142, 119, 0.76);
    border-radius: 9px;
    background: #ffffff;
    color: #3e8e77;
    font-size: 24px;
    font-weight: 860;
    box-shadow: 0 10px 24px rgba(4, 21, 44, 0.16);
}

.rfq-step-card strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 820;
}

.rfq-step-card p {
    max-width: 300px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.62;
}

.rfq-data-section {
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.rfq-data-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.rfq-data-header span {
    display: block;
    margin-bottom: 6px;
    color: #0f9f9a;
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rfq-data-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 2.7vw, 38px);
    line-height: 1.2;
}

.rfq-bom-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 166px;
    height: 36px;
    padding: 0 15px 0 17px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(100deg, #164a78 0%, #0f5f79 48%, #2c8581 100%);
    cursor: pointer;
    font-size: 13px;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 22px rgba(15, 79, 115, 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.rfq-bom-link span {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #ffffff;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: 1;
    text-transform: none;
    transform: none;
}

.rfq-bom-link svg {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.rfq-bom-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(15, 79, 115, 0.26);
}

.rfq-data-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px 18px;
}

.rfq-field {
    min-width: 0;
}

.rfq-field-wide {
    grid-column: span 2;
}

.rfq-field-full {
    grid-column: 1 / -1;
}

.rfq-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 760;
}

.rfq-field input,
.rfq-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #cbd5e1;
    outline: 0;
    background: transparent;
    color: #0f172a;
    padding: 10px 0 11px;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 160ms ease;
}

.rfq-field textarea {
    resize: vertical;
    min-height: 94px;
}

.rfq-field input:focus,
.rfq-field textarea:focus {
    border-color: #0f9f9a;
}

.rfq-field textarea::placeholder {
    color: rgba(100, 116, 139, 0.58);
}

.rfq-submit-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.rfq-submit-row button {
    min-width: 178px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #0f4f73 0%, #13727d 60%, #229c8b 100%);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 820;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rfq-submit-row button:hover {
    box-shadow: 0 12px 28px rgba(23, 111, 106, 0.22);
    transform: translateY(-1px);
}

.bom-upload-modal[hidden] {
    display: none;
}

.bom-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.bom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.bom-modal-panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
}

.bom-modal-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 24px 72px;
    background: linear-gradient(100deg, #164a78 0%, #0f5f79 52%, #2c8581 100%);
    color: #ffffff;
}

.bom-modal-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 820;
    line-height: 1.1;
}

.bom-modal-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border: 7px solid rgba(15, 79, 115, 0.42);
    border-radius: 50%;
    background: #ffffff;
    color: #164a78;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(4, 21, 44, 0.16);
}

.bom-modal-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bom-modal-close {
    position: absolute;
    right: 26px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    transform: translateY(-50%);
}

.bom-modal-close svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.bom-upload-form {
    padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 56px) 42px;
    text-align: center;
}

.bom-upload-form > p {
    margin: 0 0 28px;
    color: #0f172a;
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.55;
}

.bom-drop-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 118px;
    border: 1px dashed #cbd5e1;
    padding: 24px 26px;
    color: #475569;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.bom-drop-zone:hover,
.bom-drop-zone.is-dragging {
    border-color: rgba(29, 155, 240, 0.42);
    background: #f8fbff;
}

.bom-drop-text {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.4;
}

.bom-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 194px;
    min-height: 54px;
    border-radius: 10px;
    background: #3f8f86;
    color: #ffffff;
    font-size: 17px;
    font-weight: 620;
    line-height: 1;
}

.bom-selected-file {
    min-height: 22px;
    margin: 14px 0 26px !important;
    color: #64748b !important;
    font-size: 13px !important;
}

/* Main RFQ form file picker: hide the OS-localised native control and use a
   styled English button + filename text (mirrors the BOM modal pattern). */
.rfq-field .rfq-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.rfq-field label.rfq-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 9px 16px;
    border-radius: 8px;
    background: #3f8f86;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.rfq-field label.rfq-file-button:hover {
    background: #357a72;
}

.rfq-field .rfq-file-name {
    color: #64748b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.bom-modal-submit {
    min-width: 220px;
    min-height: 46px;
    border: 1px solid rgba(15, 79, 115, 0.62);
    border-radius: 14px;
    background: #ffffff;
    color: #2c8581;
    cursor: pointer;
    font-size: 18px;
    font-weight: 560;
    letter-spacing: 0.02em;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bom-modal-submit:hover {
    background: rgba(15, 79, 115, 0.06);
    color: #164a78;
    transform: translateY(-1px);
}

.resource-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.resource-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: start;
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 24px 0 18px;
}

.resource-footer-logo img {
    width: 154px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    filter: saturate(1.12) contrast(1.06) brightness(1.02);
    transition: filter 180ms ease;
}

.resource-footer-logo:hover img {
    filter: saturate(1.18) contrast(1.08) brightness(1.04);
}

.resource-footer-brand p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.62;
}

.resource-follow {
    min-width: 198px;
}

.resource-follow strong {
    display: block;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 620;
    letter-spacing: 0.08em;
}

.resource-socials {
    display: flex;
    gap: 14px;
    align-items: center;
}

.resource-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-socials img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    opacity: 0.78;
    transition: opacity 160ms ease;
}

.resource-socials a:hover {
    border-color: rgba(29, 155, 240, 0.35);
    background: rgba(29, 155, 240, 0.06);
    transform: translateY(-1px);
}

.resource-socials a:hover img {
    opacity: 1;
}

.resource-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    border-top: 1px solid #edf2f7;
    padding: 10px 0 14px;
    color: #64748b;
    font-size: 12px;
}

.resource-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.resource-footer-bottom a {
    color: #0f172a;
    font-weight: 750;
    text-decoration: none;
}

.resource-footer-bottom a:hover {
    color: #1d9bf0;
}

@media (max-width: 820px) {
    .resource-header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px 18px;
        width: min(100% - 32px, 720px);
        min-height: 58px;
        padding: 9px 0;
    }

    .resource-logo img {
        width: 118px;
        max-height: 36px;
    }

    .resource-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .resource-nav::-webkit-scrollbar {
        display: none;
    }

    .resource-rfq {
        min-height: auto;
        padding: 0;
        font-size: 13px;
    }

    .resource-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        min-width: 0;
        width: 100%;
    }

    .resource-part-search {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .resource-breadcrumb-row {
        min-height: 22px;
        margin-top: -5px;
        padding: 0 16px;
    }

    .resource-trail {
        font-size: 10.5px;
    }

    .resource-current-title {
        max-width: calc(100vw - 150px);
    }

    .resource-email {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .resource-news-main,
    .resource-footer-inner,
    .resource-footer-bottom {
        width: min(100% - 32px, 720px);
    }

    .resource-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .resource-follow {
        min-width: 0;
    }

    .no-results-hero-inner {
        width: min(100% - 32px, 720px);
        padding: 48px 0 94px;
    }

    .rfq-step-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 34px;
    }

    .rfq-step-card p {
        max-width: 360px;
    }

    .rfq-data-section {
        width: min(100% - 32px, 720px);
        padding-bottom: 48px;
    }

    .rfq-data-header {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .rfq-bom-link {
        min-width: 0;
        width: 100%;
    }

    .bom-upload-modal {
        align-items: flex-start;
        padding: 18px;
        overflow-y: auto;
    }

    .bom-modal-head {
        min-height: 82px;
        padding: 22px 56px;
    }

    .bom-modal-icon {
        left: 18px;
        width: 58px;
        height: 58px;
        border-width: 5px;
    }

    .bom-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .bom-drop-zone {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bom-file-button {
        width: 100%;
        min-width: 0;
    }

    .rfq-data-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rfq-field-wide,
    .rfq-field-full {
        grid-column: auto;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(228, 231, 236, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    display: grid;
    grid-template-columns: minmax(280px, auto) 1fr;
    align-items: center;
    gap: 28px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 14px 0;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: var(--rc-ink);
    text-decoration: none;
}

.logo-wrap img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.logo-text strong {
    color: var(--rc-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.logo-text span {
    overflow: hidden;
    max-width: 500px;
    color: var(--rc-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-mini {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.nav-mini a {
    border-radius: 999px;
    padding: 8px 11px;
    color: #475467;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.nav-mini a:hover {
    background: var(--rc-blue-soft);
    color: var(--rc-blue);
}

.page-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.hero {
    position: relative;
    border-bottom: 1px solid var(--rc-line);
    padding: 10px 0 30px;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, var(--rc-blue), var(--rc-cyan));
}

.kicker,
.tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid rgba(11, 99, 206, 0.18);
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--rc-blue-soft);
    color: var(--rc-blue);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 880px;
    margin: 16px 0 12px;
    color: var(--rc-ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero p {
    max-width: 780px;
    margin: 0;
    color: var(--rc-muted);
    font-size: clamp(16px, 1.35vw, 18px);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    color: var(--rc-soft);
    font-size: 13px;
}

.meta span {
    display: inline-flex;
    align-items: center;
}

.post-grid {
    display: grid;
    max-width: 980px;
    margin: 24px auto 0;
    gap: 0;
    border-top: 1px solid var(--rc-line);
}

.resource-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 960px;
    margin: 20px auto 0;
    border-bottom: 1px solid var(--rc-line);
    padding-bottom: 12px;
}

.resource-switcher a {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--rc-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.resource-switcher a:hover,
.resource-switcher a.active {
    border-color: #bfd9ff;
    background: var(--rc-blue-soft);
    color: var(--rc-blue);
}

.post-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--rc-line);
    border-radius: 0;
    padding: 24px 4px;
    background: transparent;
    color: var(--rc-body);
    text-decoration: none;
    box-shadow: none;
    transition: background 160ms ease, transform 160ms ease;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.58);
    transform: translateX(2px);
}

.post-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 58px;
    border: 1px solid rgba(11, 99, 206, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, #f4f9ff, #ffffff);
    color: var(--rc-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.post-body {
    display: block;
    min-width: 0;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
    align-items: center;
    color: var(--rc-soft);
    font-size: 12.5px;
    line-height: 1.2;
}

.post-card h2 {
    margin: 9px 0 7px;
    color: var(--rc-ink);
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.28;
    letter-spacing: 0;
}

.post-card p {
    max-width: 760px;
    margin: 0;
    color: var(--rc-muted);
    font-size: 14.5px;
    line-height: 1.62;
}

.post-card .read-link {
    display: inline-flex;
    align-items: center;
    margin-top: 11px;
    color: var(--rc-blue);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;
    align-items: start;
    gap: 40px;
    margin-top: 34px;
}

.article-detail-page .page-shell {
    width: min(980px, calc(100% - 48px));
    padding-top: 24px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 2px;
    color: var(--rc-soft);
    font-size: 13px;
    line-height: 1.55;
    overflow: visible;
}

.article-breadcrumb a,
.article-breadcrumb span {
    line-height: 1.55;
}

.article-breadcrumb a {
    color: var(--rc-muted);
    font-weight: 650;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--rc-blue);
}

.article-detail-page .hero {
    padding-top: 0;
    padding-bottom: 18px;
}

.article-detail-page .hero h1 {
    max-width: 860px;
    margin: 12px 0 8px;
    font-size: clamp(24px, 2.35vw, 34px);
    line-height: 1.22;
}

.article-detail-page .hero p {
    max-width: 800px;
    font-size: 15.5px;
    line-height: 1.62;
}

.article-detail-page .content-layout {
    display: block;
    max-width: 900px;
    margin: 24px auto 0;
}

.article-card {
    border: 1px solid var(--rc-line);
    border-radius: 14px;
    padding: 38px 42px;
    background: var(--rc-surface);
    box-shadow: var(--rc-shadow-soft);
}

.article-detail-page .article-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.article-card h2 {
    margin: 34px 0 14px;
    border-top: 1px solid var(--rc-line);
    padding-top: 26px;
    color: var(--rc-ink);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
    letter-spacing: 0;
}

.article-card h2:first-child {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.article-card h3 {
    margin: 28px 0 10px;
    color: var(--rc-ink);
    font-size: 20px;
    line-height: 1.3;
}

.article-card p,
.article-card li {
    color: var(--rc-body);
    font-size: 16.5px;
}

.article-card p {
    margin: 0 0 18px;
}

.article-card ul,
.article-card ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.article-card li + li {
    margin-top: 8px;
}

.part-table {
    width: 100%;
    margin: 22px 0 26px;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--rc-line);
    border-radius: 12px;
    background: var(--rc-surface);
}

.part-table th,
.part-table td {
    border-bottom: 1px solid var(--rc-line);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    font-size: 14.5px;
}

.part-table th {
    background: var(--rc-surface-soft);
    color: var(--rc-ink);
    font-weight: 850;
}

.part-table tr:last-child td {
    border-bottom: 0;
}

.note-box {
    margin: 24px 0;
    border: 1px solid #cfe3ff;
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--rc-blue-soft);
}

.note-box strong {
    color: var(--rc-ink);
}

.rfq-cta {
    margin-top: 34px;
    border: 1px solid #cfe3ff;
    border-radius: 14px;
    padding: 24px;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.rfq-cta h3 {
    margin: 0 0 8px;
    color: var(--rc-ink);
    font-size: 21px;
    line-height: 1.3;
}

.rfq-cta p {
    margin: 0 0 18px;
    color: var(--rc-muted);
    font-size: 15.5px;
}

.rfq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--rc-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rfq-button:hover {
    background: #0755b5;
    box-shadow: 0 12px 26px rgba(11, 99, 206, 0.18);
    transform: translateY(-1px);
}

.related-insights {
    margin-top: 34px;
    border-top: 1px solid var(--rc-line);
    padding-top: 22px;
}

.related-insights h2 {
    margin: 0 0 14px;
    border-top: 0;
    padding-top: 0;
    color: var(--rc-ink);
    font-size: 20px;
    line-height: 1.3;
}

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

.related-card {
    display: block;
    min-height: 126px;
    border: 1px solid rgba(208, 213, 221, 0.8);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--rc-body);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-card:hover {
    border-color: #bfd9ff;
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-2px);
}

.related-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--rc-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.related-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--rc-ink);
    font-size: 15px;
    line-height: 1.32;
}

.related-card p {
    margin: 0;
    color: var(--rc-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.sidebar-card {
    position: sticky;
    top: 86px;
    border: 1px solid var(--rc-line);
    border-radius: 14px;
    padding: 22px;
    background: var(--rc-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sidebar-card + .sidebar-card {
    margin-top: 16px;
}

.sidebar-card h3 {
    margin: 0 0 14px;
    color: var(--rc-ink);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-card a {
    display: inline-flex;
    color: var(--rc-muted);
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 150ms ease;
}

.sidebar-card a:hover {
    color: var(--rc-blue);
}

.article-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    border-top: 1px solid var(--rc-line);
    margin-top: 28px;
    padding-top: 18px;
    color: var(--rc-soft);
    font-size: 13px;
}

.article-footer-meta a {
    color: var(--rc-blue);
    font-weight: 800;
    text-decoration: none;
}

.article-footer-meta a:hover {
    text-decoration: underline;
}

.footer-note {
    border-top: 1px solid var(--rc-line);
    margin-top: 50px;
    padding-top: 22px;
    color: var(--rc-soft);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 980px) {
    .site-header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-mini {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header-inner,
    .page-shell {
        width: min(100% - 32px, 1120px);
    }

    .page-shell {
        padding: 30px 0 56px;
    }

    .hero {
        padding: 4px 0 24px;
    }

    .hero h1 {
        font-size: clamp(28px, 9vw, 38px);
    }

    .hero p {
        font-size: 15.5px;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .post-thumb {
        width: fit-content;
        min-width: 64px;
        height: 36px;
        padding: 0 10px;
    }

    .article-card {
        border-radius: 12px;
        padding: 26px 22px;
    }

    .article-card p,
    .article-card li {
        font-size: 15.8px;
    }

    .part-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .rfq-cta {
        padding: 22px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        min-height: 0;
    }
}




/* ── BOM modal contact fields (submissions go to /api/rfq) ── */
.bom-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.bom-contact-grid input { padding: 10px 12px; border: 1px solid rgba(125, 140, 160, 0.35); border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: inherit; font: inherit; }
.bom-contact-grid input:focus { outline: 2px solid rgba(59, 130, 246, 0.3); border-color: #3b82f6; }
.bom-form-status { margin-top: 10px; font-size: 0.85rem; min-height: 1.2em; }
.bom-form-status.is-ok { color: #27c08a; font-weight: 600; }
.bom-form-status.is-err { color: #e2705f; }
@media (max-width: 560px) { .bom-contact-grid { grid-template-columns: 1fr; } }
