/*
Theme Name: 降解云 SEO
Theme URI: https://www.jiangjiedai.cn
Author: 降解云
Author URI: https://www.jiangjiedai.cn
Description: 为「降解云」定制的轻量 SEO 主题。外观沿用原 Git 主题的绿色清爽风格，重写为语义化 HTML5 + 零 jQuery + 原生响应式图片；内置标题/描述/规范化/Open Graph/JSON-LD 结构化数据/面包屑等全套 SEO 输出。
Version: 1.1.3
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 响应式,SEO,绿色,双栏,博客,图片,中文
Text Domain: jiedai
*/

/* ==========================================================================
   0. 变量与基础
   ========================================================================== */
:root {
    --c-main: #17AFA0;
    --c-main-dark: #0E8A7C;
    --c-main-deep: #0A6B60;
    --c-text: #555;
    --c-muted: #999;
    --c-line: #eee;
    --c-bg: #eee;
    --c-white: #fff;
    --c-navbar: #4a4a4a;
    /* 头部青色系 */
    --c-teal: #17AFA0;
    --c-teal-dark: #0E8A7C;
    --c-teal-deep: #0A6B60;
    --c-teal-soft: #F1FBFA;
    --c-teal-line: #D8F0ED;
    --w-container: 1226px;
    --w-sidebar: 360px;
}

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

