/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: #181e2c;
    color: #e5e7eb;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px; /* 固定导航栏高度 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.logo span {
    /* color: var(--primary-color); */
    color: #00000098;
    /* margin-top: 20px; */
    display: inline-block;
    vertical-align: bottom;
}

.logo div {
    display: flex;
    align-items: center;
    height: 60px; /* 固定logo容器高度 */
}

.logo img {
    max-height: 100%;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

nav {
    height: 100%;
}

nav ul {
    display: flex;
    height: 100%;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 菜单按钮样式（保持纯CSS实现） */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    margin-left: 15px;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* 联系信息图标样式 */
/* 确保Font Awesome图标正常显示 */
.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-icon i {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    color: white;
}

.contact-info .info-item i {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 15px;
}

/* 确保菜单按钮样式不影响其他图标 */
.menu-toggle span {
    /* 保持原有样式 */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* 首页英雄区样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 1050px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    animation: fadeIn 1.5s ease;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* 服务部分样式 */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 案例展示部分样式 */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

/* 关于我们部分样式 */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* 页脚与联系我们合并样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    width: 100%;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    text-align: left;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.contact-info {
    flex: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.qrcode-container {
    flex: 1;
    display: flex;
    gap: 30px;
    padding: 10px;
}



.footer-links h3,
.contact-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info .info-item i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex: 2;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.qrcode-container {
    display: flex;
    gap: 30px;
    padding: 10px;
    width: auto;
    margin-left: 40px;
}

.qrcode-item {
    width: 150px;
    text-align: center;
}

.qrcode-item img {
    width: 135px;
    height: 135px;
    margin-bottom: 8px;
    display: block;
}.qrcode-item p {
    font-size: 12px;
    color: #d1d5db;
}
.contact-details {
    flex: 1;
    min-width: 330px;
    margin-right: 40px;
}


.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info .info-item p {
    color: #d1d5db;
    margin-bottom: 0;
    font-size: 14px;
}





.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .icp {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px; /* 减小移动端导航栏高度 */
    }
    
    header .container {
        padding: 0 15px;
    }
    
    .logo div {
        height: 40px; /* 移动端减小logo容器高度 */
    }
    
    .logo img {
        max-height: 35px; /* 限制移动端logo图片高度 */
    }
    
    .logo span {
        font-size: 16px; /* 移动端减小文字大小 */
        margin-bottom: 0; /* 移除底部间距 */
    }
    
    nav {
        position: absolute;
        top: 60px; /* 与header高度一致 */
        left: 0;
        width: 100%;
        height: auto; /* 自动高度 */
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        height: auto;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 10px 0;
        height: auto;
        width: 100%;
    }
    
    nav ul li a {
        padding: 10px 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚移动端适配 */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-logo h2 {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
    
    .footer-logo p {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-logo span {
        color: var(--primary-color);
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-details {
        width: 100%;
        min-width: auto;
        margin-right: 0;
    }
    
    .qrcode-container {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    /* 超小屏幕页脚适配 */
    .qrcode-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .qrcode-item {
        width: 100%;
        max-width: 150px;
    }
    
    .qrcode-item img {
        width: 120px;
        height: 120px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}