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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ========================================
   导航栏样式
   ======================================== */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 80px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    filter: contrast(1.3) brightness(0.95);
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* 菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   首页轮播
   ======================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 0;
}

.carousel-container {
    position: relative;
    max-width: 2000px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

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

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

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 4px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot:hover,
.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* ========================================
   业务领域预览
   ======================================== */
.business-preview {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.business-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.business-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.business-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.business-content ul {
    list-style: none;
    padding-left: 0;
}

.business-content ul li {
    color: var(--text-light);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.business-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.business-content p {
    margin-top: auto;
}

/* ========================================
   公司简介和愿景
   ======================================== */
.company-intro {
    padding: 0px 0;
    background-color: var(--bg-light);
}

.intro-layout {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.intro-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.intro-text {
    position: absolute;
    top: 48%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 40px;
    background-color: transparent;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
}

.intro-content p {
    color: #000;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-weight: 300;
    text-indent: 2em;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ecf0f1;
}

.footer-section p {
    line-height: 1.8;
    color: #bdc3c7;
    font-size: 14px;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

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

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

/* ========================================
   页面标题样式
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: #ecf0f1;
    opacity: 0.9;
}

/* ========================================
   页面内容样式
   ======================================== */
.page-content {
    padding: 60px 0;
    background-color: #fff;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 600;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.content-section ul,
.content-section ol {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.content-section ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.content-section ol {
    padding-left: 20px;
}

.content-section ol li {
    padding: 8px 0;
}

/* ========================================
   联系方式和表单样式
   ======================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-info-item h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 表单样式 */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media screen and (max-width: 768px) {
    /* 导航栏 */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-brand .logo {
        height: 40px;
        max-width: 200px;
    }

    .nav-brand h1 {
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        max-height: 300px;
        margin-top: 15px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    /* 轮播 */
    .carousel-btn {
        font-size: 30px;
        padding: 5px 15px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    /* 页面标题 */
    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    /* 业务卡片 */
    .section-title {
        font-size: 28px;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* 轮播 */
    .carousel-container {
        height: 350px;
    }

    /* 公司简介 */
    .intro-layout {
        min-height: 350px;
    }
    
    .intro-text {
        padding: 30px 20px;
        width: 95%;
    }
    
    .intro-content p {
        font-size: 15px;
    }

    /* 表单 */
    .contact-form {
        padding: 30px 20px;
    }

    /* 内容区域 */
    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .nav-brand .logo {
        height: 35px;
        max-width: 150px;
    }

    .nav-brand h1 {
        font-size: 14px;
    }

    .carousel-container {
        height: 250px;
    }

    .section-title {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .business-content h3 {
        font-size: 20px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

.business-card,
.contact-info-item {
    animation: fadeIn 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
