/* ============================================================
   中药材库 · 一二三级页面合并样式
   cover_herb.html (herb_cover)   一级栏目封面页
   list_herb_sec.html (herb_list)  二级列表页
   show_herb.html (herb_detail)    三级详情页
   ============================================================ */


/* ============ 通用工具类（三页共用） ============ */
body.herb_cover .line-clamp-1,
body.herb_list .line-clamp-1,
body.herb_detail .line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.herb_cover .line-clamp-2,
body.herb_list .line-clamp-2,
body.herb_detail .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.herb_list .line-clamp-3,
body.herb_detail .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏通用 */
body.herb_cover .sidebar-widget,
body.herb_list .sidebar-widget,
body.herb_detail .sidebar-widget {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
body.herb_cover .sidebar-title,
body.herb_list .sidebar-title,
body.herb_detail .sidebar-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2A26;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #D4C9B8;
}
body.herb_cover .sidebar-title::before,
body.herb_list .sidebar-title::before,
body.herb_detail .sidebar-title::before {
    content: '';
    width: 3px;
    height: 1rem;
    background: linear-gradient(180deg, #9B3B2E, #C4A35A);
    border-radius: 2px;
}

/* 装饰分隔线 */
body.herb_cover .ornament-divider,
body.herb_list .ornament-divider,
body.herb_detail .ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin: 2.5rem 0;
    color: #B8A58B;
}
body.herb_cover .ornament-divider::before,
body.herb_list .ornament-divider::before,
body.herb_detail .ornament-divider::before,
body.herb_cover .ornament-divider::after,
body.herb_list .ornament-divider::after,
body.herb_detail .ornament-divider::after {
    content: '';
    flex: 1;
    max-width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4C9B8, transparent);
}

