:root {
    --primary-bg: #0a0c0f;
    --secondary-bg: #101215;
    --accent-color: #00e6c7;
    --accent-color-rgb: 0, 230, 199;
    --accent-color-light: #4dffdb;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover-bg: rgba(255, 255, 255, 0.03);
    --header-bg: var(--primary-bg);
    --glow-color: rgba(0, 230, 199, 0.3);
}

body {
    background: var(--primary-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 确保主内容区域使用深色背景 */
.product-detail-page {
    background-color: var(--primary-bg);
}

/* 导航栏样式 */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--card-hover-bg);
    color: var(--accent-color);
}

/* 页面头部样式调整 */
.product-header {
    padding: 6rem 0 6rem; /* 增加上下边距 */
    background-color: var(--primary-bg); /* 深黑色背景，与图片一致 */
    text-align: center; /* 文本居中 */
}

.product-header .product-title {
    font-size: 3.5rem; /* 稍微调大标题字号 */
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff; /* 白色标题 */
    position: relative;
    display: inline-block;
}

.product-header .product-subtitle {
    color: #00e6c7; /* 青色/蓝绿色副标题，与图片一致 */
    font-size: 1.5rem; /* 稍微调大副标题字号 */
    margin-bottom: 2rem;
}

.product-description {
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* 主要内容区块统一样式 */
.product-overview,
.product-features,
.product-specs,
.product-innovations,
.product-applications {
    background-color: var(--primary-bg); /* 统一使用主背景色 */
    /* py-5 已在HTML中定义，如果需要调整padding可以在这里覆盖 */
}

/* 确保这些区块内的标题和文本在深色背景下可读 */
.product-overview .section-title-small,
.product-features .section-title,
.product-specs .section-title,
.product-innovations .section-title,
.product-applications .section-title {
     color: var(--text-primary); /* 主要文本使用白色 */
}

.product-overview p,
.product-features .feature-card h5,
.product-features .feature-card p,
.product-innovations .innovation-card h5,
.product-innovations .innovation-card p,
.product-applications .application-item p {
    color: var(--text-secondary); /* 默认段落文字颜色 */
}

/* 如果有明确使用 .text-primary 或 .text-secondary 的地方，确保它们符合主题 */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* 规格卡片样式 - 现在是产品规格表格*/
.specs-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-bg); /* 确保规格区域背景统一 */
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* 新的产品规格卡片样式 */
.product-specs .spec-item-card {
    background-color: #101215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.product-specs .spec-item-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.10);
}

.product-specs .spec-item-name {
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-specs .spec-item-value {
    font-size: 0.97rem;
    color: #cccccc !important;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    flex: 1 1 auto;
    display: block;
}

/* 联系卡片样式 */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 120px;
    transition: all 0.3s ease;
    margin-top: 4.5rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 230, 199, 0.15);
    transform: translateY(-5px);
}

.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-method {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 1rem;
    color: var(--accent-color);
}

