/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1a73e8;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn i {
    font-size: 24px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s;
}

.carousel-item {
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* 部分通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* 产品展示样式 */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.product-btn:hover {
    background-color: #1557b0;
}

/* 关于我们样式 */
.about {
    display: flex;
    align-items: center;
}

.about-img {
    flex: 0 0 45%;
    margin-right: 50px;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
}

.about-text {
    flex: 0 0 55%;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* 招聘信息样式 */
.job-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.job-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.job-item:last-child {
    border-bottom: none;
}

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

.job-title {
    font-size: 18px;
    font-weight: bold;
}

.job-salary {
    font-size: 16px;
    color: #e74c3c;
}

.job-info {
    display: flex;
    margin-bottom: 10px;
}

.job-info-item {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
}

.job-info-item i {
    margin-right: 5px;
}

.job-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.job-apply {
    margin-top: 15px;
}

.apply-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.apply-btn:hover {
    background-color: #1557b0;
}

/* 联系我们样式 */
.contact {
    display: flex;
}

.contact-info {
    flex: 0 0 50%;
    padding-right: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.contact-item p {
    font-size: 16px;
}

.contact-form {
    flex: 0 0 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1557b0;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    flex: 0 0 30%;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact {
    flex: 0 0 30%;
}

.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-item i {
    margin-right: 10px;
}

.footer-links {
    flex: 0 0 30%;
}

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-img {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .about-text {
        flex: 0 0 100%;
    }
    
    .contact {
        flex-direction: column;
    }
    
    .contact-info {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .contact-form {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .menu-btn {
        display: block;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info,
    .footer-contact,
    .footer-links {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

/* 图片懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

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

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}