/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    /* 如果有背景图片，取消注释下面的行并替换为你的图片路径 */
    /* background-image: url('你的背景图片路径.jpg'); */
    /* background-attachment: fixed; */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
}

/* 固定背景图片的通用类 */
.fixed-background {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 视差滚动效果的背景 */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 28px;
    color: #9F5748;
    font-weight: bold;
    margin-bottom: -5px;
}

.nav-logo span {
    font-size: 12px;
    color: #666;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #9F5748;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #9F5748;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* 确保在大屏幕上汉堡菜单不显示 */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
}

/* 轮播图样式 */
.hero-section {
    position: relative;
    height: 70vh;
    max-height: 700px;
    min-height: 500px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 60px;
    left: 40px;
    color: white;
    background: linear-gradient(135deg, rgba(159, 87, 72, 0.9), rgba(159, 87, 72, 0.7));
    padding: 20px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-caption h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.slide-caption p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 轮播导航 */
.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: #9F5748;
    transform: scale(1.2);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 公司简介样式 */
.company-intro {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
}

.intro-text h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #9F5748, #d4926b);
    margin-bottom: 30px;
    border-radius: 2px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #9F5748, #d4926b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 20px;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 87, 72, 0.3);
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 8px;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #9F5748, #d4926b);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.1;
}

.company-video {
    display: block;
    border: none;
    outline: none;
}

.company-video:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* 视频加载效果 */
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.company-video {
    animation: videoFadeIn 1s ease-out;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 32px;
    color: #9F5748;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    color: #666;
    font-size: 14px;
}

/* 项目展示样式 */
.featured-projects {
    padding: 100px 0;
    background: white;
}

.featured-projects h2 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.featured-projects .section-divider {
    margin: 0 auto 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(45deg, #9F5748, #d4926b);
    color: white;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* 新闻动态样式 */
.news-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.news-section .section-divider {
    margin: 0 auto 60px;
}

.news-grid {
    display: grid;
    gap: 30px;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #9F5748, #d4926b);
    color: white;
    border-radius: 10px;
    margin-right: 25px;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    opacity: 0.9;
}

.news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #9F5748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #d4926b;
}

/* 企业文化样式 */
.culture-section {
    padding: 100px 0;
    background: white;
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.culture-text h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.culture-text blockquote {
    font-size: 20px;
    font-style: italic;
    color: #9F5748;
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid #9F5748;
    background: #f8f8f8;
    border-radius: 0 10px 10px 0;
}

.culture-text blockquote footer {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-align: right;
}

.culture-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.culture-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 36px;
    color: #9F5748;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #9F5748;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 5px 0;
    color: #ccc;
    font-size: 14px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #9F5748;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #9F5748;
}

/* 中等屏幕适配 */
@media (max-width: 1024px) {
    .hero-section {
        height: 65vh;
        max-height: 650px;
        min-height: 450px;
    }
    
    .slide-caption {
        max-width: 400px;
        padding: 18px 25px;
        bottom: 50px;
        left: 30px;
    }
    
    .slide-caption h2 {
        font-size: 24px;
    }
    
    .slide-caption p {
        font-size: 15px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f8f8;
        border-radius: 0;
        padding: 0;
        margin-top: 10px;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: 1px solid #e9ecef;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .culture-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .slide-caption {
        left: 20px;
        right: 20px;
        bottom: 40px;
        padding: 20px;
        max-width: none;
    }

    .slide-caption h2 {
        font-size: 24px;
    }

    .slide-caption p {
        font-size: 14px;
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .culture-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .news-date {
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .intro-text {
        order: 1;
    }
    
    .intro-video {
        order: 2;
    }
    
    .company-video {
        max-height: 400px !important;
    }
    
    .company-intro,
    .featured-projects,
    .news-section,
    .culture-section {
        padding: 60px 0;
    }

    .intro-text h2,
    .featured-projects h2,
    .news-section h2,
    .culture-text h2 {
        font-size: 28px;
    }
} 