/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fafafa; color: #1e293b; line-height: 1.7; }
a { color: #6366f1; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #4f46e5; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Typography Utilities === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #94a3b8; }
.text-small { font-size: 0.85rem; }
.text-white { color: #fff; }
.text-primary { color: #6366f1; }

/* === Highlight === */
.highlight { background: linear-gradient(120deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.12) 100%); padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* === Badge === */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; background: #eef2ff; color: #6366f1; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef9c3; color: #ca8a04; }
.badge-info { background: #e0f2fe; color: #0284c7; }

/* === SVG Icon Sizes === */
.icon-xs { width: 12px; height: 12px; }
.icon-s { width: 16px; height: 16px; }
.icon-m { width: 24px; height: 24px; }
.icon-l { width: 32px; height: 32px; }

/* === Grid System === */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; box-sizing: border-box; }
.col-1 { width: 8.333%; }
.col-2 { width: 16.667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-5 { width: 41.667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }
.col-8 { width: 66.667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-11 { width: 91.667%; }
.col-12 { width: 100%; }

/* === Form Styles === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; color: #1e293b; background: #fff; transition: border-color 0.3s ease, box-shadow 0.3s ease; font-family: inherit; }
.form-control:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* === Buttons === */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; text-align: center; line-height: 1.4; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #4f46e5; color: #fff; }
.btn-secondary { background: #8b5cf6; color: #fff; }
.btn-secondary:hover { background: #7c3aed; color: #fff; }
.btn-accent { background: #f472b6; color: #fff; }
.btn-accent:hover { background: #ec4899; color: #fff; }
.btn-outline { background: transparent; color: #6366f1; border: 2px solid #6366f1; }
.btn-outline:hover { background: #6366f1; color: #fff; }
.btn-ghost { background: transparent; color: #6366f1; border: none; }
.btn-ghost:hover { background: #eef2ff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === Card Container === */
.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; transition: all 0.3s ease; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-header { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 1rem; color: #1e293b; background: #fafafa; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid #e2e8f0; background: #fafafa; font-size: 0.85rem; color: #64748b; }

/* === Table Styles === */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table thead { background: #f1f5f9; }
table th { padding: 10px 14px; text-align: left; font-weight: 600; color: #1e293b; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
table td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; color: #475569; }
table tbody tr:hover { background: #f8fafc; }
table tbody tr:last-child td { border-bottom: none; }
table.table-striped tbody tr:nth-child(even) { background: #fafafa; }
table.table-bordered th, table.table-bordered td { border: 1px solid #e2e8f0; }
table.table-compact th, table.table-compact td { padding: 6px 10px; font-size: 0.82rem; }

/* === Toggle Switch === */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #cbd5e1; transition: 0.3s ease; border-radius: 24px; }
.slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; transition: 0.3s ease; border-radius: 50%; }
.switch input:checked + .slider { background: #6366f1; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus + .slider { box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.switch-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-label .label-text { font-size: 0.9rem; color: #475569; }

/* === Spacing Utilities === */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

/* === Flex Utilities === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.flex-1 { flex: 1; }

/* === Top Bar === */
.top-bar { background: #f1f5f9; padding: 6px 20px; font-size: 0.8rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.top-bar-left span { margin-right: 16px; color: #64748b; }
.top-bar-right a { margin-left: 12px; color: #64748b; transition: color 0.3s ease; }
.top-bar-right a:hover { color: #6366f1; }

/* === Header === */
.header { background: #fff; padding: 12px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.header-logo-text { font-size: 1.4rem; font-weight: 700; color: #6366f1; }
.header-nav { display: flex; list-style: none; gap: 24px; align-items: center; }
.header-nav li { position: relative; }
.header-nav li a { color: #475569; font-size: 0.95rem; padding: 6px 0; display: block; transition: color 0.3s ease; }
.header-nav li a:hover { color: #6366f1; }
.header-nav li.active a { color: #6366f1; font-weight: 600; border-bottom: 2px solid #6366f1; }
.sub-nav { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 8px; border-radius: 8px; min-width: 160px; z-index: 50; }
.has-children:hover .sub-nav { display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #475569; padding: 4px; }
.header-search { display: flex; align-items: center; }
.header-search button { background: none; border: none; cursor: pointer; color: #94a3b8; padding: 4px; transition: color 0.3s ease; }
.header-search button:hover { color: #6366f1; }

/* === Hero === */
.hero { padding: 60px 20px; text-align: center; background: #fff; }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.2rem; color: #1e293b; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; color: #64748b; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { margin-bottom: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.hero-stat-num { font-size: 1.8rem; font-weight: 700; color: #6366f1; }
.hero-stat-label { font-size: 0.85rem; color: #64748b; margin-top: 4px; }

/* === Service Section === */
.service-section { padding: 60px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.6rem; color: #1e293b; margin-bottom: 8px; }
.section-title p { color: #94a3b8; font-size: 0.95rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(99,102,241,0.12); }
.service-card-icon { width: 48px; height: 48px; background: #eef2ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card-icon svg { width: 24px; height: 24px; color: #6366f1; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1e293b; }
.service-card p { font-size: 0.85rem; color: #64748b; margin-bottom: 12px; line-height: 1.6; }
.service-card-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.service-card-links a { font-size: 0.8rem; color: #6366f1; transition: color 0.3s ease; }
.service-card-links a:hover { color: #4f46e5; text-decoration: underline; }

/* === Advantage Section === */
.advantage-section { padding: 60px 20px; background: #fff; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-card { text-align: center; padding: 32px 20px; }
.advantage-card-num { width: 48px; height: 48px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.2rem; font-weight: 700; }
.advantage-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1e293b; }
.advantage-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* === News Section === */
.news-section { padding: 60px 20px; }
.news-section .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.news-list { }
.news-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e2e8f0; }
.news-item:last-child { border-bottom: none; }
.news-item-thumb { width: 200px; min-width: 200px; }
.news-item-thumb img { width: 100%; border-radius: 8px; object-fit: cover; height: 120px; }
.news-item-body h3 { margin-bottom: 4px; }
.news-item-body h3 a { color: #1e293b; font-size: 1.05rem; transition: color 0.3s ease; }
.news-item-body h3 a:hover { color: #6366f1; }
.news-item-desc { font-size: 0.85rem; color: #64748b; margin: 6px 0 10px; line-height: 1.6; }
.news-item-meta { display: flex; gap: 16px; font-size: 0.78rem; color: #94a3b8; }
.news-item-meta a { color: #94a3b8; transition: color 0.3s ease; }
.news-item-meta a:hover { color: #6366f1; }

/* === Sidebar === */
.sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 12px; color: #1e293b; padding-bottom: 8px; border-bottom: 2px solid #eef2ff; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { padding: 6px 0; }
.sidebar-widget ul li a { color: #475569; font-size: 0.85rem; transition: color 0.3s ease; }
.sidebar-widget ul li a:hover { color: #6366f1; }
.hot-article-item { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.hot-article-rank { width: 22px; height: 22px; background: #eef2ff; color: #6366f1; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.hot-article-item a { font-size: 0.85rem; color: #475569; transition: color 0.3s ease; }
.hot-article-item a:hover { color: #6366f1; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { padding: 4px 10px; background: #f1f5f9; border-radius: 12px; font-size: 0.78rem; color: #64748b; transition: all 0.3s ease; }
.tag-cloud a:hover { background: #6366f1; color: #fff; }

/* === Partner Section === */
.partner-section { padding: 40px 20px; background: #fff; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-item { padding: 8px 20px; background: #f8fafc; border-radius: 8px; font-size: 0.85rem; color: #64748b; border: 1px solid #e2e8f0; }

/* === City Links === */
.city-links-section { padding: 40px 20px; background: #f1f5f9; }
.city-links-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.city-links-grid a { padding: 6px 14px; background: #fff; border-radius: 6px; font-size: 0.82rem; color: #475569; transition: all 0.3s ease; }
.city-links-grid a:hover { background: #6366f1; color: #fff; }

/* === Footer === */
.footer { background: #1e293b; color: #cbd5e1; padding: 48px 20px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { color: #94a3b8; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: #fff; }
.footer-about p { font-size: 0.85rem; line-height: 1.8; color: #94a3b8; }
.footer-about .footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; display: block; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; color: #94a3b8; }
.footer-contact p svg { margin-right: 6px; vertical-align: middle; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 32px; border-top: 1px solid #334155; font-size: 0.82rem; color: #64748b; }

/* === Floating Widget === */
.float-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: center; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; background: #6366f1; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 8px; box-shadow: 0 4px 12px rgba(99,102,241,0.3); transition: all 0.3s ease; border: none; }
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99,102,241,0.4); }
.float-btn svg { width: 20px; height: 20px; }
.float-btn-secondary { background: #f472b6; box-shadow: 0 4px 12px rgba(244,114,182,0.3); }
.float-btn-secondary:hover { background: #ec4899; }
.tooltip { display: none; }

/* === List Page === */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: #94a3b8; }
.breadcrumb a { color: #6366f1; }
.breadcrumb a:hover { color: #4f46e5; }
.breadcrumb span { color: #64748b; }
.list-page .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 20px; padding-bottom: 60px; }
.article-list .article-item { padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.article-item h3 a { color: #1e293b; font-size: 1.05rem; transition: color 0.3s ease; }
.article-item h3 a:hover { color: #6366f1; }
.article-item-meta { font-size: 0.78rem; color: #94a3b8; margin-top: 6px; display: flex; gap: 12px; }
.article-item-excerpt { font-size: 0.85rem; color: #64748b; margin-top: 6px; line-height: 1.6; }
.pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; font-size: 0.85rem; transition: all 0.3s ease; }
.pagination a:hover { border-color: #6366f1; color: #6366f1; }
.pagination a.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.pagination a.active:hover { color: #fff; }

/* === Detail Page === */
.detail-section { padding: 20px 0 60px; }
.detail-section .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 1.5rem; color: #1e293b; line-height: 1.35; }
.article-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 0.82rem; color: #94a3b8; flex-wrap: wrap; }
.article-content { line-height: 1.9; font-size: 1rem; color: #334155; }
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3, .article-content h4 { margin-top: 28px; margin-bottom: 12px; color: #1e293b; }
.article-content h2 { font-size: 1.35rem; }
.article-content h3 { font-size: 1.15rem; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content img { border-radius: 8px; margin: 16px 0; }
.article-content blockquote { border-left: 4px solid #6366f1; padding: 12px 20px; margin: 16px 0; background: #f8fafc; border-radius: 0 8px 8px 0; color: #475569; font-style: italic; }
.article-content a { color: #6366f1; text-decoration: underline; }
.article-tags { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.article-tags a { padding: 4px 10px; background: #f1f5f9; border-radius: 12px; font-size: 0.78rem; color: #6366f1; transition: all 0.3s ease; }
.article-tags a:hover { background: #6366f1; color: #fff; }
.article-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.article-nav a { font-size: 0.85rem; color: #6366f1; transition: color 0.3s ease; }
.article-nav a:hover { color: #4f46e5; }

/* === Search Page === */
.search-box { margin-bottom: 20px; }
.search-box input { width: 100%; padding: 10px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; color: #1e293b; transition: border-color 0.3s ease, box-shadow 0.3s ease; font-family: inherit; }
.search-box input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.search-empty { text-align: center; padding: 60px 0; color: #94a3b8; }

/* === About/Contact/Page === */
.page-section { padding: 20px 0 60px; }
.page-section .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.page-content { line-height: 1.9; font-size: 1rem; color: #334155; }
.page-content h1 { font-size: 1.5rem; margin-bottom: 16px; color: #1e293b; }
.page-content h2 { font-size: 1.3rem; margin-top: 24px; margin-bottom: 12px; color: #1e293b; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

/* === Sitemap === */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 20px 0 60px; }
.sitemap-section h3 { margin-bottom: 8px; }
.sitemap-section h3 a { color: #6366f1; font-size: 1.05rem; transition: color 0.3s ease; }
.sitemap-section h3 a:hover { color: #4f46e5; }
.sitemap-section ul { list-style: none; margin-top: 8px; }
.sitemap-section ul li { padding: 4px 0; }
.sitemap-section ul li a { color: #475569; font-size: 0.85rem; transition: color 0.3s ease; }
.sitemap-section ul li a:hover { color: #6366f1; }

/* === Animation === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-up { animation: slideUp 0.5s ease forwards; }

/* === Loading Spinner === */
.spinner { width: 24px; height: 24px; border: 3px solid #e2e8f0; border-top-color: #6366f1; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

/* === Alert / Notice === */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-info { background: #e0f2fe; color: #0284c7; }
.alert-success { background: #dcfce7; color: #16a34a; }
.alert-warning { background: #fef9c3; color: #ca8a04; }
.alert-danger { background: #fee2e2; color: #dc2626; }

/* === Divider === */
.divider { height: 1px; background: #e2e8f0; margin: 24px 0; }
.divider-dashed { height: 1px; background: repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 6px, transparent 6px, transparent 12px); margin: 24px 0; }

/* === Back to Top === */
.back-to-top { position: fixed; bottom: 80px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #6366f1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; border: none; transition: all 0.3s ease; z-index: 999; }
.back-to-top:hover { background: #6366f1; color: #fff; transform: translateY(-2px); }

/* === Image Hover Effect === */
.img-hover-zoom { overflow: hidden; border-radius: 8px; }
.img-hover-zoom img { transition: transform 0.4s ease; }
.img-hover-zoom:hover img { transform: scale(1.05); }

/* === === */
.clearfix::after { content: ""; display: table; clear: both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* === Responsive - 1024px === */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-section .container, .list-page .container, .detail-section .container, .page-section .container { grid-template-columns: 1fr; }
  .col-md-1 { width: 8.333%; }
  .col-md-2 { width: 16.667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-5 { width: 41.667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333%; }
  .col-md-8 { width: 66.667%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.333%; }
  .col-md-11 { width: 91.667%; }
  .col-md-12 { width: 100%; }
}

/* === Responsive - 768px === */
@media (max-width: 768px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stat-num { font-size: 1.5rem; }
  .service-grid, .advantage-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-item-thumb { width: 100%; min-width: auto; }
  .news-item-thumb img { height: auto; max-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .nav-toggle { display: block; }
  .header-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 0; }
  .header-nav.open li { width: 100%; }
  .header-nav.open li a { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
  .header-nav.open li:last-child a { border-bottom: none; }
  .header-nav.open .sub-nav { position: static; box-shadow: none; padding-left: 16px; display: none; }
  .header-nav.open .has-children:hover .sub-nav { display: block; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.3rem; }
  .article-header h1 { font-size: 1.25rem; }
  .col-sm-1 { width: 8.333%; }
  .col-sm-2 { width: 16.667%; }
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.333%; }
  .col-sm-5 { width: 41.667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.333%; }
  .col-sm-8 { width: 66.667%; }
  .col-sm-9 { width: 75%; }
  .col-sm-10 { width: 83.333%; }
  .col-sm-11 { width: 91.667%; }
  .col-sm-12 { width: 100%; }
  .float-widget { bottom: 16px; right: 16px; }
  .float-btn { width: 40px; height: 40px; }
  .float-btn svg { width: 18px; height: 18px; }
  .back-to-top { right: 16px; }
}

/* === Print Styles === */
@media print {
  .header, .footer, .top-bar, .float-widget, .back-to-top, .sidebar-widget, .nav-toggle { display: none !important; }
  .container, .container-fluid { max-width: 100%; padding: 0; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .hero, .service-section, .advantage-section, .news-section, .partner-section, .city-links-section { padding: 20px 0; page-break-inside: avoid; }
}


/* ===== Nav Crowding Fix ===== */
@media (max-width: 1200px) {
  .header-nav > li > a,
  .nav a,
  .nav-menu a,
  .pd-nav a {
    padding: 6px 10px !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 992px) {
  .header-nav,
  .nav,
  .nav-menu,
  .pd-nav {
    gap: 2px !important;
  }
  .header-nav > li > a,
  .nav a,
  .nav-menu a,
  .pd-nav a {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .header-nav,
  .nav,
  .nav-menu,
  .pd-nav {
    flex-wrap: wrap !important;
  }
}

.icon-xs { width: 14px; height: 14px; vertical-align: middle; }
.icon-s { width: 16px; height: 16px; vertical-align: middle; }
.icon-m { width: 20px; height: 20px; vertical-align: middle; }
.icon-l { width: 28px; height: 28px; vertical-align: middle; }
.icon-svg { width: 1em; height: 1em; vertical-align: middle; }


/* === Auto-fixed missing selectors === */
:root { --color-primary: #6366f1;
  --text-light: #94a3b8;
  --text: #1e293b;
  --primary: #2563eb;
  --bg: #f8fafc;
;}

/* ===== Top Bar Overrides ===== */
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 1rem; }
.top-bar-right { display: flex; gap: .75rem; }
.top-bar-item { display: inline-flex; align-items: center; gap: .5rem; }

/* ===== Header Overrides ===== */
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; list-style: none; gap: 1.5rem; margin: 0; }
.nav a { color: #475569; font-size: .95rem; transition: color .3s; }
.nav a:hover { color: var(--color-primary); }
.header-search { display: flex; align-items: center; }
.search-input { padding: .5rem .75rem; border: 1px solid #e5e7eb; border-radius: 4px; outline: none; font-size: .875rem; }
.search-input:focus { border-color: var(--color-primary); }
.search-btn { background: none; border: none; cursor: pointer; padding: .5rem; color: #94a3b8; }
.search-btn:hover { color: var(--color-primary); }

/* ===== Hamburger ===== */
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: .5rem; }
.hamburger span { width: 24px; height: 2px; background: #475569; border-radius: 1px; transition: all .3s; }

/* ===== Hero ===== */
.hero-content { max-width: 600px; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero-subtitle { color: var(--color-primary); font-weight: 600; margin-bottom: .5rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* ===== Section ===== */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; }
.service-icon { font-size: 2rem; color: var(--color-primary); margin-bottom: 1rem; }
.service-links { display: flex; flex-direction: column; gap: .5rem; list-style: none; padding: 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; }
.feature-card { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: #64748b; font-size: .875rem; }
.feature-number { font-size: 2.5rem; font-weight: 800; color: var(--color-primary); opacity: .2; }

/* ===== News Section ===== */
.news-layout { display: flex; flex-wrap: wrap; gap: 2rem; }
.news-main { flex: 1; min-width: 0; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s; }
.news-card:hover { transform: translateY(-2px); }
.news-thumb { width: 100%; line-height: 0; }
.news-thumb svg { width: 100%; height: auto; display: block; }
.news-body { padding: 1rem 1.25rem; }
.news-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-meta { color: #9ca3af; font-size: .8125rem; display: flex; gap: 1rem; margin-bottom: .5rem; }
.news-sidebar { width: 300px; flex-shrink: 0; }
.read-more { color: var(--color-primary); font-weight: 500; font-size: .875rem; display: inline-block; margin-top: .5rem; }
.empty-state { text-align: center; padding: 3rem; color: #9ca3af; }
.empty-item { color: #9ca3af; font-size: .85rem; padding: .5rem 0; }

/* ===== Sidebar Widget ===== */
.sidebar-widget { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 1.25rem; }
.sidebar-widget h3 { font-size: 1rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-primary); }
.hot-list { list-style: none; padding: 0; margin: 0; }
.hot-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; }
.hot-list li + li { border-top: 1px solid #f3f4f6; }
.hot-num { width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .75rem; background: #e5e7eb; color: #6b7280; flex-shrink: 0; }
.category-nav { list-style: none; padding: 0; margin: 0; }
.category-nav li { padding: .4rem 0; }
.category-nav li + li { border-top: 1px solid #f3f4f6; }
.category-nav a { color: #475569; font-size: .875rem; display: block; padding: .25rem 0; }
.category-nav a:hover { color: var(--color-primary); }

/* ===== Partners ===== */
.partners-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.partner-item { padding: .5rem 1.25rem; background: #f8fafc; border-radius: 8px; font-size: .85rem; color: #64748b; border: 1px solid #e2e8f0; }

/* ===== City Links ===== */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .5rem; }
.city-item { display: block; padding: .5rem; text-align: center; background: #f8fafc; border-radius: 4px; color: #475569; font-size: .85rem; }
.city-item:hover { color: var(--color-primary); }
.city-links { margin-top: 1rem; }

/* ===== Contact List ===== */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .35rem 0; font-size: .875rem; color: #94a3b8; }
.contact-list li span { color: #cbd5e1; display: inline-block; min-width: 3rem; }

/* ===== Footer ===== */
.footer .container { max-width: 1200px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-col p { color: #94a3b8; font-size: .85rem; line-height: 1.8; }

/* ===== Float Contact ===== */
.float-contact { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; display: flex; flex-direction: column; gap: .5rem; }
.float-item { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--color-primary); color: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(99,102,241,.3); transition: transform .2s; }
.float-item:hover { transform: scale(1.1); color: #fff; }
.float-top { background: #475569; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ===== Breadcrumb ===== */
.breadcrumb-bar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: .75rem 0; font-size: .875rem; }
.breadcrumb-bar .container { display: flex; align-items: center; gap: .25rem; }
.breadcrumb-bar a { color: var(--color-primary); }
.breadcrumb-bar span { color: #94a3b8; }
.breadcrumb-sep { color: #cbd5e1; margin: 0 .15rem; }

/* ===== Page Section (list/detail) ===== */
.page-section { padding: 2rem 0; }
.page-layout { display: flex; gap: 2rem; align-items: flex-start; }
.page-main { flex: 1; min-width: 0; }
.page-sidebar { width: 300px; flex-shrink: 0; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.page-header p { color: #94a3b8; font-size: .875rem; }

/* ===== Article List ===== */
.article-list { display: flex; flex-direction: column; gap: 1rem; }
.list-card { display: flex; gap: 1.25rem; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 1rem; }
.list-card-thumb { width: 200px; min-height: 140px; flex-shrink: 0; line-height: 0; }
.list-card-thumb svg { width: 100%; height: 100%; border-radius: 6px; }
.list-card-body { flex: 1; display: flex; flex-direction: column; }
.list-card-body h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.list-card-body h2 a { color: #1e293b; }
.list-card-body h2 a:hover { color: var(--color-primary); }
.list-card-meta { color: #9ca3af; font-size: .8125rem; display: flex; gap: 1rem; margin-bottom: .5rem; }
.list-card-body p { color: #64748b; font-size: .875rem; margin-bottom: .5rem; flex: 1; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border: 1px solid #e5e7eb; border-radius: 4px; font-size: .875rem; color: #374151; background: #fff; transition: all .2s; }
.page-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-link.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Detail Article ===== */
.detail-article { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 2rem; }
.detail-title { font-size: 1.5rem; margin-bottom: .75rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: #9ca3af; font-size: .8125rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1.5rem; }
.detail-meta a { color: var(--color-primary); }
.detail-content { line-height: 1.8; }
.detail-content p { margin-bottom: 1rem; }
.detail-tags { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.detail-tags span { font-size: .875rem; color: #6b7280; }
.tag-link { display: inline-block; padding: .2rem .6rem; background: #eef2ff; border-radius: 4px; font-size: .8125rem; color: var(--color-primary); }
.tag-link:hover { background: var(--color-primary); color: #fff; }

/* ===== Detail Nav ===== */
.detail-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.detail-nav-prev, .detail-nav-next { max-width: 45%; font-size: .875rem; }
.detail-nav-prev a, .detail-nav-next a { color: var(--color-primary); }
.detail-nav-prev a:hover, .detail-nav-next a:hover { text-decoration: underline; }
.detail-nav-prev span, .detail-nav-next span { color: #6b7280; }
.detail-nav-next { text-align: right; margin-left: auto; }

/* ===== Related Articles ===== */
.related-section { margin-top: 1.5rem; }
.related-section h3 { font-size: 1.125rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-primary); }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.related-item { display: block; padding: .5rem .75rem; background: #f8fafc; border-radius: 6px; color: #374151; font-size: .875rem; }
.related-item:hover { background: #eef2ff; color: var(--color-primary); }

/* ===== Tag Cloud ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-cloud-item { display: inline-block; padding: .2rem .6rem; background: #f1f5f9; border-radius: 4px; font-size: .8125rem; color: #64748b; }
.tag-cloud-item:hover { background: var(--color-primary); color: #fff; }

/* ===== Logo ===== */
.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; gap: .5rem; color: #1e293b; text-decoration: none; }
.logo-text { font-size: 1.5rem; font-weight: 700; ;white-space:nowrap}

/* ===== Mobile Responsive ===== */
#mainNav.active { display: flex !important; }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 100; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid #f3f4f6; }
  .nav a { display: block; padding: .6rem 0; }
  .header { position: relative; }
  .news-layout { flex-direction: column; }
  .news-sidebar { width: 100%; }
  .page-layout { flex-direction: column; }
  .page-sidebar { width: 100%; }
  .list-card { flex-direction: column; }
  .list-card-thumb { width: 100%; }
  .detail-nav { flex-direction: column; }
  .detail-nav-prev, .detail-nav-next { max-width: 100%; }
  .related-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .partners-grid { gap: .5rem; }
  .float-contact { bottom: 1rem; right: 1rem; }
  .float-item { width: 40px; height: 40px; }
  .hero-title { font-size: 1.75rem; }
  .section { padding: 2.5rem 0; }
  .page-header h1 { font-size: 1.25rem; }
}



/* ========== 内容区样式补?(auto-added) ========== */

/* 段落间距 */
.article-content p,
.article-text p,
.article-body p,
.detail-body p,
.article-detail .content p,
.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* 标题样式 */
.article-content h2,
.article-text h2,
.article-body h2,
.detail-body h2,
.article-detail .content h2,
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  line-height: 1.4;
}

.article-content h3,
.article-text h3,
.article-body h3,
.detail-body h3,
.article-detail .content h3,
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  line-height: 1.4;
}

.article-content h4,
.article-text h4,
.article-body h4,
.detail-body h4,
.article-detail .content h4,
.page-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
}

/* 列表样式 */
.article-content ul,
.article-text ul,
.article-body ul,
.detail-body ul,
.article-detail .content ul,
.page-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.article-content ol,
.article-text ol,
.article-body ol,
.detail-body ol,
.article-detail .content ol,
.page-content ol {
  list-style: decimal;
  margin: 0 0 16px 24px;
}

.article-content li,
.article-text li,
.article-body li,
.detail-body li,
.article-detail .content li,
.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* 图片样式 */
.article-content img,
.article-text img,
.article-body img,
.detail-body img,
.article-detail .content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* 链接样式 */
.article-content a,
.article-text a,
.article-body a,
.detail-body a,
.article-detail .content a,
.page-content a {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}

/* 引用?*/
.article-content blockquote,
.article-text blockquote,
.article-body blockquote,
.detail-body blockquote,
.article-detail .content blockquote,
.page-content blockquote {
  border-left: 4px solid var(--primary, #2563eb);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--bg, #f9fafb);
  font-style: italic;
}

/* 代码?*/
.article-content code,
.article-text code,
.article-body code,
.detail-body code,
.article-detail .content code,
.page-content code {
  background: var(--bg, #f3f4f6);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre,
.article-text pre,
.article-body pre,
.detail-body pre,
.article-detail .content pre,
.page-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

.article-content pre code,
.article-text pre code,
.article-body pre code,
.detail-body pre code,
.article-detail .content pre code,
.page-content pre code {
  background: none;
  padding: 0;
}

/* 表格样式 */
.article-content table,
.article-text table,
.article-body table,
.detail-body table,
.article-detail .content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-content th,
.article-text th,
.article-body th,
.detail-body th,
.article-detail .content th,
.page-content th {
  background: var(--bg, #f3f4f6);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border, #e5e7eb);
}

.article-content td,
.article-text td,
.article-body td,
.detail-body td,
.article-detail .content td,
.page-content td {
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
}

/* ========== 品牌标语防溢?========== */
.brand-tagline,
[class*="brand-tagline"] {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--text-light, #6b7280);
  letter-spacing: 0.5px;
}

/* ========== 导航响应式修?========== */
@media (max-width: 768px) {
  .brand-tagline,
  [class*="brand-tagline"] {
    max-width: 200px;
    font-size: 11px;
  }
}



/* 一级栏?- 醒目样式 */
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 18px;
}

/* 二级栏目 - 三列网格 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  padding: 8px 10px;
  margin: 0 0 8px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  background: #eff6ff;
}

/* 响应式：小屏幕改为两?*/
@media (max-width: 992px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: 1fr;
  }
}

/* ========== 侧栏分类优化 (auto-added) ========== */

/* 一级栏?- 醒目样式，颜色跟随主?*/
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  background: var(--bg, #f9fafb);
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 16px;
}

/* 二级栏目 - 自适应布局，处理长名称 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  margin: 0 0 6px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-light, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  border-radius: 4px;
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

/* 响应?*/
@media (max-width: 768px) {
  .sidebar-cats > li > ul > li > a,
  .sidebar-cats > li > .sidebar-subcats > li > a,
  .side-nav > li > ul > li > a,
  .sidebar-widget .side-nav > li > ul > li > a {
    max-width: 100px;
    font-size: 12px;
  }
}
