/**
 * EEdatasheet 首页样式
 * 百度SEO优化版
 */

/* ==================== 变量 ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ==================== 重置 ==================== */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }
h1,h2,h3,h4,p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ==================== 头部 ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    height: 60px;
}
.header .container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.logo span { color: var(--primary); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-secondary); font-size: 15px; }
.nav a:hover { color: var(--primary); }
.header-btns { display: flex; gap: 10px; }
.btn {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ==================== 搜索区域 ==================== */
.search-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    padding: 60px 0 80px;
    text-align: center;
}
.search-hero .container { max-width: 1200px; }
.search-hero .logo-img { height: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.search-hero h1 { font-size: 32px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.search-hero p { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 30px; }

.search-box {
    max-width: 600px;
    margin: 0 auto 24px;
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
}
.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.search-box button:hover { background: var(--primary-dark); }

/* 热门搜索 */
.hot-search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.hot-search-label { color: rgba(255,255,255,.7); font-size: 13px; }
.hot-search a {
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
}
.hot-search a:hover { background: rgba(255,255,255,.25); color: #fff; }
.hot-search .time { opacity: .6; font-size: 12px; margin-left: 4px; }

/* ==================== 主内容 ==================== */
.main-content {
    padding: 40px 0;
    margin-top: -30px;
    position: relative;
}
.main-content .container { max-width: 1200px; }

/* 卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.card-icon.blue { background: var(--primary); }
.card-icon.red { background: var(--accent); }
.card-icon.green { background: var(--success); }
.card-more { font-size: 13px; color: var(--text-muted); }
.card-more:hover { color: var(--primary); }
.card-body { padding: 20px; }

/* 网格 */
.grid-row { display: flex; gap: 24px; flex-wrap: wrap; width: 100%; }
.col-8 { flex: 1 1 0; min-width: 0; }
.col-4 { flex: 0 0 320px; min-width: 0; }
.col-6 { flex: 0 0 calc(50% - 12px); min-width: 0; }

/* ==================== 器件列表 ==================== */
.card-body .part-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.card-body .part-grid .part-item {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 16px !important;
    border: 1px solid var(--border) !important;
    transition: all .2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
.card-body .part-grid .part-item:hover { 
    border-color: var(--primary) !important; 
    background: #f8faff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px) !important;
}

.card-body .part-grid .part-item .part-header { 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 10px !important; 
    margin-bottom: 8px !important; 
}
.card-body .part-grid .part-item .part-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}
.card-body .part-grid .part-item .part-info { 
    flex: 1 !important; 
    min-width: 0 !important; 
}
.card-body .part-grid .part-item .part-name { 
    font-size: 14px !important; 
    font-weight: 600 !important; 
    color: var(--primary) !important; 
    display: block !important; 
    margin-bottom: 6px !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
}
.card-body .part-grid .part-item .part-name:hover { text-decoration: underline !important; }
.card-body .part-grid .part-item .part-meta { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 6px !important;
    margin-top: 4px !important;
}
.card-body .part-grid .part-item .part-tag {
    font-size: 11px !important;
    padding: 3px 8px !important;
    background: #f1f5f9 !important;
    border-radius: 4px !important;
    color: var(--text-secondary) !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    transition: all .15s ease !important;
}
.card-body .part-grid .part-item a.part-tag:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.card-body .part-grid .part-item .part-desc { 
    font-size: 12px !important; 
    color: var(--text-muted) !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
    white-space: nowrap !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
}

/* ==================== 下载列表 ==================== */
.download-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.download-list li:last-child { border-bottom: none; }
.download-icon {
    width: 32px;
    height: 32px;
    background: #fef2f2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.download-info { flex: 1; min-width: 0; }
.download-name { font-weight: 500; color: var(--primary); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-meta { font-size: 12px; color: var(--text-muted); }

/* ==================== 索引区域 ==================== */
.section { margin-top: 40px; }
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.section-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.section-title { font-size: 18px; font-weight: 600; color: var(--text); }
.section-desc { color: var(--text-muted); font-size: 13px; margin-left: auto; }

/* 厂商轮播 */
.brand-carousel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}
.brand-track {
    display: flex;
    gap: 16px;
    animation: brandScroll 25s linear infinite;
}
.brand-track:hover { animation-play-state: paused; }
@keyframes brandScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-item {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .15s;
}
.brand-item:hover { border-color: var(--primary); }
.brand-item img { height: 32px; width: auto; transition: all .15s; }
.brand-item:hover img { transform: scale(1.05); }

/* 字母索引 */
.index-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.index-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all .15s;
}
.index-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 分类标签 */
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
    padding: 7px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .15s;
}
.tag-item:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 双列索引 */
.index-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.index-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}
.index-box-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.index-box-title .num {
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #0f172a;
    color: rgba(255,255,255,.7);
    padding: 50px 0 24px;
    margin-top: 50px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--primary-light); }
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer-stats { display: flex; gap: 24px; margin-top: 16px; }
.footer-stat-num { font-size: 24px; font-weight: 700; color: #fff; }
.footer-stat-label { font-size: 12px; color: rgba(255,255,255,.5); }
.footer-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }

