/**
 * LANTES Japan - 产品页面样式
 * 按照参考图片重新设计的样式
 */

/* === 搜索头部区域 === */
.search-header {
    background: linear-gradient(135deg, #4c73b5 0%, #3a5998 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 80px; /* 为导航栏预留空间 */
}

.search-wrapper {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-icon {
    font-size: 4rem;
    margin-right: 2rem;
    opacity: 0.9;
}

.search-content {
    flex: 1;
}

.search-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.search-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* === 搜索标签页 === */
.search-tabs-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tab-buttons {
    display: flex;
    border-bottom: none;
}

.tab-btn {
    background: #e9ecef;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 2px;
}

.tab-btn:first-child {
    border-radius: 8px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 8px 0 0;
    margin-right: 0;
}

.tab-btn.active {
    background: white;
    color: #4c73b5;
    font-weight: 600;
}

.tab-btn:hover:not(.active) {
    background: #dee2e6;
    color: #343a40;
}

/* === 标签页内容 === */
.tab-content {
    padding: 3rem 0;
    min-height: 500px;
}

/* === 商品网格样式 === */
.products-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #4c73b5;
}

.product-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-card .card-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* === 用途リスト样式 === */
.usage-lists {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.usage-category {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li {
    margin-bottom: 0.75rem;
}

.usage-list a {
    display: flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.usage-list a:hover {
    color: #4c73b5;
    padding-left: 0.5rem;
    border-bottom-color: #e9ecef;
}

.usage-list a i {
    color: #4c73b5;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.usage-list a:hover i {
    transform: translateX(3px);
}

/* === 詳細検索エリア === */
#detailed-search {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box .input-group-text {
    border: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-box .btn-primary {
    border: none;
    padding: 0.75rem 2rem;
    background: #4c73b5;
    font-weight: 600;
}

.search-box .btn-primary:hover {
    background: #3a5998;
}

/* === 検索結果エリア === */
#search-results {
    background: white;
}

.results-header {
    text-align: center;
}

.results-title {
    color: #4c73b5;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* === お問い合わせ促進エリア === */
#inquiry-section {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.inquiry-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.inquiry-card h3 {
    color: #4c73b5;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.inquiry-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

.inquiry-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.inquiry-buttons .btn {
    font-weight: 600;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.inquiry-buttons .btn-primary {
    background: #4c73b5;
    border-color: #4c73b5;
}

.inquiry-buttons .btn-primary:hover {
    background: #3a5998;
    border-color: #3a5998;
    transform: translateY(-2px);
}

.inquiry-buttons .btn-outline-primary {
    color: #4c73b5;
    border-color: #4c73b5;
}

.inquiry-buttons .btn-outline-primary:hover {
    background: #4c73b5;
    border-color: #4c73b5;
    transform: translateY(-2px);
}

/* === 響應式設計 === */
@media (max-width: 991.98px) {
    .search-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .search-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 3rem;
    }
    
    .search-title {
        font-size: 1.6rem;
    }
    
    .tabs-container {
        padding: 0 1rem;
    }
    
    .usage-lists {
        padding: 1rem;
    }
    
    .inquiry-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .search-header {
        padding: 1.5rem 0;
    }
    
    .search-title {
        font-size: 1.4rem;
    }
    
    .search-subtitle {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-card .card-img-top {
        height: 100px;
    }
    
    .product-card .card-title {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .usage-category {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .usage-list a {
        font-size: 0.9rem;
    }
    
    .inquiry-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .inquiry-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .search-box .input-group {
        border-radius: 8px;
    }
}

@media (max-width: 575.98px) {
    .search-wrapper {
        padding: 0 0.5rem;
    }
    
    .search-icon {
        font-size: 2.5rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .usage-lists {
        padding: 0.5rem;
    }
    
    .product-card .card-img-top {
        height: 80px;
    }
    
    .inquiry-card {
        padding: 1.5rem 1rem;
    }
    
    .inquiry-card h3 {
        font-size: 1.3rem;
    }
}

/* === アニメーション === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    animation: fadeInUp 0.5s ease;
}

/* === アクセシビリティ === */
.tab-btn:focus {
    outline: 2px solid #4c73b5;
    outline-offset: 2px;
}

.product-card:focus {
    outline: 2px solid #4c73b5;
    outline-offset: 2px;
}

.usage-list a:focus {
    outline: 2px solid #4c73b5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 新增产品分类标题样式 */
.product-category-section .category-title {
    font-size: 1.8rem; /* 调整标题大小 */
    font-weight: 600;
    color: var(--primary-dark, #34548c);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color, #4A6FA5);
    display: inline-block; /* 让边框只包裹文本内容 */
    margin-bottom: 1.5rem; /* 调整标题和下方内容的间距 */
} 