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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-subtitle {
    color: #a8c5e8;
    font-size: 12px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    transition: all 0.3s;
    border-radius: 5px;
}

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

/* 下拉菜单 */
.dropdown-content {
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    top: 100%;
    left: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #2a5298;
}

.dropdown.dropdown-open .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s, 0s;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

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

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

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 40px 60px;
    border-radius: 10px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-prev,
.hero-next {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255,255,255,0.5);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* 关于我们 */
.about-section {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
}

.stat-item h4 {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    color: #fff;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.about-images img:first-child {
    grid-column: 1 / -1;
    height: 250px;
}

.about-images img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* 业务领域 */
.business-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.business-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.business-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.business-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

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

.business-card h3 {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.business-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-link:hover {
    color: #e67e22;
}

/* 产品展示 */
.products-section {
    background: #fff;
}

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

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s;
}

.product-item:hover .product-info {
    transform: translateY(0);
}

.product-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 14px;
}

/* 优势特色 */
.advantages-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.advantages-section .section-header h2 {
    color: #fff;
}

.advantages-section .section-header h2::after {
    background: #fff;
}

.advantages-section .section-header p {
    color: rgba(255,255,255,0.9);
}

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

.advantage-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.advantage-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    color: rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* 新闻动态 */
.news-section {
    background: #fff;
}

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

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
}

.news-content h4 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h2 {
    font-size: 32px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.contact-info > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item strong {
    display: block;
    color: #1e3c72;
    margin-bottom: 5px;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
}

.contact-form h3 {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2a5298;
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f39c12;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #f39c12;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .business-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .business-grid,
    .products-grid,
    .news-grid,
    .advantages-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}
