@charset "UTF-8";
/* =========================================================
   管之美官网 - 行业知识板块 / 导航下拉增强 / 标签系统
   knowledge.css  —— 全站统一引入
   ========================================================= */

/* ---------- 1. 导航下拉项：当前页高亮 ---------- */
.nav-item-dropdown .dropdown-item.active {
    color: #f26522;
    font-weight: 600;
}
.nav-item-dropdown .dropdown-item.active::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 6px;
    height: 2px;
    background: #f26522;
    border-radius: 1px;
}
.mobile-submenu a.active {
    color: #f26522 !important;
    font-weight: 600;
}

/* =========================================================
   2. 行业知识 - 列表页
   ========================================================= */

/* 面包屑 */
.gzm-crumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 0;
    font-size: 14px;
    color: #6b7280;
}
.gzm-crumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.gzm-crumb a:hover { color: #f26522; }
.gzm-crumb .sep { margin: 0 8px; color: #d1d5db; }
.gzm-crumb .cur { color: #f26522; }

/* 关键词标签筛选栏 */
.kn-tagbar {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 0 40px;
}
.kn-tagbar-inner {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, .04);
}
.kn-tagbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.kn-tagbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kn-tagbar-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #f26522;
    border-radius: 2px;
}
.kn-tagbar-count {
    font-size: 13px;
    color: #9ca3af;
}
.kn-tagbar-count b { color: #f26522; font-weight: 600; }
.kn-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kn-tag {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    line-height: 1.2;
    color: #4b5563;
    background: #f6f7f9;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.kn-tag:hover {
    color: #f26522;
    background: #fff4ee;
    border-color: #ffd9c2;
}
.kn-tag.active {
    color: #fff;
    background: #f26522;
    border-color: #f26522;
    font-weight: 600;
}
.kn-tag .kn-tag-num {
    opacity: .65;
    font-size: 12px;
    margin-left: 4px;
}

/* 关键词「展开/收起」按钮：桌面端默认隐藏 */
.kn-tag-more {
    display: none;
    align-items: center;
    gap: 4px;
    margin: 14px auto 0;
    padding: 8px 18px;
    font-size: 13px;
    color: #f26522;
    background: #fff4ee;
    border: 1px solid #ffd9c2;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s;
}
.kn-tag-more:hover { background: #f26522; color: #fff; }
.kn-tag-more svg { transition: transform .2s; }
.kn-tag-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 列表卡片：封面图整块可点击进入详情 */
.kn-card a.news-image {
    display: block;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.kn-card a.news-image:focus-visible {
    outline: 2px solid #f26522;
    outline-offset: -2px;
}
.kn-card .news-title a { cursor: pointer; }

/* 列表卡片增强：标签行 */
.kn-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}
.kn-card-tag {
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    color: #f26522;
    background: #fff4ee;
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s;
}
.kn-card-tag:hover { background: #f26522; color: #fff; }
.kn-card-cat {
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    color: #0ea5a4;
    background: #e8fbfa;
    border-radius: 4px;
}
.kn-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f0f1f3;
}
.kn-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }

/* 空态 */
.kn-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
}

/* 新闻页 → 行业知识库 的站内交叉链接条 */
.kn-crosslink {
    max-width: 1280px;
    margin: 36px auto 0;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #fff6f1 0%, #fffaf7 100%);
    border: 1px solid #ffe2d1;
    border-radius: 12px;
}
.kn-crosslink-text {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
}
.kn-crosslink-btn {
    flex: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #f26522;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s;
}
.kn-crosslink-btn:hover { background: #d8541a; }

/* =========================================================
   3. 行业知识 - 详情页
   ========================================================= */

/* 面包屑（详情页） */
.kn-crumb {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 40px 0;
    font-size: 14px;
    color: #6b7280;
}
.kn-crumb a { color: #6b7280; text-decoration: none; }
.kn-crumb a:hover { color: #f26522; }
.kn-crumb .sep { margin: 0 8px; color: #d1d5db; }
.kn-crumb .cur { color: #f26522; }

/* 文章元信息 */
.kn-meta {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #9ca3af;
}
/* 相关搜索词（GEO 长尾词承载区） */
.kn-geo-kws {
    margin: 8px 0 0;
    padding: 22px 24px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.kn-geo-kws .kn-kw {
    font-size: 13px;
    line-height: 1.2;
    padding: 7px 13px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
}
.kn-geo-kws .kn-kw:hover {
    color: #fff;
    background: #f26522;
    border-color: #f26522;
}

.kn-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kn-meta .kn-cat {
    color: #f26522;
    background: #fff4ee;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

/* 正文内标签（可点击，利于内链与收录） */
.kn-inline-tags {
    margin: 32px 0 0;
    padding: 24px;
    background: #fffaf7;
    border: 1px solid #ffe6d5;
    border-radius: 10px;
}
.kn-inline-tags .kn-it-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kn-inline-tags .kn-it-list { display: flex; flex-wrap: wrap; gap: 10px; }
.kn-inline-tags .kn-it-list a {
    font-size: 13px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ffd9c2;
    color: #f26522;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s;
}
.kn-inline-tags .kn-it-list a:hover { background: #f26522; color: #fff; }

/* 上一篇 / 下一篇 */
.kn-prevnext {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.kn-pn {
    display: block;
    padding: 18px 22px;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}
.kn-pn:hover { background: #fff4ee; border-color: #ffd9c2; }
.kn-pn .kn-pn-label { font-size: 12px; color: #9ca3af; display: block; margin-bottom: 6px; }
.kn-pn .kn-pn-title {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kn-pn.next { text-align: right; }
.kn-pn.empty { opacity: .45; pointer-events: none; }

/* 详情封面图 */
.kn-cover {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}
.kn-cover img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* =========================================================
   4. 详情页正文（行业知识专用排版）
   ========================================================= */

/* 面包屑需让开固定导航栏 */
.kn-crumb { padding: 128px 40px 0; }
.kn-crumb + .article-header { padding-top: 28px !important; }

.kn-article-header .kn-meta { justify-content: center; }

/* 正文标题改为左对齐 + 橙色竖线，更适合技术文章阅读 */
.kn-article h2 {
    text-align: left !important;
    font-size: 24px !important;
    border-left: 4px solid #f26522;
    padding-left: 14px;
    margin: 52px 0 24px !important;
}
.kn-article h3 {
    font-size: 19px;
    color: #111827;
    margin: 36px 0 16px;
    padding-left: 14px;
    position: relative;
}
.kn-article h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f26522;
}
.kn-article h4 { font-size: 17px; color: #1f2937; margin: 28px 0 12px; }

/* 正文表格 */
.kn-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    background: #fff;
}
.kn-article thead th {
    background: #f9fafb;
    color: #111827;
    font-weight: 600;
    text-align: left;
}
.kn-article th,
.kn-article td {
    border: 1px solid #e8eaee;
    padding: 12px 14px;
    line-height: 1.7;
    vertical-align: top;
}
.kn-article tbody tr:nth-child(even) td { background: #fcfcfd; }
.kn-article tbody tr:hover td { background: #fff8f4; }

/* 正文链接 */
.kn-article a {
    color: #d8541a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.kn-article a:hover { color: #f26522; }

/* 正文首段 */
.kn-article > p:first-of-type { text-indent: 0; font-size: 17px; color: #4b5563; }

/* 标签区链接样式 */
.article-tags a.tag { text-decoration: none; }
.kn-article-tags {
    border-top: 1px solid #f3f4f6;
    align-items: center;
    max-width: 800px;
    padding: 40px 0 60px;
}

/* 首页新闻区块：并排两个按钮（查看更多 / 行业知识） */
.news-more {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.news-more .kn-home-btn { margin-left: 0; }

/* 常见问题 FAQ（GEO：AI 搜索优先引用） */
.kn-faq {
    margin: 8px 0 0;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.kn-faq-item { border-bottom: 1px solid #f1f3f5; }
.kn-faq-item:last-child { border-bottom: none; }
.kn-faq-q {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    padding: 20px 24px 8px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.kn-faq-badge {
    flex: none;
    display: inline-block;
    min-width: 30px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: #f26522;
    border-radius: 4px;
    padding: 0 6px;
    margin-top: 2px;
}
.kn-faq-a {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.9;
    padding: 0 24px 20px 64px;
    text-align: justify;
}
@media (max-width: 768px) {
    .kn-faq-q { font-size: 16px; padding: 16px 16px 6px; }
    .kn-faq-a { font-size: 15px; padding: 0 16px 16px 16px; }
    .kn-geo-kws { padding: 16px 14px; gap: 7px; }
    .kn-geo-kws .kn-kw { font-size: 12px; padding: 6px 11px; }
}

/* =========================================================
   5. 列表页/详情页 响应式
   ========================================================= */
@media (max-width: 768px) {
    .news-more { flex-direction: column; align-items: stretch; padding: 0 1.25rem; }
    .news-more .kn-home-btn { display: inline-flex !important; justify-content: center; }
    .gzm-crumb { padding: 20px 1rem 0; font-size: 13px; }
    .page-header .page-tag { letter-spacing: 2px !important; font-size: 12px !important; }
    .kn-crumb { padding: 92px 1rem 0; font-size: 13px; }
    .kn-crumb + .article-header { padding-top: 18px !important; }
    .kn-tagbar { padding: 0 1rem; margin-top: 20px; }
    .kn-tagbar-inner { padding: 18px 16px; }
    .kn-tag { padding: 6px 13px; font-size: 12px; }
    /* 移动端关键词云折叠，避免占用过多首屏空间 */
    .kn-tag-list.collapsed { max-height: 118px; overflow: hidden; }
    .kn-tag-more { display: flex; }
    .kn-crosslink { margin: 24px 1rem 0; padding: 18px 16px; flex-direction: column; align-items: flex-start; }
    .kn-crosslink-text { font-size: 14px; }
    .kn-crosslink-btn { width: 100%; text-align: center; }
    .kn-card-tags { gap: 6px; margin: 10px 0 12px; }
    .kn-meta { padding: 0 1rem; gap: 12px; font-size: 12px; }
    .kn-cover { padding: 0 1rem; }
    .kn-inline-tags { padding: 18px 16px; margin-top: 24px; }
    .kn-prevnext { grid-template-columns: 1fr; padding: 0 1rem 32px; }
    .kn-pn { padding: 14px 16px; }
    .kn-pn.next { text-align: left; }
    .kn-article h2 { font-size: 19px !important; margin: 36px 0 18px !important; }
    .kn-article h3 { font-size: 17px; }
    .kn-article table { display: block; overflow-x: auto; white-space: nowrap; font-size: 13px; }
    .kn-article th, .kn-article td { padding: 9px 11px; }
    .kn-article p { font-size: 16px; line-height: 1.9; }
    .kn-article li { font-size: 15px; }
}
