/* 全局样式重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #c9a46f;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-gray: #999999;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 导航栏 - 深色版本 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-dark {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

/* 深色导航链接 */
.nav-links-light a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links-light a::after {
    background: white;
}

.nav-links-light a:hover,
.nav-links-light a.active {
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* 首页横幅 */
.hero {
    height: 100vh;
    background: url('../images/bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 白色按钮 */
.btn-primary-light {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
}

.btn-primary-light .arrow {
    margin-left: 8px;
    font-size: 1.1rem;
}

.btn-primary-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 通用部分样式 */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-line-center {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

/* 事业领域 */
.business-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.business-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.business-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.business-icon svg {
    width: 100%;
    height: 100%;
}

.business-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.business-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 核心优势 */
.features-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.feature-item {
    text-align: center;
}

.feature-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-circle svg {
    width: 35px;
    height: 35px;
}

.feature-item:hover .feature-circle {
    background: var(--primary-color);
    color: white;
}

.feature-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 代表项目 - 深色背景 */
.projects-section-dark {
    background: var(--primary-color);
    padding: 5rem 0;
    color: white;
}

.projects-header-dark {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.projects-header-dark h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.projects-header-dark p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.btn-view-all-light {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-view-all-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.projects-grid-dark {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.project-card-dark {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 300px; /* 固定宽度 */
}

.project-image-dark {
    position: relative;
    padding-top: 133.33%; /* 3:4 比例 */
    height: 0;
    overflow: hidden;
}

.project-image-dark img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-dark:hover .project-image-dark img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.project-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 页脚 - 深色 */
.footer-dark {
    background: #111;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content-dark {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo-dark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-dark img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-dark span {
    font-size: 1rem;
    font-weight: 500;
}

.footer-section-dark p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section-dark h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: white;
}

.footer-section-dark ul {
    list-style: none;
}

.footer-section-dark ul li {
    margin-bottom: 0.6rem;
}

.footer-section-dark a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section-dark a:hover {
    color: white;
}

.contact-list-dark li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom-dark {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-dark p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .footer-content-dark {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-new {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-grid-dark {
        grid-template-columns: 1fr;
    }
    
    .projects-header-dark {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content-dark {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
