/* 企业模块样式 */
:root {
  --primary-color: #3490dc;
  --primary-light: #eaf2fd;
  --primary-dark: #2779bd;
  --success-color: #38c172;
  --warning-color: #f6993f;
  --danger-color: #e3342f;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --border-radius: 4px;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== 企业列表页样式 ========== */
.breadcrumb {
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.company-filter {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  width: 80px;
  color: var(--gray-700);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 5px;
}

.filter-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 0;
}

.filter-option {
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #f5f7fa;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.filter-option:hover {
  background-color: #eaf2fd;
  color: #3490dc;
}

.filter-option.active {
  background-color: #3490dc;
  color: #fff;
}

.search-box {
  display: flex;
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.search-input {
  flex: 1;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #e9ecef;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #3490dc;
}

.search-btn {
  width: 120px;
  height: 46px;
  background: #3490dc;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover {
  background: #2779bd;
}

.sort-bar {
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sort-options {
  display: flex;
  gap: 15px;
}

.sort-option {
  padding: 5px 12px;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.sort-option:hover {
  color: #3490dc;
}

.sort-option.active {
  background-color: #eaf2fd;
  color: #3490dc;
  font-weight: 500;
}

.result-stats {
  color: #666;
}

.result-stats .text-primary {
  color: #3490dc;
  font-weight: bold;
}

.company-list {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.company-card {
  margin-bottom: 0;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(52, 144, 220, 0.2);
}

.company-card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f7fa;
}

.company-logo {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  padding: 5px;
}

.company-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.company-card-body {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.company-tags {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company-tag {
  display: inline-block;
  background-color: #f8f9fa;
  color: #6c757d;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  transition: all 0.3s;
}

.company-tag:hover {
  background-color: #eaf2fd;
  color: #3490dc;
}

.company-desc {
  color: #495057;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: 100%;
  flex: 1;
}

.company-jobs {
  margin: 0;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.company-job-item {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 13px;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
}

.company-job-item:hover {
  border-color: #3490dc;
  background-color: #eaf2fd;
}

.job-name {
  color: #343a40;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.job-salary {
  color: #e3342f;
  font-weight: 500;
}

.company-card-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-top: 1px solid #f5f7fa;
}

.company-actions {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.view-btn {
  background-color: #3490dc;
  color: white;
  font-weight: 500;
}

.view-btn:hover {
  background-color: #2779bd;
  color: white;
  transform: translateY(-2px);
}

.favorite-btn {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.favorite-btn:hover {
  background-color: #e9ecef;
  color: #212529;
  transform: translateY(-2px);
}

.favorite-btn.favorited {
  background-color: #eaf2fd;
  color: #3490dc;
  border-color: #c6e0f5;
}

.company-views {
  color: #6c757d;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.company-views i {
  margin-right: 5px;
  font-size: 14px;
}

/* 分页样式 */
.pagination {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.pagination li {
  list-style: none;
  margin: 0 5px;
}

.pagination li a, 
.pagination li span {
  display: inline-block;
  padding: 8px 15px;
  background-color: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination li.active span,
.pagination li a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination li.disabled span {
  background-color: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* 空数据样式 */
.no-data {
  padding: 50px 0;
  text-align: center;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-data i {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--gray-400);
}

.no-data-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.no-data .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.no-data .btn-primary:hover {
  background-color: var(--primary-dark);
}

/* 响应式样式优化 */
@media (max-width: 768px) {
  .company-card {
    flex-direction: column;
  }

  .company-logo {
    margin-right: 0;
    margin-bottom: 15px;
    align-self: center;
  }

  .company-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-meta {
    margin-top: 10px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-label {
    margin-bottom: 8px;
    width: 100%;
  }

  .filter-options {
    width: 100%;
  }

  .sort-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .sort-options {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .company-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .company-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== 企业详情页样式 ========== */
.company-detail-container {
  padding: 20px 0 30px;
  background-color: #f5f7fa;
}

.company-banner {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.company-detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.company-detail-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.company-detail-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-detail-info {
  flex: 1;
}

.company-detail-name {
  font-size: 24px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.company-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.company-detail-actions {
  display: flex;
  gap: 15px;
}

.company-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.company-action-btn i {
  margin-right: 8px;
}

.view-jobs-btn {
  background-color: var(--primary-color);
  color: white;
}

.view-jobs-btn:hover {
  background-color: var(--primary-dark);
}

.favorite-company-btn {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.favorite-company-btn:hover {
  background-color: var(--gray-200);
}

.favorite-company-btn.favorited {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.share-btn {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.share-btn:hover {
  background-color: var(--gray-200);
}

.company-detail-tabs {
  display: flex;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.company-tab {
  padding: 15px 30px;
  font-size: 16px;
  color: #6c757d;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.company-tab:hover {
  color: #3490dc;
  background-color: #f8f9fa;
}

.company-tab.active {
  color: #3490dc;
  font-weight: 500;
  background-color: #eaf2fd;
  border-bottom: 2px solid #3490dc;
}

.company-detail-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.detail-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 18px;
  color: var(--gray-800);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.detail-section-title i {
  margin-right: 10px;
  color: var(--primary-color);
}

.company-about {
  color: var(--gray-700);
  line-height: 1.8;
  white-space: pre-line;
}

.company-welfare {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.welfare-item {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.welfare-item i {
  margin-right: 5px;
}

.company-info-item {
  display: flex;
  margin-bottom: 15px;
  color: var(--gray-700);
}

.company-info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  width: 100px;
  color: var(--gray-600);
  flex-shrink: 0;
}

.info-value {
  flex: 1;
  word-break: break-word;
}

.company-map {
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 15px;
}

.detail-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.job-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.view-all {
  color: var(--primary-color);
  font-size: 14px;
}

.company-job-list {
  margin-top: 15px;
}

.company-job-card {
  padding: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.company-job-card:last-child {
  border-bottom: none;
}

.company-job-card:hover {
  background-color: var(--primary-light);
}

.job-title {
  color: var(--gray-800);
  font-weight: 500;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray-600);
  font-size: 13px;
  margin-bottom: 8px;
}

.job-salary {
  color: var(--danger-color);
  font-weight: 500;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.job-tag {
  background-color: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.similar-company-title {
  margin-bottom: 15px;
}

.similar-company-list {
  margin-top: 10px;
}

.similar-company-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.similar-company-item:last-child {
  border-bottom: none;
}

.similar-company-logo {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.similar-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.similar-company-info {
  flex: 1;
}

.similar-company-name {
  color: var(--gray-800);
  font-weight: 500;
  margin-bottom: 5px;
}

.similar-company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-600);
  font-size: 12px;
}

/* 响应式样式 */
@media (max-width: 992px) {
  .company-detail-content {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .company-card {
    flex-direction: column;
  }

  .company-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .company-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .company-detail-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .company-meta-list {
    grid-template-columns: 1fr;
  }

  .company-detail-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }

  .company-tab {
    padding: 10px 15px;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label {
    margin-bottom: 10px;
  }
}

/* 修复容器样式 */
.container.w1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
  background-color: #f5f7fa;
}

.container.w1200 .company-filter,
.container.w1200 .search-box,
.container.w1200 .sort-bar,
.container.w1200 .company-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background-color: #fff;
}

/* 确保能正确显示筛选项 */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 0;
}

.filter-option {
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #f5f7fa;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.filter-option:hover {
  background-color: #eaf2fd;
  color: #3490dc;
}

.filter-option.active {
  background-color: #3490dc;
  color: #fff;
}

/* 修复公司卡片样式 */
.company-card {
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.company-card:hover {
  transform: translateY(-3px);
}

/* 搜索框样式加强 */
.search-box {
  display: flex;
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.search-input {
  flex: 1;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #e9ecef;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #3490dc;
}

.search-btn {
  width: 120px;
  height: 46px;
  background: #3490dc;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover {
  background: #2779bd;
}

/* 增强排序栏样式 */
.sort-bar {
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sort-options {
  display: flex;
  gap: 15px;
}

.sort-option {
  padding: 5px 12px;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.sort-option:hover {
  color: #3490dc;
}

.sort-option.active {
  background-color: #eaf2fd;
  color: #3490dc;
  font-weight: 500;
}

.result-stats {
  color: #666;
}

.result-stats .text-primary {
  color: #3490dc;
  font-weight: bold;
}

/* 分页样式优化 */
.pagination {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

/* 原有样式保留 */
.company-name {
  color: #212529;
  font-size: 18px;
  font-weight: 500;
  margin-right: 10px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.company-name:hover {
  color: #3490dc;
}

.company-type {
  font-size: 13px;
  color: #6c757d;
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background-color: #f8f9fa;
  border-radius: 50px;
}

.verified-badge {
  background-color: #eaf2fd;
  color: #3490dc;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
}

.verified-badge i {
  margin-right: 3px;
}

.company-meta-item {
  color: #6c757d;
  font-size: 13px;
  display: flex;
  align-items: center;
  padding: 3px 0;
}

.company-meta-item i {
  margin-right: 5px;
  font-size: 14px;
  color: #adb5bd;
  width: 16px;
  text-align: center;
}

.empty-section {
  padding: 30px 0;
  text-align: center;
  color: #adb5bd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.empty-section i {
  font-size: 32px;
  margin-bottom: 10px;
  color: #dee2e6;
}

/* 企业联系方式锁定样式 */
.contact-locked {
  background-color: rgba(247, 250, 255, 0.8);
  border: 1px dashed #c6e0f5;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  margin: 15px 0;
}

.lock-icon {
  font-size: 32px;
  color: #3490dc;
  margin-bottom: 15px;
}

.lock-text {
  color: #5c6873;
  font-size: 15px;
  margin-bottom: 20px;
}

.apply-btn {
  display: inline-block;
  background-color: #3490dc;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.apply-btn:hover {
  background-color: #2779bd;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
} 

