/* 自定义CSS样式 */

/* 字体设置 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 增加文本间距和粗细的全局样式 */
p {
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* 导航栏样式 */
nav {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    position: relative;
    letter-spacing: 1.2px;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-link {
        padding-bottom: 0;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* 滚动海报样式 */
.slider-container {
    height: 100%;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.slide h2, .slide p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide h2 {
    font-weight: 700;
    letter-spacing: 0.6px;
}

.slide p {
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* 轮播指示器样式 */
.slider-dot {
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.slider-dot:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide img {
        height: 400px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 自定义色彩 */
.bg-doojung {
    background-color: #262626;
}

.text-doojung {
    color: #262626;
}

/* 通用样式 */
.section-padding {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 2rem;
    }
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* 按钮样式 */
.btn-doojung {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-doojung:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card-doojung {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-doojung:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 图文并列部分样式 */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* 图片样式 */
.image-feature {
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 文本内容样式 */
.text-content h2 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .image-feature {
        height: 350px;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* 产品子目录导航样式 */
.product-category {
    transition: all 0.3s ease;
}

.product-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-category img {
    transition: all 0.5s ease;
}

.product-category:hover img {
    transform: scale(1.05);
}

.product-category h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.product-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #333;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* 活动导航链接 */
.nav-link.active {
    position: relative;
    color: #1a202c;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a202c;
}

/* 产品卡片悬停效果 */
.product-item:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* 按钮悬停效果 */
.filter-btn.active {
    background-color: #1a202c;
    color: white;
}

/* 滚动动画 */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* 轮播图指示器 */
.carousel-indicators .active {
    opacity: 1;
    background-color: #1a202c;
}

/* 自定义响应式调整 */
@media (max-width: 768px) {
    .nav-link.active::after {
        bottom: -4px;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
    }
}

/* 页脚链接 */
.footer-link {
    color: #a0aec0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* 表单元素自定义样式 */
input:focus, textarea:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.2);
}

/* 产品过滤按钮组 */
.filter-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

/* 产品图片容器 */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* 产品详情页缩略图 */
.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-thumbnail:hover, .product-thumbnail.active {
    border-color: #1a202c;
}

/* 常见问题样式 */
.faq-button i {
    transition: transform 0.3s ease;
}

.faq-button[aria-expanded="true"] i {
    transform: rotate(45deg);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #1a202c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #1a202c;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 产品分类标签 */
.category-tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 产品详情标签切换 */
.detail-tab {
    cursor: pointer;
    padding: 8px 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.detail-tab.active {
    color: #1a202c;
    border-bottom: 2px solid #1a202c;
}

.detail-content {
    display: none;
}

.detail-content.active {
    display: block;
}

/* 询价表单样式增强 */
.enquiry-form {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 产品计数器 */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background-color: #f7fafc;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 500;
}

/* 消息通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px;
    border-radius: 4px;
    background-color: #1a202c;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

/* 图片放大查看 */
.img-zoom-lens {
    position: absolute;
    border: 1px solid #d4d4d4;
    width: 40px;
    height: 40px;
}

.img-zoom-result {
    border: 1px solid #d4d4d4;
    width: 300px;
    height: 300px;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 10;
    display: none;
}

.img-zoom-container:hover .img-zoom-result {
    display: block;
} 