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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    background-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #4a90d9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a90d9;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #4a90d9 0%, #2c5282 100%);
    color: #fff;
    padding: 150px 20px 100px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-primary {
    display: inline-block;
    background-color: #4a90d9;
    color: #fff;
    padding: 12px 40px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 217, 0.4);
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a3a5c;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4a90d9;
    margin: 15px auto 0;
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.mv-item {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #4a90d9;
}

.mv-item h3 {
    color: #1a3a5c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mv-item p {
    color: #555;
    font-size: 1rem;
}

/* 业务领域 */
.business {
    background-color: #f5f5f5;
    padding-bottom: 60px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 领域切换标签 */
.domain-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background-color: #fff;
    border: 2px solid #1a3a5c;
    border-radius: 30px;
    color: #1a3a5c;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e8f0f8;
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: #1a3a5c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

/* 领域内容面板 */
.domain-content {
    position: relative;
}

.domain-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.domain-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.domain-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.domain-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.domain-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4a90d9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.domain-card h4 {
    color: #1a3a5c;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.domain-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.domain-advantage {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.domain-advantage h4 {
    color: #1a3a5c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.domain-advantage ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.domain-advantage li {
    color: #555;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.domain-advantage li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90d9;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .domain-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .domain-header h3 {
        font-size: 1.4rem;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-advantage ul {
        grid-template-columns: 1fr;
    }
}

.business-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.business-card h3 {
    color: #1a3a5c;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.business-card p {
    color: #666;
    line-height: 1.7;
}

/* 产品与服务 */
.products {
    background-color: #fff;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card.featured {
    border: 2px solid #4a90d9;
    box-shadow: 0 5px 20px rgba(74, 144, 217, 0.3);
}

.product-card.featured:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(74, 144, 217, 0.5);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #4a90d9;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.3);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #4a90d9;
}

.product-card p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-top: 1rem;
}

.product-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    opacity: 0.85;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90d9;
    font-weight: bold;
}

/* 技术优势 */
.advantages {
    background-color: #f5f5f5;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.adv-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e2e8f0;
    position: absolute;
    top: 10px;
    right: 20px;
}

.advantage-item h3 {
    color: #1a3a5c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-right: 60px;
}

.advantage-item p {
    color: #666;
    line-height: 1.7;
}

/* 联系我们 */
.contact {
    background-color: #fff;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: #1a3a5c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    font-size: 1rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.contact-form textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: #1a3a5c;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a3a5c;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 15px 80px;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    section {
        padding: 60px 0;
    }

    .business-grid,
    .products-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}
