/*主页样式*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    /* display: flex;
    justify-content: center; */
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

/* 导航栏样式 */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logoone {
    color: #333;
    font-size: 33px;
}


.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.nav-links>li>a:hover {
    color: var(--secondary);
}

/* 下拉菜单样式 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 180px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    overflow: hidden;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px) scale(1);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown li {
    margin: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-links li:hover .dropdown li {
    opacity: 1;
    transform: translateX(0);
}

.nav-links li:hover .dropdown li:nth-child(1) {
    transition-delay: 0.05s;
}

.nav-links li:hover .dropdown li:nth-child(2) {
    transition-delay: 0.1s;
}

.nav-links li:hover .dropdown li:nth-child(3) {
    transition-delay: 0.15s;
}

.nav-links li:hover .dropdown li:nth-child(4) {
    transition-delay: 0.2s;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

.dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--secondary);
    padding-left: 25px;
}

.dropdown a:hover::before {
    transform: scaleY(1);
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* 导航项指示器 */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-links>li:hover .nav-indicator {
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-switcher:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-switcher span {
    margin: 0 5px;
    font-weight: 500;
}

.language-switcher .active {
    color: var(--secondary);
    font-weight: 600;
}

.cta-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 英雄区域样式 - 使用背景图片 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    padding: 0 20px;
    z-index: 2;
    color: white;
    margin-left: 1%;
    /* 文字位置偏左 */
    text-align: left;
    /* 文字左对齐 */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}



/* 动画定义 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 三列图片盒子区域 */
.image-boxes {
    padding: 100px 0;
    background-color: white;
}


.boxes-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.image-box {
    flex: 1.1;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.image-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    z-index: 1;
}

.image-box:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.box-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.image-box:hover .box-image {
    transform: scale(1.05);
}

.box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: white;
    z-index: 2;
}

.box-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.box-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}


/* 产品分类样式 - 全屏样式 */
.product-category {
    padding: 0;
    background-color: var(--light);
}

.category-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* 新增遮罩层样式 */
.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    /* 默认10%不透明度 */
    transition: background-color 0.5s ease;
    z-index: 1;
}

.category-section:hover::before {
    background-color: rgba(0, 0, 0, 0.50);
    /* 悬停时50%不透明度 */
}

/* 背景图片固定在盒子上 */
.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.category-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    max-width: 800px;
    padding: 0 40px;
    margin-left: 5%;
    transition: transform 0.5s ease;
    /* 初始状态 - 隐藏 */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 进入视口后的状态 */
.category-content.in-view {
    opacity: 1;
    transform: translateX(0);
}

.category-section:hover .category-content {
    transform: scale(1.03);
    /* 悬停时内容轻微放大 */
}

.category-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 按钮动画 */
.category-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s, background-color 0.3s;
}

.category-content.in-view .cta-button {
    opacity: 1;
    transform: translateY(0);
}

/* 新增悬停指示器 */
.hover-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.category-section:hover .hover-indicator {
    opacity: 0;
}



/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .boxes-container {
        flex-direction: column;
    }

    .image-box {
        height: 300px;
    }

    .story-content {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
    }

    .category-content h2 {
        font-size: 2rem;
    }

    .category-content p {
        font-size: 1rem;
    }

    .category-content {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }
}

/* 组件加载过渡效果 */
#header-container,
#footer-container {
    transition: opacity 0.3s ease;
}