/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

/* 语言切换样式 */
.language-switcher {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.language-group {
    display: flex;
}

/* 竖排语言组 */
.language-group.vertical {
    flex-direction: row;
    gap:15px;
}

/* 竖排语言链接 */
.language-group.vertical a {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 30px;
    height:105px;
    padding: 0 5px 5px 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;letter-spacing:8px;text-indent:0.5em;
    text-align: left;
}

/* 横排语言组 */
.language-group.horizontal {
    flex-direction: column;
    gap: 8px;
}

/* 语言行 */
.language-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 语言链接样式 */
.language-switcher a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    white-space: nowrap;font-size: 15px;letter-spacing:0px;line-height: 2.4;
}

.language-switcher a:hover, .language-switcher a.active {
    background-color: #555;
}

/* 导航样式 */
nav {
    background-color: #f8f8f8;
    padding: 10px 0;
    margin-bottom: 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #e0e0e0;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #333;
}

.search-btn {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn:hover {
    background-color: #555;
}

.search-btn i {
    font-size: 12px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

/* 搜索结果页面样式 */
.search-result-section {
    margin-bottom: 40px;
}

.search-result-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* 错误信息样式 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ef5350;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.error-message i {
    font-size: 18px;
}

/* 搜索提示样式 */
.search-tips {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #2196f3;
    margin-bottom: 20px;
}

.search-tips h3 {
    margin-bottom: 15px;
    color: #0d47a1;
}

.search-tips ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.search-tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 搜索介绍样式 */
.search-intro {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 首页样式 */
.home-section {
    margin-bottom: 40px;
}

.home-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #999;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

/* 产品详情页样式 */
.product-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.carousel {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #999;
    margin-bottom: 20px;
}

.product-info {
    padding: 20px;
}

.product-info h1 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.product-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.product-info .label {
    font-weight: bold;
    color: #555;
}

.read-manual-btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.read-manual-btn:hover {
    background-color: #555;
}

/* 背景介绍 */
.background-intro {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.background-intro h2 {
    margin-bottom: 15px;
    color: #333;
}

.background-content p {
    text-indent: 2em !important; /* 首行缩进2个字符，使用!important确保生效 */
    margin-bottom: 1em; /* 段后距设置为1个字符高度 */
    line-height: 1.8;
    color: #333;
    text-align: justify;
    display: block;
}

/* 相关产品 */
.related-products {
    margin-bottom: 40px;
}

.related-products h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* 列表页样式 */
.product-list {
    margin-bottom: 40px;
}

.product-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.product-item:hover {
    background-color: #f8f8f8;
}

.product-item-image {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #999;
}

.product-item-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-item-info p {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

/* 说明书阅读页样式 */
.manual-reader {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    position: relative;
}

.manual-reader h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.manual-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.manual-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.manual-content table, .manual-content th, .manual-content td {
    border: 1px solid #ddd;
}

.manual-content th, .manual-content td {
    padding: 8px;
    text-align: left;
}

.manual-content th {
    background-color: #f2f2f2;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
}

/* 轮播图样式 */
.carousel-container {
    width: 1200px !important;
    max-width: 1200px !important;
    height: 300px !important;
    margin: 0 auto 20px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    min-height: 300px !important;
    max-height: 300px !important;
    background-color: #f0f0f0 !important;
}

.carousel-wrapper {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}



.carousel-item:first-child {
    display: block !important;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    min-height: 300px !important;
    max-height: 300px !important;
    /* 兼容旧浏览器的图片显示方式 */
    -o-object-fit: cover !important;
    object-fit: cover !important;
    -o-object-position: center !important;
    object-position: center !important;
    /* 针对IE浏览器的备选方案 */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* 轮播图控制按钮 */
.carousel-control {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: background-color 0.3s ease !important;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.carousel-control.prev {
    left: 20px !important;
}

.carousel-control.next {
    right: 20px !important;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 10 !important;
}

.indicator {
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.indicator.active {
    background-color: white !important;
    width: 30px !important;
    border-radius: 6px !important;
}

.carousel-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    padding: 15px !important;
    text-align: center !important;
}

.carousel-caption h3 {
    margin-bottom: 8px !important;
    font-size: 1.2em !important;
}

.carousel-caption p {
    margin: 0 !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
}

.carousel-placeholder {
    width: 100% !important;
    height: 300px !important;
    background-color: #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2em !important;
    color: #999 !important;
    min-height: 300px !important;
    max-height: 300px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-item {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-container,
    .carousel-item,
    .carousel-item img,
    .carousel-placeholder {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .carousel-caption {
        padding: 15px !important;
    }
    
    .carousel-caption h3 {
        font-size: 1.2em !important;
    }
    
    .carousel-caption p {
        font-size: 0.9em !important;
    }
}