/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 语言下拉菜单 */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.language-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-name {
    font-size: 0.85rem;
    white-space: nowrap;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    fill: white;
    transition: transform 0.3s ease;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-height: 400px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-search {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.language-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.language-search input:focus {
    border-color: #2a5298;
}

.language-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.language-option:hover {
    background: #f8f9fa;
    border-left-color: #2a5298;
}

.language-option.active {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-left-color: #1e3c72;
}

.language-option.active .lang-english {
    color: rgba(255, 255, 255, 0.8);
}

.lang-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-native {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.lang-english {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

.language-option.hidden {
    display: none;
}

/* 主页轮播图片区域 */
.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

/* 创建FANUC工业风格的背景图片 */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="circuit" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M20 20h60v60h-60z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="20" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="80" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>');
    background-blend-mode: overlay;
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="gear" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="40" cy="40" r="15" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23gear)"/></svg>');
    background-blend-mode: overlay;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="tech" width="60" height="60" patternUnits="userSpaceOnUse"><rect x="10" y="10" width="40" height="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><line x1="30" y1="10" x2="30" y2="50" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><line x1="10" y1="30" x2="50" y2="30" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tech)"/></svg>');
    background-blend-mode: overlay;
}

/* 轮播内容覆盖层 */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    word-wrap: break-word;
}

.carousel-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1rem, 3vw, 3rem);
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

/* 轮播导航点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    /* 移除 overflow: hidden 以允许搜索建议框显示 */
    overflow: visible;
}

/* 产品类别展示区域 */
.categories-section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 2px;
}

.categories-count {
    font-size: 0.6em;
    color: #666;
    font-weight: 400;
    margin-left: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid #2a5298;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.05), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #1e3c72;
}

.category-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: scale(1.1);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #1e3c72;
}

.category-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.category-arrow {
    font-size: 1.5rem;
    color: #2a5298;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.category-card:hover .category-arrow {
    color: #1e3c72;
    transform: translateX(5px);
}

/* 展开更多类别按钮 */
.show-more-categories {
    margin-top: 2rem;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    color: #2a5298;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.show-more-count {
    background: rgba(42, 82, 152, 0.1);
    color: #2a5298;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.show-more-btn:hover .show-more-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.show-more-arrow {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.show-more-arrow.rotated {
    transform: rotate(180deg);
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.search-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-container {
    position: relative;
    flex: 1;
    /* 确保容器不会裁剪子元素 */
    overflow: visible;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 搜索建议样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999; /* 提高z-index确保显示在最上层 */
    display: none;
    /* 确保建议框不会被父容器裁剪 */
    margin-top: 1px;
}

.search-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-model {
    font-weight: 600;
    color: #2a5298;
    font-size: 0.9rem;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.suggestion-match-type {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-suggestions {
    padding: 15px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0 0 14px 14px;
}

/* 确保搜索建议框在所有情况下都能正确显示 */
.search-suggestions[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 为搜索区域添加足够的底部空间 */
.search-section {
    padding-bottom: 2rem;
    /* 确保有足够的空间显示建议框 */
    min-height: 120px;
}

/* 强制确保搜索建议框显示 */
.search-suggestions {
    /* 使用 !important 确保样式不被覆盖 */
    position: absolute !important;
    z-index: 9999 !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    /* 确保建议框有足够的空间 */
    width: 100% !important;
    min-width: 300px !important;
}

/* 确保所有父容器都允许溢出 */
.search-form,
.search-input-container,
.search-section {
    overflow: visible !important;
}

/* 创建新的层叠上下文确保搜索建议显示在最上层 */
.search-input-container {
    z-index: 1000;
    position: relative;
}

/* 确保搜索建议不被任何元素遮挡 */
.search-suggestions[style*="display: block"],
.search-suggestions:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateZ(0); /* 强制硬件加速 */
}

/* 在移动设备上优化搜索建议 */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 250px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        left: -10px !important;
        right: -10px !important;
        border-radius: 0 0 15px 15px;
    }
    
    .search-section {
        overflow: visible !important;
        padding-bottom: 1.5rem;
    }
}

.search-input-container input:focus + .search-suggestions {
    display: block;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 4px 20px rgba(42, 82, 152, 0.15);
    transform: translateY(-2px);
    /* 当显示建议时，调整输入框的下边框 */
    position: relative;
    z-index: 10000; /* 确保输入框在建议框之上 */
}

/* 当搜索建议显示时，调整输入框样式 */
.search-input-container:has(.search-suggestions[style*="display: block"]) .search-form input[type="text"],
.search-input-container .search-suggestions:not([style*="display: none"]) ~ input[type="text"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #e9ecef;
}

.search-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 82, 152, 0.4);
}

