/*
Theme Name: DoorsAndSolutions Pro
Theme URI: https://www.yourcompanydoors.com
Author: Your Company
Author URI: https://www.yourcompanydoors.com
Description: Professional B2B theme for door & window manufacturers.
Version: 1.1
Text Domain: doorsandsolutions
*/

/* ========== 全局CSS Reset 清除默认样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #2d3436;
    line-height: 1.7;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
}

ul, ol, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a:hover, a:active, a:focus {
    text-decoration: none;
    outline: none;
}

img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    outline: none;
    background: transparent;
}
textarea {
    resize: vertical;
}
button, input[type="button"], input[type="submit"], input[type="reset"] {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-size: inherit;
}

.clearfix::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    *zoom: 1;
}

.clear {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ========== 导航栏样式 ========== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    position: relative;
}

.nav-item {
    position: relative;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #2d3436;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link .dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #1E3A8A;
}

.nav-link.active {
    color: #1E3A8A;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    border-top: 2px solid #1E3A8A;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-link {
    color: #636e72;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
}

.dropdown-link:hover {
    color: #1E3A8A;
    padding-left: 5px;
    background-color: #F0F4FF;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== 轮播图样式 ========== */
.carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ========== 按钮通用样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1E3A8A;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: #162D6B;
    border-color: #C0C0C0;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid #C0C0C0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: #1E3A8A;
    border-color: #fff;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ========== 产品展示区样式 ========== */
.products-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    color: #2d3436;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #1E3A8A;
}

.section-title p {
    color: #636e72;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #C0C0C0;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.1);
}

/* 产品图片容器 */
.img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(30, 58, 138, 0.8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2d3436;
}

.product-info .price {
    color: #1E3A8A;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.product-info p {
    color: #636e72;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 私人定制卡片样式 */
.custom-solution-card {
    border: none;
}

.custom-bg {
    width: 100%;
    height: 300px;
    background-color: #1E3A8A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.custom-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.custom-subtitle {
    font-size: 16px;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* 醒目报价按钮 */
.custom-btn {
    background-color: #E63946;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 35px;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.custom-btn:hover {
    background-color: #D62828;
    border-color: #D62828;
    box-shadow: 0 6px 12px rgba(214, 40, 40, 0.4);
    transform: translateY(-2px);
}

/* ========== 关于我们区样式 ========== */
.about-section {
    background: #fff;
    padding: 80px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* 视频容器样式 */
.about-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1);
    border: 2px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.youtube-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-thumbnail, #youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 播放按钮样式 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #E63946;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2d3436;
    position: relative;
    padding-bottom: 10px;
}

.about-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #1E3A8A;
}

.about-content p {
    color: #636e72;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.about-content li {
    padding: 8px 0;
    color: #636e72;
    position: relative;
    padding-left: 25px;
}

.about-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1E3A8A;
    font-weight: bold;
}

/* ========== 联系表单区样式 ========== */
.contact-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #2d3436;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #1E3A8A;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3A8A;
    font-size: 18px;
    border: 1px solid #C0C0C0;
}

.contact-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2d3436;
}

.contact-details p {
    color: #636e72;
    font-size: 15px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3436;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #2d3436;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ========== 信任状板块样式 ========== */
.trust-section {
    background-color: #fff;
    padding: 80px 0;
    margin-top: 50px;
}

.trust-section .section-title {
    margin-bottom: 60px;
}

.trust-subtitle {
    font-size: 22px;
    color: #1E3A8A;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.trust-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #C0C0C0;
}

/* ========== 证书滚动样式 【重写核心】 ========== */
.certifications-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: center;
}

/* 外层滚动容器 - 固定高度+隐藏溢出 */
.cert-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 550px; /* 容纳485px证书 + 间距 */
    overflow: hidden;
    margin: 20px 0;
}

/* 内层证书列表 - CSS动画核心 */
.cert-icons {
    display: flex;
    gap: 25px;
    position: absolute;
    left: 0;
    top: 15px;
    will-change: transform;
    /* 无缝滚动动画 - 40秒一轮，匀速循环 */
    animation: certScroll 20s linear infinite;
}

