@media screen and (max-width: 768px) {
    .content table {
        width: 100% !important;
        max-width: 100% !important;
    }

    .content img {
        /*width: 100% !important;*/
        max-width: 100% !important;
    }

}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/*侧边导航栏*/

.side-nav {
    box-shadow: none !important;
    border: 1px solid #eee;
}

.side-nav .layui-layer-content {
    padding: 10px;
}

.site-dir li {
    line-height: 26px;
    overflow: visible;
    padding: 0 15px;
    list-style-type: disc;
}

.side-nav ul li:hover {
    cursor: pointer;
}

/*芯片产品*/
.product {
    margin: 15px auto;
}

/*芯片产品-头部区域*/
.product-hd {
    padding: 15px 0 0;
}


.product-hd h1 {
    font-size: 26px;
    color: #1E9FFF;
    font-weight: 400;
}

.product-hd .layui-badge {
    position: absolute;
    margin-left: 10px;
    margin-top: 5px;
}

.product-hd .layui-card-header {
    height: unset;
}


.product-hd .layui-breadcrumb a {
}

/*芯片产品-头部区域子导航*/
.product-hd .sub-nav {
    background-color: #fff;
    border-top: 1px solid #d6d6d6;
}

.product-hd .sub-nav a {
    display: block;
    padding: 20px 15px 15px 0;
}


/*概述*/

.overview {
    padding: 15px 15px;
}

.overview .layui-card-header {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300;
    border-bottom: 1px solid #d6d6d6;
    padding: 0;

}

.overview .layui-card-body {
    padding: 30px 0;
}

/*产品文档*/

.doc {
    padding: 15px 10px;
}

.doc .layui-card-header {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300;
    border-bottom: 1px solid #d6d6d6;
    padding: 0;

}

.doc .layui-card-body {
    padding: 30px 0;
}

.doc .layui-tab-brief > .layui-tab-title .layui-this {
    background-color: #2879ff;
    color: #fff;
}

.doc .layui-tab-brief > .layui-tab-title .layui-this::after {
    border-bottom: 2px solid transparent;
}

.doc .layui-tab-title {
    border-bottom-color: #2879ff;
    background-color: #f7f7f7;
}

/*设计资源*/

.design {
    padding: 15px 10px;
}

.design .layui-card-header {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300;
    border-bottom: 1px solid #d6d6d6;
    padding: 0;
}

.design .layui-card-body {
    padding: 30px 0;
}

.design .layui-tab-brief > .layui-tab-title .layui-this {
    background-color: #2879ff;
    color: #fff;
}

.design .layui-tab-brief > .layui-tab-title .layui-this::after {
    border-bottom: 2px solid transparent;
}

.design .layui-tab-title {
    border-bottom-color: #2879ff;
    background-color: #f7f7f7;
}


/*EVB*/
.evb {
    margin-bottom: 15px;
}

.evb h1 {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300 !important;
    height: 42px;
    line-height: 42px;
}





/*REF*/

.ref {
    margin-bottom: 15px;
}

.ref h1 {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300 !important;
    height: 42px;
    line-height: 42px;
}










/*产品样式*/

/*.product-item {*/
/*    display: block;*/
/*    transition: all .2s linear;*/
/*}*/

.product-item:hover {
    z-index: 2;
    -webkit-transform: translate3d(0, -2px, 0);
    transform: translate3d(0, -2px, 0);
}


.product-item .title {
    font-size: 14px;
    color: #1e9fff !important;
    margin-top: 30px;
    min-height: 48px;
    text-align: center
}

.product-item .subtitle {
    min-height: 48px;
    display: flex;
    align-items: center;
}


/* ===== 产品卡片核心样式 ===== */
.product-item {
    display: block;
    text-decoration: none;
    height: 100%;
}

.product-item .layui-panel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s;
    height: 100%;
    background: #fff;
}

.product-item .layui-panel:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.product-item .layui-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 12px;
    text-align: center;
}

/* 图片：自适应 + 不拉伸 + 保持比例 */
.product-item .layui-panel img {
    width: 100%;
    height: 150px;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px auto;
}