a { color: #555; text-decoration: none; }
a:hover, a:focus { color: var(--c-main-deep); text-decoration: none; }

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
img[width][height] { height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

ul, ol { margin: 0; padding: 0; list-style: none; }

p { margin: 0 0 10px; }

input, button, select, textarea { font-family: inherit; font-size: inherit; }

.screen-reader-text {
    position: absolute !important; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; padding: 0; border: 0; word-wrap: normal !important;
}

.clearfix:before, .clearfix:after,
.container:before, .container:after,
.content-wrap:before, .content-wrap:after,
.excerpt:before, .excerpt:after { display: table; content: ""; line-height: 0; }
.clearfix:after, .container:after, .content-wrap:after, .excerpt:after { clear: both; }

.muted { color: var(--c-muted); }

/* ==========================================================================
   1. 头部
   ========================================================================== */
#header {
    position: relative;
    z-index: 99;
    width: 100%;
    background-color: var(--c-teal);
    background-image: linear-gradient(135deg, #23C0AA 0%, #0D9486 55%, #0A8377 100%);
}

/* 头部主区（站名 + 联系方式） */
.header-main { padding: 12px 0; }
.header-main .container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-main:before, .header-main:after { display: table; content: ""; line-height: 0; }
.header-main:after { clear: both; }

.container-inner {
    position: relative;
    margin: 0 auto;
    max-width: var(--w-container);
    text-align: center;
}

.g-logo { float: left; text-align: left; padding: 6px 0 0; }
.g-logo a { display: block; padding: 0 0 0 4px; }
.h1logo { padding: 8px 0 12px; }
.g-mono {
    display: block;
    color: #fff;
    font-family: 楷体, KaiTi, STKaiti, serif;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.25;
    text-shadow: 0 2px 3px rgba(0,0,0,.35);
}
.g-bloger {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.92);
    font-family: 楷体, KaiTi, STKaiti, serif;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* 头部右侧：电话 + 微信二维码 */
.header-contact {
    float: right;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 8px 14px;
    background-color: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
}
.hc-phone { display: flex; align-items: center; gap: 10px; }
.hc-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--c-teal-dark);
    font-size: 19px;
}
.hc-txt { text-align: left; }
.hc-label { display: block; color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.5; }
.hc-num {
    display: block;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .5px;
}
.hc-num:hover, .hc-num:focus { color: #fff; opacity: .85; }
.hc-qr { text-align: center; }
.hc-qr img {
    display: block;
    width: 82px;
    height: 82px;
    padding: 3px;
    background-color: #fff;
    border-radius: 5px;
}
.hc-qr span { display: block; margin-top: 3px; color: rgba(255,255,255,.95); font-size: 11px; line-height: 1.25; }

/* 导航条 */
.navbar {
    position: relative;
    clear: both;
    height: 52px;
    background-color: var(--c-teal-dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 6px rgba(0,0,0,.12);
}
.navbar .container-inner { position: relative; text-align: left; }
.menu-toggle { display: none; }
.nav {
    position: relative;
    display: block;
    margin: 0 auto;
    max-width: var(--w-container);
    font-size: 15px;
}
.nav:before, .nav:after { display: table; content: ""; line-height: 0; }
.nav:after { clear: both; }
.nav > li { position: relative; float: left; display: block; width: auto; min-width: 75px; }
.nav > li + li { box-shadow: inset 1px 0 0 rgba(255,255,255,.16); }
.nav li a { display: block; padding: 16px 22px; color: rgba(255,255,255,.92); transition: background-color .2s linear, color .2s linear; }
.nav > li > a { position: relative; }
.nav > li > a:after {
    position: absolute;
    right: 22px;
    bottom: 0;
    left: 22px;
    height: 3px;
    background-color: #7FE0D3;
    content: "";
    transform: scaleX(0);
    transition: transform .22s ease;
}
.nav li a:focus, .nav li a:hover { background-color: var(--c-teal-deep); color: #fff; }
.nav > li > a:focus:after, .nav > li > a:hover:after { transform: scaleX(1); }
.nav li.current-menu-item > a,
.nav li.current-menu-parent > a,
.nav li.current_page_item > a,
.nav li.current-post-ancestor > a,
.nav li.current_page_parent > a { background-color: var(--c-teal-deep); color: #fff; font-weight: 700; }
.nav li.current-menu-item > a:after,
.nav li.current-menu-parent > a:after,
.nav li.current_page_item > a:after { transform: scaleX(1); }

/* 二级下拉 */
.nav li > ul {
    position: absolute;
    left: 0;
    z-index: 10;
    display: none;
    min-width: 164px;
    background-color: var(--c-teal-deep);
    border-top: 3px solid #7FE0D3;
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
    text-align: left;
    font-size: 14px;
}
.nav li:hover > ul { display: block; }
.nav li > ul > li { float: none; margin: 0; min-width: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.nav li > ul > li:last-child { border-bottom: 0; }
.nav li > ul > li > a { padding: 9px 20px; color: rgba(255,255,255,.92); line-height: 22px; white-space: nowrap; }
.nav li > ul > li > a:hover { background-color: var(--c-teal-dark); color: #fff; }

/* 搜索（常驻输入框 + 图标即提交） */
.nav-search {
    position: absolute;
    top: 9px;
    right: 0;
    z-index: 5;
}
.nav-search .searchform { display: flex; align-items: stretch; gap: 6px; margin: 0; }
.nav-search input[type="search"] {
    width: 210px;
    height: 34px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    outline: 0;
    transition: box-shadow .2s linear;
}
.nav-search input[type="search"]::placeholder { color: #9AA8A6; }
.nav-search input[type="search"]:focus { box-shadow: 0 0 0 2px rgba(127,224,211,.55); }
.nav-search button[type="submit"] {
    flex: 0 0 auto;
    width: 40px;
    height: 34px;
    background-color: var(--c-teal-deep);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 3px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s linear, border-color .2s linear;
}
.nav-search button[type="submit"]:hover { background-color: var(--c-teal); border-color: transparent; }

/* 404 页搜索 */
.search-404 .searchform { display: flex; align-items: stretch; gap: 8px; max-width: 460px; margin: 18px auto 0; }
.search-404 input[type="search"] {
    flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px; background-color: #fff;
    border: 1px solid var(--c-line); border-radius: 3px; outline: 0;
}
.search-404 input[type="search"]:focus { border-color: var(--c-main); }
.search-404 button[type="submit"] {
    flex: 0 0 auto; padding: 0 18px; height: 40px; background-color: var(--c-main); color: #fff;
    border: 0; border-radius: 3px; cursor: pointer;
}
.search-404 button[type="submit"]:hover { background-color: var(--c-main-dark); }

/* ==========================================================================
   2. 公告栏
   ========================================================================== */
.speedbar {
    position: relative;
    clear: both;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 8px 0;
    height: 44px;
    background-color: var(--c-teal-soft);
    color: #666;
    line-height: 28px;
}
.speedbar .fa { margin-right: 7px; color: var(--c-main); font-size: 16px; }
.callboard { display: flex; align-items: center; height: 28px; overflow: hidden; }
.callboard > .fa { flex: 0 0 auto; }
.callboard ul { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; height: 28px; }
.callboard li { overflow: hidden; height: 28px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   3. 布局
   ========================================================================== */
.container { position: relative; margin: 0 auto 10px; max-width: var(--w-container); text-align: left; }
.content-wrap { float: left; width: 100%; }
.content { position: relative; margin-right: 370px; }
.sidebar { position: relative; float: left; margin-left: -360px; width: var(--w-sidebar); }

/* 侧栏跟随滚动：桌面端页面下滑时，侧栏（顶部图片 + 各挂件）吸顶跟随 */
@media (min-width: 1025px) {
    .sidebar { position: sticky; top: 20px; }
}

.section-title {
    position: relative;
    margin: 5px 20px;
    height: 45px;
    border-bottom: 1px solid #8FCFC6;
}
.section-title h2 { color: var(--c-main); font-size: 16px; line-height: 45px; }

/* ==========================================================================
   4. 文章列表
   ========================================================================== */
.excerpt {
    position: relative;
    clear: both;
    margin-bottom: 10px;
    padding: 20px 15px 20px 20px;
    background-color: var(--c-white);
    border-radius: 2px;
}
.excerpt header { margin: 0 10px 12px 0; }
.excerpt h2 { display: inline; margin: 0; font-size: 20px; line-height: 25px; }
.excerpt h2 a { color: #333; }
.excerpt h2 a:hover { color: var(--c-main); }
.excerpt .label {
    display: inline-block;
    position: relative;
    top: -2px;
    margin-right: 6px;
    padding: 2px 6px 4px;
    background-color: var(--c-main);
    color: #fff;
    font-size: 12px;
    line-height: 14px;
    border-radius: 2px;
}
.excerpt .label:hover { background-color: var(--c-main-dark); color: #fff; }
.excerpt .focus { position: relative; float: left; display: table; overflow: hidden; margin: 0 20px 0 0; width: 260px; height: 160px; text-align: center; }
.excerpt .focus a { display: table-cell; width: 260px; height: 160px; vertical-align: middle; }
.excerpt .focus img { display: block; margin: 0 auto; width: 260px; height: 160px; object-fit: cover; transition: transform .3s linear; }
.excerpt:hover .focus img { transform: scale(1.08); }
.excerpt .note { display: block; margin-bottom: 0; color: #777; font-size: 14px; line-height: 24px; word-wrap: break-word; }
.excerpt-nothumbnail { padding-left: 20px; }
.excerpt p.auth-span { position: absolute; right: 15px; bottom: 8px; margin: 0; color: var(--c-muted); font-size: 13px; }
.excerpt .muted { margin-right: 20px; font-size: 13px; }
.excerpt .muted .fa { margin-right: 3px; }
.action { padding: 0; border: 0; background: none !important; color: #f78585 !important; font-size: 13px; cursor: pointer; }
.excerpt .note .more-link { color: var(--c-main); }

/* ==========================================================================
   5. 侧边栏
   ========================================================================== */
.widget { clear: both; margin-bottom: 10px; background-color: var(--c-white); border-radius: 2px; }
.widget ul:before, .widget ul:after { display: table; content: ""; line-height: 0; }
.widget ul:after { clear: both; }
.widget-title {
    position: relative;
    margin: 0 20px 5px;
    height: 45px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 45px;
}
.widget ul { padding: 8px 20px 12px; color: #999; }
.widget li { margin-bottom: 8px; line-height: 24px; }
.widget li a:hover { color: var(--c-main); }
.widget select { margin: 10px 0; width: 100%; padding: 6px; height: 34px; }
.widget_categories li, .widget_archive li, .widget_pages li { float: left; width: 50%; }
.widget_categories ul, .widget_archive ul, .widget_pages ul { overflow: hidden; }
.widget_recent_entries span { display: block; margin-top: 2px; color: #999; font-size: 12px; }
.widget_text .textwidget { padding: 5px 20px 15px; line-height: 24px; }
.widget_text .textwidget img { display: block; margin: 0 auto; }
.widget_media_image img, .widget img { max-width: 100%; }
.widget_tag_cloud .tagcloud { padding: 10px 20px 15px; }
.widget_tag_cloud a { display: inline-block; margin: 0 5px 5px 0; padding: 2px 8px; background: #f2f2f2; font-size: 13px !important; border-radius: 2px; }
.widget_tag_cloud a:hover { background: var(--c-main); color: #fff; }
.widget_recent_comments li { color: #999; }

/* 热门 / 相关 */
.hot-posts { clear: both; background-color: var(--c-white); }
.hot-posts .section-title h2 { line-height: 45px; }
.hot-posts ul { margin: 0 20px 10px; padding: 10px 0; }
.hot-posts li { clear: both; overflow: hidden; padding: 6px 0; }
.hot-posts a { font-size: 14px; }
.hot-posts p { float: right; margin: 0 0 0 10px; color: #777; font-size: 13px; }

/* ==========================================================================
   6. 幻灯（置顶）
   ========================================================================== */
.slidewrap { margin-bottom: 10px; background: var(--c-white); }
.ws_images { position: relative; overflow: hidden; }
.ws_images ul { display: block; }
.ws_images li { display: none; }
.ws_images li.active { display: block; }
.ws_images img { display: block; width: 100%; height: auto; }
.ws_thumbs { overflow: hidden; padding: 10px 10px 4px; }
.ws_thumbs a { float: left; display: block; overflow: hidden; margin: 0 6px 6px 0; width: 120px; height: 62px; border: 2px solid transparent; }
.ws_thumbs a.active { border-color: var(--c-main); }
.ws_thumbs img { width: 120px; height: 62px; object-fit: cover; }

/* ==========================================================================
   7. 正文
   ========================================================================== */
.breadcrumbs { margin: 0 0 1px; padding: 10px 20px; background-color: #f7f7f7; color: #999; font-size: 13px; line-height: 20px; }
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: var(--c-main); }
.breadcrumbs .sep { margin: 0 6px; }

.article { background-color: var(--c-white); margin-bottom: 10px; border-radius: 2px; }
.article-header { padding: 22px 20px 6px; }
.article-title { margin: 0 0 12px; font-size: 24px; line-height: 34px; color: #333; }
.article-header .muted { margin-right: 20px; font-size: 13px; }
.article-header .cate a { display: inline-block; margin-right: 10px; padding: 2px 8px; background: var(--c-main); color: #fff; font-size: 12px; border-radius: 2px; }
.article-header .cate a:hover { background: var(--c-main-dark); color: #fff; }

.article-content { padding: 10px 20px 20px; color: #404040; font-size: 15px; line-height: 26px; word-wrap: break-word; }
.article-content p { margin: 0 0 18px; }
.article-content h2, .article-content h3, .article-content h4 { margin: 26px 0 14px; padding-left: 12px; border-left: 4px solid var(--c-main); background: #fbfbfb; color: #333; font-size: 18px; line-height: 40px; }
.article-content h3 { font-size: 17px; }
.article-content h4 { font-size: 16px; }
.article-content img { display: block; margin: 12px auto; max-width: 100%; height: auto; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--c-main-deep); text-decoration: underline; }
.article-content a:hover { color: var(--c-main); }
.article-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid #BDE7E1; background-color: #F7FCFB; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table { width: 100%; margin: 0 0 18px; border-collapse: collapse; }
.article-content th, .article-content td { padding: 8px 10px; border: 1px solid var(--c-line); }
.article-content th { background: #f7f7f7; }
.article-content pre { overflow: auto; padding: 12px; border: 1px solid var(--c-line); background-color: #f8f8f8; font-size: 13px; }
.article-content figure { margin: 0 0 18px; }
.article-content figcaption, .article-content .wp-element-caption { color: #999; font-size: 13px; text-align: center; }
.wp-block-image img { margin: 0 auto; }

.article-footer { padding: 12px 20px; border-top: 1px solid #f7f7f7; background-color: var(--c-white); }
.article-tags { clear: both; padding-top: 8px; font-size: 14px; }
.article-tags .fa { margin-right: 8px; color: #bbb; }
.article-tags a { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; background-color: #f2f2f2; color: #666; font-size: 13px; border-radius: 2px; }
.article-tags a:hover { background-color: var(--c-main); color: #fff; }

.article-nav { overflow: hidden; padding: 15px 20px; border-top: 1px solid #f2f2f2; background-color: #fbfbfb; color: #bbb; font-size: 14px; }
.article-nav span { position: relative; float: left; max-width: 48%; }
.article-nav span.article-nav-next { float: right; text-align: right; }
.article-nav a { color: #666; }
.article-nav a:hover { color: var(--c-main); }

.relates { overflow: hidden; margin-bottom: 10px; background-color: var(--c-white); border-radius: 2px; }
.relates h2, .relates h3 { margin: 0 20px; padding: 15px 0 10px; border-bottom: 1px dotted #e4e4e4; font-size: 15px; line-height: 24px; }
.relates ul { overflow: hidden; padding: 15px 0 15px 10px; }
.relates li { float: left; overflow: hidden; width: 49%; height: 30px; color: #bbb; line-height: 30px; }
.relates a { margin-right: 20px; padding-left: 10px; color: #555; }
.relates a:hover { color: var(--c-main); }

/* 分享 */
.share { padding: 10px 20px 0; }
.share a { display: inline-block; margin: 0 8px 8px 0; padding: 4px 12px; background: #f2f2f2; color: #666; font-size: 13px; border-radius: 2px; }
.share a:hover { background: var(--c-main); color: #fff; }

/* ==========================================================================
   8. 分页
   ========================================================================== */
.pagination { padding: 20px 0 15px; background-color: var(--c-white); text-align: center; }
.pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 12px;
    background-color: #eee;
    color: #666;
    font-size: 14px;
    border-radius: 2px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background-color: var(--c-main); color: #fff; }
.pagination .page-numbers.dots { background: none; }

/* ==========================================================================
   9. 页脚
   ========================================================================== */
#footbar { background: var(--c-white); border-top: 3px solid var(--c-main); }
#footbar ul { margin: 0 auto; padding: 20px 0; max-width: var(--w-container); overflow: hidden; }
#footbar li { float: left; width: 25%; padding: 0 15px; color: #999; font-size: 13px; line-height: 22px; }
#footbar p { margin: 0 0 6px; color: #333; font-size: 15px; }
#footbar .fa { margin-right: 6px; color: var(--c-main); }

.footer { border-top: 1px solid #333; background-color: #3a3a3a; color: #aaa; }
.footer-inner { margin: 0 auto; padding: 18px 20px 16px; max-width: var(--w-container); color: #aaa; font-size: 13px; line-height: 24px; }
.footer-inner:before, .footer-inner:after { display: table; content: ""; line-height: 0; }
.footer-inner:after { clear: both; }
.footer a { color: #aaa; }
.footer a:hover { color: #ddd; text-decoration: underline; }
.footer-copyright { text-align: center; }

/* 返回顶部 */
.rollto { position: fixed; right: 20px; bottom: 70px; z-index: 999; display: none; }
.rollto a { display: block; padding: 9px 11px; background: #4a4a4a; color: #fff; font-size: 16px; border-radius: 3px; }

/* ==========================================================================
   10. 评论
   ========================================================================== */
.comments-area { background: var(--c-white); padding: 5px 20px 20px; }
.comments-title { margin: 0; padding: 15px 0 10px; border-bottom: 1px solid var(--c-line); font-size: 16px; color: #333; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; margin-left: 30px; }
.comment-body { padding: 15px 0; border-bottom: 1px solid #f7f7f7; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { color: #999; font-size: 12px; }
.comment-content { margin-top: 8px; line-height: 24px; }
.reply a { font-size: 12px; color: var(--c-main); }
.comment-form p { margin-bottom: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 2px; outline: 0;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-main); }
.comment-form .submit {
    padding: 8px 24px; border: 0; background: var(--c-main); color: #fff; border-radius: 2px; cursor: pointer;
}
.comment-form .submit:hover { background: var(--c-main-dark); }

/* ==========================================================================
   11. 归档 / 404
   ========================================================================== */
/* 首页引导行（不抢信任带风头；首页 H1 由页头 logo 承担，这里避免重复 H1） */
.home-intro { margin: 0 0 10px; padding: 0 4px; }
.home-intro .home-intro-h1 { font-size: 18px; line-height: 27px; color: #22313a; margin: 0 0 3px; font-weight: 600; }
.home-intro .home-intro-h1 span { color: var(--c-main); }
.home-intro .home-intro-sub { margin: 0; font-size: 13px; color: #98a2a8; }

.archive-header { margin-bottom: 10px; padding: 18px 20px; background: var(--c-white); }
.archive-header h1 { font-size: 20px; color: #333; line-height: 30px; }
.archive-header p { margin: 6px 0 0; color: #999; font-size: 13px; }
.archive-header .archive-desc { margin: 8px 0 0; color: #777; font-size: 13px; line-height: 22px; }
.archive-header .archive-desc p { margin: 0 0 6px; color: #777; font-size: 13px; }
.archive-header .archive-desc p:last-child { margin-bottom: 0; }
.archive-header .archive-count strong { color: var(--c-main); }
.list-empty { padding: 40px 20px; background: var(--c-white); color: #999; font-size: 14px; text-align: center; }
.list-empty a { color: var(--c-main); }
.archive-cats { overflow: hidden; padding: 12px 20px 6px; background: var(--c-white); margin-bottom: 10px; }
.archive-cats a { float: left; margin: 0 8px 8px 0; padding: 4px 12px; background: #f2f2f2; color: #666; font-size: 13px; border-radius: 2px; }
.archive-cats a:hover { background: var(--c-main); color: #fff; }

.error404 .content-wrap { float: none; width: 100%; }
.error404 .content { margin-right: 0; }
.page-404 { padding: 60px 20px; background: var(--c-white); text-align: center; }
.page-404 h1 { font-size: 64px; color: var(--c-main); line-height: 1.2; }
.page-404 p { margin: 15px 0 25px; color: #999; }
.page-404 .btn { display: inline-block; padding: 9px 26px; background: var(--c-main); color: #fff; border-radius: 2px; }
.page-404 .btn:hover { background: var(--c-main-dark); color: #fff; }

/* ==========================================================================
   12. 信任带 / 工厂实拍 / 联系卡片
   ========================================================================== */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0 0 10px;
}
.trust-bar li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    text-align: center;
}
/* 可点击的信任格：整格铺满透明链接 */
.trust-bar li > a.tb-link {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    overflow: hidden;
    text-indent: -9999px;
    border-radius: 3px;
}
.trust-bar li > a.tb-link:hover { background-color: rgba(255, 255, 255, .12); }
/* 5 格分色：绿 / 蓝 / 橙 / 紫 / 青（实底白字，改成方案 B/C/D 只需换这几行） */
.trust-bar li:nth-child(1) { background-color: #43A047; }
.trust-bar li:nth-child(2) { background-color: #2980B9; }
.trust-bar li:nth-child(3) { background-color: #E67E22; }
.trust-bar li:nth-child(4) { background-color: #7E57C2; }
.trust-bar li:nth-child(5) { background-color: #0097A7; }
.trust-bar i { color: #fff; font-size: 26px; line-height: 1; }
.trust-bar .tb-txt em {
    display: block;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}
.trust-bar .tb-txt > span {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    line-height: 18px;
}

.factory-gallery { margin-bottom: 10px; padding-bottom: 14px; background-color: var(--c-white); border-radius: 2px; }
.factory-gallery .section-title { margin: 0; padding: 0 20px; }
.fg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px 20px 0; }
.fg-grid a { display: block; overflow: hidden; }
.fg-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .3s linear;
}
.fg-grid a:hover img { transform: scale(1.06); }

.contact-card { border-top: 3px solid var(--c-main); }
.contact-card .cc-title {
    height: 45px;
    padding: 0 20px;
    border-bottom: 1px solid #8FCFC6;
    color: var(--c-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 45px;
}
.contact-card .cc-body { padding: 16px 20px 18px; }
.contact-card .cc-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 0;
    background-color: var(--c-main);
    color: #fff;
    border-radius: 2px;
}
.contact-card .cc-tel em { font-size: 21px; font-style: normal; font-weight: 700; letter-spacing: .5px; }
.contact-card .cc-tel .fa { font-size: 22px; }
.contact-card .cc-tel:hover { background-color: var(--c-main-dark); color: #fff; }
.contact-card .cc-qr { margin-top: 14px; text-align: center; }
.contact-card .cc-qr img { width: 150px; height: 150px; border: 1px solid var(--c-line); }
.contact-card .cc-qr p { margin: 6px 0 0; color: var(--c-muted); font-size: 12px; }
.contact-card .cc-info { margin-top: 12px; }
.contact-card .cc-info li { color: #777; font-size: 13px; line-height: 24px; word-wrap: break-word; }
.contact-card .cc-info .fa { margin-right: 7px; color: var(--c-main); }

/* ==========================================================================
   13. 响应式
   ========================================================================== */
@media (max-width: 1240px) {
    .container, .footer-inner, #footbar ul, .nav { padding-left: 10px; padding-right: 10px; }
    .header-main .container-inner { padding-left: 10px; padding-right: 10px; }
    .nav-search { right: 10px; }
    .nav-search input[type="search"] { width: 180px; }
}

@media (max-width: 1080px) {
    .nav li a { padding: 16px 12px; }
    .nav-search input[type="search"] { width: 150px; }
}

@media (max-width: 900px) {
    .nav-search input[type="search"] { width: 120px; }
    .nav > li > a { padding-left: 10px; padding-right: 10px; }
    .nav > li.menu-item-has-children > a { padding-right: 26px; background-position: right 9px center; }
}

@media (max-width: 1024px) {
    .content { margin-right: 0; }
    .sidebar { float: none; margin-left: 0; width: 100%; }
    .excerpt .focus { margin-right: 15px; }
    .header-contact { gap: 12px; padding: 8px 12px; }
    .hc-num { font-size: 19px; }
    .hc-qr img { width: 78px; height: 78px; }
}

@media (max-width: 768px) {
    .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .trust-bar li { padding: 13px 6px; gap: 5px; }
    .trust-bar li:nth-child(5) { grid-column: span 2; }
    .trust-bar i { font-size: 22px; }
    .trust-bar .tb-txt em { font-size: 13px; }
    .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 12px 12px 0; }
    .g-mono { font-size: 1.75rem; }
    .g-bloger { font-size: .875rem; }
    .header-main { padding: 10px 0 12px; }
    .header-main .container-inner { flex-direction: column; align-items: stretch; padding-left: 10px; padding-right: 10px; }
    .header-contact {
        width: 100%;
        gap: 12px;
        justify-content: center;
        margin: 8px 0 0;
        padding: 7px 10px;
    }
    .g-logo { text-align: center; }
    .g-logo a { padding: 0; }
    .hc-ico { width: 34px; height: 34px; font-size: 16px; }
    .hc-label { font-size: 11px; }
    .hc-num { font-size: 17px; }
    .hc-qr img { width: 64px; height: 64px; padding: 2px; }
    .hc-qr span { font-size: 11px; margin-top: 2px; }
    .navbar { height: auto; }
    .navbar .container-inner { padding-left: 10px; }
    .nav { display: none; width: 100%; }
    .nav.open { display: block; }
    .nav > li { float: none; width: 100%; min-width: 0; border-bottom: 1px solid rgba(255,255,255,.16); box-shadow: none; }
    .nav li a { padding: 12px 20px; }
    .nav > li > a:after { right: 20px; left: 20px; }
    .nav li > ul { position: static; display: block; background: rgba(0,0,0,.16); border-top: 0; box-shadow: none; }
    .menu-toggle {
        display: block; width: auto; height: 47px; padding: 0 14px 0 20px; border: 0; background: transparent;
        color: #fff; font-size: 16px; line-height: 47px; text-align: left; cursor: pointer;
    }
    .nav-search { top: 6px; right: 10px; }
    .nav-search input[type="search"] { width: 148px; height: 35px; font-size: 13px; }
    .nav-search button[type="submit"] { width: 38px; height: 35px; }
    #footbar li { float: none; width: 100%; margin-bottom: 14px; }
    .excerpt .focus { float: none; margin: 0 auto 12px; }
    .excerpt p.auth-span { position: static; margin-top: 8px; text-align: right; }
    .relates li { float: none; width: 100%; }
    .article-title { font-size: 20px; line-height: 30px; }
}

@media (max-width: 480px) {
    .g-mono { font-size: 1.5rem; }
    .excerpt { padding: 12px; }
    .excerpt .focus, .excerpt .focus a, .excerpt .focus img { width: 100%; height: auto; }
    .article-content { padding: 10px 14px 16px; font-size: 15px; }
}

/* ==========================================================================
   资质与合规页（.qual-*）
   ========================================================================== */
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 22px; }
.qual-card { padding: 16px 18px 16px; border: 1px solid var(--c-line); border-top: 3px solid var(--c-main); border-radius: 3px; background: #fff; }
.article-content .qual-card h3 { margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 17px; line-height: 26px; color: #222; }
.qual-tag { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: 2px; background: var(--c-teal-soft); color: var(--c-main-dark); font-size: 12px; line-height: 20px; }
.qual-meta { margin: 0 0 12px; font-size: 13px; line-height: 23px; color: #777; }
.qual-meta b { color: #555; font-weight: 600; }
.qual-point { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #BDE7E1; background: #F7FCFB; font-size: 13.5px; line-height: 22px; color: #444; }
.qual-shot { display: block; }
.qual-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: 2px; background: #fff; }
.qual-shot span { display: block; margin-top: 6px; color: #999; font-size: 12px; text-align: center; }
.qual-qr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 22px; }
.qual-qr figure { margin: 0; padding: 16px 10px; border: 1px solid var(--c-line); border-radius: 3px; background: #fff; text-align: center; }
.qual-qr img { display: inline-block; width: 180px; height: 180px; }
.qual-qr figcaption { margin-top: 8px; color: #666; font-size: 13px; line-height: 20px; }
.qual-contact { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 3px; background: #F7FCFB; font-size: 14px; line-height: 26px; }
@media (max-width: 768px) {
    .qual-grid { grid-template-columns: 1fr; }
    .qual-qr { grid-template-columns: 1fr 1fr; }
    .qual-qr img { width: 140px; height: 140px; }
}

/* ==========================================================================
   正文通用组件（.lead / .cta-box）
   ========================================================================== */
.article-content .lead { margin: 0 0 20px; padding: 14px 16px; border-left: 4px solid var(--c-main); background: #F6FCFB; font-size: 15.5px; line-height: 28px; color: #333; }
.article-content .cta-box { margin: 24px 0 10px; padding: 16px 18px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-main); border-radius: 3px; background: #F6FCFB; font-size: 15px; line-height: 28px; color: #333; }

/* 导航下拉箭头（仅顶层有子菜单项） */
.nav > li.menu-item-has-children > a {
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff' fill-opacity='.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 9px 6px;
}

/* ==========================================================================
   页脚导航 + 公司信息（NAP）
   ========================================================================== */
.footer-nav { margin: 0 0 12px; text-align: center; }
.foot-nav { margin: 0; padding: 0; list-style: none; }
.foot-nav li { display: inline-block; margin: 0 4px; }
.foot-nav li a { padding: 0 8px; color: #bbb; font-size: 13px; }
.foot-nav li + li { border-left: 1px solid #555; }
.foot-nav li a:hover { color: #fff; }
.footer-nap { margin: 0 0 10px; text-align: center; color: #999; font-size: 13px; line-height: 24px; }
.footer-nap strong { color: #ccc; font-weight: 600; }
@media (max-width: 768px) {
    .footer-nap { font-size: 12px; }
}
