/* ============================================================
   森泰官网 · 新增区域样式
   首页新闻区块 / 列表页 / 详情页（配色沿用 site.css 的商务稳重蓝）
   ============================================================ */

/* ===== 新闻动态（首页） ===== */
.news-section {
    padding: 90px 0;
    background: var(--white, #fff);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.news-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(10, 42, 90, 0.12);
    border-color: #dfe6ee;
}

.news-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f7fa;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

.news-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 13px;
    color: #5a6a7a;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2a3a;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-card:hover .news-card-title {
    color: #0a2a5a;
}

.news-summary {
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.75;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 44px;
}

.news-more a {
    display: inline-block;
    padding: 13px 34px;
    border: 1.5px solid #0a2a5a;
    color: #0a2a5a;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.news-more a:hover {
    background: #0a2a5a;
    color: #fff;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #5a6a7a;
    padding: 40px 0;
    font-size: 15px;
}

/* ===== 内页头部 / 面包屑 ===== */
.page-hero {
    background: linear-gradient(135deg, #051a3a 0%, #0a2a5a 60%, #1a5a9a 100%);
    padding: 128px 0 68px;
    color: #fff;
}

.page-hero h1 {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 800;
}

.page-hero .page-sub {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
}

.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: #5a6a7a;
}

.breadcrumb a {
    color: #5a6a7a;
}

.breadcrumb a:hover {
    color: #0a2a5a;
}

.breadcrumb em {
    margin: 0 8px;
    color: #c3ccd6;
    font-style: normal;
}

/* ===== 内容卡片 / 文章正文 ===== */
.page-wrap {
    padding: 30px 0 80px;
}

.page-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 42, 90, 0.08);
    padding: 46px;
}

.article-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a2a3a;
    line-height: 1.45;
}

.article-meta {
    margin-top: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    color: #5a6a7a;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.article-cover {
    margin: 26px 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: #2c3e50;
    word-wrap: break-word;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 21px;
    font-weight: 700;
    color: #0a2a5a;
    margin: 34px 0 16px;
    padding-left: 14px;
    border-left: 4px solid #c9a84c;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 26px 0 12px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    border-radius: 8px;
    margin: 20px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 15px;
}

.article-body th,
.article-body td {
    border: 1px solid #e3e9ef;
    padding: 11px 14px;
    text-align: left;
}

.article-body th {
    background: #f5f7fa;
    color: #0a2a5a;
    font-weight: 700;
}

/* ===== 列表页 ===== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== 产品详情 ===== */
.prod-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

.prod-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(10, 42, 90, 0.12);
    background: #f5f7fa;
}

.prod-img img {
    width: 100%;
}

.prod-info h2 {
    font-size: 26px;
    color: #0a2a5a;
    font-weight: 800;
    line-height: 1.4;
}

.prod-tag {
    display: inline-block;
    background: #eef4fb;
    color: #1a5a9a;
    font-size: 13px;
    padding: 5px 13px;
    border-radius: 999px;
    margin-top: 12px;
}

.prod-spec {
    margin-top: 22px;
    border-top: 1px solid #eef1f5;
}

.prod-spec div {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px dashed #eef1f5;
    font-size: 15px;
}

.prod-spec .k {
    width: 110px;
    color: #5a6a7a;
    flex-shrink: 0;
}

.prod-cta {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prod-cta a {
    display: inline-block;
    padding: 14px 30px;
    background: #0a2a5a;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s;
}

.prod-cta a.ghost {
    background: #fff;
    color: #0a2a5a;
    border: 1.5px solid #0a2a5a;
}

.prod-cta a:hover {
    background: #1a5a9a;
}

.prod-cta a.ghost:hover {
    background: #0a2a5a;
    color: #fff;
}

/* ===== 相关推荐 / 分页 ===== */
.related {
    margin-top: 60px;
}

.related h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0a2a5a;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid #c9a84c;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.pager a,
.pager span {
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e3e9ef;
    color: #2c3e50;
}

.pager a:hover {
    border-color: #0a2a5a;
    color: #0a2a5a;
}

.pager .cur {
    background: #0a2a5a;
    color: #fff;
    border-color: #0a2a5a;
}

.pager .off {
    color: #c3ccd6;
}

/* 首页新闻卡也可点击整卡 */
.news-card a {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
}

@media (max-width: 980px) {
    .news-grid,
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-card {
        padding: 28px 22px;
    }

    .article-title {
        font-size: 23px;
    }

    .page-hero h1 {
        font-size: 25px;
    }

    .page-hero {
        padding: 110px 0 52px;
    }
}

@media (max-width: 620px) {
    .news-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 60px 0;
    }
}

/* ===== 导航栏：7 项菜单的中等宽度适配 =====
   品牌区与电话按钮都是 flex-shrink:0（宽度固定），横向挤压全部落在 .nav-menu 上。
   7 个菜单项在 993~1110px 区间会被压到「文字折成两行 + 与两侧贴死」，
   因此在该区间收紧菜单间距与字号，留出安全余量。
   992px 及以下 .nav-menu 变为下拉面板，不受影响。 */
@media (min-width: 993px) and (max-width: 1140px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-menu li a {
        font-size: 14px;
        white-space: nowrap;
    }

    .nav-brand {
        font-size: 21px;
    }

    .nav-brand .brand-tag {
        font-size: 16px;
    }

    .nav-phone {
        font-size: 16px;
        padding: 7px 15px;
        gap: 6px;
    }

    .nav-phone .phone-icon {
        font-size: 17px;
    }
}

/* ===== 页脚底部：版权居左、ICP 备案号居右 ===== */
/* 放在 extra.css 是因为 site.css 由 _tools/split_home.py 重新生成，改动会被覆盖 */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 18px;
    text-align: left;
}

/* 未配置备案号时整行只剩版权一项，回到居中，保持改动前的观感 */
.footer-bottom > :only-child {
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a.footer-icp,
.footer-bottom a.footer-icp:visited {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.footer-bottom a.footer-icp:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* 窄屏两项并排放不下，改为上下居中堆叠 */
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