.product-item .title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin: 6px 0 2px;
    word-break: break-word;
}

.product-item .desc {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ===== 响应式布局：一行4列，自适应 ===== */
@media screen and (max-width: 1199px) {
    .layui-col-md3 {
        width: 33.3333%; /* 大平板/小屏笔记本：一行3列 */
    }
}

@media screen and (max-width: 992px) {
    .layui-col-md3 {
        width: 50%; /* 平板：一行2列 */
    }
}

@media screen and (max-width: 576px) {
    .layui-col-md3 {
        width: 100%; /* 手机：一行2列（若想一行1列可改为100%） */
    }

    .product-item .title {
        font-size: 13px;
    }
}

@media screen and (max-width: 400px) {
    .layui-col-md3 {
        width: 100%; /* 超小手机：一行1列 */
    }
}

/* 间距微调 */
.layui-col-space15 > .layui-col-md3 {
    padding: 10px;
}

.layui-container[style*="margin: 60px auto"] {
    padding-left: 16px;
    padding-right: 16px;
}


/*视频教程*/

.video {
    padding: 15px 10px;
}

.video .layui-card-header {
    font-size: 22px;
    color: #1E9FFF;
    font-weight: 300;
    border-bottom: 1px solid #d6d6d6;
    padding: 0;
}

.video .layui-card-body {
    padding: 30px 0;
}

.video .layui-tab-brief > .layui-tab-title .layui-this {
    background-color: #2879ff;
    color: #fff;
}

.video .layui-tab-brief > .layui-tab-title .layui-this::after {
    border-bottom: 2px solid transparent;
}

.video .layui-tab-title {
    border-bottom-color: #2879ff;
    background-color: #f7f7f7;
}

.video .layui-panel img {
    width: 100%;
    height: 85%;
}

.video .action {
    padding: 15px;
    display: flex;
    justify-content: space-between
}


/*工具条*/


.tool-bar a {
    float: left;
    width: 82px;
    height: 90px;
    margin-top: -1px;
    background-color: #fff;
    border: 1px solid #f5f5f5;
    text-align: center;
}

.tool-bar .icon {
    width: 30px;
    margin: 0 auto 8px;
    padding-top: 18px;
}

.tool-bar a img {
    height: 30px;
    width: 30px;
}


.footer {
    margin-top: auto;
}

.layui-bg-gray {
    background-color: #fff !important;
    color: #5f5f5f !important;
}

@media screen and (max-width: 768px) {
    #btns {
        text-align: left;
    }
}

@media screen and (min-width: 768px) {
    #btns {
        text-align: right;
    }
}


/* ========== 顶部通栏导航 ========== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid #1b91e8;
    /* 动画相关样式 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    display: none;

}


/* 滑入动画 */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 滑出动画 */
@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}


.brand-section {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: space-between;
}

.product-name {
    font-size: 24px;
    font-weight: 400;
    color: #1E9FFF;
    letter-spacing: 1px;
    position: relative;
}

.product-name::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

.product-tag {
    font-size: 13px;
    color: #1E9FFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 400;
}


.nav-tab-item {
    padding: 8px 24px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.nav-tab-item:hover {
    color: #1E9FFF;
}


.right-actions {
    display: flex;
    align-items: center;
    gap: 20px;

}


.notice-bar {
    background: rgba(5, 114, 236, 0.1);
    height: 40px;
    padding: 0 20px;
    line-height: 40px;
    width: 100%;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(5, 114, 236, 0.3);
}

.notice-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.notice-icon {
    color: #ffc107;
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-notice {
    display: inline-block;
    /*animation: scrollLeft 16s linear infinite;*/
    /*animation-delay: 3s;*/
}

.scroll-notice span {
    margin-right: 60px;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.notice-bar:hover .scroll-notice {
    animation-play-state: paused;
}


/* 响应式 */
@media (max-width: 1200px) {
    .notice-bar {
        min-width: 260px;
    }

    .nav-tab-item {
        padding: 6px 16px;
    }
}

@media (max-width: 992px) {
    .brand-section {
        flex-wrap: wrap;
        gap: 12px;
    }

    .right-actions {
        flex-wrap: wrap;
    }

}