/* 结果信息 */
.results-info {
    margin-bottom: 2rem;
    text-align: center;
}

.results-info p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.results-meta {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}

.data-freshness {
    margin-top: 0.5rem;
}

.freshness-info {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

/* 产品网格 - 简化版本 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #2a5298;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.05), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #1e3c72;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 10px;
}

.product-model {
    color: #2a5298;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
    line-height: 1.3;
    word-break: break-word;
}

.product-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.product-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.product-card:hover .product-model {
    color: #1e3c72;
}

.product-id {
    font-size: 0.75rem;
    color: #999;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.product-card .category {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.product-card:hover .category {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    transform: scale(1.05);
}

.product-card .description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-details {
    margin-bottom: 1.5rem;
}

.product-details .specifications {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.available {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status.discontinued {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.status.coming_soon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* WhatsApp按钮 */
.product-actions {
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a {
    padding: 12px 18px;
    background: white;
    color: #2a5298;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.pagination a.active {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-color: #2a5298;
    transform: scale(1.05);
}

.pagination a.pagination-nav {
    padding: 12px 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
}

.pagination a.pagination-nav:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-color: #2a5298;
}

.pagination-ellipsis {
    padding: 12px 8px;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEO分页链接（隐藏但对搜索引擎可见） */
.seo-pagination-links {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.seo-pagination-links a {
    display: block;
    color: #2a5298;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 12px;
    color: #999;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

/* 返回首页按钮 */
.back-to-home-section {
    margin-bottom: 1.5rem;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 82, 152, 0.4);
    color: white;
    text-decoration: none;
}

.home-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

/* 无结果页面 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 搜索建议区域 */
.search-suggestions-section {
    margin-top: 3rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions-section h3 {
    color: #2a5298;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.suggested-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggested-product-card {
    display: block;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggested-product-card:hover {
    border-color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.15);
    text-decoration: none;
    color: inherit;
}

.suggested-model {
    font-weight: 600;
    color: #2a5298;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.suggested-category {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.suggested-match {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.loading-suggestions {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-suggestions, .error-suggestions {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* 底部 */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }

    .carousel-stats {
        gap: 2rem;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* 响应式设计 - 手机横屏 */
@media (max-width: 768px) {

    /* 头部优化 */
    header {
        padding: 0.8rem 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .language-dropdown-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .lang-name {
        font-size: 0.8rem;
    }

    .language-dropdown-menu {
        min-width: 260px;
        right: -10px;
    }

    /* 轮播图优化 */
    .hero-carousel {
        height: 400px;
        margin-bottom: 2rem;
    }

    .carousel-content {
        padding: 0 15px;
        max-width: 95%;
    }

    .carousel-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .carousel-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.8rem;
        line-height: 1.3;
    }

    .carousel-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .stat-item {
        padding: 0.8rem 0.4rem;
        min-width: 100px;
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.18);
    }

    .stat-number {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
        line-height: 1.2;
    }

    /* 搜索区域优化 */
    .search-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* 类别区域优化 */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }

    .category-card {
        padding: 1.2rem;
    }

    .category-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin-right: 1.2rem;
    }

    .category-name {
        font-size: 1.1rem;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }

    .search-form input[type="text"] {
        padding: 12px 18px;
        font-size: 16px;
        /* 防止iOS缩放 */
    }

    .search-form button {
        padding: 12px 25px;
        font-size: 16px;
    }

    /* 产品网格优化 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-card {
        padding: 1.2rem;
    }

    .product-model {
        font-size: 1.1rem;
    }

    .product-id {
        font-size: 0.7rem;
    }

    .whatsapp-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .whatsapp-icon {
        width: 14px;
        height: 14px;
    }

    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 2rem;
    }

    .pagination a {
        padding: 10px 14px;
        font-size: 0.9rem;
        min-width: 40px;
    }

    .pagination a.pagination-nav {
        padding: 10px 18px;
    }

    .pagination-ellipsis {
        padding: 10px 6px;
        font-size: 0.9rem;
    }

    /* 面包屑优化 */
    .breadcrumb-list {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
    }

    /* 返回按钮优化 */
    .back-to-home-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .home-icon {
        width: 14px;
        height: 14px;
    }
}

/* 响应式设计 - 手机竖屏 */
@media (max-width: 480px) {

    /* 基础布局 */
    .container {
        padding: 0 12px;
    }

    /* 头部进一步优化 */
    header {
        padding: 0.6rem 0;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .language-dropdown-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .lang-name {
        display: none;
    }

    .language-dropdown-menu {
        min-width: 240px;
        right: -20px;
    }

    .language-option {
        padding: 8px 12px;
    }

    .lang-native {
        font-size: 0.85rem;
    }

    .lang-english {
        font-size: 0.7rem;
    }

    /* 轮播图小屏优化 */
    .hero-carousel {
        height: 320px;
        margin-bottom: 1.5rem;
    }

    .carousel-content {
        padding: 0 12px;
        max-width: 100%;
    }

    .carousel-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .carousel-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        max-width: 90%;
    }

    .carousel-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0.8rem;
        max-width: 280px;
        margin: 0 auto;
    }

    .stat-item {
        padding: 0.7rem 0.5rem;
        min-width: auto;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(25px);
    }

    .stat-number {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
        line-height: 1.1;
    }

    /* 搜索区域小屏优化 */
    .search-section {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    /* 类别区域小屏优化 */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .category-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .category-count {
        font-size: 0.85rem;
    }

    .category-arrow {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* 展开按钮移动端优化 */
    .show-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .show-more-count {
        font-size: 0.75rem;
        padding: 1px 6px;
    }

    .show-more-arrow {
        width: 14px;
        height: 14px;
    }

    .search-form input[type="text"] {
        padding: 14px 16px;
        font-size: 16px;
        /* 防止iOS缩放 */
        border-radius: 20px;
    }

    .search-form button {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 20px;
    }

    /* 产品卡片小屏优化 */
    .product-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .product-header {
        margin-bottom: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .product-model {
        font-size: 1rem;
    }

    .product-id {
        font-size: 0.65rem;
        align-self: flex-end;
    }

    .product-card .category {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .product-card .description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .product-details p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .whatsapp-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
        gap: 5px;
        border-radius: 20px;
    }

    .whatsapp-icon {
        width: 12px;
        height: 12px;
    }

    /* 分页小屏优化 */
    .pagination {
        gap: 4px;
        margin-top: 2rem;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        min-width: 36px;
    }

    .pagination a.pagination-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .pagination-ellipsis {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    /* 面包屑小屏优化 */
    .breadcrumb-list {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
        font-size: 0.9rem;
    }

    /* 返回按钮小屏优化 */
    .back-to-home-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
        border-radius: 20px;
    }

    .home-icon {
        width: 12px;
        height: 12px;
    }

    /* 结果信息优化 */
    .results-info p {
        font-size: 1rem;
    }

    /* 无结果页面优化 */
    .no-results {
        padding: 2rem 1rem;
    }

    .no-results p {
        font-size: 1rem;
    }
}

/* 超小屏设备优化 */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-carousel {
        height: 250px;
    }

    .carousel-title {
        font-size: 1.4rem;
    }

    .search-section {
        padding: 1rem;
    }

    .product-card {
        padding: 0.8rem;
    }

    .whatsapp-btn {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {

    /* 增加触摸目标大小 */
    .language-switcher a,
    .search-form button,
    .whatsapp-btn,
    .back-to-home-btn,
    .pagination a,
    .carousel-dot {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除悬停效果，使用点击效果 */
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .whatsapp-btn:active,
    .back-to-home-btn:active,
    .search-form button:active {
        transform: scale(0.95);
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-carousel {
        height: 250px;
    }

    .carousel-stats {
        flex-direction: row;
        gap: 1.5rem;
    }

    .stat-item {
        flex: 1;
    }
}

/* RTL语言支持 */
[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-option {
    flex-direction: row-reverse;
    text-align: right;
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .language-option:hover {
    border-right-color: #2a5298;
    border-left-color: transparent;
}

[dir="rtl"] .language-option.active {
    border-right-color: #1e3c72;
    border-left-color: transparent;
}

[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: '‹';
}

[dir="rtl"] .search-form {
    direction: rtl;
}

[dir="rtl"] .product-card {
    border-left: none;
    border-right: 4px solid #2a5298;
}

[dir="rtl"] .product-card:hover {
    border-right-color: #1e3c72;
}

[dir="rtl"] .current-language {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .language-dropdown.open .dropdown-arrow {
    transform: scaleX(-1) rotate(180deg);
}

/* 打印样式 */
@media print {

    .page-loader,
    .hero-carousel,
    .search-section,
    .pagination,
    .whatsapp-btn,
    .back-to-home-btn {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}
