/* Global Base Styles - Extracted from header.php */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", sans-serif; background: var(--zy-light); color: #333; line-height: 1.6; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.case-card-img img,
.case-featured-img img { height: 100% !important; width: 100% !important; object-fit: cover !important; }

.nav-top {
    background: linear-gradient(135deg, var(--zy-dark) 0%, var(--zy-dark) 50%, var(--zy-dark) 100%);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; margin-right: 20px; }
.nav-brand-name { font-size: 20px; font-weight: bold; color: var(--zy-accent); letter-spacing: 2px; }
.nav-brand-sub { font-size: 10px; color: #888; letter-spacing: 1px; }
.nav-links { display: flex; gap: 0; list-style: none; flex-shrink: 1; justify-content: center; }
.nav-links li a { color: #ccc; text-decoration: none; padding: 0 16px; height: 64px; display: flex; align-items: center; font-size: 14px; transition: all 0.3s; border-left: 1px solid var(--zy-dark); white-space: nowrap; flex-shrink: 0; }
.nav-links li a:hover, .nav-links li a.active { color: var(--zy-accent); background: rgba(201,169,110,0.08); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; margin-left: 20px; }
.nav-cta a { color: #fff; text-decoration: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 18px; transition: all 0.3s; flex-shrink: 0; }
.nav-cta a:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(255,255,255,0.3); }
.nav-cta .tel-btn { background: #B22222; }
.nav-cta .tel-btn:hover { background: #8B0000; }
.nav-cta .wx-btn { background: #07C160; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; position: relative; cursor: pointer; }
.nav-cta .wx-btn:hover { background: #05903C; }
.nav-cta .wx-btn:hover .wx-qr { display: block; }
.wx-qr { display: none; position: absolute; top: 120%; right: 0; background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 200; }
.wx-qr img { width: 120px; height: auto; display: block; object-fit: contain; }
.wx-qr p { font-size: 11px; color: #666; text-align: center; margin-top: 4px; }
.nav-hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; margin-left: auto; padding: 0; background: none; border: none; }
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--zy-accent); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.nav-mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: linear-gradient(135deg, var(--zy-dark), var(--zy-dark)); z-index: 99; box-shadow: 0 4px 20px rgba(0,0,0,0.4); padding: 8px 0; }
.nav-mobile-menu.active { display: block; }
.nav-mobile-menu a { display: block; color: #ccc; text-decoration: none; padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--zy-dark); transition: background 0.2s; }
.nav-mobile-menu a:hover { background: rgba(201,169,110,0.08); color: var(--zy-accent); }
.nav-mobile-menu .nav-mobile-cta { padding: 12px 24px; display: flex; gap: 10px; border-bottom: 1px solid var(--zy-dark); }
.nav-mobile-menu .nav-mobile-cta a { flex: 1; text-align: center; padding: 10px; border-radius: 6px; font-size: 13px; border: none; }
.nav-mobile-cta .tel-btn { background: #B22222; color: #fff; }
.nav-mobile-cta .wx-btn-m { background: #07C160; color: #fff; }
.breadcrumb { max-width: 1200px; margin: 20px auto; padding: 0 20px; font-size: 13px; color: #888; }
.breadcrumb a { color: #8B7355; }
.breadcrumb a:hover { color: var(--zy-accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.filter-bar .cat-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--zy-light); background: #fff; color: var(--zy-dark); font-size: .85rem; cursor: pointer; text-decoration: none; transition: all .2s; }
.filter-bar .cat-btn:hover, .filter-bar .cat-btn.active { background: var(--zy-dark); color: var(--zy-accent); border-color: var(--zy-dark); }
.products-layout { max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; display: flex; gap: 24px; align-items: flex-start; }
.cat-sidebar { background: #fff; border-radius: 12px; padding: 20px; width: 220px; flex-shrink: 0; height: fit-content; position: sticky; top: 80px; }
.cat-sidebar h3 { font-size: 16px; color: var(--zy-dark); border-bottom: 2px solid var(--zy-accent); padding-bottom: 10px; margin-bottom: 16px; }

/* === 全局侧边栏Sticky修复 === */
.sidebar-col, .page-sidebar, .cat-sidebar, .sidebar {
    position: sticky !important;
    top: 80px !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.sidebar-col::-webkit-scrollbar, .page-sidebar::-webkit-scrollbar, .cat-sidebar::-webkit-scrollbar, .sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar-col::-webkit-scrollbar-thumb, .page-sidebar::-webkit-scrollbar-thumb, .cat-sidebar::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb {
    background: #D4B896;
    border-radius: 2px;
}
.sidebar-col::-webkit-scrollbar-track, .page-sidebar::-webkit-scrollbar-track, .cat-sidebar::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track {
    background: transparent;
}
/* 确保父容器没有overflow影响sticky */
.layout, .page-two-col, .products-layout, .content-wrapper {
    overflow: visible !important;
}
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-item { border-bottom: 1px solid var(--zy-light); }
.cat-item:last-child { border-bottom: none; }
.cat-item a { display: flex; align-items: center; gap: 8px; padding: 12px 8px; color: #555; font-size: 14px; transition: all 0.2s; }
.cat-item a:hover, .cat-item.active a { color: var(--zy-accent); background: var(--zy-light); }
.cat-item .arrow { color: var(--zy-accent); transition: transform 0.2s; }
.cat-item.active .arrow { transform: rotate(90deg); }
.cat-count { margin-left: auto; font-size: 12px; color: #aaa; }
.main-title { font-size: 22px; color: var(--zy-dark); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--zy-light); }
.main-title span { color: #8B7355; font-size: 16px; font-weight: normal; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; transition: all 0.3s; display: block; text-decoration: none; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--zy-light); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .card-img-wrap img { transform: scale(1.05); }
.product-card h3 { padding: 14px 16px 6px; font-size: 15px; color: var(--zy-dark); line-height: 1.4; }
.card-excerpt { padding: 0 16px 10px; font-size: 12px; color: #8B7355; line-height: 1.5; }
.btn-detail { padding: 10px 16px 14px; font-size: 13px; color: var(--zy-accent); font-weight: 600; }
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--zy-light); background: #fff; color: var(--zy-dark); text-decoration: none; font-size: .9rem; }
.pagination a:hover { background: var(--zy-dark); color: var(--zy-accent); border-color: var(--zy-dark); }
.pagination .current { background: var(--zy-accent); color: #fff; border-color: var(--zy-accent); }
.pagination .dots { background: none; border: none; color: #999; }
.news-card-img { height: 180px; background: #e8dcc8; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 1rem; color: var(--zy-dark); margin-bottom: 10px; line-height: 1.5; flex: 1; font-weight: 600; }
.news-card-body h3 a { color: inherit; text-decoration: none; }
.news-card-body h3 a:hover { color: var(--zy-accent); }
.news-card .news-meta { font-size: .78rem; color: #999; margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0ebe3; }
.news-card .news-meta .cat-tag { background: var(--zy-light); color: #8B7355; padding: 2px 10px; border-radius: 10px; font-size: .72rem; }
.news-card .news-meta .date-tag { color: #aaa; font-size: .72rem; }
.tags-section { margin-bottom: 20px; }
.tags-section h3 { font-size: 14px; color: var(--zy-dark); margin-bottom: 10px; font-weight: 600; }
.tag-item { padding: 4px 12px; background: #fff; border: 1px solid var(--zy-light); border-radius: 16px; font-size: .8rem; color: #8B7355; text-decoration: none; transition: all .2s; display: inline-block; }
.tag-item:hover { background: var(--zy-accent); color: #fff; border-color: var(--zy-accent); }
.cta-bar { background: linear-gradient(135deg, var(--zy-dark), var(--zy-dark)); border-radius: 12px; padding: 24px; text-align: center; color: #f5e6c8; margin-bottom: 30px; }
.cta-bar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cta-bar p { color: #a8c8a8; font-size: .88rem; margin-bottom: 14px; }
.cta-bar .cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-bar .btn { padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .2s; }
.btn-primary { background: var(--zy-accent); color: var(--zy-dark); }
.btn-primary:hover { background: var(--zy-accent); }
.btn-outline { background: transparent; color: #f5e6c8; border: 1px solid rgba(201,169,110,.5); }
.btn-outline:hover { background: rgba(201,169,110,.15); }
.article-header { background: #fff; border-bottom: 1px solid var(--zy-light); padding: 32px 0 24px; }
.header-inner { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.article-cat { display: inline-block; background: var(--zy-dark); color: var(--zy-accent); padding: 3px 12px; border-radius: 16px; font-size: .78rem; margin-bottom: 12px; text-decoration: none; }
.article-header h1 { font-size: 1.75rem; color: var(--zy-dark); line-height: 1.4; margin-bottom: 12px; }
.article-meta { font-size: .85rem; color: #999; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta span { background: var(--zy-light); color: #8a7a6a; padding: 2px 10px; border-radius: 10px; font-size: .78rem; }
.article-container { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
.article-body { background: #fff; border-radius: 12px; padding: 32px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; height: auto; }
.article-body h2 { color: var(--zy-dark); font-size: 1.2rem; border-left: 4px solid var(--zy-accent); padding-left: 12px; margin: 24px 0 12px; }
.article-body h3 { color: var(--zy-dark); font-size: 1.05rem; margin: 20px 0 10px; }
.article-body p { margin-bottom: 16px; color: #444; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; line-height: 2; }
.article-body li { margin-bottom: 6px; color: #444; }
.article-body blockquote { background: var(--zy-light); border-left: 4px solid var(--zy-accent); padding: 16px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: #666; }
.article-body strong { color: var(--zy-dark); }
.article-tags { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--zy-light); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags span { font-size: .82rem; color: #888; }
.tag-link { padding: 4px 12px; background: var(--zy-light); color: #8B7355; border-radius: 16px; font-size: .78rem; text-decoration: none; transition: all .2s; }
.tag-link:hover { background: var(--zy-accent); color: #fff; }
.author-box { background: var(--zy-light); border-radius: 10px; padding: 20px; margin-bottom: 30px; display: flex; gap: 16px; align-items: center; }
.author-avatar { width: 48px; height: 48px; background: var(--zy-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--zy-accent); font-size: 1.2rem; flex-shrink: 0; }
.author-info .author-name { font-weight: 600; color: var(--zy-dark); margin-bottom: 4px; }
.author-info .author-bio { font-size: .82rem; color: #888; }
.faq-section { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.faq-section h2 { color: var(--zy-dark); font-size: 1.1rem; border-left: 4px solid var(--zy-accent); padding-left: 12px; margin-bottom: 20px; }
.faq-item { margin-bottom: 16px; border-bottom: 1px solid var(--zy-light); padding-bottom: 16px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; color: var(--zy-dark); margin-bottom: 8px; }
.faq-a { color: #666; line-height: 1.7; padding-left: 20px; }
.related-section { margin-bottom: 30px; }
.related-section h3 { color: var(--zy-dark); font-size: 1rem; border-left: 4px solid var(--zy-accent); padding-left: 12px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.related-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.06); text-decoration: none; transition: transform .2s; display: block; }
.related-card:hover { transform: translateY(-2px); }
.related-card-img { height: 100px; background: #e8dcc8; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card h4 { font-size: .82rem; color: var(--zy-dark); padding: 10px; line-height: 1.4; }
.comments-section { margin-bottom: 30px; }
.comments-section h3 { color: var(--zy-dark); font-size: 1rem; border-left: 4px solid var(--zy-accent); padding-left: 12px; margin-bottom: 16px; }
.comment-form-wrap { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.comment-form-wrap h4 { margin-bottom: 16px; color: var(--zy-dark); }
.c-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; }
.form-row input { flex: 1; padding: 10px 14px; border: 1px solid var(--zy-light); border-radius: 6px; font-size: .95rem; background: var(--zy-light); font-family: inherit; }
.form-row input:focus { border-color: var(--zy-accent); outline: none; }
textarea.comment-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--zy-light); border-radius: 6px; font-size: .95rem; background: var(--zy-light); resize: vertical; min-height: 100px; font-family: inherit; box-sizing: border-box; }
textarea.comment-textarea:focus { border-color: var(--zy-accent); outline: none; }
.comment-submit { padding: 10px 28px; background: var(--zy-dark); color: #fff; border: none; border-radius: 6px; font-size: .95rem; cursor: pointer; transition: background .2s; align-self: flex-start; }
.comment-submit:hover { background: var(--zy-dark); }
.comment-list { background: #fff; border-radius: 12px; padding: 24px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--zy-light); }
.comment-item:last-child { border-bottom: none; }
.comment-item:first-child { padding-top: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 32px; height: 32px; background: var(--zy-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--zy-accent); font-size: .75rem; }
.comment-author { font-weight: 600; color: var(--zy-dark); font-size: .88rem; }
.comment-date { font-size: .78rem; color: #aaa; }
.comment-body { font-size: .9rem; color: #555; line-height: 1.6; }
.pagination a, .pagination span { padding: 8px 16px; background: #fff; border-radius: 8px; font-size: 14px; color: #555; text-decoration: none; transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: var(--zy-dark); color: var(--zy-accent); }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; }
.empty-state p { color: #888; font-size: 15px; margin-bottom: 20px; }
.btn-back { display: inline-block; padding: 12px 28px; background: var(--zy-accent); color: var(--zy-dark); border-radius: 8px; font-weight: 600; text-decoration: none; }
.news-layout { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.news-img-link { display: block; }
.news-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--zy-light); }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-img-wrap img { transform: scale(1.05); }
.news-content { padding: 20px; }
.news-cat { display: inline-block; padding: 3px 10px; background: var(--zy-light); color: #8B7355; border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.news-content h2 { font-size: 17px; color: var(--zy-dark); margin-bottom: 10px; line-height: 1.4; }
.news-content h2 a { color: var(--zy-dark); text-decoration: none; }
.news-content h2 a:hover { color: var(--zy-accent); }
.news-excerpt { color: #888; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.news-meta { display: flex; gap: 16px; font-size: 12px; color: #aaa; }
.cta-section { max-width: 1200px; margin: 50px auto; padding: 40px 20px; text-align: center; background: linear-gradient(135deg, var(--zy-dark), var(--zy-dark)); border-radius: 16px; color: #fff; }
.cta-section h3 { font-size: 24px; margin-bottom: 10px; }
.cta-section p { color: #a89880; font-size: 14px; margin-bottom: 20px; }
.cta-phone { font-size: 32px; color: var(--zy-accent); font-weight: bold; margin-bottom: 20px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; }
.cta-btn { padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.cta-btn-primary { background: var(--zy-accent); color: var(--zy-dark); }
.cta-btn-primary:hover { background: var(--zy-accent); }
.cta-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cta-btn-secondary:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 900px) { .products-layout { flex-direction: column; } .cat-sidebar { width: 100%; position: static; } }
@media (max-width: 768px) {
    .nav-top { padding: 0 16px; height: 56px; }
    .nav-brand-name { font-size: 16px; }
    .nav-brand-sub { display: none; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .news-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
}
/* ========== 案例列表页强制覆盖规则（确保卡片图片在上、文字在下）========== */
.case-grid,#caseGrid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:24px!important;width:100%!important;float:none!important;clear:both!important}
.case-grid .case-card,.case-card{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;float:none!important;width:100%!important;box-sizing:border-box!important;background:#fff!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 2px 12px rgba(0,0,0,.08)!important}
.case-grid .case-card.featured,.case-card.featured{display:flex!important;flex-direction:column!important}
.case-card-img,.case-card.featured .case-card-img{flex-shrink:0!important;width:100%!important;aspect-ratio:16/9!important}
.case-card-body{flex:1!important;display:flex!important;flex-direction:column!important}
@media(max-width:1024px){.case-grid,#caseGrid{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:768px){.case-grid,#caseGrid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:480px){.case-grid,#caseGrid{grid-template-columns:1fr!important}}

/* ============================================
   全站全局响应式优化 - 所有页面通用
   ============================================ */
/* 标题防溢出 - 所有标题自动换行 */
h1, h2, h3, h4, h5, h6,
.page-title, .post-title, .product-title, .entry-title, .section-title,
.card-title, .case-title, .news-title, .baike-title, .blog-title,
.article-title, .widget-title, .about-title, .products-title,
.contact-title, .why-us-title, .hot-title, .info-title, .related-title,
.block-title, .sub-title, .sidebar-title, .bd-article-title, .bd-hot-title,
.bd-nav-title, .bd-contact-title, .grid-header, .main-header, .hot-products-header,
.sidebar-tag-header, .sidebar-contact-title, .article-card-title, .media-name,
.param-name, .author-name, .hot-card-title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* 长单词/长英文自动断字 */
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(en) h4, :lang(en) h5, :lang(en) h6,
:lang(en) .page-title, :lang(en) .post-title, :lang(en) .product-title, :lang(en) .entry-title {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* 表格响应式 - 小屏幕横向滚动 */
table {
    max-width: 100% !important;
    width: 100% !important;
    border-collapse: collapse !important;
}
.table-wrap, .table-responsive, .entry-content table, .post-content table,
.article-content table, .product-content table, .case-content table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
}
.table-wrap::-webkit-scrollbar, .table-responsive::-webkit-scrollbar {
    height: 6px !important;
}
.table-wrap::-webkit-scrollbar-thumb, .table-responsive::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 3px !important;
}

/* 容器防溢出 */
.container, .wrapper, .content-wrap, .main-content, .site-content,
.page-container, .post-container, .product-container, .case-container,
.entry-content, .post-content, .article-content, .product-content,
.case-content, .news-content, .baike-content, .blog-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* 图片响应式 */
img, picture, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
}

/* 按钮/表单响应式 */
input, textarea, select, button {
    max-width: 100% !important;
}
.form-row, .form-group, .input-group {
    max-width: 100% !important;
}

/* 代码块响应式 */
pre, code {
    max-width: 100% !important;
    overflow-x: auto !important;
    word-break: break-all !important;
    white-space: pre-wrap !important;
}

/* 引用块响应式 */
blockquote {
    max-width: 100% !important;
    word-break: break-word !important;
}

/* 列表响应式 */
ul, ol {
    max-width: 100% !important;
    padding-left: 20px !important;
}
li {
    word-break: break-word !important;
}

/* 段落响应式 */
p {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* 手机端全局优化 (768px以下) */
@media (max-width: 768px) {
    /* 标题字体大小自适应 */
    h1, .page-title, .post-title, .product-title, .entry-title, .hero-title,
    .bd-article-title, .article-header h1, .header-inner h1 {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    }
    h2, .section-title, .section-title h2, .hot-title, .info-title, .related-title,
    .block-title, .sidebar-title, .bd-hot-title, .grid-header, .main-header {
        font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    }
    h3, .product-name, .card-title, .hot-card-title, .article-card-title,
    .case-title, .news-title, .baike-title, .blog-title {
        font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
    }
    
    /* 内边距缩小 */
    .container, .wrapper, .content-wrap, .main-content, .site-content,
    .page-container, .post-container, .product-container, .case-container {
        padding: 0 12px !important;
    }
    
    /* 表格字体缩小 */
    table, th, td {
        font-size: 12px !important;
    }
    
    /* 按钮内边距缩小 */
    .btn, button, input[type="submit"], input[type="button"] {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* 小屏幕手机 (480px以下) */
@media (max-width: 480px) {
    h1, .page-title, .post-title, .product-title, .entry-title {
        font-size: clamp(1.1rem, 6vw, 1.5rem) !important;
    }
    h2, .section-title {
        font-size: clamp(1rem, 5vw, 1.3rem) !important;
    }
    h3, .product-name, .card-title {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem) !important;
    }
    
    /* 表格字体进一步缩小 */
    table, th, td {
        font-size: 11px !important;
    }
}