:root {
    --primary-color: #2A3B4C;
    --secondary-color: #333333;
    --light-gray: #F5F7FA;
    --metal-silver: #E0E0E0;
    --accent-red: #E63946;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏半透明样式 */
.navbar-dark.bg-primary {
    background-color: rgba(42, 59, 76, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-dark.bg-primary.scrolled {
    background-color: rgba(42, 59, 76, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* 导航菜单样式 */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 15px;
    position: relative;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-weight: 600;
}

/* 响应式导航 */
@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
}

/* 企业优势栏目样式 */
.advantages-section {
    background-color: #fff;
}

.advantage-item {
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    transition: transform 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-item h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.advantage-item p {
    margin-bottom: 0;
}

/* 产品中心页面样式 */
.category-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.category-sidebar h5 {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.category-list {
    margin: 0;
    padding: 0;
}

.category-item {
    list-style: none;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background-color: rgba(42, 59, 76, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.product-grid {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.main-content {
    padding-top: 56px;
    min-height: calc(100vh - 56px);
}

/* 首页 banner 区域不需要 padding-top，让导航栏覆盖在 banner 上 */
body.home-page .main-content {
    padding-top: 0;
}

/* Banner 区域样式 */
.banner-section {
    margin-top: 0;
    position: relative;
}

.banner-section .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.product-card, .news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header[style*="background-image"] {
    background: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 59, 76, 0.75) 0%, rgba(51, 51, 51, 0.6) 100%);
    z-index: 0;
}

.page-header[style*="background-image"] > .container {
    position: relative;
    z-index: 1;
}

.footer {
    background-color: var(--primary-color) !important;
}

.category-filter .btn {
    margin-bottom: 10px;
}

.company-content, .product-content, .article-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.company-content h2, .product-content h2, .article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5em;
}

.company-content h3, .product-content h3, .article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.25em;
    margin-bottom: 0.6em;
}

.company-content h4, .product-content h4, .article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.company-content p, .product-content p, .article-content p {
    margin-bottom: 1em;
}

.company-content ul, .product-content ul, .article-content ul,
.company-content ol, .product-content ol, .article-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.company-content li, .product-content li, .article-content li {
    margin-bottom: 0.4em;
}

.company-content strong, .product-content strong, .article-content strong {
    font-weight: 600;
}

.company-content em, .product-content em, .article-content em {
    font-style: italic;
}

.company-content a, .product-content a, .article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-content a:hover, .product-content a:hover, .article-content a:hover {
    color: var(--accent-red);
}

.company-content blockquote, .product-content blockquote, .article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 10px 20px;
    margin: 1em 0;
    background-color: var(--light-gray);
    color: #555;
    border-radius: 0 4px 4px 0;
}

.company-content img, .product-content img, .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.75em 0;
}

.company-content figure, .product-content figure, .article-content figure {
    margin: 1em 0;
    text-align: center;
}

.company-content figcaption, .product-content figcaption, .article-content figcaption {
    font-size: 0.875rem;
    color: #888;
    margin-top: 0.5em;
}

.company-content table, .product-content table, .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 0.938rem;
}

.company-content table th, .product-content table th, .article-content table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.company-content table td, .product-content table td, .article-content table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
}

.company-content table tr:nth-child(even) td,
.product-content table tr:nth-child(even) td,
.article-content table tr:nth-child(even) td {
    background-color: #fafafa;
}

.company-content table tr:hover td,
.product-content table tr:hover td,
.article-content table tr:hover td {
    background-color: var(--light-gray);
}

.company-content hr, .product-content hr, .article-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5em 0;
}

.company-content pre, .product-content pre, .article-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.875rem;
    margin-bottom: 1em;
}

.company-content code, .product-content code, .article-content code {
    background-color: #f0f0f0;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

.company-content pre code, .product-content pre code, .article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.params-content {
    line-height: 1.8;
    font-size: 15px;
}

.params-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.938rem;
}

.params-content table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.params-content table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
}

.params-content table tr:nth-child(even) td {
    background-color: #fafafa;
}

.params-content ul, .params-content ol {
    padding-left: 2em;
    margin-bottom: 0.5em;
}

.params-content li {
    margin-bottom: 0.3em;
}

@media (max-width: 768px) {
    .banner-section .swiper-slide img {
        max-height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
