/* 河北楚纳科技 - 静态网站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: #0066cc; }
a:hover { color: #004499; }

img { max-width: 100%; height: auto; }

/* 头部 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1a5490;
}

.header-contact .phone {
    font-size: 20px;
    color: #e63946;
    font-weight: bold;
}

.main-nav {
    background: #1a5490;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    font-size: 16px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav .active a {
    background: #144373;
}

/* 主内容区 */
.main-content {
    min-height: 600px;
    padding: 30px 0;
}

/* 首页Banner */
.hero-banner {
    background: linear-gradient(135deg, #1a5490 0%, #2d7dd2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin: -30px -20px 30px;
}

.hero-banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-banner .btn {
    display: inline-block;
    padding: 12px 36px;
    background: #e63946;
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #1a5490;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #1a5490;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #144373;
    color: #fff;
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image {
    height: 160px;
    background: #f5f5f5;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    padding: 18px;
}

.article-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    color: #1a5490;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a5490;
}

/* 产品详情页 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-image {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-height: 400px;
}

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a5490;
}

.product-detail-info .desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-features, .product-specs {
    margin-bottom: 30px;
}

.product-features h3, .product-specs h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a5490;
    border-left: 4px solid #1a5490;
    padding-left: 12px;
}

.product-features ul, .product-specs ul {
    list-style: none;
}

.product-features li, .product-specs li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px dashed #e0e0e0;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.product-specs li {
    padding-left: 0;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-detail .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.article-detail .content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article-detail .content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #1a5490;
}

.article-detail .content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    color: #333;
}

.article-detail .content p {
    margin-bottom: 15px;
}

.article-detail .content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}

.article-detail .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-detail .content th,
.article-detail .content td {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    text-align: left;
}

.article-detail .content th {
    background: #f5f5f5;
    font-weight: bold;
}

/* 底部 */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-grid, .article-grid {
        grid-template-columns: 1fr;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        flex-wrap: wrap;
    }
    .main-nav a {
        padding: 12px 16px;
        font-size: 14px;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .hero-banner {
        padding: 40px 0;
    }
}

/* 解决方案卡片 */
.solution-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a5490;
}

.solution-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.solution-card ul {
    list-style: none;
    padding-left: 0;
}

.solution-card li {
    padding: 5px 0;
    color: #555;
}

/* 案例卡片 */
.case-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-image {
    background: #e0e0e0;
    height: 140px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a5490;
}

.case-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 联系表单 */
form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #1a5490;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* 文章内容图片居中 */
.article-detail .content img {
    display: block;
    margin: 20px auto;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin: -30px -20px 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 60px 40px 40px;
}

.carousel-caption h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.carousel-caption .btn {
    background: #e63946;
    padding: 10px 30px;
    font-size: 16px;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    .carousel-caption h2 {
        font-size: 22px;
    }
    .carousel-caption p {
        font-size: 14px;
    }
}
