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

/* ============================================
   part-style.css
   所有样式限定在 .part-page 作用域内
   已对主站 style.css 已知冲突全部加防御
   ============================================ */

: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;
}

/* ── 基础重置 ── */
.part-page * {
    box-sizing: border-box;
}

.part-page {
    font-family: var(--font-en) !important;
    line-height: 1.6 !important;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

.part-page .container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 28px auto;
    background: #fff;
    padding: 36px 38px 42px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ── 顶部栏 ── */
.part-page .top-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

/* 面包屑：强制横排，防止主站 .nav-links flex-column 干扰 */
.part-page .top-bar .nav-links {
    display: block !important;
    flex-direction: unset !important;
    gap: unset !important;
    margin-bottom: 0 !important;
    font-size: 14px;
    color: #666;
}

.part-page .top-bar .nav-links a {
    display: inline !important;
    color: #666;
    text-decoration: none;
}

.part-page .top-bar .nav-links a:hover {
    color: #0787f5;
}

/* 右侧区域 */
.part-page .top-bar-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── 公司信息栏 ── */
.part-page .company-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: #f0f7ff;
    border-left: 4px solid #007bff;
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 0 6px 6px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.part-page .company-header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
}

.part-page .company-logo {
    height: 40px;
    max-width: 150px;
    width: auto;
    display: block !important;
    object-fit: contain;
}

.part-page .company-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    text-decoration: none !important;
}

.part-page .company-info {
    display: block !important;
}

.part-page .company-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    line-height: 1.3;
}

.part-page .company-tagline {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .part-page {
        padding: 0;
    }

    .part-page .container {
        width: calc(100% - 36px);
        margin: 18px auto;
        padding: 24px 18px;
    }

    .part-page .company-header-left,
    .part-page .top-bar,
    .part-page .top-bar-right {
        align-items: flex-start !important;
    }

    .part-page .top-bar-right,
    .part-page .search-wrap {
        width: 100%;
    }

    .part-page .company-logo {
        height: 34px;
        max-width: 130px;
    }

    .part-page .search-wrap input,
    .part-page .search-dropdown {
        width: 100%;
    }

    .part-page .db-tools {
        align-items: stretch !important;
    }

    .part-page .db-index-search,
    .part-page .db-index-search input {
        width: 100%;
    }

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

    .part-page .brand-card-grid,
    .part-page .part-card-grid {
        grid-template-columns: 1fr;
    }

    .part-page .seo-section table,
    .part-page .spot-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .part-page .more-btn,
    .part-page .rfq-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── 搜索框 ── */
.part-page .search-wrap {
    position: relative;
}

.part-page .search-wrap input {
    display: block !important;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 200px;
    outline: none;
    color: #333;
    background: #fff;
    box-shadow: none;
}

.part-page .search-wrap input:focus {
    border-color: #0787f5;
}

.part-page .search-wrap input::placeholder,
.part-page .db-index-search input::placeholder {
    color: rgba(100, 116, 139, 0.38);
    opacity: 1;
}

.part-page .search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 240px;
    overflow-y: auto;
}

.part-page .search-item {
    display: block !important;
    padding: 9px 14px;
    font-size: 13px;
    color: #0787f5 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
}

.part-page .search-item strong {
    display: block;
    font-family: var(--font-mono);
    color: #006fd6;
}