.btn-contact {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--accent-color-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* 导航栏折叠按钮样式 */
.navbar-toggler {
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #00b3ff);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 230, 199, 0.3);
}

.navbar-toggler:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 199, 0.4);
    background: linear-gradient(135deg, #00b3ff, var(--accent-color));
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px var(--glow-color);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.75em;
    height: 1.75em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 产品型号系列样式 */
.product-images {
    margin-bottom: 5rem;
}

.model-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.model-image-container {
    margin-bottom: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.model-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.model-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.model-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.model-download {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-top: auto;
}

.model-download:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.model-download i {
    margin-right: 0.5rem;
}

@media (max-width: 992px) {
    .contact-card {
        position: static;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .spec-card {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-collapse {
        background: var(--secondary-bg);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.75rem;
        border: 1px solid var(--accent-color);
        box-shadow: 0 4px 20px rgba(0, 230, 199, 0.15);
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem !important;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(0, 230, 199, 0.1);
    }

    .dropdown-menu {
        background: var(--primary-bg);
        border: 1px solid var(--accent-color);
        padding: 0.75rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .dropdown-item {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        border-radius: 6px;
        margin: 0.25rem 0;
    }

    .product-header {
        padding: 6rem 0 2rem;
    }

    .model-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .model-image-container {
        min-height: 160px;
    }

    .model-title {
        font-size: 1.25rem;
    }

    .model-desc {
        font-size: 0.9rem;
    }

    .product-specs .spec-item-card {
        padding: 1rem 0.7rem 0.9rem 0.7rem;
        border-radius: 8px;
        min-height: 80px;
    }

    .product-specs .spec-item-name {
        font-size: 0.98rem;
    }

    .product-specs .spec-item-value {
        font-size: 0.89rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.75rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .spec-card {
        padding: 1rem;
    }

    .spec-title {
        font-size: 1.1rem;
    }

    .spec-list li {
        font-size: 0.9rem;
    }

    .contact-method {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn-contact {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-toggler {
        padding: 0.75rem;
        margin-right: 0.25rem;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem !important;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
    }

    .model-card {
        padding: 1.25rem;
    }

    .model-image-container {
        min-height: 140px;
    }

    .model-download {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 产品轮播图样式调整 */
/* #productImageCarousel { */
    /* background-color: var(--primary-bg); */ /* 之前为解决色差添加，现在可以移除或观察是否仍需要 */
/* } */

/* #productImageCarousel .carousel-inner { */
    /* padding-left: 15%; */ /* Coverflow效果 */
    /* padding-right: 15%; */ /* Coverflow效果 */
    /* background-color: transparent; */ /* 之前为解决色差添加 */
/* } */

/* #productImageCarousel .carousel-item { */
    /* transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; */ /* Coverflow效果 */
/* } */

/* #productImageCarousel .carousel-item:not(.active) { */
    /* opacity: 0.5; */ /* Coverflow效果 */
    /* transform: scale(0.85); */ /* Coverflow效果 */
/* } */

/* #productImageCarousel .carousel-item.active { */
    /* opacity: 1; */
    /* transform: scale(1); */
    /* z-index: 1; */
/* } */

/* 调整轮播控制箭头的位置 - 恢复Bootstrap默认或根据新布局微调 */
/* #productImageCarousel .carousel-control-prev { */
    /* left: 8%; */ /* Coverflow效果 */
    /* z-index: 2; */
/* } */

/* #productImageCarousel .carousel-control-next { */
    /* right: 8%; */ /* Coverflow效果 */
    /* z-index: 2; */
/* } */

/* 确保轮播指示点在最下方且居中 - 恢复Bootstrap默认或根据新布局微调 */
/* #productImageCarousel .carousel-indicators { */
    /* position: absolute; */
    /* right: 0; */
    /* bottom: -25px; */
    /* left: 0; */
    /* z-index: 2; */
    /* display: flex; */
    /* justify-content: center; */
    /* padding: 0; */
    /* margin-right: 15%; */ /* Coverflow效果 */
    /* margin-bottom: 1rem; */
    /* margin-left: 15%; */ /* Coverflow效果 */
    /* list-style: none; */
/* } */

/* #productImageCarousel .carousel-indicators [data-bs-target] { */
    /* box-sizing: content-box; */
    /* flex: 0 1 auto; */
    /* width: 30px; */
    /* height: 3px; */
    /* padding: 0; */
    /* margin-right: 3px; */
    /* margin-left: 3px; */
    /* text-indent: -999px; */
    /* cursor: pointer; */
    /* background-color: #fff; */
    /* background-clip: padding-box; */
    /* border: 0; */
    /* border-top: 10px solid transparent; */
    /* border-bottom: 10px solid transparent; */
    /* opacity: .5; */
    /* transition: opacity .6s ease; */
/* } */

/* #productImageCarousel .carousel-indicators .active { */
    /* opacity: 1; */
/* } */

/* 为轮播图中的图片本身添加圆角和阴影 */
#productImageCarousel .product-image {
    border-radius: 8px; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.10) !important; 
}

/* 产品下载区域样式 */
.product-downloads {
    background-color: var(--secondary-bg); /* 使用次级深色背景，与产品规格卡片背景区分 */
}

.download-category-card {
    background-color: var(--card-bg); /* 使用定义的卡片背景色 */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.download-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.1);
}

.download-category-title {
    color: var(--accent-color);
    font-size: 1.1rem; /* 调整标题大小 */
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.download-category-title i {
    font-size: 1.2em; /* 图标稍大一些 */
    margin-right: 0.6rem;
}

.download-list {
    margin-top: auto; /* 将列表推到底部，如果卡片高度不一时有用 */
}

.download-list li {
    margin-bottom: 0.5rem;
}

.download-list li:last-child {
    margin-bottom: 0;
}

.download-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
    display: inline-block; /* 确保可以应用padding等 */
    padding: 0.25rem 0;
}

.download-link:hover {
    color: var(--accent-color-light);
    text-decoration: underline;
}

/* 支持和资源卡片美化 */
.download-card {
    background-color: #181A1D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.35);
    transform: translateY(-2px) scale(1.02);
}

.download-card h5 {
    color: #ffffff;
    font-size: 1.1rem;
}

.download-card .text-secondary {
    color: #cccccc !important;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.download-card .fa-file-pdf {
    color: #dc3545;
}

.download-card .btn-outline-primary {
    color: #00ffcc;
    border-color: #00ffcc;
    transition: all 0.3s ease;
}

.download-card .btn-outline-primary:hover {
    background-color: #00ffcc;
    color: #181A1D;
    border-color: #00ffcc;
}

.download-card .btn-outline-primary i {
    color: #00ffcc;
    transition: color 0.3s ease;
}

.download-card .btn-outline-primary:hover i {
    color: #181A1D;
}

/* 卡片间距适配深色背景 */
.product-downloads .row {
    gap: 2rem 0;
}

/* 标题下划线高亮色适配 */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00e6b8 0%, #00bfff 100%);
    border-radius: 2px;
    margin: 16px auto 0 auto;
}

/* 产品概览大卡片样式 */
.overview-card {
    background: #101215;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
    padding: 2.5rem 2rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
@media (max-width: 768px) {
    .overview-card {
        padding: 1.2rem 0.5rem;
        border-radius: 12px;
    }
}

.product-innovations .row {
    align-items: stretch;
}
.innovation-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.innovation-card h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    min-height: 2.5rem;
    font-size: 1.35rem;
}
.innovation-card h5 i {
    font-size: 1.7rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
    line-height: 1;
}

.product-specs .spec-item-card {
    background-color: #101215; /* 比主背景略浅 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    height: 100%; /* 保证卡片高度一致 */
    display: flex;
    flex-direction: column;
}

.product-specs .spec-item-name {
    font-size: 1rem;
    font-weight: bold;
    color: #cccccc; /* 浅灰色文字 */
    margin-bottom: 0.5rem;
}

.product-specs .spec-item-value {
    font-size: 1.1rem;
    color: #00ffcc; /* 主题绿色 */
    flex-grow: 1; /* 让值占据剩余空间 */
    display: flex;
    align-items: center; /* 垂直居中 */
}

.product-innovations .innovation-card {
    background-color: #101215; /* 比主背景略浅 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    height: 100%; /* 保证卡片高度一致 */
}

.innovation-card h5 {
    display: flex;
    align-items: center; /* 垂直居中 */
    color: #00ffcc; /* 主题绿色 */
    margin-bottom: 1rem;
    font-size: 1.25rem;
    min-height: 36px; /* 保证标题行高度一致 */
}

.innovation-card h5 i {
    color: #00ffcc; /* 图标颜色与主题色一致 */
    margin-right: 10px;
}

.innovation-card p {
    color: #cccccc; /* 浅灰色文字 */
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-applications .application-item {
    background-color: #101215; /* 比主背景略浅 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    height: 100%; /* 保证卡片高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #cccccc; /* 浅灰色文字 */
}

.product-applications .application-item i {
    color: #00ffcc; /* 主题绿色图标 */
    margin-bottom: 0.8rem;
}

.product-applications .application-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* 联系销售区域样式 */
.product-detail-page #contact-sales {
    background-color: #101215;
    color: #fff;
    padding: 4rem 0;
}

.product-detail-page #contact-sales h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-detail-page #contact-sales p {
    color: #cccccc;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.product-detail-page #contact-sales .btn-light {
    color: var(--accent-color);
    background-color: #181A1D;
    border-color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-detail-page #contact-sales .btn-light:hover {
    background-color: var(--accent-color);
    color: #101215;
    border-color: var(--accent-color);
} 