/* 泽圣勘察设计 - 企业网站样式 */

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5276;
    --primary-dark: #154360;
    --primary-light: #2874a6;
    --accent-color: #e67e22;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

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

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

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.header-contact i {
    font-size: 20px;
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ==================== Banner轮播 ==================== */
.banner {
    margin-top: var(--header-height);
    height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 82, 118, 0.85), rgba(26, 82, 118, 0.4));
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background-color: #fff;
}

/* ==================== 业务板块 ==================== */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
}

.section-title .line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* 核心业务 */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #fff;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== 关于我们 ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-item span {
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== 项目案例 ==================== */
.cases {
    background-color: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.case-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.case-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

/* ==================== 新闻动态 ==================== */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-date {
    min-width: 80px;
    text-align: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
}

.news-date .day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== 联系我们 ==================== */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* ==================== 页脚 ==================== */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ==================== 页面内页通用样式 ==================== */
.page-banner {
    margin-top: var(--header-height);
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

.page-content {
    padding: 60px 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .nav {
        gap: 25px;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-contact {
        display: none;
    }
    
    .banner {
        height: 450px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        gap: 20px;
    }
    
    .stat-item h4 {
        font-size: 28px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 10px 15px;
    }
    
    .news-date .day {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-banner h2 {
        font-size: 28px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}
