/* ============================================================
   内页通用样式（列表页 / 详情页）
   仅用于 list.html、details.html，与主页共用 styles.css 的头尾
   主题色沿用 --theme-color-1 (#b2844d 金)
   ============================================================ */

/* 内页横幅 */
/* 内页头部横幅：白底黑字，标题左 + 面包屑右，简洁合理 */
.inner-banner{
    position: relative;
    padding: 32px 0;
    background: #ffffff;
    color: #1a1a1a;
    border-bottom: 1px solid #ececec;
}
.inner-banner .container{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.inner-banner .inner-title{
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: .5px;
}
.inner-banner .breadcrumb{
    justify-content: flex-start;
    background: transparent;
    margin: 0;
    padding: 0;
}
.inner-banner .breadcrumb-item,
.inner-banner .breadcrumb-item a{
    color: #666;
    text-decoration: none;
    font-size: 14px;
}
.inner-banner .breadcrumb-item.active{ color:#1a1a1a; font-weight:600; }
.inner-banner .breadcrumb-item + .breadcrumb-item::before{ color:#bbb; }

/* 详情页正文上方居中的文章标题（沿用原 inner-title 样式，仅居中） */
.detail-page-title{
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
    letter-spacing: .5px;
}

/* 内页头部导航：白底黑字，正常流布局（不绝对覆盖横幅） */
.inner-page .navbar{
    position: relative;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.inner-page .navbar.fixed-top{
    position: fixed;
}
.inner-page .topbar{ border-bottom: 1px solid #eee; }
.inner-page .navbar-dark .navbar-nav .nav-link,
.inner-page .topbar-contact-wrapper ul li a,
.inner-page .topbar-contact-wrapper ul li a i,
.inner-page .topbar-social li a{
    color: #1a1a1a;
}
.inner-page .navbar-toggler{ color:#ffffff; }


/* 内页白底导航上的搜索框：原样式为深色导航设计（半透明白底+白字），
   在白底 navbar 上会隐形，这里改为可见配色 */
.inner-page .nav-search-input{
    background:#ffffff;
    border:1px solid #d9cdb2;
    border-right:none;
    color:#333;
}
.inner-page .nav-search-input::placeholder{ color:#9a8a68; }
.inner-page .nav-search-btn{
    background:var(--theme-color-1);
    border:1px solid var(--theme-color-1);
    color:#fff;
}
.inner-page .nav-search-btn:hover{ background:#9c6f3f; border-color:#9c6f3f; color:#fff; }
/* 内页滚动吸附后（fixed-top）同样使用金棕按钮+浅底，保持与顶部一致 */
.inner-page .navbar.fixed-top .nav-search-input{
    background:#ffffff;
    border-color:#d9cdb2;
    color:#333;
}
.inner-page .navbar.fixed-top .nav-search-btn{
    background:var(--theme-color-1);
    border-color:var(--theme-color-1);
    color:#fff;
}
/* 移动端展开（白底菜单）时让搜索框整行可见 */
@media (max-width: 991px){
    .inner-page .nav-item.search{ margin:10px 0 4px; }
}

.page-section{ padding: 70px 0; background:#fafafa; }

/* ---------- 列表卡片 ---------- */
.article-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 22px rgba(0,0,0,.06);
    margin-bottom:30px;
    display:flex;
    flex-direction:column;
    height:100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.article-card:hover{
    transform: translateY(-6px);
    box-shadow:0 16px 38px rgba(0,0,0,.12);
}
.article-card .thumb{ overflow:hidden; }
.article-card .thumb img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
    transition: transform .5s ease;
}
.article-card:hover .thumb img{ transform: scale(1.08); }
.article-card .card-body{
    padding:18px 22px 20px;
    flex:1;
    display:flex;
    flex-direction:column;
}
.article-card .cat-tags{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
}
.article-card .cat-tag{
    display:inline-block;
    font-size:12px;
    color:#fff;
    background: var(--theme-color-1);
    padding:3px 12px;
    border-radius:20px;
    white-space:nowrap;
}
.article-card .cat-tag.cat-tag-raid{
    background:#f3ecdc;
    color:#9a7b2e;
}
.article-card .meta{ font-size:13px; color:#6b6b6b; margin-bottom:10px; }
.article-card .meta span{ margin-right:16px; }
.article-card h3{ font-size:19px; line-height:1.5; margin:0 0 12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:3em; }
.article-card h3 a{ color:#222; text-decoration:none; }
.article-card h3 a:hover{ color: var(--theme-color-1); }
.article-card .excerpt{ color:#666; font-size:14px; line-height:1.75; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.article-card .read-more{
    margin-top:18px;
    font-weight:600;
    color: var(--theme-color-1);
    text-decoration:none;
}
.article-card .read-more:hover{ text-decoration:underline; }

/* 首页「关于我们」正文详情链接 */
.about-detail{
    display:inline-block;
    margin-top:18px;
    font-weight:600;
    color: var(--theme-color-1);
    text-decoration:none;
}
.about-detail:hover{ text-decoration:underline; }

/* 分页 */
.pagination-wrap{ margin-top:6px; }
.pagination .page-link{ color: var(--theme-color-1); }
.pagination .page-item.active .page-link{
    background: var(--theme-color-1);
    border-color: var(--theme-color-1);
    color:#fff;
}

/* ---------- 侧边栏 ---------- */
.sidebar-box{
    background:#fff;
    border-radius:12px;
    padding:24px;
    margin-bottom:28px;
    box-shadow:0 6px 22px rgba(0,0,0,.05);
}
.sidebar-box h3{
    font-size:18px;
    margin:0 0 18px;
    padding-bottom:12px;
    border-bottom:2px solid var(--theme-color-1);
    color:#222;
}
.sidebar-search form{ display:flex; }
.sidebar-search input{
    flex:1;
    border:1px solid #e3e3e3;
    border-right:none;
    padding:10px 14px;
    border-radius:8px 0 0 8px;
    outline:none;
}
.sidebar-search button{
    border:none;
    background: var(--theme-color-1);
    color:#fff;
    padding:0 18px;
    border-radius:0 8px 8px 0;
    cursor:pointer;
}
.sidebar-box .cat-list{ list-style:none; margin:0; padding:0; }
.sidebar-box .cat-list li{ padding:11px 0; border-bottom:1px solid #f0f0f0; }
.sidebar-box .cat-list li:last-child{ border-bottom:none; padding-bottom:0; }
.sidebar-box .cat-list a{ color:#555; text-decoration:none; display:flex; justify-content:space-between; }
.sidebar-box .cat-list a:hover{ color: var(--theme-color-1); }
.sidebar-box .cat-list .count{ color:#7a7a7a; font-size:13px; }

/* ---------- 侧栏目录树（栏目分类） ---------- */
.sidebar-box .tree-cat-list,
.sidebar-box .tree-cat-list .tree-children{
    list-style:none; margin:0; padding:0;
}

/* 顶级节点之间的虚线分隔（保持之前要求的行分隔） */
.sidebar-box .tree-cat-list > .tree-item{ border-bottom:1px dashed #ece3d2; }
.sidebar-box .tree-cat-list > .tree-item:last-child{ border-bottom:none; }

.sidebar-box .tree-item{ position:relative; }

/* 行：箭头 + 链接 横向排列 */
.sidebar-box .tree-row{ display:flex; align-items:center; }

/* 折叠 / 展开箭头 */
.sidebar-box .tree-toggle{
    width:20px; flex-shrink:0; text-align:center;
    cursor:pointer; color:#b9a784; user-select:none;
    font-size:12px; line-height:1;
    transition:color .15s ease;
}
.sidebar-box .tree-toggle:hover{ color:var(--theme-color-1); }
.sidebar-box .tree-toggle .fa{ display:inline-block; transition:transform .18s ease; }
.sidebar-box .tree-toggle--leaf{ cursor:default; }
/* 折叠时箭头向右 */
.sidebar-box .tree-item.collapsed > .tree-row .tree-toggle .fa{ transform:rotate(-90deg); }

.sidebar-box .tree-link{
    flex:1; display:flex; align-items:center; gap:10px;
    padding:14px 12px;
    color:#555; text-decoration:none;
    font-size:14.5px; line-height:1.6;
    border-radius:6px;
    transition:color .2s ease, background .2s ease, padding-left .2s ease;
}
.sidebar-box .tree-link .fa{ width:18px; text-align:center; color:#c8a96a; font-size:14px; flex-shrink:0; transition:color .2s ease; }
.sidebar-box .tree-link:hover{
    color:var(--theme-color-1);
    background:#faf6ef;
    padding-left:16px;
}
.sidebar-box .tree-link:hover .fa{ color:var(--theme-color-1); }

/* ===== 子级：清晰缩进 + 虚线分隔（呈现层级） ===== */
.sidebar-box .tree-children{
    list-style:none; margin:2px 0 6px 0; padding:0;
}
.sidebar-box .tree-children .tree-item{
    position:relative;
    margin-left:12px;          /* 整行右移，呈现层级缩进 */
    padding-left:12px;         /* 文字缩进间距 */
}
/* 子级之间的轻虚线分隔 */
.sidebar-box .tree-children .tree-item{ border-bottom:1px dashed #f1e9da; }
.sidebar-box .tree-children .tree-item:last-child{ border-bottom:none; }
.sidebar-box .tree-children .tree-link{ font-size:14px; padding:11px 12px; }
.sidebar-box .tree-children .tree-link .fa{ color:#bbab8c; }

/* 折叠时隐藏子级 */
.sidebar-box .tree-item.collapsed > .tree-children{ display:none; }

/* 根节点（栏目）强调 —— 仅作用于节点自身链接，不染色子孙 */
.sidebar-box .tree-item.is-root > .tree-row > .tree-link{ font-weight:600; color:#333; }
.sidebar-box .tree-item.is-root > .tree-row > .tree-link .fa{ color:var(--theme-color-1); font-size:14px; }

/* 当前文章高亮（沿用主题金，左侧描边） —— 仅作用于节点自身链接，不染色子孙 */
.sidebar-box .tree-item.is-current > .tree-row > .tree-link{
    color:var(--theme-color-1);
    font-weight:700;
    background:#faf6ef;
    box-shadow:inset 3px 0 0 var(--theme-color-1);
    padding-left:16px;
}
.sidebar-box .tree-item.is-current > .tree-row > .tree-link .fa{ color:var(--theme-color-1); }

.sidebar-box .recent-list{ list-style:none; margin:0; padding:0; }
.sidebar-box .recent-list li{ display:flex; gap:12px; margin-bottom:16px; }
.sidebar-box .recent-list li:last-child{ margin-bottom:0; }
.sidebar-box .recent-list img{
    width:72px; height:60px; object-fit:cover;
    border-radius:6px; flex-shrink:0;
}
.sidebar-box .recent-list .t{ font-size:14px; color:#333; line-height:1.5; text-decoration:none; display:block; }
.sidebar-box .recent-list a:hover .t{ color: var(--theme-color-1); }
.sidebar-box .recent-list .d{ font-size:12px; color:#7a7a7a; }

.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a{
    font-size:13px; color:#666; text-decoration:none;
    border:1px solid #e3e3e3; border-radius:20px;
    padding:5px 14px; transition: all .2s;
}
.tag-cloud a:hover{ background: var(--theme-color-1); color:#fff; border-color: var(--theme-color-1); }

/* ---------- 详情页 ---------- */
.article-detail .detail-title{ font-size:30px; line-height:1.45; margin:0 0 16px; color:#222; }
.article-detail .detail-meta{ font-size:14px; color:#6b6b6b; margin-bottom:26px; padding-bottom:18px; border-bottom:1px solid #eee; }
.article-detail .detail-meta span{ margin-right:20px; }
.article-detail .detail-meta i{ margin-right:6px; color: var(--theme-color-1); }
/* 元信息移至正文底部时：改为上边框分隔，去掉下边距/下边框 */
.article-detail .detail-meta--bottom{ margin-top:30px; margin-bottom:0; padding-top:18px; padding-bottom:0; border-top:1px solid #eee; border-bottom:none; }
.article-detail .detail-cover{
    width:100%;
    border-radius:12px;
    margin-bottom:28px;
    display:block;
}
.article-detail .detail-content{ font-size:16px; line-height:1.95; color:#444; }
.article-detail .detail-content p{ margin-bottom:20px; }
.article-detail .detail-content img{ max-width:100%; border-radius:10px; margin:6px 0 24px; }
.article-detail .detail-content h2,
.article-detail .detail-content h3{ margin:32px 0 16px; color:#222; }
.article-detail blockquote{
    border-left:4px solid var(--theme-color-1);
    padding:14px 22px;
    background:#faf6ee;
    color:#666;
    margin:24px 0;
    border-radius:0 8px 8px 0;
    font-style:italic;
}
.detail-nav{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:36px;
    padding-top:24px;
    border-top:1px solid #eee;
}
.detail-nav a{ color:#555; text-decoration:none; max-width:48%; }
.detail-nav a:hover{ color: var(--theme-color-1); }
.detail-nav .label{ font-size:13px; color:#7a7a7a; display:block; margin-bottom:4px; }
.detail-nav .next{ text-align:right; }

.author-card{ text-align:center; }
.author-card img{
    width:84px; height:84px; border-radius:50%;
    object-fit:cover; margin:0 auto 14px;
    border:3px solid var(--theme-color-1);
}
.author-card h4{ margin:0 0 6px; font-size:17px; color:#222; }
.author-card p{ font-size:13px; color:#6f6f6f; margin:0; }

/* ============================================================
   中文首页（index.html）
   ============================================================ */
.cn-hero{
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    background: url('../picture/hero-home.jpg') center/cover no-repeat;
    color: #fff;
    padding-top: 150px;
}
.cn-hero::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(90deg, rgba(40,28,12,.85) 0%, rgba(40,28,12,.55) 50%, rgba(40,28,12,.25) 100%);
}
.cn-hero .container{ position:relative; z-index:1; }
.cn-hero .hero-tag{
    display:inline-block; letter-spacing:3px; font-size:14px; color:#f0d9a8;
    margin-bottom:18px; border:1px solid rgba(240,217,168,.5);
    padding:5px 16px; border-radius:30px;
}
.cn-hero h1{ font-size:46px; font-weight:700; line-height:1.25; margin-bottom:18px; text-shadow:0 2px 12px rgba(0,0,0,.3); }
.cn-hero .en{ font-size:18px; color:#ecdcc0; margin-bottom:22px; letter-spacing:1px; }
.cn-hero p{ font-size:17px; line-height:1.9; max-width:620px; color:#f4ede1; margin-bottom:30px; }
.cn-hero .banner-btns a{ margin-right:14px; }

.cn-section{ padding:80px 0; scroll-margin-top: 120px; }
footer{ scroll-margin-top: 120px; }
.cn-section.bg-soft{ background:#fafafa; }
.cn-section-head{ text-align:center; margin-bottom:50px; }
.cn-section-head .eyebrow{ color:var(--theme-color-1); font-weight:600; letter-spacing:2px; font-size:14px; }
.cn-section-head h2{ font-size:32px; margin:10px 0 14px; color:#222; }
.cn-section-head p{ color:#6a6a6a; max-width:700px; margin:0 auto; }

.cn-about .about-img{ border-radius:14px; overflow:hidden; box-shadow:0 14px 40px rgba(0,0,0,.12); }
.cn-about .about-img img{ width:100%; display:block; }
.cn-about .about-text h2{ font-size:30px; margin-bottom:18px; color:#222; }
.cn-about .about-text p{ font-size:16px; line-height:1.95; color:#555; margin-bottom:18px; }
.cn-about .about-stats{ display:flex; gap:32px; margin-top:26px; flex-wrap:wrap; }
.cn-about .stat .num{ font-size:30px; font-weight:700; color:var(--theme-color-1); }
.cn-about .stat .lbl{ font-size:14px; color:#6f6f6f; }

.cn-service{
    background:#fff; border-radius:14px; padding:34px 28px; text-align:center;
    box-shadow:0 8px 26px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s; height:100%;
}
.cn-service:hover{ transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.12); }
.cn-service .ico{
    width:70px; height:70px; line-height:70px; border-radius:50%;
    background:rgba(178,132,77,.12); color:var(--theme-color-1);
    font-size:28px; margin:0 auto 18px;
    display:flex; align-items:center; justify-content:center;
}
.cn-service .ico img{ max-width:48px; max-height:48px; object-fit:contain; }
.cn-service h3{ font-size:20px; margin-bottom:12px; color:#222; }
.cn-service h3 a{ color:#222; text-decoration:none; transition: color .2s; }
.cn-service h3 a:hover{ color:var(--theme-color-1); }
.cn-service p{ font-size:14px; color:#666; line-height:1.8; }

@media (max-width: 991px){
    .cn-hero{ min-height:60vh; }
    .cn-hero h1{ font-size:32px; }
    .cn-section{ padding:56px 0; }
    .cn-section-head h2{ font-size:26px; }
}

@media (max-width: 991px){
    .inner-banner{ padding:24px 0; }
    .inner-banner .inner-title{ font-size:21px; }
    .inner-banner .container{ flex-direction: column; align-items: flex-start; }
    .inner-banner .breadcrumb{ justify-content: flex-start; }
}

/* ---------- 列表页：长条形展示卡片（左文右图，无图则整行文字） ---------- */
.list-item{
    display:flex;
    align-items:stretch;
    gap:22px;
    background:#fff;
    border-radius:12px;
    padding:18px 20px;
    margin-bottom:18px;
    box-shadow:0 6px 22px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.list-item:hover{
    transform: translateY(-3px);
    box-shadow:0 14px 34px rgba(0,0,0,.12);
}
.list-item .li-body{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
}
.list-item .li-cat{
    display:inline-block;
    align-self:flex-start;
    font-size:12px;
    color:#fff;
    background:var(--theme-color-1);
    padding:3px 12px;
    border-radius:20px;
    margin-bottom:10px;
}
.list-item .li-title{
    font-size:19px;
    line-height:1.5;
    margin:0 0 8px;
    font-weight:600;
}
.list-item .li-title a{ color:#222; text-decoration:none; }
.list-item .li-title a:hover{ color:var(--theme-color-1); }
.list-item .li-excerpt{
    color:#666;
    font-size:14px;
    line-height:1.8;
    margin:0 0 12px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.list-item .li-meta{
    font-size:13px;
    color:#6b6b6b;
    margin-top:auto;
}
.list-item .li-meta span{ margin-right:18px; }
.list-item .li-meta i{ color:var(--theme-color-1); margin-right:5px; }
/* 右侧缩略图：有图才渲染，无图时整行文字 */
.list-item .li-thumb{
    flex-shrink:0;
    width:210px;
    height:140px;
    border-radius:8px;
    overflow:hidden;
    display:block;
}
.list-item .li-thumb img{
    width:100%; height:100%;
    object-fit:cover; display:block;
    transition: transform .5s ease;
}
.list-item:hover .li-thumb img{ transform: scale(1.06); }

/* 侧栏栏目分类当前项高亮 */
.sidebar-box .cat-list a.active{ color:var(--theme-color-1); font-weight:600; }

@media (max-width:575px){
    .list-item{ gap:14px; padding:14px; }
    .list-item .li-thumb{ width:120px; height:96px; }
    .list-item .li-title{ font-size:17px; }
}

/* ============================================================
   站内搜索条（list.php 主列表顶部）
   ============================================================ */
.search-bar-wrap{ margin-bottom:26px; }
.search-bar-form{
    position:relative;
    display:flex;
    align-items:center;
    background:#fff;
    border:1px solid #e3d9c6;
    border-radius:40px;
    padding:6px 6px 6px 18px;
    box-shadow:0 2px 10px rgba(178,132,77,.06);
    transition:border-color .2s ease, box-shadow .2s ease;
}
.search-bar-form:focus-within{
    border-color:var(--theme-color-1);
    box-shadow:0 2px 14px rgba(178,132,77,.16);
}
.search-bar-ico{
    color:#b8a378; font-size:15px; margin-right:10px; flex-shrink:0;
}
.search-bar-input{
    flex:1; min-width:0;
    border:0; outline:0; background:transparent;
    font-size:15px; color:#333; height:38px;
}
.search-bar-input::placeholder{ color:#b3a890; }
.search-bar-btn{
    flex-shrink:0;
    border:0; cursor:pointer;
    background:var(--theme-color-1); color:#fff;
    font-size:14px; padding:0 22px; height:38px;
    border-radius:30px;
    transition:background .2s ease;
}
.search-bar-btn:hover{ background:#9a6f3c; }
.search-bar-clear{
    flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    width:30px; height:30px; margin:0 4px;
    border-radius:50%; color:#9a8a6a; font-size:20px; line-height:1;
    text-decoration:none;
}
.search-bar-clear:hover{ background:#f1ebde; color:#7a6a4a; }
.search-result-info{
    margin-top:12px; padding-left:6px;
    font-size:14px; color:#8a7c60;
}
.search-result-info strong{ color:var(--theme-color-1); font-size:16px; }

/* 文章文后 PDF 附件预览 */
.detail-attachments{ margin-top:30px; padding-top:22px; border-top:1px solid #eee; }
.detail-attachments-title{ font-size:18px; font-weight:700; color:#222; margin:0 0 16px; }
.detail-pdf-list iframe{ display:block; width:100%; margin-bottom:18px; border-radius:2px; }