/* ==================== 返回顶部 ==================== */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .col-8, .col-4, .col-6 { flex: 0 0 100%; }
    .grid-row { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .search-hero { padding: 40px 0 60px; }
    .search-hero h1 { font-size: 24px; }
    .search-box { flex-direction: column; }
    .search-box button { padding: 14px; }
    .card-body .part-grid { grid-template-columns: 1fr !important; }
    .index-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

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


/* ==================== 页面头部横幅 ==================== */
.page-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    padding: 30px 0;
}
.page-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.page-hero-count {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.15);
    padding: 6px 16px;
    border-radius: 20px;
}

/* 迷你搜索框 */
.search-mini {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 400px;
}
.search-mini input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}
.search-mini button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}
.search-mini button:hover { background: var(--primary-dark); }

/* ==================== 过滤器 ==================== */
.filters {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.filters input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.filters .btn-filter {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
}
.filters .btn-filter:hover { background: var(--primary-dark); }
.filters .btn-clear {
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 16px;
}
.filters .btn-clear:hover { color: var(--primary); }

/* ==================== 器件列表（列表视图） ==================== */
.part-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.part-list .part-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    transition: all .2s ease;
}
.part-list .part-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.part-list .part-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.part-list .part-content {
    flex: 1;
    min-width: 0;
}
.part-list .part-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.part-list .part-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}
.part-list .part-name:hover { text-decoration: underline; }
.part-list .part-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 4px;
    color: var(--text-secondary);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all .15s;
}
.part-list .part-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.part-list .part-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.part-list .part-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.part-list .part-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.part-list .part-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.part-list .btn-view {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.part-list .btn-view:hover { background: var(--primary-dark); color: #fff; }

/* ==================== 分页 ==================== */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .15s;
}
.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination li.disabled span {
    opacity: .5;
    cursor: not-allowed;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.empty-state .suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius);
}
.empty-state .suggestions ul {
    margin-top: 10px;
}
.empty-state .suggestions li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 侧边栏下载卡片 ==================== */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.sidebar-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.sidebar-card-icon.new { background: var(--success); }
.sidebar-card-icon.hot { background: var(--accent); }
.sidebar-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.sidebar-card-body {
    padding: 12px 16px;
}
.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list .dl-icon {
    width: 28px;
    height: 28px;
    background: #fef2f2;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-list .dl-icon img { width: 16px; height: 16px; }
.sidebar-list .dl-info { flex: 1; min-width: 0; }
.sidebar-list .dl-name {
    font-weight: 500;
    color: var(--primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-list .dl-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ==================== 详情页样式 ==================== */
/* 面包屑 */
.breadcrumb-wrap {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .active { color: var(--text-muted); }

/* 规格表格 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.spec-table th,
.spec-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.spec-table th {
    width: 120px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg);
}
.spec-table td { color: var(--text); }
.spec-table a { color: var(--primary); }
.spec-table a:hover { text-decoration: underline; }

/* 产品描述 */
.part-description {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}
.part-description h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}
.part-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* 下载区域 */
.download-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .2s;
}
.download-item.primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-light);
}
.download-item:hover { border-color: var(--primary); }
.download-item .download-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.download-item .download-info { flex: 1; }
.download-item .download-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}
.download-item .download-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.no-datasheet {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}
.no-datasheet a { color: var(--primary); }