.part-page .search-item span {
    display: block;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.part-page .search-item:hover {
    background: #f0f7ff;
}

.part-page .search-no-result {
    padding: 10px 14px;
    font-size: 13px;
    color: #999;
}

/* ── More / RFQ 按钮 ── */
.part-page .more-btn {
    display: inline-block !important;
    padding: 7px 14px !important;
    background: #0787f5 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    border: none !important;
    box-shadow: none !important;
}

.part-page .more-btn:hover {
    background: #006fd6 !important;
    color: #fff !important;
}

/* ── Database Index 页样式 ── */
.part-page .db-title {
    font-family: var(--font-en) !important;
    font-size: 24px;
    color: #111;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 6px;
}

.part-page .db-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.part-page .db-tools {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px;
    padding: 14px 0 18px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.part-page .db-index-search {
    display: grid !important;
    gap: 5px;
    min-width: 240px;
}

.part-page .db-index-search label {
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.part-page .db-index-search input {
    display: block !important;
    width: 260px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
}

.part-page .db-index-search input:focus {
    border-color: #007bff;
}

.part-page .brand-jump {
    display: flex !important;
    gap: 8px;
    flex-wrap: wrap;
}

.part-page .brand-jump a {
    display: inline-block !important;
    padding: 6px 9px;
    border: 1px solid #dde8f7;
    border-radius: 4px;
    color: #0056b3;
    background: #f7fbff;
    text-decoration: none;
    font-size: 12px;
}

.part-page .brand-jump a:hover {
    border-color: #007bff;
    background: #eef7ff;
}

.part-page .db-no-results {
    display: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #f0d6a4;
    border-radius: 4px;
    background: #fff8ec;
    color: #7a5600;
    font-size: 13px;
}

.part-page .db-search-results {
    display: none !important;
    margin-top: 18px;
}

.part-page .db-search-results.is-visible {
    display: grid !important;
}

.part-page .db-entry-section {
    margin-top: 28px;
}

.part-page .db-entry-section h2 {
    margin: 0 0 12px;
    color: #222;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 6px;
}

.part-page .db-section-note {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
}

.part-page .brand-card-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.part-page .brand-card,
.part-page .part-card {
    display: block !important;
    border: 1px solid #dde8f7;
    border-radius: 6px;
    background: #fbfdff;
    color: #333;
    text-decoration: none !important;
}

.part-page .brand-card {
    display: flex !important;
    flex-direction: column;
    position: relative;
    min-height: 150px;
    padding: 14px;
}

.part-page .brand-card-main {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.part-page .brand-count-line {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 1px solid rgba(203, 213, 225, 0.55);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.72);
    color: #b7c2cf;
    font-size: 9px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    opacity: 0.72;
    text-align: right;
    white-space: nowrap;
}

.part-page .brand-card:hover,
.part-page .part-card:hover {
    border-color: #007bff;
    background: #f3f9ff;
}

.part-page .brand-card strong,
.part-page .part-card strong {
    display: block;
    color: #0056b3;
    font-size: 14px;
    line-height: 1.35;
}

.part-page .brand-card span,
.part-page .part-card span {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
}

.part-page .brand-card em,
.part-page .part-card em {
    display: block;
    color: #888;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    margin-top: 8px;
}

.part-page .brand-card small,
.part-page .brand-card .brand-part-links {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    color: #999;
    font-size: 11px;
    line-height: 1.35;
}

.part-page .brand-card small a {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-family: var(--font-mono);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.part-page .brand-card small a:hover {
    color: #007bff;
    text-decoration: underline;
}

.part-page .part-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.part-page .part-card {
    min-height: 128px;
    padding: 14px;
}

.part-page .part-card strong {
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.part-page .db-compact-index {
    padding-top: 4px;
}

.part-page .db-list-compact .db-more {
    display: block !important;
    color: #b8c2ce;
    font-size: 11px;
    font-style: normal;
    line-height: 1.5;
    opacity: 0.72;
    border-bottom: none !important;
    padding-top: 6px;
}

.part-page .db-list-compact .db-more a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(184, 194, 206, 0.38);
    text-underline-offset: 2px;
}

.part-page .db-brand-name {
    color: #007bff !important;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
    border-left: 3px solid #007bff;
    padding-left: 10px;
}

.part-page .brand-cat {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

.part-page .db-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
}

.part-page .db-list li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.part-page .db-list li a {
    display: inline !important;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 14px;
}

.part-page .db-list li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.part-page .db-list li span {
    display: inline !important;
    font-family: var(--font-en);
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    text-align: right;
}

.part-page .db-empty {
    font-size: 13px !important;
    color: #bbb;
    font-style: italic;
    border-bottom: none !important;
    display: block !important;
}

.part-page .db-empty a {
    color: #007bff !important;
    font-family: var(--font-en) !important;
    font-size: 13px !important;
    font-style: normal;
}

/* ── 型号详情页：标题区 ── */
.part-page h1 {
    color: #102039;
    font-size: clamp(22px, 1.9vw, 26px);
    font-weight: 650;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 5px;
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.part-page .brand {
    color: #0787f5;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.part-page .part-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 8px 0 14px;
    border-bottom: 1px solid #e7edf4;
}

.part-page .part-primary-actions {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

.part-page .part-quote-jump {
    display: inline-flex !important;
    min-height: 32px;
    padding: 6px 13px;
    border: 1px solid #0787f5;
    border-radius: 5px;
    background: #0787f5;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
}

.part-page .part-quote-jump:hover {
    border-color: #006fd6;
    background: #006fd6;
}

.part-page .part-mobile-quote-bar {
    display: none;
}

.part-page .intro {
    max-width: 920px;
    font-size: 15px;
    margin: 20px 0 10px;
}

.part-page .part-stock-summary {
    margin: 22px 0 26px;
    padding: 18px 20px 14px;
    border: 1px solid #c9dff5;
    border-radius: 6px;
    background: #f5faff;
}

.part-page .part-stock-summary h2 {
    margin: 0 0 10px;
    color: #17385f;
    font-size: 16px;
    font-weight: 650;
}

.part-page .part-stock-summary .spot-table {
    margin: 0;
}

.part-page .part-stock-summary > p {
    margin: 9px 0 0;
    color: #657487;
    font-size: 12px;
}

/* ── 宽屏详情内容 ── */
.part-page .part-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 22px;
    align-items: start;
    margin-top: 26px;
}

.part-page .detail-panel {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fff;
    color: #556274;
    font-size: 14px;
}

.part-page .detail-panel h2,
.part-page .section-heading h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2f78bd;
    color: #17263e;
    font-size: 17px;
    font-weight: 650;
}

.part-page .detail-panel h2:not(:first-child) {
    margin-top: 26px;
}

.part-page .detail-panel table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.part-page .detail-panel th,
.part-page .detail-panel td {
    padding: 11px 13px;
    border: 1px solid #dfe6ee;
    text-align: left;
    vertical-align: top;
}

.part-page .detail-panel th {
    background: #edf3f9;
    color: #43536a;
    font-size: 12px;
    letter-spacing: .03em;
}

.part-page .detail-panel td:first-child {
    width: 35%;
    color: #27364a;
}

.part-page .detail-panel ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.part-page .detail-panel li {
    margin-bottom: 7px;
}

.part-page .procurement-panel {
    position: sticky;
    top: 18px;
    border-color: #cfe0f1;
    background: #f8fbfe;
}

.part-page .procurement-panel p {
    margin: 0 0 12px;
}

.part-page .market-note {
    margin-top: 20px;
    padding: 13px 14px;
    border-left: 3px solid #38a67d;
    background: #eef8f4;
    color: #376454;
    font-size: 13px;
}

.part-page .section-heading {
    margin-bottom: 14px;
}

.part-page .section-heading p {
    margin: -4px 0 0;
    color: #667487;
    font-size: 13px;
}

/* ── SEO 内容区 ── */
.part-page .seo-section {
    font-size: 0.92em;
    color: #555;
}

.part-page .seo-section h2 {
    font-size: 18px;
    color: #222;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.part-page .seo-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.part-page .seo-section th,
.part-page .seo-section td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.part-page .seo-section th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.part-page .seo-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.part-page .seo-section li {
    margin-bottom: 6px;
    display: block !important;
    border-bottom: none !important;
    justify-content: unset !important;
}

.part-page .related-parts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 8px;
}

.part-page .related-parts a {
    display: block !important;
    min-height: 104px;
    padding: 14px;
    border: 1px solid #dde8f7;
    border-radius: 6px;
    background: #fbfdff;
    color: #333;
    text-decoration: none;
}

.part-page .related-parts a:hover {
    border-color: #007bff;
    background: #f3f9ff;
}

.part-page .related-parts strong {
    display: block;
    color: #0056b3;
    margin-bottom: 6px;
    font-size: 14px;
}

.part-page .related-parts span {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}

.part-page .faq-list {
    display: grid !important;
    gap: 8px;
    margin-top: 12px;
}

.part-page .faq-list details {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
}

.part-page .faq-list summary {
    cursor: pointer;
    color: #222;
    font-weight: 700;
    font-size: 14px;
}

.part-page .faq-list p {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
}

/* ── 询价区 ── */
.part-page .rfq-box {
    scroll-margin-top: 18px;
    background: #e6f2ff;
    border: 1px solid #b3d7ff;
    padding: 25px;
    border-radius: 6px;
    margin-top: 35px;
    animation: part-pulse-border 2s infinite;
}

.part-page .rfq-box h3 {
    margin-top: 0;
    color: #004085;
    font-size: 1.3em;
}

.part-page .rfq-confirm-note {
    margin: 8px 0 14px;
    color: #516070;
    font-size: 13px;
}

/* ── 库存明细表 ── */
.part-page .spot-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
}

.part-page .spot-table th,
.part-page .spot-table td {
    border: 1px solid #dfe7f0;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.part-page .spot-table th {
    background-color: #edf3f9;
    color: #50647b;
    font-weight: bold;
}

.part-page .spot-table .qty {
    color: #28765d;
    font-weight: bold;
}

.part-page .rfq-checklist {
    margin: 14px 0 18px;
    padding: 13px 14px;
    border: 1px solid rgba(0, 123, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.62);
}

.part-page .rfq-checklist strong {
    display: block;
    margin-bottom: 8px;
    color: #1f3f5f;
    font-size: 13px;
}

.part-page .rfq-checklist ul,
.part-page .quality-delivery ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    margin: 0;
    padding-left: 18px;
}

.part-page .rfq-checklist li,
.part-page .quality-delivery li {
    margin: 0;
    color: #526071;
    font-size: 13px;
    line-height: 1.45;
}

.part-page .quality-delivery {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid #e4ebf5;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    background: #fbfdff;
}

.part-page .quality-delivery h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 18px;
}

.part-page .quality-delivery p {
    margin: 0 0 12px;
    color: #5f6b7a;
    font-size: 13px;
}

/* ── 质量、运输与付款 ── */
.part-page .fulfillment-section,
.part-page .faq-section,
.part-page .related-section {
    margin-top: 28px;
}

.part-page .fulfillment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.part-page .fulfillment-grid article {
    min-width: 0;
    padding: 19px 20px;
    border: 1px solid #dfe7f0;
    border-top: 3px solid #2f78bd;
    border-radius: 8px;
    background: #fbfdff;
}

.part-page .fulfillment-grid h3 {
    margin: 0 0 9px;
    color: #17263e;
    font-size: 16px;
}

.part-page .fulfillment-grid p {
    margin: 0;
    color: #5e6c7d;
    font-size: 13px;
    line-height: 1.65;
}

/* ── 最底部相关型号长条列表 ── */
.part-page .related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.part-page .related-heading > div {
    min-width: 0;
}

.part-page .related-heading > a {
    flex: 0 0 auto;
    color: #0787f5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.part-page .related-heading > a:hover {
    text-decoration: underline;
}

.part-page .related-table {
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
}

.part-page .related-table-head,
.part-page .related-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 1.15fr) minmax(52px, .38fr) minmax(200px, 1.7fr) minmax(105px, .75fr) minmax(125px, .8fr) 58px 38px;
    align-items: center;
    gap: 12px;
}

