@charset "utf-8";
/* =============================================================
   福建省南平市乾宁助剂有限公司 · 官网样式
   移动优先的响应式布局，配色沿用原站（蓝 #126db3 / 橙 #f97506）
   ============================================================= */

:root {
    --blue: #126db3;
    --blue-d: #0d5b96;
    --orange: #f97506;
    --bg: #f1f1f1;
    --line: #e5e5e5;
    --text: #555;
    --title: #333;
    --muted: #999;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.8 "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: 965px; margin: 0 auto; }

/* ---------------- 页头 ---------------- */
.site-header { background: #fff; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.logo { display: block; flex: none; }
.logo img { display: block; width: 391px; max-width: 100%; height: auto; }

.top-contact {
    text-align: right;
    font-size: 13px;
    line-height: 2;
    color: #666;
    white-space: nowrap;
}
.top-contact b { color: var(--blue); font-weight: 700; }

/* ---------------- 导航 ---------------- */
.site-nav { background: var(--blue); }

.nav-list { display: flex; }

.nav-list li { flex: 1 1 auto; }

.nav-list a {
    display: block;
    height: 46px;
    line-height: 46px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--orange);
    color: #fff;
    font-weight: 700;
}

/* ---------------- 主区域 ---------------- */
.main { padding: 12px 0 26px; }

.crumb {
    font-size: 13px;
    color: var(--muted);
    padding: 0 2px 10px;
 display:none;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

/* 焦点图：两张图淡入淡出轮播（纯 CSS） */
.hero {
    position: relative;
    aspect-ratio: 965 / 291;
    overflow: hidden;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    background: #dceaf3 url(../img/banner1.jpg) center / cover no-repeat;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.hero .b1 { animation: heroFade 14s infinite; }
.hero .b2 { animation: heroFade 14s infinite 7s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    48%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 两栏：侧栏 + 正文 */
.layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.layout.single { grid-template-columns: minmax(0, 1fr); }
.layout.home { grid-template-columns: minmax(0, 1fr); }
.layout.home .content { background: none; border: 0; padding: 0; min-height: 0; }

/* ---------------- 侧栏 ---------------- */
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.side-title {
    height: 38px;
    line-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #2c5f8a;
    background: linear-gradient(#fafcfe, #ebf2f8);
    border-bottom: 1px solid var(--line);
}

.side-list a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.65;
    border-bottom: 1px dashed #eee;
    color: #555;
}
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { background: #f4fafd; color: var(--blue); }

.side-contact { padding: 12px 14px; font-size: 13px; line-height: 1.9; color: #666; }
.side-contact b { color: var(--title); font-weight: 400; }

/* ---------------- 正文卡片 ---------------- */
.content {
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px 26px 30px;
    min-height: 420px;
}

.content h1 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 21px;
    line-height: 1.4;
    color: var(--title);
    font-weight: 700;
}

.lead { margin: 0 0 16px; color: #777; font-size: 13px; }

/* 富文本（产品表格 / 新闻正文） */
.prose { font-size: 14px; line-height: 1.95; color: var(--text); }
.prose p { margin: 0 0 12px; }
.prose br { line-height: 1.95; }

.prose .table-wrap {
    overflow-x: auto;
    margin: 12px 0 18px;
    -webkit-overflow-scrolling: touch;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.75;
}

.prose td {
    border: 1px solid #d9e6f0;
    padding: 8px 10px;
    vertical-align: top;
    word-break: break-word;
}

.prose > .table-wrap > table > tbody > tr:first-child > td {
    background: #eaf3fa;
    color: #1f5f8b;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
}

/* 产品参数表：左侧“产品简介 / 技术指标”标签列固定宽度，避免被挤成一列字 */
.prose > .table-wrap > table > tbody > tr + tr > td:first-child {
    width: 118px;
    min-width: 96px;
    background: #f7fbfe;
    color: #2c5f8a;
    font-weight: 700;
    text-align: center;
}

/* 单元格里嵌套的指标表 */
.prose table table {
    width: 100%;
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.6;
}
.prose table table td { padding: 4px 6px; border-color: #e3eef6; }

/* 新闻正文首行缩进，符合中文排版习惯 */
.article-body p { text-indent: 2em; }

/* 产品列表 */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.prod-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fcfcfc;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    transition: all .2s;
}
.prod-card:hover {
    border-color: #bcd8ea;
    background: #f4fafd;
    color: var(--blue);
    box-shadow: 0 2px 10px rgba(18, 109, 179, .08);
}
.prod-card i { font-style: normal; color: #b9c6d0; font-size: 12px; flex: none; }

/* 产品详情页 */
.prod-actions {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed #e5e5e5;
    font-size: 13px;
    color: var(--muted);
}
.prod-actions a { color: var(--blue); margin-right: 18px; }

/* ---------------- 新闻列表 ---------------- */
.news-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 2px;
    border-bottom: 1px dashed #e8e8e8;
}
.news-list li:hover { background: #fafcfe; }
.news-list a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-list time { flex: none; color: var(--muted); font-size: 13px; }

.news-meta {
    margin: -6px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e8e8e8;
    font-size: 13px;
    color: var(--muted);
}
.news-meta span { margin-right: 16px; }

.news-nav {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px dashed #e5e5e5;
    font-size: 13px;
    line-height: 2.1;
}
.news-nav a { color: var(--blue); }

/* ---------------- 首页 ---------------- */
.home-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.home-box {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.home-box-hd {
    height: 40px;
    line-height: 40px;
    margin: 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #2c5f8a;
    background: linear-gradient(#fafcfe, #ebf2f8);
    border-bottom: 1px solid var(--line);
}

.home-box-bd { padding: 14px 16px; }

.home-prod { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; }
.home-prod img { border: 1px solid var(--line); }
.home-prod-list a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px dashed #f0f0f0;
    color: #555;
}
.home-prod-list a:hover { color: var(--blue); }

.home-more {
    padding: 0 16px 14px;
    font-size: 13px;
    text-align: right;
}
.home-more a { color: var(--blue); }

.home-news a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
}
.home-news a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news a span:last-child { flex: none; color: var(--muted); font-size: 12px; }

/* 联系方式 */
.contact-list { display: grid; grid-template-columns: 1fr; }
.contact-list li {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list em { font-style: normal; color: #888; }

.qq-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border: 1px solid #cfe0ee;
    border-radius: 3px;
    background: #f4fafd;
    color: #2c5f8a;
    font-size: 13px;
}
.qq-link:hover { background: #e8f4fb; }

/* 联系页地图卡片 */
.map-card {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #cfe2ef;
    border-radius: 3px;
    background: #f2f8fc;
    color: #3f6076;
    font-size: 13px;
    line-height: 1.9;
}
.map-card h3 { margin: 0 0 8px; font-size: 15px; color: #1f5f8b; }
.map-card a { color: #1f5f8b; text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #222;
    color: #fff;
    padding: 18px 0 20px;
    text-align: center;
    font-size: 13px;
    line-height: 2;
}
.site-footer .wrap { padding: 0 16px; }
.site-footer a { color: #fff; margin: 0 8px; }
.site-footer a:hover { color: #7cc0ea; }
.foot-nav { margin-bottom: 4px; }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 1000px) {
    .wrap { padding: 0 14px; }
}

@media (max-width: 860px) {
    .header-inner {
        flex-direction: column;
        gap: 4px;
        padding: 14px 0 12px;
        text-align: center;
    }
    .logo img { width: 300px; }
    .top-contact { text-align: center; white-space: normal; font-size: 13px; line-height: 1.8; }

    .nav-list { flex-wrap: nowrap; }
    .nav-list li { flex: 1 1 0; min-width: 0; }
    .nav-list a { height: 40px; line-height: 40px; font-size: 13px; letter-spacing: 0; padding: 0 2px; white-space: nowrap; }

    .main { padding: 10px 0 20px; }
    .hero { margin-bottom: 12px; }

    .layout { grid-template-columns: minmax(0, 1fr); }
    .layout .sidebar { order: 2; margin-top: 16px; }
    .layout .content { order: 1; padding: 16px 14px 22px; min-height: 0; }

    .content h1 { font-size: 18px; margin-bottom: 12px; }

    .home-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .prod-card { padding: 12px; font-size: 13px; }

    .news-list a { white-space: normal; }
    .news-list time { font-size: 12px; }

    .prose { font-size: 13.5px; }
    .prose table { font-size: 12px; }
    .prose td { padding: 6px 7px; }
    .prose > .table-wrap > table > tbody > tr:first-child > td { font-size: 13px; }
    .prose > .table-wrap > table > tbody > tr + tr > td:first-child { width: 86px; min-width: 86px; }
    /* 窄屏下参数表列太多，给个最小宽度，靠 <div class="table-wrap"> 横向滑动查看 */
    .prose table table { font-size: 11px; min-width: 520px; }

    .contact-list li { grid-template-columns: 60px minmax(0, 1fr); font-size: 13px; }

    .site-footer { font-size: 12px; }
    .site-footer a { margin: 0 5px; }
}

@media (max-width: 640px) {
    .nav-list { flex-wrap: wrap; }
    .nav-list li { flex: 0 0 33.333%; }
    .nav-list a { height: 42px; line-height: 42px; font-size: 14px; }
}

@media (max-width: 420px) {
    .logo img { width: 250px; }
    .nav-list li { flex: 0 0 50%; }
}

/* 打印：只留正文 */
@media print {
    .site-header, .site-nav, .site-footer, .hero, .crumb, .sidebar, .prod-actions, .news-nav { display: none !important; }
    body { background: #fff; }
    .wrap { max-width: none; }
    .content { border: 0; padding: 0; }
    .prose .table-wrap { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
    .hero img { animation: none; }
    .hero .b1 { opacity: 1; }
}