/* 相关产品网格 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .15s;
    text-decoration: none;
}
.related-item:hover {
    border-color: var(--primary);
    background: #eff6ff;
}
.related-item .rel-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.related-item .rel-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.badge.green { background: #dcfce7; color: #16a34a; }
.badge.blue { background: #dbeafe; color: #2563eb; }
.badge.red { background: #fee2e2; color: #dc2626; }

/* 详情页ID */
.part-id {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .download-item { flex-direction: column; text-align: center; }
    .spec-table th { width: 80px; }
}


/* 快速导航 */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .15s;
}
.quick-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}
.load-more .btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}
.load-more-info {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 厂商信息 */
.manufacturer-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.manufacturer-info p:last-child { margin-bottom: 0; }
.manufacturer-info strong { color: var(--text); }

/* ==================== 厂商页面头部 ==================== */
.manufacturer-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    padding: 30px 0;
}
.manufacturer-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.mfr-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}
.mfr-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin: 0;
}
.mfr-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .15s;
}
.category-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.category-tag:hover .count {
    background: rgba(255,255,255,.2);
    color: #fff;
}
.category-tag .count {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all .15s;
}

/* 侧边栏蓝色图标 */
.sidebar-card-icon.blue { background: var(--primary); }
.sidebar-card-icon.green { background: var(--success); }

/* 响应式 */
@media (max-width: 768px) {
    .manufacturer-header .container {
        flex-direction: column;
        text-align: center;
    }
    .mfr-stats {
        justify-content: center;
    }
    .search-mini {
        max-width: 100%;
    }
}


/* ==================== 列表页头部 ==================== */
.list-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    padding: 24px 0;
}
.list-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.list-header-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}
.list-stats {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin: 0;
}


/* ==================== 器件网格卡片布局 ==================== */
.part-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.part-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .2s ease;
}
.part-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.part-card-link {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}
.part-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.part-card-body {
    min-height: 70px;
}
.part-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 6px 0;
    word-break: break-all;
    line-height: 1.3;
}
.part-card:hover .part-card-name {
    text-decoration: underline;
}
.part-card-pkg {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.part-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.part-card-btn {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}
.part-card:hover .part-card-btn {
    color: var(--primary-dark);
}

/* 响应式 */
@media (max-width: 992px) {
    .part-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .part-grid-wrap { grid-template-columns: 1fr; }
}


/* ==================== 标签云 ==================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item-sm {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all .15s;
}
.tag-item-sm:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/* ==================== 厂商概览区域 ==================== */
.mfr-overview {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 30px;
    align-items: center;
}
.mfr-overview-content {
    flex: 1;
}
.mfr-overview-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}
.mfr-overview-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}
.mfr-overview-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}
.mfr-overview-stats .stat-item {
    text-align: center;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    min-width: 90px;
}
.mfr-overview-stats .stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.mfr-overview-stats .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .mfr-overview {
        flex-direction: column;
        text-align: center;
    }
    .mfr-overview-stats {
        width: 100%;
        justify-content: center;
    }
}


/* ==================== 厂商网格卡片 ==================== */
.mfr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.mfr-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .15s;
    text-decoration: none;
    min-width: 0;
}
.mfr-card:hover {
    background: #eff6ff;
    border-color: var(--primary);
}
.mfr-card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.mfr-card-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.mfr-card:hover .mfr-card-name {
    color: var(--primary);
}
.mfr-card-arrow {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: all .15s;
}
.mfr-card:hover .mfr-card-arrow {
    color: var(--primary);
}

/* 索引项激活状态 */
.index-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 响应式 */
@media (max-width: 1200px) {
    .mfr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .mfr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .mfr-grid { grid-template-columns: 1fr; }
}