/* 全局样式 */
:root {
    --primary-color: #1a4b8c;
    --secondary-color: #3a7bd5;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --header-height: 4rem;
    --font-size-base: 1rem;
    --accent-color: #00d2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height);
    line-height: 1.6;
}

/* 固定导航栏 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #123456;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    margin-right: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    height: 100%;
}

nav li {
    margin: 0 1rem;
	height: 68px;
}

nav a {
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
    text-decoration: none;
    font-size: calc(var(--font-size-base) * 1.1);
    padding: 0 1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 轮播图区域 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 80vh;
    max-height: 800px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.banner-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 500px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 0.5rem;
}

.banner-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.banner-content p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

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

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2rem;
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.banner-dots {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .banner {
        height: 60vh;
    }
    
    .banner-content {
        max-width: 400px;
        bottom: 15%;
    }
}

@media (max-width: 768px) {
    .fixed-header {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0 0.5rem;
    }
    
    .banner {
        height: 50vh;
    }
    
    .banner-content {
        max-width: 300px;
        padding: 1rem;
        bottom: 10%;
    }
}

@media (max-width: 480px) {
    .logo {
        margin-right: 1rem;
    }
    
    nav a {
        font-size: var(--font-size-base);
        padding: 0 0.5rem;
    }
    
    .banner {
        height: 40vh;
    }
    
    .banner-content {
        max-width: 80%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 业务介绍区域 */
.services {
    padding: 6rem 2rem;
    background: white;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.08;
    z-index: -1;
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.4rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 600;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    padding: 2.5rem 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-card i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.8rem;
}

.service-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* 新增样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-dark {
    background-color: #f5f9ff;
    border-top: 1px solid #e1e8f0;
    border-bottom: 1px solid #e1e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    padding: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
}

.contact-form button {
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* 广告服务 */
.ad-services {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.ad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ad-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ad-card p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        justify-content: space-around;
    }
    
    nav li {
        margin: 0;
    }
    
    nav a {
        padding: 0 0.5rem;
        font-size: var(--font-size-base);
    }
}