/* ========== 顶部固定区域 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ========== 顶部标题栏 ========== */
.topbar-title {
    width: 1200px;
    margin: 0 auto;
    height: 45px;
    color: #059e53;
    font-size: 30px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-weight: bold;
    line-height: 45px;
}
.topbar-title .smtext1 {
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.smtext2 {
    font-size: 12px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

/* ========== 搜索栏 ========== */
.search-bar {
    background: #059e53;
    padding: 0 0 5px 0;
    margin-bottom: 5px;
}
.search-bar-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.search-label {
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    color: #333;
    white-space: nowrap;
}
.search-form-inline {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 500px;
}
.search-select {
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    outline: none;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fafafa;
    cursor: pointer;
}
.search-select:focus {
    border-color: #059e53;
    background: #f0faf6;
}
.search-input-inline {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 0;
    outline: none;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-input-inline:focus {
    border-color: #059e53;
    background: #f0faf6;
}
.search-btn-inline {
    height: 36px;
    padding: 0 24px;
    background: #059e53;
    border: 1px solid #059e53;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-btn-inline:hover { background: #047a40; }
.search-bar-link {
    color: #059e53;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    margin-left: auto;
}
.search-bar-link:hover { text-decoration: underline; color: #047a40; }

/* ========== 主内容区域 ========== */
.main-content {
    width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
    min-height: 500px;
}

/* ========== 45大类标签栏（三行×15个） ========== */
.fldh {
    width: 1200px;
    overflow: hidden;
    background: #e0fff0;
    border: 1px solid #059e53;
    padding: 4px 0px;
    border-radius: 4px;
    line-height:24px;
    margin: 0 auto;
}
.fldh-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.fldh-link {
    display: block;
    width: 80px;
    text-align: center;
    padding: 4px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.fldh-link:hover { color: #c00000; text-decoration: underline; }
.fldh-link.active { color: #059e53; font-weight: bold; }

/* ========== 分类卡片 ========== */
.selector-layout {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    scroll-margin-top: 230px;
}

/* 左侧：群组列表 */
.group-list {
    width: 280px;
    min-width: 280px;
    border-right: 1px solid #ddd;
    background: #fafafa;
    position: sticky;
    top: 230px;
    align-self: flex-start;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}
.group-list-title {
    padding: 12px 15px;
    background: #059e53;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    position: sticky;
    top: 0;
    z-index: 2;
}
.group-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.group-item:hover {
    background: #e8f0ff;
}
.group-item.active {
    background: #07bd64;
    color: #fff;
}
.group-item .group-main-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}
.group-item.active .group-main-link { color: #fff; }
.group-item .group-code {
    color: #059e53;
    font-weight: bold;
    flex-shrink: 0;
}
.group-item.active .group-code { color: #ffcc00; }
.group-item .group-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.group-item .group-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}
.group-item.active .group-count { color: #a8c4e8; }

/* 右侧：商品列表 */
.goods-list {
    flex: 1;
    padding: 15px 20px;
}
.goods-list-title {
    font-size: 16px;
    font-weight: bold;
    color: #059e53;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0fff0;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

/* 商品选择项 */
.goods-section {
    margin-bottom: 20px;
}
.goods-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #e0fff0;
    margin-bottom: 8px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
/* 商品段落样式（与 simiaotmclass/pages/class_detail.php 对齐） */
.goods-paragraph {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 33px;
    margin: 8px 0;
    padding: 0 8px;
}
.goods-paragraph:empty { display: none; }

/* 子群组标题（一、二、三...） */
.sub-group-title {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #059e53;
    font-weight: bold;
    margin: 14px 0 4px;
    padding: 0 8px;
    border-left: 3px solid #059e53;
}

/* C编号商品段落 */
.unnormal-items {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #c00000;
    line-height: 33px;
    margin: 8px 0;
    padding: 6px 8px;
    background: #fff5ee;
    border-left: 3px solid #e0fff0;
}

/* 商品项（段落内内联，root 风格） */
.goods-item {
    display: inline;
    cursor: pointer;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
    transition: background 0.1s;
}
.goods-item:hover {
    background: #fff3cc;
}
.goods-item.selected {
    background: #059e53;
    color: #fff;
}
.goods-item.selected::before {
    content: '✓';
    margin-right: 3px;
    font-weight: bold;
}
.goods-item.selected font,
.goods-item.selected .item-code { color: #ffcc00; }
.goods-item.unnormal { color: #c00000; }
.goods-item.unnormal:hover { background: #fff0e0; }
.goods-item.unnormal.selected { background: #c00000; color: #fff; }

/* ========== 商品项（chip 模式 - 用于 goods-items 区块） ========== */
.goods-items {
    line-height: 38px;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.goods-item-chip {
    display: inline-block;
    font-size: 16px;
    padding: 3px 8px;
    margin: 2px 4px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    transition: all 0.15s;
    background: #fff;
    color: #333;
}
.goods-item-chip:hover { border-color: #059e53; background: #e8f0ff; }
.goods-item-chip.selected { background: #059e53; color: #fff; border-color: #059e53; }
.goods-item-chip .item-code { color: #c00000; margin-left: 4px; font-size: 16px; }
.goods-item-chip.selected .item-code { color: #ffcc00; }
.goods-item-chip.unnormal { background: #fff5ee; border-color: #e0fff0; color: #c00000; }
.goods-item-chip.unnormal .item-code { color: #e0fff0; }
.goods-item-chip.unnormal.selected { background: #c00000; color: #fff; }

/* ========== root 风格段落样式（与 simiaotmclass/assets/css/main.css 对齐） ========== */
.sbflnr {
    padding: 8px 12px;
    line-height: 32px;
    font-size: 16px;
}
.sbflnr p {
    margin: 6px 0;
    line-height: 33px;
    word-break: break-all;
}
.sbflcnipa {
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px dashed #d2e1f1;
}
.sbflcnipa h5 {
    font-size: 16px;
    font-weight: bold;
    color: #dc143c;
    margin-bottom: 4px;
}
.sbflcnipa p {
    font-size: 16px;
    color: #555;
    line-height: 33px;
    word-break: break-all;
}

/* ========== 已选小类浮窗 ========== */
.cart-btn {
    position: fixed;
    right: max(20px, calc(50% - 630px));
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #059e53;
    color: #fff;
    text-align: center;
    line-height: 54px; /* 60 - 3*2 白边 */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    z-index: 1000;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    display: none;
    transition: bottom 0.25s ease;
}
/* 底部版权进入视口时，按钮自动抬高 */
.cart-btn.lifted { bottom: 80px; }
.cart-btn.show { display: block; }
.cart-btn .cart-num {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #c00;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 22px;
}

/* 弹出层 */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}
.dialog-overlay.show { display: block; }
.dialog-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 2001;
    overflow: hidden;
}
.dialog-header {
    padding: 15px 20px;
    background: #059e53;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dialog-header .close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #a8c4e8;
    line-height: 1;
}
.dialog-header .close-btn:hover { color: #fff; }
.dialog-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.dialog-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}
.dialog-footer .btn {
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    margin-left: 10px;
}
.btn-copy {
    background: #059e53;
    color: #fff;
}
.btn-copy:hover { background: #047a40; }
.btn-close {
    background: #999;
    color: #fff;
}
.btn-close:hover { background: #777; }

/* 已选列表 */
.selected-cls {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.selected-cls-header {
    padding: 10px 15px;
    background: #f5f5f5;
    font-weight: bold;
    color: #059e53;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    display: flex;
    justify-content: space-between;
}
.selected-cls-header .cls-actions {
    font-size: 12px;
    font-weight: normal;
}
.selected-cls-header .cls-actions a {
    margin-left: 10px;
    color: #059e53;
    cursor: pointer;
    text-decoration: none;
}
.selected-cls-header .cls-actions a:hover { text-decoration: underline; }
.selected-cls-body {
    padding: 10px 15px;
    line-height: 28px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
}
.selected-item {
    display: inline-block;
    padding: 2px 8px;
    background: #059e53;
    color: #fff;
    border-radius: 3px;
    margin: 2px 4px;
    font-size: 16px;
    cursor: pointer;
}
.selected-item:hover {
    background: #c00;
}
.selected-item .s-code { color: #ffcc00; margin-left: 3px; }

/* ========== 搜索结果页 ========== */
.search-result {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.search-result-header {
    padding: 12px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    color: #333;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-result-header strong { color: #e0fff0; }
.search-table {
    width: 100%;
    border-collapse: collapse;
}
.search-table th {
    background: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: bold;
    color: #666;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-table tr:hover td { background: #f8f8ff; }
.search-table .cls-link {
    color: #059e53;
    font-weight: bold;
    text-decoration: none;
}
.search-table .cls-link:hover { color: #e0fff0; }
.search-table .item-name {
    cursor: pointer;
    color: #333;
}
.search-table .item-name:hover { color: #e0fff0; }
.search-table .item-name.selected { color: #059e53; font-weight: bold; }
.search-table .code-col { color: #c00000; font-size: 16px; white-space: nowrap; }

/* ========== 搜索结果页（大类外框） ========== */
.search-group-block {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    background: #fff;
}
.search-group-block:last-child {
    border-bottom: none;
}
.search-group-title {
    padding: 8px 15px 8px 2.5em;
    font-size: 16px;
    font-weight: bold;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    background: #fbfbfb;
    border-bottom: 1px solid #ebebeb;
}
.search-result-info {
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    color: #333;
}
.search-cls-frame {
    border: 2px solid #059e53;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}
.search-cls-frame-title {
    padding: 10px 15px;
    background: #059e53;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.search-cls-block {
    border: 1px solid #d2e1f1;
    margin-bottom: 10px;
    background: #fff;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.search-cls-title {
    padding: 10px 15px;
    border-bottom: 1px solid #ebebeb;
    background: #fbfbfb;
    font-size: 16px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.sbflnr2 {
    padding: 10px 15px 10px 2.5em;
    font-size: 16px;
    line-height: 32px;
    color: #333;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    word-break: break-all;
}
.search-item {
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 3px;
    transition: background 0.15s;
}
.search-item:hover {
    background: #e0fff0;
}
.search-item.selected {
    background: #059e53;
    color: #fff;
}
.search-item.selected::before {
    content: '✓';
    margin-right: 3px;
    font-weight: bold;
}
.search-item.selected .s-code {
    color: #a8c4e8;
}
.search-item .s-code {
    color: #c00000;
    font-size: 16px;
}
.search-pager {
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

/* ========== 空结果 ========== */
.empty-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.empty-result .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.empty-result p { font-size: 16px; }

/* ========== 提示信息 ========== */
.tip-bar {
    padding: 8px 15px;
    background: #fff8e6;
    border: 1px solid #e0fff0;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #b8f0d8;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.tip-bar strong { color: #c00; }

/* ========== 首页两栏布局 ========== */
.cls-block {
    width: 100%;
    border: 1px solid #d2e1f1;
    margin-bottom: 12px;
    scroll-margin-top: 230px;
    background: #fff;
}
.cls-title {
    padding: 10px 15px;
    border-bottom: 1px solid #ebebeb;
    background: #fbfbfb;
    line-height: 34px;
}
.cls-title a {
    text-decoration: none;
    color: #059e53;
    font-size: 16px;
    font-weight: bold;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.cls-title a:hover {
    color: #c00000;
}
.cls-body {
    display: flex;
    padding: 10px;
}
.cls-left {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    line-height: 34px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.cls-left a {
    color: #059e53;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
}
.cls-left a:hover {
    color: #c00000;
}
.cls-right {
    width: 40%;
    padding: 10px;
    color: #666;
    font-size: 16px;
    line-height: 30px;
    border-left: 1px solid #eee;
}
.cls-notes {
    margin-bottom: 10px;
}
.cls-notes b {
    color: #059e53;
    font-size: 16px;
}
.cls-tip a {
    color: #059e53;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.cls-tip a:hover { text-decoration: underline; }
.cls-datasource {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.cls-comment-section {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}
.cls-comment-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}
.cls-comment-item {
    padding-left: 8px;
    color: #888;
}

/* ========== 移动端：精简45类Tab（桌面隐藏） ========== */
.fldh-mobile {
    display: none;
}

/* ========== 底部 ========== */
.footer {
    width:100%;
    background: #059e53;
    color: #fff;
    padding: 3px 0;
    margin-top: 5px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.footer-inner {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    margin-bottom: 0px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1px;
    font-size: 12px;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 12px;
    line-height: 14px;
    color: #fff;
}

/* ===================================================================
   响应式适配 - Tablet (768px ~ 1023px)
   =================================================================== */
@media (max-width: 1023px) {
    /* ---- 容器 ---- */
    .topbar-title,
    .search-bar-inner,
    .main-content,
    .fldh,
    .footer-inner {
        width: 100%;
        max-width: 1200px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* ===================================================================
   响应式适配 - Phone (< 768px)
   =================================================================== */
@media (max-width: 767px) {
    /* ========== 1. 容器 ========== */
    .topbar-title,
    .search-bar-inner,
    .main-content,
    .fldh,
    .footer-inner {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }
    .main-content {
        padding-top: 0;
    }

    /* ========== 2. 顶部标题栏 ========== */
    .topbar-title {
        height: auto !important;
        line-height: 30px !important;
        font-size: 20px !important;
        padding: 6px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
    }
    .topbar-title a[href="/index.html"] {
        font-size: 20px !important;
    }
    .topbar-title .smtext1 {
        display: none;
    }
    /* 类别标题 h2 微调上间距 */
    .main-content h2 {
        margin-top: 10px !important;
    }

    /* ========== 3. 搜索栏 — 选类别 + 关键词 + 按钮 一行 ========== */
    .search-bar-inner {
        flex-wrap: wrap;
        padding: 8px 12px !important;
        gap: 0;
        row-gap: 6px;
    }
    .search-label {
        font-size: 14px;
        width: auto;
        margin-bottom: 0;
        margin-right: auto;
    }
    .search-bar-link {
        display: none;
    }
    .search-form-inline {
        display: flex;
        flex-wrap: nowrap;
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    .search-select {
        width: auto;
        min-width: 68px;
        max-width: 78px;
        border-radius: 3px 0 0 3px;
        border: 1px solid #ddd;
        border-right: none;
        margin-bottom: 0;
        font-size: 13px;
        height: 36px;
        flex-shrink: 0;
        padding: 0 4px;
    }
    .search-input-inline {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        height: 36px;
        border-radius: 0;
        border: 1px solid #ddd;
        border-left: none;
        border-right: none;
        padding: 0 8px;
    }
    .search-btn-inline {
        font-size: 14px;
        height: 36px;
        padding: 0 10px;
        flex-shrink: 0;
        white-space: nowrap;
        border-radius: 0 3px 3px 0;
    }
    .smtext2 {
        display: none;
    }

    /* ========== 4. 45类标签栏 — 移动端：精简Tab+更多下拉 ========== */
    /* 桌面版标签栏手机隐藏 */
    .fldh {
        display: none;
    }
    /* 移动端标签栏基础容器 */
    .fldh-mobile {
        display: block;
        background: #f5f5f5;
        padding: 8px 0;
        border: none;
        border-radius: 0;
        position: relative;
    }
    .fldh-mobile-tabs {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fldh-mobile-tabs::-webkit-scrollbar { display: none; }
    .fldh-mobile-link {
        display: inline-block;
        flex-shrink: 0;
        min-width: 42px;
        font-size: 12px;
        padding: 5px 6px;
        color: #666;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 14px;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        transition: all 0.2s;
        font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    }
    .fldh-mobile-link:active {
        background: #e8f0ff;
    }
    .fldh-mobile-link.active {
        background: #059e53;
        color: #fff;
        border-color: #059e53;
        font-weight: bold;
    }
    /* "更多"按钮 — 始终贴在右侧 */
    .fldh-mobile-more {
        display: inline-block;
        flex-shrink: 0;
        position: sticky;
        right: 12px;
        z-index: 2;
        font-size: 12px;
        padding: 5px 8px;
        color: #059e53;
        background: #e8faf0;
        border: 1px solid #b8e6cc;
        border-radius: 14px;
        cursor: pointer;
        white-space: nowrap;
        font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s;
    }
    .fldh-mobile-more:active {
        background: #d0f0e0;
    }
    /* 更多下拉浮层 */
    .fldh-more-dropdown {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1500;
        background: rgba(0,0,0,0.45);
    }
    .fldh-more-dropdown.show {
        display: block;
    }
    .fldh-more-dropdown .fldh-more-dialog {
        position: absolute;
        bottom: 0;
        left: 0; right: 0;
        max-height: 60vh;
        background: #fff;
        border-radius: 14px 14px 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 20px;
        animation: fldhSlideUp 0.25s ease-out;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    @keyframes fldhSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .fldh-more-dropdown .fldh-more-link {
        display: inline-block;
        flex-shrink: 0;
        min-width: 56px;
        font-size: 14px;
        padding: 8px 14px;
        color: #333;
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        transition: all 0.15s;
        font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    }
    .fldh-more-dropdown .fldh-more-link:active {
        background: #e8f0ff;
    }
    .fldh-more-dropdown .fldh-more-link.active {
        background: #059e53;
        color: #fff;
        border-color: #059e53;
        font-weight: bold;
    }

    /* ========== 5. 选择器 - 双栏改上下 ========== */
    .selector-layout {
        flex-direction: column;
        scroll-margin-top: 60px;
    }

    /* 左侧群组 → 2列网格全部显示 */
    .group-list {
        width: 100%;
        min-width: auto;
        position: static;
        top: auto;
        align-self: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #fafafa;
        box-sizing: border-box;
    }
    .group-list-title {
        display: block;
        grid-column: 1 / -1;
        padding: 10px 12px;
        background: #059e53;
        color: #fff;
        font-weight: bold;
        font-size: 15px;
        font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    }
    .group-item {
        flex: none;
        white-space: nowrap;
        padding: 7px 8px;
        border-bottom: 1px solid #f0f0f0;
        border-right: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }
    .group-item:nth-child(even) {
        border-right: none;
    }
    .group-item .group-main-link {
        flex: 1;
        min-width: 0;
        gap: 2px;
    }
    .group-item .group-count {
        display: none;
    }
    .group-item .group-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: none;
        font-size: 13px;
    }
    .group-item.active {
        background: #07bd64;
        color: #fff;
    }
    .group-item.active .group-code { color: #ffcc00; }
    .group-item.active .group-name { color: #fff; }

    /* 右侧商品区 */
    .goods-list {
        padding: 10px 8px;
    }
    .goods-list-title {
        font-size: 15px;
        margin-bottom: 8px;
        padding: 8px 12px;
        background: #059e53;
        border-radius: 4px;
        color: #fff;
        font-weight: bold;
    }
    .goods-paragraph {
        font-size: 15px;
        line-height: 30px;
        padding: 0 2px;
        margin: 6px 0;
    }
    .sub-group-title {
        font-size: 14px;
        margin: 10px 0 2px;
        padding: 0 4px;
    }
    .unnormal-items {
        font-size: 14px;
        line-height: 28px;
        padding: 4px 6px;
    }
    .goods-item {
        font-size: 15px;
        padding: 2px 3px;
    }

    /* ========== 6. 已选浮窗 & 弹窗 ========== */
    .cart-btn {
        right: 15px;
        bottom: 25px;
        width: 50px;
        height: 50px;
        line-height: 44px; /* 50 - 3*2 白边 */
        font-size: 13px;
        border: 3px solid #fff;
        box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    }
    .cart-btn .cart-num {
        width: 20px;
        height: 20px;
        font-size: 11px;
        line-height: 20px;
        top: -4px;
        right: -4px;
    }

    .dialog-box {
        width: 96%;
        max-width: 96%;
        max-height: 92vh;
        border-radius: 8px;
    }
    .dialog-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    .dialog-body {
        padding: 12px;
        max-height: 65vh;
    }
    .dialog-footer {
        padding: 12px 15px;
    }
    .dialog-footer .btn {
        font-size: 14px;
        padding: 7px 18px;
    }

    /* 已选列表 */
    .selected-cls-header {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px;
        font-size: 14px;
    }
    .selected-cls-header .cls-actions {
        font-size: 11px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .selected-cls-header .cls-actions a {
        margin-left: 0;
        margin-right: 8px;
    }
    .selected-cls-body {
        padding: 8px 10px;
        font-size: 14px;
        line-height: 26px;
    }
    .selected-item {
        font-size: 14px;
        padding: 2px 6px;
        margin: 2px 3px;
    }

    /* ========== 7. 首页两栏布局 ========== */
    .cls-block {
        scroll-margin-top: 60px;
    }
    .cls-body {
        flex-direction: column;
        padding: 4px;
    }
    .cls-left,
    .cls-right {
        width: 100%;
        padding: 6px 8px;
        box-sizing: border-box;
    }
    .cls-right {
        display: none;
    }
    .cls-title {
        padding: 8px 12px;
        line-height: 28px;
    }
    .cls-title a {
        font-size: 14px;
    }
    .cls-left {
        font-size: 14px;
        line-height: 30px;
    }
    .cls-left a {
        font-size: 13px;
        margin-right: 4px;
    }
    .cls-right {
        font-size: 13px;
        line-height: 26px;
    }
    .cls-notes b {
        font-size: 14px;
    }

    /* ========== 8. 搜索结果页 ========== */
    .search-result-info {
        font-size: 14px;
        padding: 10px;
    }
    .search-cls-frame-title {
        font-size: 14px;
        padding: 8px 12px;
    }
    .search-group-title {
        font-size: 13px;
        padding: 6px 8px 6px 1em;
    }
    .sbflnr2 {
        font-size: 14px;
        padding: 8px 8px 8px 1em;
        line-height: 28px;
    }
    .search-item {
        font-size: 14px;
        padding: 2px 3px;
    }
    .search-pager {
        font-size: 13px;
        padding: 10px 0;
    }

    /* ========== 9. 空结果 ========== */
    .empty-result {
        padding: 40px 15px;
    }
    .empty-result .empty-icon {
        font-size: 36px;
    }
    .empty-result p {
        font-size: 14px;
    }

    /* ========== 10. 提示信息 ========== */
    .tip-bar {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* ========== 11. 底部 ========== */
    .footer-inner {
        padding: 6px 12px;
        box-sizing: border-box;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 6px;
    }
    .footer-links a {
        font-size: 11px;
        margin: 0;
    }
    .footer-copy p {
        font-size: 11px;
        line-height: 1.6;
        word-break: break-all;
    }

    /* ========== 12. 详情页内联样式覆盖 ========== */
    .detail-page > div[style*="padding:20px"] {
        padding: 12px !important;
    }
    .detail-page h2[style*="font-size:22px"] {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }
    .detail-page p[style*="font-size:18px"] {
        font-size: 15px !important;
        line-height: 24px !important;
    }
    .detail-page div[style*="font-size:18px"][style*="font-weight:bold"][style*="background:#059e53"] {
        font-size: 15px !important;
        padding: 8px 12px !important;
    }
    .detail-page div[style*="background:#059e53"][style*="padding:10px 18px"] {
        font-size: 15px !important;
        padding: 8px 12px !important;
    }
    .detail-page span[style*="float:right"] {
        float: none !important;
        display: inline-block;
        margin-left: 8px;
        font-size: 13px !important;
    }
    .detail-page div[style*="padding:15px 18px"] {
        padding: 10px 12px !important;
    }
    .detail-page div[style*="line-height:34px"][style*="font-size:18px"] {
        font-size: 15px !important;
        line-height: 30px !important;
    }
    .detail-page span[style*="color:#c00000"][style*="font-size:18px"] {
        font-size: 14px !important;
    }
    .detail-page a[style*="padding:12px 40px"] {
        padding: 10px 20px !important;
        font-size: 15px !important;
        display: block !important;
        margin: 0 12px;
    }
    .detail-page div[style*="margin-bottom:25px"] {
        margin-bottom: 16px !important;
    }
}
