:root {
    /* 主色调 */
    --primary-color: #6366f1;  /* 靛蓝色 */
    --secondary-color: #8b5cf6;  /* 紫色 */
    --accent-1: #ec4899;  /* 粉色 */
    --accent-2: #14b8a6;  /* 青色 */
    --accent-3: #f59e0b;  /* 橙色 */
    --text-color: #0f172a;
    --light-text: #475569;
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --nav-bg: linear-gradient(to right, #2563eb, #3b82f6);  /* 渐变蓝色导航背景 */
    --nav-text: #ffffff;  /* 导航文字颜色 */
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
    --gradient-4: linear-gradient(-45deg, #f59e0b, #ec4899, #6366f1, #14b8a6);
    --box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    --border-radius: 16px;
    scroll-behavior: smooth;
}

/* 添加字体声明 */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-85-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

/* 背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-4);
    background-size: 400% 400%;
    opacity: 0.05;
    animation: gradient 15s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 头部样式 */
header {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* 导航栏样式 */
nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease-in-out;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--nav-text);
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* 内容区域样式 */
section {
    padding: 4rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-4);
    background-size: 300% 300%;
    animation: gradient 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 产品卡片样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--gradient-4);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    animation: glow 2s infinite;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* 新闻列表样式 */
.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: var(--bg-color);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.news-item:nth-child(3n+1):hover {
    border-color: var(--accent-1);
}

.news-item:nth-child(3n+2):hover {
    border-color: var(--accent-2);
}

.news-item:nth-child(3n+3):hover {
    border-color: var(--accent-3);
}

/* 联系方式样式 */
#contact {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin: 2rem auto;
}

#contactInfo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

#contactInfo p {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 2rem;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

#contactInfo p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-3);
}

/* 轮播图样式 */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slider-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: var(--bg-color);
    max-width: 800px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.slider-item.active .slider-content {
    transform: translateY(0);
    opacity: 1;
}

.slider-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-4);
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.slider-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(8px);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 添加滑入动画 */
@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slider-item.active .slider-content {
    animation: slideIn 0.8s ease-out forwards;
}

/* 动画效果 */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
    100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 0;
        flex-direction: column;
        gap: 0;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        height: 0;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 1rem;
        gap: 1rem;
        height: auto;
    }

    .nav-links a {
        padding: 1rem;
        border-left: 4px solid transparent;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:hover {
        border-left-color: var(--accent-1);
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }

    /* 移除这些禁用轮播图的样式 */
    /* .slider-container,
    .slider-controls {
        display: none;
    } */

    /* 移除这个显示移动端头部的样式 */
    /* .mobile-header {
        display: block;
    } */

    header {
        height: 400px;  /* 调整移动端轮播图高度 */
    }

    /* 调整移动端轮播图文字大小 */
    .slider-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slider-content p {
        font-size: 1rem;
        max-width: 90%;
    }

    .slider-controls {
        bottom: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-4);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    border-radius: 4px;
}

/* 添加滚动动画相关样式 */
.scroll-padding {
    scroll-padding-top: 80px; /* 导航栏的高度，防止锚点内容被导航栏遮挡 */
}

/* 添加滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, 
        var(--primary-color) var(--scroll), 
        transparent 0);
    z-index: 1001;
}

/* 更新产品卡片样式 */
.product-description p {
    margin-bottom: 0.5rem;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* 更新新闻内容样式 */
.news-content p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.news-content p:last-child {
    margin-bottom: 0;
}

/* 更新公司描述样式 */
#companyDescription p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#companyDescription p:last-child {
    margin-bottom: 0;
}

.news-date {
    color: var(--light-text);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* 添加 logo 样式 */
.logo {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 1;
    white-space: nowrap;  /* 防止换行 */
    flex: 1;  /* 让 logo 占据更多空间 */
    margin-right: 2rem;  /* 与菜单按钮保持一定距离 */
}

@media (max-width: 768px) {
    .logo {
        font-size: clamp(1.0rem, 5.0vw, 2.0rem);  /* 增加字体大小范围 */
        flex: 1;  /* 占据剩余空间 */
    }

    .nav-container {
        gap: 1rem;  /* 增加间距 */
    }
}

/* 添加页面特定样式 */
.home-intro {
    text-align: center;
    padding: 4rem 1rem;
}

/* 招聘页面样式 */
.join-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
    padding: 0 1rem;
}

.jobs-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.jobs-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.jobs-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    min-width: 150px;
}

.jobs-list {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0;  /* 改为左对齐，移除auto */
    padding: 0;  /* 移除左右内边距 */
}

.job-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.job-salary {
    color: var(--accent-1);
    font-weight: 600;
}

.job-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-info span {
    background: var(--card-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.job-content h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-color);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.apply-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

@media (max-width: 768px) {
    .jobs-filter {
        flex-direction: column;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-info {
        gap: 0.5rem;
    }
}

/* 地图链接样式 */
.map-link {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.map-icon {
    margin-right: 0.5rem;
}

/* 在移动端调整地图链接样式 */
@media (max-width: 768px) {
    #contactInfo p {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-link {
        margin: 0.5rem 0 0 0;
    }
}

/* 更新联系信息中的地图链接样式 */
#contactInfo a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

#contactInfo a:hover {
    text-decoration: underline;
}

/* 联系我们页面样式 */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.entrance-img {
    width: 100%;
    height: auto;
    display: block;
}

#contactInfo {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

#contactInfo p {
    margin-bottom: 1rem;
}

#contactInfo p:last-child {
    margin-bottom: 0;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .nav-links {
        background: var(--nav-bg);
    }
}

/* 网站地图样式 */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.sitemap-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sitemap-section p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sitemap-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sitemap-link:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--light-text);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 0;
    }
}

footer {
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

footer p {
    color: var(--light-text);
}