* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部导航 */
.top-bar { background: #fff; color: #999; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #eee; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-r a { color: #666; margin-left: 15px; font-size: 12px; }
.top-bar-r a:hover { color: #1890ff; }

/* 地区切换 */
.region-btn { padding: 2px 8px; }
.region-btn.active { font-weight: bold; }

/* 主导航 */
.main-nav { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.main-nav .container { display: flex; align-items: center; height: 56px; }
.logo { margin-right: 30px; }
.logo h1 { font-size: 26px; font-weight: bold; font-family: "楷体", "KaiTi", serif; }
.logo a { color: #1890ff; }

/* 主菜单 */
.menu { flex: 1; display: flex; align-items: center; }
.nav-item { color: #333; font-size: 14px; padding: 16px 16px; transition: color 0.2s; }
.nav-item:hover, .nav-item.active { color: #1890ff; }

/* 搜索框 */
.search-box { display: flex; align-items: center; margin-left: auto; }
.search-box form { display: flex; align-items: center; }
.search-input { width: 180px; padding: 6px 12px; border: 1px solid #ddd; border-right: none; border-radius: 4px 0 0 4px; font-size: 13px; outline: none; }
.search-input:focus { border-color: #1890ff; }
.search-icon { width: 34px; height: 32px; background: #1890ff; border-radius: 0 4px 4px 0; cursor: pointer; position: relative; flex-shrink: 0; }
.search-icon::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; bottom: 8px; right: 8px; width: 5px; height: 2px; background: #fff; transform: rotate(45deg); }

/* 轮播图 */
.banner { background: #fff; padding: 15px 0; }
.banner-wrapper { position: relative; overflow: hidden; border-radius: 8px; height: 280px; }
.banner-slider { position: relative; height: 100%; }
.banner-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; }
.banner-item.active { opacity: 1; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-nav { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-nav span { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.banner-nav span.active { background: #1890ff; }
.banner-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 60px; background: rgba(0,0,0,0.3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.banner-btn:hover { background: rgba(0,0,0,0.5); }
.banner-btn.prev { left: 0; border-radius: 0 4px 4px 0; }
.banner-btn.next { right: 0; border-radius: 4px 0 0 4px; }

/* 页面主体 */
.main-wrapper { display: flex; gap: 15px; padding: 15px 0; }
.sidebar { width: 200px; flex-shrink: 0; }
.content { flex: 1; min-width: 0; }

/* 左侧边栏 */
.sidebar-box { overflow: visible; background: #fff; border-radius: 8px; margin-bottom: 12px; }
.sidebar-title { background: #1890ff; color: #333; padding: 10px 12px; font-size: 14px; font-weight: bold; }
.sidebar-list { padding: 8px 0; }
.sidebar-list li { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sidebar-list li:hover { background: #fffbe6; color: #d48806; }
.sidebar-list li a { flex: 1; }
.sidebar-list li span { color: #ccc; font-size: 12px; }

/* 内容区块 */
.content-box { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 12px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.section-title { font-size: 16px; font-weight: bold; color: #333; }
.section-more { color: #999; font-size: 12px; }
.section-more:hover { color: #1890ff; }

/* 文章卡片布局 */
.article-card-layout { display: flex; gap: 15px; }
.article-card-left { flex: 0 0 240px; }
.article-card-img { position: relative; border-radius: 8px; overflow: hidden; height: 160px; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 25px 10px 8px; font-size: 13px; }
.article-card-list { flex: 1; min-width: 0; }
.article-item { display: flex; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.article-item:last-child { border-bottom: none; }
.article-thumb { width: 50px; height: 38px; object-fit: cover; border-radius: 4px; margin-right: 10px; flex-shrink: 0; }
.article-info { flex: 1; min-width: 0; }
.article-link { color: #333; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-link:hover { color: #1890ff; }
.article-summary { font-size: 11px; color: #999; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 顾问单位 */
.company-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.company-item { display: flex; align-items: center; padding: 8px 10px; background: #fafafa; border-radius: 6px; border: 1px solid #eee; transition: all 0.2s; }
.company-item:hover { border-color: #1890ff; background: #fffbe6; }
.company-logo { width: 28px; height: 28px; background: linear-gradient(135deg, #1890ff 0%, #FFA500 100%); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 12px; margin-right: 8px; flex-shrink: 0; }
.company-name { font-size: 12px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 实时供需 */
.supply-slider { overflow: hidden; }
.supply-track { display: flex; animation: supplyScroll 25s linear infinite; }
.supply-item { display: flex; align-items: center; padding: 8px 12px; background: #fafafa; border-radius: 6px; min-width: 200px; margin-right: 8px; flex-shrink: 0; }
.supply-tag { padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-right: 6px; flex-shrink: 0; }
.supply-tag.type-demand { background: #fff7e6; color: #fa8c16; }
.supply-tag.type-supply { background: #e6f7ff; color: #1890ff; }
.supply-text { font-size: 12px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes supplyScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 页脚 */
.footer { background: #333; color: #999; padding: 15px 0; margin-top: 20px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; }
.footer-slogan { font-size: 14px; color: #1890ff; }
.footer-links a { color: #1890ff; margin-left: 15px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-links span { color: #666; margin: 0 5px; }
.footer-icp { text-align: center; color: #666; font-size: 11px; margin-top: 10px; }
.footer-icp a { color: #666; }

/* 响应式 - 手机版 */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .top-bar { padding: 6px 0; font-size: 12px; }
  .top-bar .container { flex-wrap: wrap; }
  .top-bar-r { display: none; }
  
  .main-nav .container { height: 50px; }
  .logo h1 { font-size: 22px; }
  .menu { display: none; }
  
  .search-box { position: absolute; right: 10px; top: 9px; }
  .search-input { width: 120px; padding: 5px 8px; font-size: 12px; }
  .search-icon { width: 30px; height: 28px; }
  
  .banner { padding: 10px 0; }
  .banner-wrapper { height: 150px; border-radius: 6px; }
  .banner-btn { width: 28px; height: 50px; font-size: 16px; }
  
  .main-wrapper { flex-direction: column; padding: 10px 0; gap: 10px; }
  .sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sidebar-box { overflow: visible; margin-bottom: 0; }
  .sidebar-title { padding: 8px 10px; font-size: 13px; }
  .sidebar-list li { padding: 6px 10px; font-size: 12px; }
  
  .content { width: 100%; }
  .content-box { padding: 12px; margin-bottom: 10px; }
  .section-title { font-size: 14px; }
  
  .article-card-layout { flex-direction: column; gap: 10px; }
  .article-card-left { flex: none; }
  .article-card-img { height: 120px; }
  
  .company-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .company-item { padding: 6px 8px; }
  .company-logo { width: 24px; height: 24px; font-size: 10px; }
  .company-name { font-size: 11px; }
  
  .supply-item { min-width: 160px; padding: 6px 10px; }
  .supply-tag { font-size: 10px; padding: 2px 5px; }
  .supply-text { font-size: 11px; }
  
  .footer { padding: 12px 0; margin-top: 15px; }
  .footer-main { flex-direction: column; text-align: center; gap: 8px; }
  .footer-slogan { font-size: 13px; }
  .footer-links { margin-top: 5px; }
  .footer-links a { font-size: 12px; }
  .footer-icp { font-size: 10px; margin-top: 8px; }
}

/* 法律顾问悬停显示说明 */
.sidebar-list.with-desc li { position: relative; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-list.with-desc li:last-child { border-bottom: none; }
.sidebar-list.with-desc .item-row { display: flex; justify-content: space-between; align-items: center; }
.sidebar-list.with-desc .item-row a { color: #333; font-size: 14px; }
.sidebar-list.with-desc .item-desc { display: none; font-size: 12px; color: #666; padding: 4px 0 0; line-height: 1.6; }
.sidebar-list.with-desc li:hover .item-desc { display: block; }

/* 顾问单位轮播 */
.company-slider { overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.company-track { display: flex; gap: 10px; white-space: nowrap; }
.company-item { flex: 0 0 120px; text-align: center; padding: 10px; background: #f8f9fa; border-radius: 8px; text-decoration: none; }
.company-item:hover { background: #e6f7ff; }
.company-logo { width: 40px; height: 40px; background: #1890ff; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: bold; }
.company-name { font-size: 12px; color: #333; }

/* 文章卡片布局 */
.article-card-layout { display: flex; gap: 20px; }
.article-card-left { flex: 0 0 280px; }
.article-card-img { border-radius: 8px; overflow: hidden; position: relative; }
.article-card-img img { width: 100%; height: 180px; object-fit: cover; }
.article-card-img .img-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 30px 10px 8px; font-size: 14px; }
.article-card-list { flex: 1; }
.article-thumb { width: 60px; height: 45px; border-radius: 4px; object-fit: cover; margin-right: 10px; }
.article-info { flex: 1; }
.article-link { color: #333; font-size: 13px; text-decoration: none; }
.article-link:hover { color: #1890ff; }
.article-summary { font-size: 11px; color: #888; margin-top: 3px; }

/* 顾问单位自动滚动 */
.company-slider { overflow: hidden; padding: 10px 0; }
.company-track { display: flex; animation: companyScroll 15s linear infinite; }
.company-track:hover { animation-play-state: paused; }
@keyframes companyScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 手机端隐藏法律顾问说明 */
@media (max-width: 768px) {
  .sidebar-list.with-desc .item-desc { display: none !important; }
}

/* 行业分类与法律顾问字体对齐 */
.sidebar-list li a { font-size: 14px; color: #333; }
.sidebar-list.with-desc .item-row a { font-size: 14px; }

/* 手机端侧边栏对齐 */
@media (max-width: 768px) {
  .sidebar { padding: 10px; }
  .sidebar-box { overflow: visible; margin-bottom: 15px; }
  .sidebar-title { font-size: 14px; }
  .sidebar-list li a { font-size: 14px; }
}

/* 侧边栏统一字体样式 */
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { font-size: 14px; color: #333; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sidebar-list li a:hover { color: #1890ff; }
.sidebar-list li span { color: #999; font-size: 14px; }

/* 法律顾问说明文字 */
.sidebar-list.with-desc .item-desc { font-size: 12px; color: #888; margin-top: 4px; }






/* 超级菜单 - 右侧弹出形式 */
.sidebar-box { position: relative; }
.sidebar-list > li { position: relative; }
.sidebar-list .mega-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 280px;
  z-index: 9999;
  padding: 10px;
}
.sidebar-list > li:hover .mega-menu { display: block; }
.mega-menu .mega-col {
  float: left;
  width: 50%;
  padding: 5px 8px;
}
.mega-menu .mega-col a {
  display: block;
  padding: 6px 8px;
  color: #333;
  font-size: 13px;
  border-radius: 3px;
}
.mega-menu .mega-col a:hover { 
  background: #f5f5f5; 
  color: #1890ff; 
}
.mega-menu:after { content: ''; display: table; clear: both; }
