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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
.header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 45px;
    max-width: 200px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease;
}

/* ===== 轮播Banner ===== */
.banner {
    margin-top: 70px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

/* 静态Banner */
.banner-static {
    width: 100%;
    height: 550px;
    background-image: url('../images/智慧.png');
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 22px;
    opacity: 0.9;
}

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

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

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #4fc3f7);
    margin: 0 auto;
}

/* ===== 公司简介 ===== */
.about-section {
    background: #fff;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

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

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: #1a237e;
    color: #1a237e;
}

.btn-outline:hover {
    background: #1a237e;
    color: #fff;
}

/* ===== 核心优势 ===== */
.advantages-section {
    background: linear-gradient(180deg, #f5f7fa 0%, #e8eef5 100%);
}

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

.advantage-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.15);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
}

.advantage-icon svg {
    width: 35px;
    height: 35px;
    color: #1a237e;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a237e;
}

.advantage-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ===== 产品中心 ===== */
.products-section {
    background: #fff;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.12);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

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

/* ===== 成功案例 ===== */
.cases-section {
    background: linear-gradient(180deg, #f5f7fa 0%, #e8eef5 100%);
}

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

.case-card {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transition: transform 0.5s ease;
}

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

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(26, 35, 126, 0.9));
    color: #fff;
}

.case-overlay h4 {
    font-size: 14px;
    font-weight: 500;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: #1a237e;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-quick {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    padding: 40px;
    border-radius: 12px;
    color: #fff;
}

.contact-quick h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-qr p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a237e;
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p,
.footer-copyright p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== 产品页面 ===== */
.products-page .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-detail {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-detail .product-image {
    height: 280px;
}

.product-detail .product-info {
    padding: 30px;
}

.product-detail h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-detail ul {
    margin: 15px 0;
    padding-left: 20px;
}

.product-detail li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    list-style: disc;
}

/* ===== 关于我们页面 ===== */
.about-page .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
}

.timeline-item:nth-child(odd) {
}

.timeline-year {
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: left;
    padding-right: 0;
    padding-left: 0;
}

.timeline-year span {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
}

.timeline-content {
    flex: unset;
    padding-left: 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-left: 0;
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 22px;
    width: 16px;
    height: 16px;
    background: #1a237e;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== 联系我们页面 ===== */
.contact-page .contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .products-page .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 60px;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1a237e;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list a {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner {
        margin-top: 60px;
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .advantages-grid,
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-year,
    .timeline-item:nth-child(odd) .timeline-year {
        flex: none;
        width: 60px;
        text-align: left;
        padding: 0;
        font-size: 14px;
    }
    
    .timeline-year span {
        font-size: 16px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        flex: 1;
        padding: 15px;
        margin-left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 22px;
    }
    
    .product-card .product-info {
        padding: 20px;
    }
    
    .contact-quick {
        padding: 25px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .header,
    .banner,
    .mobile-menu-btn {
        display: none;
    }
    
    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .footer {
        background: #333;
    }
}
