/* ============================================================
   四川瑾壹科技有限公司 官网样式
   主色: 深蓝 #0F3460 / 辅助: 青蓝 #00B4D8
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    background: #fff;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .25s;
}
.btn-light { background: #00B4D8; color: #fff; }
.btn-light:hover { background: #0F3460; }
.btn-dark { background: #0F3460; color: #fff; }
.btn-dark:hover { background: #00B4D8; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 { font-size: 30px; color: #0F3460; font-weight: 700; }
.section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #00B4D8;
    margin: 14px auto 0;
    border-radius: 2px;
}
.section-title p { color: #888; margin-top: 10px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15,52,96,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 16px;
    border-radius: 4px;
}
.main-nav li a:hover, .main-nav li a.active { color: #00B4D8; background: rgba(0,180,216,.08); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #0F3460; border-radius: 2px; }

/* ---------- 首页Banner ---------- */
.banner { position: relative; height: 560px; overflow: hidden; }
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s;
    display: flex;
    align-items: center;
}
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-bg { position: absolute; inset: 0; }
.bg-1 { background: linear-gradient(135deg, #0F3460 0%, #0a2a4e 45%, #0F6B8A 100%); }
.bg-2 { background: linear-gradient(135deg, #0a2a4e 0%, #0F3460 50%, #1177a0 100%); }
.bg-3 { background: linear-gradient(135deg, #0F3460 0%, #0b2f57 40%, #0e8fb3 100%); }
.banner-content { position: relative; z-index: 2; color: #fff; }
.banner-content h2 { font-size: 46px; font-weight: 700; margin-bottom: 18px; letter-spacing: 2px; }
.banner-content p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 620px; }
.banner-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.banner-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s;
}
.banner-dots span.active { background: #00B4D8; transform: scale(1.2); }

/* ---------- 内页横幅 ---------- */
.page-banner {
    background: linear-gradient(135deg, #0F3460, #0F6B8A);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h2 { font-size: 32px; }
.page-banner .crumb { color: rgba(255,255,255,.75); margin-top: 8px; font-size: 14px; }
.page-banner .crumb a:hover { color: #00B4D8; }

/* ---------- 首页板块 ---------- */
.site-main { min-height: 400px; }
.section { padding: 70px 0; }
.section.gray { background: #f7f9fc; }

/* 首页简介 */
.about-home { display: flex; gap: 50px; align-items: center; }
.about-home .text { flex: 1; }
.about-home .text h3 { font-size: 26px; color: #0F3460; margin-bottom: 18px; }
.about-home .text p { color: #666; margin-bottom: 14px; }
.about-home .text .more { color: #00B4D8; font-weight: 600; }
.about-home .stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15,52,96,.05);
}
.stat-card b { display: block; font-size: 34px; color: #00B4D8; }
.stat-card span { color: #888; font-size: 14px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(15,52,96,.12); }
.card .card-img { height: 190px; background: linear-gradient(135deg, #0F3460, #0F6B8A); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-img .no-img { color: rgba(255,255,255,.7); font-size: 40px; }
.card .card-body { padding: 22px; }
.card .card-body h3 { font-size: 18px; color: #0F3460; margin-bottom: 10px; }
.card .card-body p { color: #777; font-size: 14px; }
.card .card-body .date { color: #999; font-size: 13px; margin-top: 10px; display: block; }
.card .card-body .more { color: #00B4D8; font-size: 14px; font-weight: 600; }

/* 首页新闻列表 */
.news-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-item {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    padding: 24px;
    transition: all .3s;
}
.news-item:hover { box-shadow: 0 10px 24px rgba(15,52,96,.1); border-color: #00B4D8; }
.news-item h3 { font-size: 17px; color: #0F3460; margin-bottom: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-item p { color: #777; font-size: 14px; margin-bottom: 14px; }
.news-item .date { color: #999; font-size: 13px; }

/* CTA 区块 */
.cta { background: linear-gradient(135deg, #0F3460, #0F6B8A); color: #fff; text-align: center; padding: 60px 20px; }
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 26px; }

/* ---------- 列表页 ---------- */
.list-page { padding: 50px 0; }

/* ---------- 详情页 ---------- */
.detail { padding: 50px 0; }
.detail-box {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.detail-box h1 { font-size: 28px; color: #0F3460; margin-bottom: 14px; text-align: center; }
.detail-meta { text-align: center; color: #999; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 26px; }
.detail-content { color: #555; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { margin: 12px auto; border-radius: 6px; }
.detail-back { text-align: center; margin-top: 30px; }

/* ---------- 联系我们 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 22px; color: #0F3460; margin-bottom: 20px; }
.contact-info li { padding: 12px 0; border-bottom: 1px dashed #e5ebf2; color: #555; }
.contact-info li b { color: #0F3460; }
.form-box h3 { font-size: 22px; color: #0F3460; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #00B4D8; }
.form-group textarea { height: 140px; resize: vertical; }
.form-tip { color: #999; font-size: 13px; margin-bottom: 14px; }
.form-msg { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.form-msg.ok { background: #e7f7ee; color: #1a7f45; }
.form-msg.err { background: #fdecec; color: #c0392b; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; margin: 36px 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-block;
    min-width: 36px;
    padding: 7px 12px;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    background: #fff;
}
.pagination a:hover { border-color: #00B4D8; color: #00B4D8; }
.pagination .current { background: #0F3460; border-color: #0F3460; color: #fff; }
.pagination .dots { border: none; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1f38; color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 50px 20px; }
.footer-col h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 2.1; color: rgba(255,255,255,.7); }
.footer-col li a:hover { color: #00B4D8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .card-grid, .news-home { grid-template-columns: 1fr 1fr; }
    .about-home { flex-direction: column; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .banner { height: 460px; }
    .banner-content h2 { font-size: 34px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 18px rgba(15,52,96,.1);
        display: none;
        padding: 10px 20px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav li a { padding: 12px 10px; border-bottom: 1px solid #f0f4f9; }
    .card-grid, .news-home { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .banner { height: 380px; }
    .banner-content h2 { font-size: 26px; }
    .banner-content p { font-size: 15px; }
    .detail-box { padding: 24px 18px; }
    .section { padding: 50px 0; }
}