.part-page .related-table-head {
    padding: 12px 18px;
    background: #edf3f9;
    color: #5f6f83;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.part-page .related-row {
    min-height: 76px;
    padding: 14px 18px;
    border-top: 1px solid #e7edf4;
    background: #fff;
    color: #5f6c7d;
    font-size: 13px;
    text-decoration: none !important;
}

.part-page .related-row:first-child {
    border-top: 0;
}

.part-page .related-row:hover {
    background: #f9fbfd;
}

.part-page .related-part-number {
    color: #17263e;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none !important;
}

.part-page .related-part-number:hover {
    color: #0787f5;
    text-decoration: underline !important;
}

.part-page .related-description {
    color: #5f6c7d;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.part-page .related-spec-empty {
    color: #93a1b3;
}

.part-page .related-stock {
    display: inline-flex;
    position: relative;
    align-items: center;
    padding-left: 14px;
    color: #28765d;
    font-weight: 600;
    white-space: nowrap;
}

.part-page .related-stock::after {
    position: absolute;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38a67d;
    content: "";
}

.part-page .related-date-code {
    color: #50647b;
    font-weight: 600;
    white-space: nowrap;
}

.part-page .related-action {
    display: flex;
    position: relative;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: flex-end;
}

.part-page .related-action a {
    position: absolute;
    right: 0;
    display: flex;
    width: 28px;
    height: 28px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #0787f5;
    border-radius: 4px;
    background: #0787f5;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(7, 135, 245, 0.2);
    transition: width .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.part-page .related-action a > span {
    opacity: 0;
    transition: opacity .12s ease .04s;
}

.part-page .related-row:hover .related-action a,
.part-page .related-row:focus-within .related-action a,
.part-page .related-action a:focus-visible {
    width: 58px;
    background: #006fd6;
    box-shadow: 0 5px 12px rgba(7, 135, 245, 0.28);
}

.part-page .related-row:hover .related-action a > span,
.part-page .related-row:focus-within .related-action a > span,
.part-page .related-action a:focus-visible > span {
    opacity: 1;
}

.part-page .related-empty {
    padding: 24px 20px;
    background: #fbfdff;
    color: #657487;
    font-size: 13px;
    text-align: center;
}

/* ── 询价按钮 ── */
.part-page .rfq-btn {
    display: inline-block !important;
    background: #0787f5 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    margin-top: 10px;
    border: none !important;
}

.part-page .rfq-btn:hover {
    background: #006fd6 !important;
    color: #fff !important;
}

/* ── 呼吸灯动画 ── */
@keyframes part-pulse-border {
    0%   { border-color: #b3d7ff; box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70%  { border-color: #007bff; box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { border-color: #b3d7ff; box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 1000px) {
    .part-page .part-detail-grid {
        grid-template-columns: 1fr;
    }

    .part-page .procurement-panel {
        position: static;
    }

    .part-page .fulfillment-grid {
        grid-template-columns: 1fr;
    }

    .part-page .related-table {
        overflow: visible;
        border: 0;
    }

    .part-page .related-table-head {
        display: none !important;
    }

    .part-page .related-table-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .part-page .related-row {
        display: flex !important;
        min-height: 0;
        padding: 16px;
        border: 1px solid #dfe7f0;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .part-page .related-row > span[data-label] {
        display: grid;
        width: 100%;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .part-page .related-row > span[data-label]::before {
        color: #7b899a;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .part-page .related-stock {
        padding-left: 0;
    }

    .part-page .related-stock::after {
        display: none;
    }

    .part-page .related-row:first-child {
        border-top: 1px solid #dfe7f0;
    }

    .part-page .related-action {
        width: auto;
        height: 30px;
        margin-top: 5px;
        align-self: flex-start;
    }

    .part-page .related-action a {
        position: static;
        width: 58px;
    }

    .part-page .related-action a > span {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .part-page {
        padding: 0 0 72px;
    }

    .part-page .container {
        width: calc(100% - 36px);
        margin: 18px auto;
        padding: 24px 18px;
    }

    .part-page .company-header,
    .part-page .company-header-left,
    .part-page .top-bar,
    .part-page .top-bar-right {
        align-items: stretch !important;
    }

    .part-page .company-header-left,
    .part-page .top-bar,
    .part-page .top-bar-right {
        width: 100%;
    }

    .part-page .top-bar-right,
    .part-page .search-wrap {
        width: 100%;
    }

    .part-page .company-logo {
        height: 34px;
        max-width: 130px;
    }

    .part-page .search-wrap input,
    .part-page .search-dropdown {
        width: 100%;
    }

    .part-page .db-tools {
        align-items: stretch !important;
    }

    .part-page .db-index-search,
    .part-page .db-index-search input {
        width: 100%;
    }

    .part-page .brand-card-grid,
    .part-page .part-card-grid,
    .part-page .related-parts {
        grid-template-columns: 1fr !important;
    }

    .part-page .part-title-row,
    .part-page .related-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .part-page .part-detail-grid {
        gap: 14px;
        margin-top: 20px;
    }

    .part-page .detail-panel {
        padding: 17px 15px;
    }

    .part-page .detail-panel table,
    .part-page .spot-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .part-page .related-table-body {
        grid-template-columns: 1fr;
    }

    .part-page .related-heading > a {
        align-self: flex-start;
    }

    .part-page .rfq-checklist ul,
    .part-page .quality-delivery ul {
        grid-template-columns: 1fr;
    }

    .part-page .db-search-results.is-visible {
        display: grid !important;
    }

    .part-page .seo-section table,
    .part-page .spot-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .part-page .part-stock-summary {
        margin: 18px 0 22px;
        padding: 15px 14px 12px;
    }

    .part-page .more-btn,
    .part-page .rfq-btn {
        display: block !important;
        width: 100%;
        text-align: center;
    }

    .part-page .part-primary-actions {
        margin-bottom: 15px;
    }

    .part-page .part-quote-jump {
        width: auto;
        align-self: flex-start;
    }

    .part-page .part-mobile-quote-bar {
        position: fixed;
        z-index: 1200;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid #cbdced;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -8px 24px rgba(26, 52, 83, 0.12);
        backdrop-filter: blur(8px);
    }

    .part-page .part-mobile-quote-bar a {
        display: flex !important;
        min-height: 44px;
        border-radius: 5px;
        background: #0787f5;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-size: 13px;
        font-weight: 400;
        text-decoration: none !important;
    }
}

/* ── RFQ inline form (posts to /api/rfq; mailto link is the fallback) ── */
.rfq-inline-form { margin-top: 16px; text-align: left; }
.rfq-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rfq-inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: #2c3a52; }
.rfq-inline-form input, .rfq-inline-form textarea { padding: 9px 12px; border: 1px solid #cfd6e4; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: #1c2638; }
.rfq-inline-form input:focus, .rfq-inline-form textarea:focus { outline: 2px solid rgba(47, 111, 237, 0.25); border-color: #2f6fed; }
.rfq-form-message { margin-top: 12px; }
.rfq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rfq-inline-form .rfq-btn { margin-top: 14px; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 400; width: 100%; }
.rfq-inline-form .rfq-btn:disabled { opacity: 0.6; cursor: wait; }
.rfq-form-status { margin-top: 10px; font-size: 0.85rem; min-height: 1.2em; }
.rfq-form-status.is-ok { color: #1a7f4b; font-weight: 600; }
.rfq-form-status.is-err { color: #c0392b; }
.rfq-mailto-alt { margin-top: 10px; font-size: 0.8rem; opacity: 0.85; }
.brand a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.brand a:hover { color: #2f6fed; }
