body {
    margin: 0;
    padding: 0;
}
/* ============ 脑图区域 ============ */
.mindmap-section {
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    min-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mindmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 49, 125, 0.0);
    z-index: 0;
}

/* ============ 背景图轮播层（叠加在 banner.jpg 上方） ============ */
.banner-rotator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.banner-rotator img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.banner-rotator img.active {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .banner-rotator img { transition: none; }
}

.mindmap-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 24px;
    margin-bottom: 24px;
}

.root-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.root {
    padding: 12px 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 65%) 100%);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
}

.root::after {
    content: "";
    display: block;
    margin: 12px auto -38px;
    width: 2px;
    height: 24px;
    background: #ffffff;
    opacity: 0.12;
}

.tree {
    position: relative;
    margin-top: 12px;
}

.branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    align-items: start;
}

.branches::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 2px;
    background: #ffffff;
    opacity: 0.12;
}

.branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
}

.branch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 36px;
    background: #ffffff;
    opacity: 0.12;
    transform: translateX(-50%);
}

.branch .node {
    position: relative;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    background: linear-gradient(135deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 65%) 100%);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    text-align: center;
    min-width: 110px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.branch .node:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.children {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.child {
    padding: 7px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 65%) 100%);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    color: var(--branch-color, var(--primary));
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    min-width: 130px;
    border: 1px solid var(--border);
    transition: all .2s ease;
}

.child:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-lighter);
    background: linear-gradient(135deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 65%) 100%);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
}

/* 分支颜色 — 纯灰阶 */
.b1 { --branch-color: #4a4e5a; }
.b2 { --branch-color: #585c68; }
.b3 { --branch-color: #3a3e4a; }
.b4 { --branch-color: #666a76; }
.b5 { --branch-color: #525660; }
.b6 { --branch-color: #60646e; }
.b7 { --branch-color: #6e727c; }
.b8 { --branch-color: #484c56; }
/* ============ 产品展示区域 ============ */
.section {margin-top: 40px;}
.products-section {
    background: var(--bg);
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header .header-pill {
    display: inline-block;
}

.section-header .header-pill h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header .header-pill h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
/* ============ 一级分类 Tab ============ */
.l1-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.l1-tab {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.l1-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.l1-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.l1-text {
    text-align: left;
}
.l1-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.l1-meta {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}
.l1-tab.active .l1-meta {
    opacity: 0.85;
}

/* ============ 分类内容区 ============ */
.category-section {
    display: none;
}
.category-section.active {
    display: block;
}



/* ============ 分类列表 ============ */
.detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.detail-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
    flex-shrink: 0;
    padding-top: 2px;
}
.detail-card h3 a {
    color: inherit;
    text-decoration: none;
}
.detail-card h3 a:hover {
    text-decoration: underline;
}
.detail-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 16px;
    flex: 1;
}
.detail-card li {
    font-size: 13px;
    padding: 4px 0;
}
.detail-card li a {
    color: var(--text);
    text-decoration: none;
}
.detail-card li a:hover {
    color: var(--primary);
}
/* 产品分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px 20px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 1;
    border-radius: 8px 8px 0 0;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.category-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.category-brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
}

.brand-tag {
    border: var(--primary-lighter) 1px solid;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-light);
    text-align: center;
    box-sizing: border-box;
}
.brand-tag img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.category-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

.cat-life { --card-accent: #456697; }
.cat-chemistry { --card-accent: #4a7a6b; }
.cat-material { --card-accent: #8a4a4a; }
.cat-environment { --card-accent: #3a6b8a; }
/* ============ 产品列表 ============ */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 12px;
}

.product-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.product-item.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* 产品图片 */
.product-image {
    width: inherit;
    height: 140px;
    flex-shrink: 0;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-image img{
    object-fit: contain;
    image-rendering: crisp-edges;
    max-width: 100%;
}
.product-image svg {
    width: 64px;
    height: 64px;
    color: var(--primary-light);
}

/* New标签 */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* 产品信息 */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-name:hover {
    color: var(--primary);
    cursor: pointer;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item .label {
    color: var(--text-muted);
}

.meta-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.meta-item a:hover {
    text-decoration: underline;
}

.meta-item.highlight a {
    color: var(--primary);
}

/* 价格信息 */
.product-price {
    margin-top: auto;
    padding-top: 8px;
}

.price-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* 产品操作区 */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 120px;
}

.action-stats {
    text-align: right;
}

.stat-item {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-item .value {
    color: var(--text-secondary);
}

.inquiry-btn {
    background: var(--primary);
    color: #fff !important;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inquiry-btn:hover {
    background: #00255e;
    box-shadow: 0 2px 8px rgba(0, 49, 125, 0.2);
}
/* 仪器分类搜索框 */
.home-search.category-search {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 40px auto 28px;
}

.search-keyword-box{
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.category-search input {
    flex: 1;
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    outline: none;
}

.category-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 49, 125, 0.08);
}

.category-search input::placeholder {
    color: var(--text-muted);
}

.category-search button {
    height: 46px;
    padding: 0 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-search button:hover {
    background: #00255e;
    box-shadow: 0 2px 8px rgba(0, 49, 125, 0.2);
}

.category-search button svg {
    margin-right: 6px;
    vertical-align: -2px;
}

.search-empty {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.partner-card {
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.partner-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.partner-logo {
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
    height: 58px;
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.partner-card span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 全宽广告横幅 */
.founder-banner {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.founder-banner img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* 创始人联系 */
.founder-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
}
.founder-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
}

.founder-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.founder-avatar svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.founder-content {
    min-width: 0;
}

.founder-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.founder-content .subtitle {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-lighter);
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.founder-content .desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 480px;
}

.founder-qr {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.founder-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.founder-qr span {
    font-size: 11px;
    color: var(--text-muted);
}

.founder-photo {
    width: 200px;
    height: 288px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--primary-lighter);
    box-shadow: var(--shadow);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 新品推荐 */
.new-products-section {
    margin-bottom: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    opacity: 0.4;
    border-radius: 0 0 1px 1px;
    z-index: 1;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-image {
    height: 140px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image svg {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
}

.product-info {
    padding: 14px 16px 16px;
}

.product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.product-info p {
    font-size: 13px;
    color: var(--text-muted);
}


/* ============ 响应式 ============ */
@media (max-width: 1280px) {
    .branches {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 24px;
    }
    .branches::before { display: none; }
    .branch::before { display: none; }
    .root::after { display: none; }
}

@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(1, 1fr); }
    .products-grid { grid-template-columns: repeat(1, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 24px 16px; }
    .mindmap-container { padding: 32px 16px; }
    .products-container { padding: 0 16px 32px; }
    .branches { grid-template-columns: repeat(1, 1fr); }
    .root { font-size: 16px; padding: 10px 24px; }
    .branch .node { font-size: 12px; min-width: 80px; padding: 8px 10px; }
    .child { font-size: 10px; }
    .category-grid, .products-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(1, 1fr); }
    .founder-section { flex-direction: column; text-align: center; padding: 24px 20px; }
    .founder-left { flex-direction: column; align-items: center; width: 100%; }
    .founder-content .desc { max-width: 100%; }
    .founder-photo { width: 96px; height: 96px; }
}