/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 28px;
    margin-bottom: 5px;
}

.logo span {
    color: #666;
    font-size: 14px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: #2c5aa0;
    color: #fff;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
}

/* 轮播图样式 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-content p {
    font-size: 20px;
    max-width: 500px;
}

/* 公司简介样式 */
.intro {
    padding: 80px 0;
    background: #fff;
}

.intro h2 {
    text-align: center;
    font-size: 36px;
    color: #2c5aa0;
    margin-bottom: 50px;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background: #2c5aa0;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background: #1e3d6f;
}

/* 服务范围样式 */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    color: #2c5aa0;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 联系信息样式 */
.contact-info {
    padding: 80px 0;
    background: #fff;
}

.contact-info h2 {
    text-align: center;
    font-size: 36px;
    color: #2c5aa0;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item h3 {
    color: #2c5aa0;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-item p {
    color: #666;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background: #2c5aa0;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 内页通用样式 */
.page-header {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.8)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0 80px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

.page-content {
    padding: 80px 0;
    background: #fff;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    color: #2c5aa0;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #666;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 案例展示样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    color: #2c5aa0;
    font-size: 20px;
    margin-bottom: 15px;
}

.case-content p {
    color: #666;
    line-height: 1.6;
}

/* 新闻列表样式 */
.news-list {
    margin-top: 40px;
}

.news-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-item h3 {
    color: #2c5aa0;
    font-size: 22px;
    margin-bottom: 15px;
}

.news-item h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .slide-content {
        left: 20px;
        right: 20px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}

/* 联系页面特殊样式 */
.contact-hero-section {
    margin-bottom: 60px;
}

.contact-main-card {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card-left {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-primary-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-subtitle {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-highlight {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-phone, .contact-email {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.contact-phone strong, .contact-email strong {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.contact-phone a, .contact-email a {
    color: white;
    text-decoration: none;
}

.contact-phone small, .contact-email small {
    opacity: 0.8;
    font-size: 14px;
}

.contact-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-address-card, .contact-time-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-address-card h3, .contact-time-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-address-card p {
    line-height: 1.6;
    margin-bottom: 8px;
}

.address-note {
    font-size: 12px;
    opacity: 0.7;
}

.time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.time-item.emergency {
    color: #ffd700;
    font-weight: bold;
}

/* 联系方式网格 */
.contact-methods-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c5aa0;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2c5aa0;
    border-radius: 2px;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.method-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.phone-card { border-top-color: #28a745; }
.email-card { border-top-color: #007bff; }
.message-card { border-top-color: #ffc107; }
.visit-card { border-top-color: #6f42c1; }

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.method-card h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 20px;
}

.method-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.method-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.method-btn:hover {
    background: #1e3d6f;
}

.method-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 业务咨询时间线 */
.business-consultation-section {
    margin-bottom: 60px;
    background: #f8f9fa;
    padding: 60px 0;
}

.consultation-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.consultation-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2c5aa0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #2c5aa0;
}

.timeline-marker.software { background: #28a745; }
.timeline-marker.ai { background: #007bff; }
.timeline-marker.network { background: #ffc107; }
.timeline-marker.consulting { background: #6f42c1; }

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.consultation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 地理位置区域 */
.location-section {
    margin-bottom: 60px;
}

.location-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.location-info {
    flex: 1;
}

.location-info h2 {
    color: #2c5aa0;
    margin-bottom: 30px;
    font-size: 28px;
}

.address-detail {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.address-detail h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.transport-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.transport-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.transport-item h4 {
    color: #2c5aa0;
    margin-bottom: 8px;
    font-size: 16px;
}

.transport-item p {
    color: #666;
    line-height: 1.5;
}

.landmarks h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.landmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landmark-tag {
    background: #2c5aa0;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.location-map {
    flex: 1;
    position: relative;
}

.location-map img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.map-pin {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

/* 公司信息卡片 */
.company-details-section {
    margin-bottom: 60px;
}

.company-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: #666;
    line-height: 1.5;
}

.info-card a {
    color: #2c5aa0;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .services-grid,
    .contact-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    /* 联系页面响应式 */
    .contact-main-card {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }
    
    .contact-card-left {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .consultation-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .location-content {
        flex-direction: column;
    }
    
    .company-info-cards {
        grid-template-columns: 1fr;
    }
}
