/* 通用重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #165DFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 页面容器 */
.page-wrapper {
  width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 10px 20px;
  font-size: 15px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  color: #165DFF;
}

/* 页面标题栏 */
.page-title-bar {
  background: #f5f5f5;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-title-bar h1 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

/* 搜索区域 */
.search-area {
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  width: 620px;
  background: #fff;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 16px;
  color: #333;
  background: #fff;
}

.search-box input::placeholder {
  color: #bbb;
}

.search-box .search-btn {
  background: #f60;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 4px 4px 0;
}

.search-box .search-btn:hover {
  background: #e55a00;
}

.search-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 15px;
}

.search-result-bar .result-count {
  color: #333;
}

.search-result-bar .sort-options {
  display: flex;
  align-items: center;
  gap: 0;
}

.search-result-bar .sort-options a {
  padding: 0 10px;
  font-size: 15px;
  color: #333;
}

.search-result-bar .sort-options a.active {
  color: #e4393c;
}

.search-result-bar .sort-options .divider {
  color: #ccc;
}

/* 主内容区布局 */
.main-layout {
  display: flex;
  padding: 0;
}

.content-left {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
}

.sidebar-right {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #eee;
  padding: 0;
}

/* 列表页 - 机构列表 */
.agency-list {
  display: flex;
  flex-wrap: wrap;
}

.agency-item {
  width: 50%;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.agency-item .item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.agency-item .tag {
  background: #e4393c;
  color: #fff;
  font-size: 14px;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.6;
}

.agency-item .company-name {
  color: #165DFF;
  font-size: 16px;
  font-weight: 500;
}

.agency-item .company-name:hover {
  text-decoration: underline;
}

.agency-item .info-line {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.agency-item .business-scope {
  font-size: 15px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分页 */
.pagination-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px;
  font-size: 15px;
}

.pagination-area .total-count {
  color: #333;
}

.pagination-area .page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-area .page-buttons a,
.pagination-area .page-buttons span {
  display: inline-block;
  min-width: 34px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
  text-decoration: none;
}

.pagination-area .page-buttons a:hover {
  border-color: #e4393c;
  color: #e4393c;
  text-decoration: none;
}

.pagination-area .page-buttons .current {
  border: 1px solid #e4393c;
  color: #e4393c;
  font-weight: 700;
}

.pagination-area .page-buttons .ellipsis {
  border: none;
  background: none;
  line-height: 30px;
}

/* 侧边栏 */
.sidebar-section {
  margin-bottom: 0;
}

.sidebar-section-title {
  background: #f5f5f5;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #eee;
}

.sidebar-section ul {
  list-style: none;
  padding: 8px 14px;
}

.sidebar-section ul li {
  display: flex;
  align-items: baseline;
  padding: 4px 0;
  font-size: 15px;
}

.sidebar-section ul li .num {
  color: #e4393c;
  font-weight: 700;
  margin-right: 6px;
  min-width: 18px;
}

.sidebar-section ul li a {
  color: #165DFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}

.ad-space {
  margin: 10px 14px;
  background: #f5f5f5;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 15px;
  border: 1px dashed #ddd;
}

/* 详情页样式 */
.detail-header {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.detail-header .company-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.detail-header .subtitle {
  font-size: 15px;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}

.detail-header .meta-info {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #999;
  align-items: center;
}

.detail-header .meta-info .view-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-header .meta-info .view-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
}

/* 详情模块 */
.detail-section {
  padding: 15px 20px;
}

.detail-section-title {
  color: #e4393c;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.detail-table td {
  padding: 10px 0;
  font-size: 15px;
  vertical-align: top;
}

.detail-table td.label {
  color: #333;
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
}

.detail-table td.value {
  color: #333;
}

.detail-table td.value.red {
  color: #e4393c;
}

.detail-table td.value.green {
  color: #22a86a;
}

/* 特别提示 */
.special-notice {
  padding: 15px 20px;
}

.special-notice .notice-title {
  color: #e4393c;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.special-notice .notice-content {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
}

/* 底部信息 */
.detail-footer-info {
  padding: 15px 20px;
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  border-top: 1px solid #eee;
}

.detail-footer-info a {
  color: #165DFF;
}

.article-nav {
  padding: 10px 20px;
  font-size: 15px;
  line-height: 2;
  border-top: 1px solid #eee;
}

.article-nav a {
  color: #165DFF;
  margin-right: 20px;
}

.detail-ad-space {
  margin: 10px 20px;
  background: #f5f5f5;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 15px;
  border: 1px dashed #ddd;
}

/* 页脚 */
.page-footer {
  background: #f60;
  text-align: center;
  padding: 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}
