/* 基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0055aa;
}

section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0066cc;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: 80px;
    margin-right: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #0066cc;
    animation: pulse 3s infinite;
    transform-origin: center;
    position: relative;
}

.logo-img:hover {
    transform: scale(2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: none;
    z-index: 1100;
    border-color: #ff9900;
}

.logo-img:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,153,0,0.2) 0%, rgba(255,153,0,0) 70%);
    z-index: -1;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.logo h1 {
    font-size: 26px;
    color: #0066cc;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 5px 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

/* 语言切换按钮样式 */
.language-switch {
    margin-left: 20px;
}

.lang-btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

.lang-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

.lang-btn:active {
    transform: translateY(0);
}

/* 首页英雄区域 */
.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;
    background-attachment: fixed; /* 视差滚动效果 */
    color: #fff;
    text-align: center;
    padding: 150px 0;
    margin-top: 100px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品与服务 */
.products-services {
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    transition: transform 0.3s;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-card:hover .product-img {
    transform: scale(1.05);
}

.service-card i {
    position: absolute;
    top: 150px;
    left: 20px;
    background: #0066cc;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

/* 技术支持 */
.tech-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.tech-info, .tech-image {
    flex: 1;
    min-width: 300px;
}

.tech-info h3 {
    color: #0066cc;
    margin-bottom: 20px;
}

.tech-info ul {
    margin-top: 20px;
    padding-left: 20px;
}

.tech-info ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.tech-info ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #0066cc;
    position: absolute;
    left: 0;
}

.tech-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 为缺失的图片添加背景色 */
.tech-image, .about-image {
    background-color: #f0f0f0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-image::after, .about-image::after {
    content: none;
}

/* 关于我们 */
.about-us {
    background: #f9f9f9;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image, .about-info {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-info h3 {
    color: #0066cc;
    margin-bottom: 20px;
}

.about-info h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0066cc;
}

.about-info p {
    margin-bottom: 15px;
}

/* 联系我们 */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    color: #0066cc;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: #0066cc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.map {
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
}

/* 页脚 */
footer {
    background: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    color: #0066cc;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #0066cc;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-contact i {
    margin-right: 10px;
    color: #0066cc;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-img {
        height: 60px; /* 在移动端适当缩小 */
        width: 60px;
        border-width: 2px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        margin-top: 140px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .product-img {
        height: 150px;
    }
    
    .service-card i {
        top: 120px;
    }
    
    .language-switch {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero {
        margin-top: 180px;
    }
}

/* 修改静态地图样式 */
.static-map {
    height: 400px;
    background-color: #f0f0f0;
    background-image: url('images/map.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    position: relative;
}

/* 添加地图标记样式 */
.map-marker {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
}

.map-marker i {
    color: #0066cc;
    font-size: 24px;
    margin-bottom: 10px;
}

.map-marker p {
    margin: 0;
    font-weight: bold;
}

/* 添加图片悬停效果 */
.tech-image img, .about-image img {
    transition: transform 0.3s ease;
}

.tech-image img:hover, .about-image img:hover {
    transform: scale(1.05);
}

/* 添加图片阴影效果 */
.tech-image img, .about-image img, .product-img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 轮播样式 */
.slider {
    padding: 60px 0;
    background: #f9f9f9;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 产品轮播样式 */
.product-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-slide {
    display: none;
    position: relative;
}

.product-slide.active {
    display: block;
}

.product-slide-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
}

.product-slide-content h3 {
    color: #fff;
    margin-bottom: 10px;
}

.product-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.product-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-prev {
    left: 10px;
}

.product-next {
    right: 10px;
}

.product-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.product-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.product-indicator.active {
    background: #fff;
}

.services-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0066cc;
}

/* 添加卡片点击效果 */
.service-card:active {
    transform: scale(0.98);
}

/* 添加脉动动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* 添加旋转动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 