/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 页面头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #0056b3;
    font-size: 24px;
}

.logo h1 span {
    color: #00a0e9;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #0056b3;
}

/* 主要内容区域 */
.main {
    margin-top: 70px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.9)), url('../assets/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 10px;
    transition: all 0.3s;
}

.btn.primary {
    background-color: #00a0e9;
    color: white;
}

.btn.primary:hover {
    background-color: #0088cc;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页面标题 */
.page-header {
    background-color: #0056b3;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
}

/* 技术优势介绍 */
.technology-intro {
    padding: 80px 0;
}

.intro-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #0056b3;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* 核心技术 */
.core-technologies {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.core-technologies h2,
.ai-technology h2,
.tech-advantages h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #0056b3;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tech-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tech-icon {
    background-color: #0056b3;
    color: white;
    padding: 20px;
    text-align: center;
}

.tech-icon h3 {
    font-size: 20px;
}

.tech-content {
    padding: 20px;
}

.tech-content ul {
    list-style-type: none;
    margin-top: 15px;
}

.tech-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.tech-content ul li:before {
    content: "✓";
    color: #00a0e9;
    position: absolute;
    left: 0;
}

/* AI技术应用 */
.ai-technology {
    padding: 80px 0;
}

.ai-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ai-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.ai-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* 技术优势总结 */
.tech-advantages {
    padding: 80px 0;
    background-color: #0056b3;
    color: white;
}

.tech-advantages h2 {
    color: white;
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

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

.advantage {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.advantage h3 {
    margin-bottom: 15px;
    color: #00a0e9;
}

/* 公司简介 */
.about-section {
    padding: 80px 0;
}

.about-content h2,
.culture-section h2,
.history-section h2,
.services-section h2,
.services-advantages h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #0056b3;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.stat-item h3 {
    font-size: 36px;
    color: #0056b3;
    margin-bottom: 10px;
}

/* 企业文化 */
.culture-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 22px;
}

.culture-item ul {
    list-style-position: inside;
}

.culture-item ul li {
    margin-bottom: 10px;
}

/* 发展历程 */
.history-section {
    padding: 80px 0;
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0056b3;
    left: 50%;
    margin-left: -2px;
}

.history-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.history-year {
    width: 50%;
    padding-right: 30px;
    text-align: right;
    font-weight: bold;
    color: #0056b3;
    font-size: 18px;
}

.history-desc {
    width: 50%;
    padding-left: 30px;
}

.history-desc h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.history-item:nth-child(even) .history-year {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

.history-item:nth-child(even) .history-desc {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
}

/* 服务范围 */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    background-color: #0056b3;
    color: white;
    padding: 20px;
    text-align: center;
}

.service-icon h3 {
    font-size: 20px;
}

.service-content {
    padding: 20px;
}

.service-content ul {
    list-style-type: none;
    margin-top: 15px;
}

.service-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.service-content ul li:before {
    content: "✓";
    color: #00a0e9;
    position: absolute;
    left: 0;
}

/* 服务优势 */
.services-advantages {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.advantages-content .advantage-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.advantages-content .advantage-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* 公司优势 */
.advantages {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #0056b3;
}

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

.advantage-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* 核心竞争力 */
.core-competitiveness {
    padding: 80px 0;
}

.competitiveness-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.competitiveness-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.competitiveness-item h3 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 22px;
}

.competitiveness-item ul {
    list-style-type: none;
}

.competitiveness-item ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.competitiveness-item ul li:before {
    content: "✓";
    color: #00a0e9;
    position: absolute;
    left: 0;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background-color: #0056b3;
    color: white;
}

.partners .section-title {
    color: white;
}

.partners-text {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 页面底部 */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: #00a0e9;
    margin-bottom: 15px;
}

.footer-info h3 span {
    color: #00a0e9;
}

.footer-contact h4,
.footer-links h4 {
    color: #00a0e9;
    margin-bottom: 15px;
}

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

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

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00a0e9;
}

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

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #00a0e9;
    text-decoration: underline;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #003d82;
    transform: scale(1.1);
}

/* 表单错误样式 */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .main {
        margin-top: 120px;
    }
    
    .history-timeline::before {
        left: 30px;
    }
    
    .history-item {
        display: block;
    }
    
    .history-year,
    .history-item:nth-child(even) .history-year {
        width: 100%;
        text-align: left;
        padding: 0 0 15px 50px;
    }
    
    .history-desc,
    .history-item:nth-child(even) .history-desc {
        width: 100%;
        padding: 0 0 0 50px;
        text-align: left;
    }
    
    .services-grid,
    .technologies-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 20px;
    }
}