/* 鼠标悬停暂停滚动 */
.cert-scroll-wrapper:hover .cert-icons {
    animation-play-state: paused;
}

/* 单个证书项 - 固定宽高，不伸缩 */
.cert-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 证书图片 - 固定360*485尺寸 */
.cert-img {
    width: 360px;
    height: 485px;
    object-fit: contain;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    filter: grayscale(80%);
    transition: all 0.3s ease;
}

.cert-item:hover .cert-img {
    filter: grayscale(0);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
}

/* 修改动画关键帧 */
@keyframes certScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 滚动到原列表的负宽度，实现无缝循环 */
        transform: translateX(-100%); 
    }
}

/* 给证书列表添加一份克隆的副本（用CSS实现，无需改HTML） */
.cert-icons::after {
    content: "";
    display: flex;
    /* 复制原列表的所有子元素样式 */
    flex: 0 0 auto;
    gap: 25px;
    /* 这里需要手动写一份和原证书一样的结构，示例： */
    /* （如果证书是图片，建议还是用HTML克隆，CSS克隆维护麻烦） */
}

/* 滚动提示文字 */
.cert-tip {
    color: #636e72;
    font-size: 14px;
    margin-top: 10px;
}



@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #D62828;
}

.download-btn {
    background-color: #1E3A8A;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 12px 0;
}

.download-btn:hover {
    background-color: #162D6B;
    border-color: #C0C0C0;
}

/* ========== 页脚样式 ========== */
.footer {
    background: #1E3A8A;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #C0C0C0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #E0E0E0;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #C0C0C0;
    padding-left: 5px;
}

.footer-col p {
    color: #E0E0E0;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2A4B9B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #C0C0C0;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #C0C0C0;
    color: #1E3A8A;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid #2A4B9B;
    color: #C0C0C0;
    font-size: 14px;
}