/* 排行榜 */
body.herb_cover .rank-item,
body.herb_list .rank-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #D4C9B8;
    transition: padding-left 0.2s;
}
body.herb_cover .rank-item:last-child,
body.herb_list .rank-item:last-child { border-bottom: none; }
body.herb_cover .rank-item:hover,
body.herb_list .rank-item:hover { padding-left: 0.5rem; }
body.herb_cover .rank-num,
body.herb_list .rank-num {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.8rem;
    background: #EDE5D8;
    color: #8B7355;
}
body.herb_cover .rank-item:nth-child(1) .rank-num,
body.herb_list .rank-item:nth-child(1) .rank-num { background: #9B3B2E; color: #fff; }
body.herb_cover .rank-item:nth-child(2) .rank-num,
body.herb_list .rank-item:nth-child(2) .rank-num { background: #C4A35A; color: #fff; }
body.herb_cover .rank-item:nth-child(3) .rank-num,
body.herb_list .rank-item:nth-child(3) .rank-num { background: #4A7C8C; color: #fff; }

/* 药性徽章（跨页通用） */
body.herb_cover .prop-warm,
body.herb_list .prop-warm,
body.herb_detail .tag-warm { background: rgba(155,59,46,0.1); color: #9B3B2E; }
body.herb_cover .prop-cold,
body.herb_list .prop-cold,
body.herb_detail .tag-cold { background: rgba(74,124,140,0.1); color: #4A7C8C; }
body.herb_cover .prop-hot,
body.herb_list .prop-hot,
body.herb_detail .tag-hot { background: rgba(196,163,90,0.15); color: #C4A35A; }
body.herb_cover .prop-neutral,
body.herb_list .prop-neutral,
body.herb_detail .tag-neutral { background: rgba(122,154,109,0.12); color: #7A9A6D; }
body.herb_cover .prop-cool,
body.herb_list .prop-cool,
body.herb_detail .tag-cool { background: rgba(107,155,168,0.12); color: #6B9BA8; }


/* ============ 页面一：一级封面 · 中药材库 (herb_cover) ============ */

/* Hero / 面包屑 / 标题 */
body.herb_cover .column-hero {
    background: linear-gradient(180deg, #EDE5D8 0%, #F5F0E8 100%);
    border-bottom: 1px solid #D4C9B8;
}
body.herb_cover .column-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; }
body.herb_cover .column-desc { font-size: 1rem; }
body.herb_cover .breadcrumb-separator { opacity: 0.6; }
body.herb_cover .breadcrumb-current::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* 区块标题 */
body.herb_cover .section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
body.herb_cover .section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D2A26;
}
@media (min-width: 1024px) { body.herb_cover .section-title { font-size: 1.875rem; } }
body.herb_cover .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #5C5449;
    transition: color 0.2s;
}
body.herb_cover .more-link:hover { color: #9B3B2E; }

/* 药材主卡片 */
body.herb_cover .herb-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
body.herb_cover .herb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.10);
    border-color: #9B3B2E;
}
body.herb_cover .herb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
body.herb_cover .herb-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2A26;
    transition: color 0.2s;
}
body.herb_cover .herb-card:hover .herb-name { color: #9B3B2E; }

/* 性味归经药性徽章 */
body.herb_cover .prop-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* 成分标签 */
body.herb_cover .ingredient-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #EDE5D8;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #5C5449;
    transition: background 0.2s, color 0.2s;
}
body.herb_cover .ingredient-tag:hover { background: #9B3B2E; color: #fff; }

/* 筛选按钮 */
body.herb_cover .filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #D4C9B8;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #5C5449;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
body.herb_cover .filter-btn:hover { border-color: #9B3B2E; color: #9B3B2E; }
body.herb_cover .filter-btn.active { background: #9B3B2E; color: #fff; border-color: #9B3B2E; }

/* 分页样式已统一到 common.css */

/* 侧边分类导航 */
body.herb_cover .cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #5C5449;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
body.herb_cover .cat-nav-item:hover {
    background: #EDE5D8;
    color: #9B3B2E;
    padding-left: 1rem;
}

/* 分类大卡片 */
body.herb_cover .category-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
body.herb_cover .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(45,42,38,0.10);
    border-color: #9B3B2E;
}
body.herb_cover .category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: #fff;
}
body.herb_cover .category-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: rgba(155,59,46,0.08);
    line-height: 1;
    transition: color 0.2s;
}
body.herb_cover .category-card:hover .category-count { color: rgba(155,59,46,0.15); }

/* 横滑 */
body.herb_cover .scroll-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #B8A58B transparent;
}
body.herb_cover .scroll-track::-webkit-scrollbar { height: 6px; }
body.herb_cover .scroll-track::-webkit-scrollbar-thumb { background: #B8A58B; border-radius: 3px; }
body.herb_cover .mini-card {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.25s;
}
body.herb_cover .mini-card:hover { border-color: #9B3B2E; transform: translateY(-2px); }

/* 本草堂阁（二级子栏目卡片：本草纲目风格） */
body.herb_cover .bencao-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
body.herb_cover .bencao-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D2A26;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
body.herb_cover .bencao-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(180deg, #7A9A6D, #C4A35A);
    border-radius: 2px;
}
@media (min-width: 1024px) {
    body.herb_cover .bencao-title { font-size: 1.875rem; }
    body.herb_cover .bencao-title::before { height: 1.5rem; }
}
body.herb_cover .bencao-sub { font-size: 0.8125rem; color: #5C5449; }
body.herb_cover .bencao-count { font-size: 0.8125rem; color: #8B7355; }
body.herb_cover .bencao-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { body.herb_cover .bencao-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

body.herb_cover .bencao-card {
    position: relative;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.35s ease;
    overflow: hidden;
}
body.herb_cover .bencao-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: var(--bencao-color, #7A9A6D);
    border-right: 1px solid rgba(0,0,0,0.12);
}
body.herb_cover .bencao-card:hover {
    transform: translateY(-5px) rotate(-0.2deg);
    box-shadow: 0 14px 36px rgba(45,42,38,0.13);
    border-color: var(--bencao-color, #7A9A6D);
}
body.herb_cover .bencao-card-inner {
    padding-left: 1.25rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
body.herb_cover .bencao-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
body.herb_cover .bencao-book {
    width: 48px;
    height: 56px;
    background: var(--bencao-color, #7A9A6D);
    border-radius: 0 0.375rem 0.375rem 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 2px 3px 8px rgba(45,42,38,0.2);
    transform: rotate(-2deg);
    flex-shrink: 0;
}
body.herb_cover .bencao-book::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: rgba(0,0,0,0.25);
    border-radius: 2px;
}
body.herb_cover .bencao-stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--bencao-color, #7A9A6D);
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--bencao-color, #7A9A6D);
    background: rgba(255,255,255,0.9);
    letter-spacing: 0.08em;
    white-space: nowrap;
    z-index: 2;
}
body.herb_cover .bencao-header { flex: 1; min-width: 0; padding-right: 4.5rem; }
body.herb_cover .bencao-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2A26;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    word-break: break-all;
}
body.herb_cover .bencao-card:hover .bencao-name { color: var(--bencao-color, #7A9A6D); }
body.herb_cover .bencao-pinyin {
    font-size: 0.625rem;
    color: #B8A58B;
    letter-spacing: 0.15em;
}
body.herb_cover .bencao-desc {
    font-size: 0.8125rem;
    color: #5C5449;
    line-height: 1.7;
    padding-top: 0.75rem;
    border-top: 1px dashed #D4C9B8;
    margin: 0;
}
body.herb_cover .bencao-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed #D4C9B8;
}
body.herb_cover .bencao-footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #8B7355;
    flex-wrap: wrap;
}
body.herb_cover .bencao-footer-left span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
body.herb_cover .bencao-footer-left strong {
    font-family: 'Noto Serif SC', serif;
    color: var(--bencao-color, #7A9A6D);
    font-weight: 700;
    font-size: 0.875rem;
}
body.herb_cover .bencao-enter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bencao-color, #7A9A6D);
    transition: gap 0.25s;
    flex-shrink: 0;
}
body.herb_cover .bencao-card:hover .bencao-enter { gap: 0.5rem; }


/* ============ 页面二：二级列表 · 药材图鉴 (herb_list) ============ */

/* Hero / 面包屑 / 标题（同封面但列表页可能不同样式） */
body.herb_list .column-hero {
    background: linear-gradient(180deg, #EDE5D8 0%, #F5F0E8 100%);
    border-bottom: 1px solid #D4C9B8;
}
body.herb_list .column-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; }
body.herb_list .column-desc { font-size: 1rem; }
body.herb_list .breadcrumb-separator { opacity: 0.6; }
body.herb_list .breadcrumb-current::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

body.herb_list .section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
body.herb_list .section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D2A26;
}
@media (min-width: 1024px) { body.herb_list .section-title { font-size: 1.875rem; } }
body.herb_list .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #5C5449;
    transition: color 0.2s;
}
body.herb_list .more-link:hover { color: #9B3B2E; }

/* 药材主卡片 */
body.herb_list .herb-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
body.herb_list .herb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.10);
    border-color: #9B3B2E;
}
body.herb_list .herb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
body.herb_list .herb-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2A26;
    transition: color 0.2s;
}
body.herb_list .herb-card:hover .herb-name { color: #9B3B2E; }
body.herb_list .prop-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
}
body.herb_list .ingredient-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #EDE5D8;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #5C5449;
    transition: background 0.2s, color 0.2s;
}
body.herb_list .ingredient-tag:hover { background: #9B3B2E; color: #fff; }

/* 筛选 */
body.herb_list .filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #D4C9B8;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #5C5449;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
body.herb_list .filter-btn:hover { border-color: #9B3B2E; color: #9B3B2E; }
body.herb_list .filter-btn.active { background: #9B3B2E; color: #fff; border-color: #9B3B2E; }

/* 分页样式已统一到 common.css */

/* 侧边分类 */
body.herb_list .cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #5C5449;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
body.herb_list .cat-nav-item:hover {
    background: #EDE5D8;
    color: #9B3B2E;
    padding-left: 1rem;
}
body.herb_list .cat-nav-item.active {
    background: rgba(122,154,109,0.12);
    color: #7A9A6D;
    font-weight: 600;
}

/* 分类大卡片 */
body.herb_list .category-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
body.herb_list .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(45,42,38,0.10);
    border-color: #9B3B2E;
}
body.herb_list .category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: #fff;
}
body.herb_list .category-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: rgba(155,59,46,0.08);
    line-height: 1;
    transition: color 0.2s;
}
body.herb_list .category-card:hover .category-count { color: rgba(155,59,46,0.15); }

/* 横滑 */
body.herb_list .scroll-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #B8A58B transparent;
}
body.herb_list .scroll-track::-webkit-scrollbar { height: 6px; }
body.herb_list .scroll-track::-webkit-scrollbar-thumb { background: #B8A58B; border-radius: 3px; }
body.herb_list .mini-card {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.25s;
}
body.herb_list .mini-card:hover { border-color: #9B3B2E; transform: translateY(-2px); }

/* ============ 子栏目 Hero 卡片（仅列表页） ============ */
body.herb_list .subcat-hero-card {
    position: relative;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
body.herb_list .subcat-hero-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(180deg, #7A9A6D 0%, #C4A35A 100%);
    border-right: 1px solid rgba(0,0,0,0.12);
}
body.herb_list .subcat-hero-inner { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
body.herb_list .subcat-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
body.herb_list .subcat-hero-left { display: flex; align-items: flex-start; gap: 1.25rem; flex: 1; min-width: 0; }
body.herb_list .subcat-hero-book {
    width: 80px;
    height: 96px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7A9A6D, #4A7C8C);
    border-radius: 0 0.5rem 0.5rem 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 3px 4px 12px rgba(45,42,38,0.2);
    transform: rotate(-1deg);
    position: relative;
}
body.herb_list .subcat-hero-book::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    bottom: 6px;
    width: 6px;
    background: rgba(0,0,0,0.25);
    border-radius: 3px;
}
body.herb_list .subcat-hero-stamp {
    padding: 0.25rem 0.75rem;
    border: 1.5px solid #7A9A6D;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7A9A6D;
    background: rgba(255,255,255,0.9);
    letter-spacing: 0.1em;
    white-space: nowrap;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}
body.herb_list .subcat-hero-header { flex: 1; min-width: 0; padding-right: 6rem; }
body.herb_list .subcat-hero-name {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #2D2A26;
    line-height: 1.3;
    margin-bottom: 0.375rem;
}
body.herb_list .subcat-hero-pinyin {
    font-size: 0.8rem;
    color: #B8A58B;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}
body.herb_list .subcat-hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
body.herb_list .subcat-hero-desc {
    font-size: 0.95rem;
    color: #5C5449;
    line-height: 1.8;
    max-width: 60rem;
}
body.herb_list .subcat-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #D4C9B8;
}
@media (max-width: 640px) { body.herb_list .subcat-hero-stats { grid-template-columns: repeat(2, 1fr); } }
body.herb_list .subcat-stat-cell { text-align: center; }
body.herb_list .subcat-stat-cell + .subcat-stat-cell { border-left: 1px dashed #D4C9B8; }
body.herb_list .subcat-stat-cell:nth-child(5) { border-left: none; }
body.herb_list .subcat-stat-num {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #7A9A6D, #C4A35A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.herb_list .subcat-stat-label { font-size: 0.8rem; color: #5C5449; margin-top: 0.25rem; }

/* 药性四气五味 子分类胶囊 */
body.herb_list .property-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #D4C9B8;
    background: #fff;
    font-size: 0.85rem;
    color: #5C5449;
    transition: all 0.2s;
    cursor: pointer;
}
body.herb_list .property-tab:hover { border-color: #7A9A6D; color: #7A9A6D; transform: translateY(-2px); }
body.herb_list .property-tab.active { background: #7A9A6D; color: #fff; border-color: #7A9A6D; }

/* 推荐文章横滑卡片 */
body.herb_list .hot-topic-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.25s;
}
body.herb_list .hot-topic-card:hover {
    border-color: #9B3B2E;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45,42,38,0.08);
}
body.herb_list .hot-topic-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
body.herb_list .hot-topic-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2D2A26;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}
body.herb_list .hot-topic-card:hover .hot-topic-title { color: #9B3B2E; }
body.herb_list .hot-topic-desc { font-size: 0.75rem; color: #8B7355; line-height: 1.6; }

/* 本草典籍卡片 */
body.herb_list .classic-book-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.25s;
}
body.herb_list .classic-book-card:hover {
    border-color: #C4A35A;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45,42,38,0.08);
}
body.herb_list .classic-book-spine {
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
    box-shadow: 2px 2px 6px rgba(45,42,38,0.15);
}
body.herb_list .classic-book-body h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2D2A26;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}
body.herb_list .classic-book-card:hover .classic-book-body h4 { color: #9B3B2E; }
body.herb_list .classic-book-era { font-size: 0.7rem; color: #B8A58B; margin-bottom: 0.5rem; }
body.herb_list .classic-book-desc { font-size: 0.8rem; color: #5C5449; line-height: 1.6; }

/* 图文卡片 - 大图文章 */
body.herb_list .feature-herb-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}
body.herb_list .feature-herb-card:hover {
    transform: translateY(-4px);
    border-color: #9B3B2E;
    box-shadow: 0 12px 36px rgba(45,42,38,0.12);
}
body.herb_list .feature-herb-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
body.herb_list .feature-herb-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
}
body.herb_list .feature-herb-content { padding: 1.25rem; }
body.herb_list .feature-herb-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2A26;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
body.herb_list .feature-herb-card:hover .feature-herb-title { color: #9B3B2E; }
body.herb_list .feature-herb-desc { font-size: 0.85rem; color: #5C5449; line-height: 1.7; }

/* 标签云 */
body.herb_list .tag-cloud-item {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    color: #5C5449;
    margin: 0.25rem;
    transition: all 0.2s;
}
body.herb_list .tag-cloud-item:hover {
    background: #9B3B2E;
    color: #fff;
    border-color: #9B3B2E;
}

/* 四气分布统计条 */
body.herb_list .qi-bar-wrap { margin-bottom: 0.75rem; }
body.herb_list .qi-bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: #5C5449; margin-bottom: 0.25rem; }
body.herb_list .qi-bar-track { height: 8px; background: #EDE5D8; border-radius: 4px; overflow: hidden; }
body.herb_list .qi-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }


/* ============ 页面三：三级详情 · 药材详情 (herb_detail) ============ */

/* 正文容器 */
body.herb_detail .herb-content {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
}
@media (min-width: 1024px) { body.herb_detail .herb-content { padding: 2.5rem; } }
body.herb_detail .herb-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: #2D2A26;
    margin: 1.75rem 0 0.875rem;
    padding-left: 0.875rem;
    border-left: 4px solid #9B3B2E;
    line-height: 1.4;
}
body.herb_detail .herb-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D2A26;
    margin: 1.25rem 0 0.625rem;
}
body.herb_detail .herb-content p {
    color: #2D2A26;
    font-size: 0.97rem;
    margin-bottom: 0.875rem;
    text-align: justify;
}
body.herb_detail .herb-content blockquote {
    background: #EDE5D8;
    border-left: 4px solid #9B3B2E;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-family: 'Noto Serif SC', serif;
    color: #2D2A26;
    position: relative;
}
body.herb_detail .herb-content blockquote::before {
    content: '"';
    position: absolute;
    top: -6px;
    left: 12px;
    font-size: 2.5rem;
    color: #9B3B2E;
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}
body.herb_detail .herb-content ul,
body.herb_detail .herb-content ol { padding-left: 1.25rem; margin-bottom: 1rem; }
body.herb_detail .herb-content ul li {
    list-style: none;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.4rem;
}
body.herb_detail .herb-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9B3B2E;
}

/* 性味归经大卡片 */
body.herb_detail .properties-card {
    background: linear-gradient(135deg, #EDE5D8 0%, #fff 100%);
    border: 1px solid #D4C9B8;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
body.herb_detail .prop-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px dashed #D4C9B8;
    gap: 0.75rem;
}
body.herb_detail .prop-row:last-child { border-bottom: none; }
body.herb_detail .prop-label {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    color: #5C5449;
    font-size: 0.95rem;
}
body.herb_detail .prop-value { color: #2D2A26; }
body.herb_detail .prop-value .prop-tag-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

/* 类型徽章 */
body.herb_detail .badge-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 来源栏 */
body.herb_detail .source-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    background: #fff;
    margin: 1.5rem 0;
}
body.herb_detail .source-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #5C5449;
}

/* 元信息条 */
body.herb_detail .meta-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}
body.herb_detail .meta-cell { text-align: center; }
body.herb_detail .meta-cell + .meta-cell { border-left: 1px dashed #D4C9B8; }
body.herb_detail .meta-cell-num {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #9B3B2E, #C4A35A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.herb_detail .meta-cell-label { font-size: 0.75rem; color: #5C5449; margin-top: 0.25rem; }

/* 相关卡片 */
body.herb_detail .rel-card {
    background: #fff;
    border: 1px solid #D4C9B8;
    border-radius: 0.875rem;
    padding: 1.1rem;
    transition: all 0.25s;
}
body.herb_detail .rel-card:hover {
    transform: translateY(-3px);
    border-color: #9B3B2E;
    box-shadow: 0 8px 24px rgba(45,42,38,0.08);
}

/* 衍生胶囊 */
body.herb_detail .deriv-capsule {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px dashed #D4C9B8;
    background: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5C5449;
    transition: all 0.2s;
}
body.herb_detail .deriv-capsule:hover {
    border-color: #9B3B2E;
    border-style: solid;
    color: #9B3B2E;
    transform: translateY(-2px);
}

/* 标签项 */
body.herb_detail .tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    background: #EDE5D8;
    color: #5C5449;
    font-size: 0.8rem;
    transition: all 0.2s;
}
body.herb_detail .tag-item:hover { background: #9B3B2E; color: #fff; }

/* 详情页 Hero */
body.herb_detail .herb-hero {
    background: linear-gradient(180deg, #EDE5D8 0%, #F5F0E8 100%);
    border-bottom: 1px solid #D4C9B8;
}
body.herb_detail .herb-name-xl {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.2;
    color: #2D2A26;
}

/* 导航项 */
body.herb_detail .herb-nav-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid #D4C9B8;
    background: #fff;
    transition: all 0.25s;
}
body.herb_detail .herb-nav-item:hover {
    box-shadow: 0 6px 20px rgba(45,42,38,0.08);
    border-color: #9B3B2E;
}