/* ========== 响应式样式 ========== */
@media (max-width: 992px) {
    .about-container, .contact-container,
    .global-partners-container, .factory-power-container {
        grid-template-columns: 1fr;
    }

    .carousel {
        height: 500px;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

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

@media (max-width: 768px) {
    /* 移动端导航 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        height: auto;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 20px;
        display: none;
        margin-top: 5px;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-item {
        padding: 8px 0;
    }

    .nav-item:hover .dropdown-icon {
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 轮播图适配 */
    .carousel {
        height: 400px;
    }

    .carousel-caption {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
    }

    .carousel-caption h2 {
        font-size: 22px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    /* 产品区适配 */
    .section-title h2 {
        font-size: 26px;
    }

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

    .img-wrapper, .custom-bg {
        height: 250px;
    }

    .custom-title {
        font-size: 36px;
    }

    .custom-btn {
        padding: 10px 30px;
    }

    /* 证书滚动适配 */
    .cert-scroll-wrapper {
        height: 450px;
    }

    .cert-img {
        width: 280px;
        height: 380px;
        padding: 10px;
    }

    .cert-icons {
        animation-duration: 30s; /* 移动端滚动更快 */
    }

    .cert-tip {
        font-size: 12px;
    }

    /* 全球足迹适配 */
    .world-map {
        height: 300px;
    }

    .map-stats p {
        font-size: 14px;
    }

    .map-stats span {
        font-size: 20px;
    }

    /* 工厂视频适配 */
    .video-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cert-img {
        width: 220px;
        height: 300px;
    }
}

/* Why Choose Us 核心优势板块 - 修复为2行2列 */
.why-choose-us-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left;
}

.choose-us-grid {
    display: grid;
    /* 关键：固定2列，强制4项分成2行 */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* 行列间距一致 */
    margin: 30px 0;
}

.choose-item {
    background: #f9f9f9;
    padding: 35px 25px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

/* hover 提升交互效果 */
.choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.08);
    border-color: #e8e8e8;
}

.choose-icon {
    margin-bottom: 20px;
}

.icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.choose-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.choose-desc {
    font-size: 14px;
    color: #636e72;
    line-height: 1.7;
    margin-bottom: 12px;
}

.choose-highlight {
    font-size: 13px;
    color: #1E3A8A; /* 匹配主题色 */
    font-weight: 500;
}

/* 案例+下载模块 */
.choose-trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.choose-projects {
    flex: 1;
    min-width: 300px;
}

.choose-project-imgs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.case-img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.choose-download {
    flex: 0 0 auto;
    margin-left: 30px;
    min-width: 200px;
    text-align: center;
}

.download-tip {
    margin-top: 10px;
    font-size: 13px;
    color: #636e72;
}

/* 响应式适配：移动端自动变为1列 */
@media (max-width: 768px) {
    .choose-us-grid {
        grid-template-columns: 1fr; /* 手机端1列显示 */
    }

    .choose-trust-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .choose-download {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        text-align: left;
    }

    .download-btn {
        width: 100%;
    }
}


/* 面包屑导航 */
.breadcrumb-section {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: #333;
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #666;
}

/* 产品详情主区域 */
.product-detail-section {
    padding: 60px 0;
}
.product-detail-wrapper {
    gap: 30px;
}

/* 左侧侧边栏 */
.product-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.category-item {
    margin-bottom: 8px;
}
.category-item a {
    color: #555;
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.category-item.active a,
.category-item a:hover {
    background-color: #007bff;
    color: #fff;
}
.specs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.specs-item {
    margin-bottom: 8px;
}
.specs-link {
    color: #555;
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    transition: all 0.3s ease;
}
.specs-link:hover {
    color: #007bff;
    padding-left: 15px;
}
.sidebar-cta {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.cta-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}
.cta-note {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 右侧产品内容 */
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}
.product-main-img {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.thumb-item {
    flex: 1;
    cursor: pointer;
}
.img-thumbnail {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}
.product-intro {
    margin-bottom: 40px;
    line-height: 1.6;
    color: #555;
}
.intro-text {
    font-size: 16px;
}
.detail-block {
    margin-bottom: 40px;
}
.block-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}
.block-content {
    line-height: 1.6;
    color: #555;
}
.material-img {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.specs-table th,
.specs-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.specs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.features-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.features-list li {
    margin-bottom: 8px;
}
.support-btn {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.related-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.related-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-name {
    padding: 15px;
    font-size: 16px;
    margin: 0;
}
.related-name a {
    color: #333;
    text-decoration: none;
}
.related-btn {
    margin: 0 15px 15px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

/* 响应式适配 */
@media (max-width: 991px) {
    .product-detail-wrapper {
        flex-direction: column;
    }
    .product-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .product-title {
        font-size: 24px;
    }
    .block-title {
        font-size: 20px;
    }
    .product-thumbnails {
        flex-wrap: wrap;
    }
    .thumb-item {
        flex: 0 0 30%;
    }
}

/* 两栏布局核心样式 - 无框架依赖 */
.post-container {
    max-width: 1200px; /* 和你网站主宽度保持一致 */
    margin: 30px auto; /* 居中显示 */
    padding: 0 15px;
}

/* 清除浮动：解决子元素浮动导致父容器高度塌陷 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 左侧主内容区 */
.post-main-content {
    width: 70%;
    float: left; /* 左浮动实现分列 */
    padding-right: 2%; /* 和右侧保持间距 */
    box-sizing: border-box; /* 防止 padding 撑破宽度 */
}

/* 右侧侧边栏 */
.post-sidebar {
    width: 28%;
    float: left; /* 左浮动和主内容并排 */
    box-sizing: border-box;
}

/* 侧边栏小部件样式（可选，根据你网站风格调整） */
.post-sidebar .sidebar-widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.post-sidebar .sidebar-widget h3 {
    margin-top: 0;
    color: #2c3e50; /* 和你网站主色调一致 */
    font-size: 18px;
}

/* 移动端适配：屏幕小于 768px 时变回单栏 */
@media (max-width: 767px) {
    .post-main-content,
    .post-sidebar {
        width: 100%;
        float: none;
        padding-right: 0;
    }
    .post-sidebar {
        margin-top: 20px;
    }
}