/* 主内容区 */
.main-content {
  min-height: calc(100vh - 200px);
  background-color: #f5f7fa;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 0.5rem;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 内容区域 */
.content-area {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

/* 公司头部信息 */
.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-name h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.business-check {
  padding: 0.2rem 0.8rem;
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.view-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-count {
  font-size: 0.9rem;
  color: #666;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* 招聘统计信息 */
.recruitment-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1890ff;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

/* 地图位置 */
.map-location {
  margin-top: 2rem;
}

.map-location h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.map-detail-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.map-detail-card .layui-card-body {
  padding: 0;
}

.company-detail-map-root {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.company-detail-map-canvas {
  width: 100%;
  height: 230px;
  background: linear-gradient(135deg, #edf4ff 0%, #e3ecfb 100%);
}

.company-detail-map-canvas.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #5f6f86;
  font-size: 0.9rem;
}

.company-detail-map-panel {
  padding: 14px 16px 16px;
  background-color: #fff;
  border-top: 1px solid #e9eef6;
}

.company-detail-map-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-detail-map-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #22314d;
}

.company-detail-map-link {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #245bdb;
  text-decoration: none;
}

.company-detail-map-link:hover {
  text-decoration: underline;
}

.company-detail-map-address {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #4f5e74;
  line-height: 1.7;
}

.company-detail-map-point {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #7d8797;
  word-break: break-all;
}

.company-detail-map-status {
  min-height: 20px;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: #245bdb;
}

.company-detail-map-status.is-error {
  color: #c9363e;
}

.company-detail-map-empty {
  padding: 28px 18px;
  border: 1px dashed #d8e2f2;
  border-radius: 10px;
  background: linear-gradient(135deg, #f9fbff 0%, #f3f7ff 100%);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* 保留旧结构类名，避免其他页面复用时受影响 */
.map-container {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
  text-align: center;
  padding: 1rem;
}

.map-content {
  color: #666;
  line-height: 1.8;
}

.map-content a {
  color: #0066cc;
  text-decoration: none;
}

.map-content a:hover {
  text-decoration: underline;
}

/* 单位视频 */
.unit-video {
  margin-top: 2rem;
}

.unit-video h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.video-demo-card {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: none;
}

.video-demo-card .layui-card-body {
  padding: 12px;
  overflow: hidden;
}

.video-demo-player {
  width: 100%;
  height: 180px;
  background: linear-gradient(145deg, #e9eef5 0%, #d8e2ef 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-demo-mask {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #344152;
}

.video-demo-mask .layui-icon {
  font-size: 42px;
  line-height: 1;
}

.video-demo-btn {
  margin-top: 10px;
}

.company-video-player {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  height: 180px !important;
  max-height: 180px;
  border: 0;
  border-radius: 4px;
  background-color: #000;
  object-fit: contain;
}

/* 保留旧结构类名，避免其他页面复用时受影响 */
.video-container {
  width: 100%;
  height: 180px;
  background-color: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
  overflow: hidden;
}

/* 模块样式 */
.content-module {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.content-module h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #333;
}

/* 职位列表 */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-item {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.job-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.job-item h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1890ff;
}

.job-item h3 a,
.notice-item h3 a,
.presentation-item h3 a,
.jobfair-item h3 a {
  color: inherit;
  text-decoration: none;
}

.job-item h3 a:hover,
.notice-item h3 a:hover,
.presentation-item h3 a:hover,
.jobfair-item h3 a:hover {
  text-decoration: underline;
}

.job-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-item {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.notice-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.notice-item h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1890ff;
}

.notice-info {
  font-size: 0.9rem;
  color: #666;
}

/* 宣讲会列表 */
.presentation-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.presentation-item {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.presentation-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.presentation-item h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1890ff;
}

.presentation-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* 招聘会列表 */
.jobfair-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jobfair-item {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.jobfair-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.jobfair-item h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1890ff;
}

.jobfair-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* 内容布局 */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* 左侧内容 */
.left-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 单位介绍 */
.unit-intro {
  margin-bottom: 2rem;
}

.unit-intro h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.unit-intro p,
.unit-intro > div,
.unit-intro > span {
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* 单位地址 */
.unit-address {
  margin-top: 2rem;
}

.unit-address h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.address-box {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* 右侧内容 */
.right-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 基本信息 */
.basic-info {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
}

.basic-info h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.info-label {
  color: #666;
}

.info-value {
  color: #333;
  font-weight: 500;
}

.info-link {
  color: #0066cc;
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

/* 单位相册 */
.unit-album {
  margin-top: 2rem;
}

.unit-album h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.album-demo-carousel {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.album-demo-carousel [carousel-item] {
  width: 100%;
  height: 100%;
}

.album-demo-carousel [carousel-item] > div {
  width: 100%;
  height: 100%;
}

.album-demo-slide {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.album-demo-slide-1 {
  background: linear-gradient(135deg, #5a8ad4 0%, #3f5fa6 100%);
}

.album-demo-slide-2 {
  background: linear-gradient(135deg, #6caab0 0%, #4f7f93 100%);
}

.album-demo-slide-3 {
  background: linear-gradient(135deg, #8b7db8 0%, #615a91 100%);
}

.album-demo-slide span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.album-media-slide,
.album-empty-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-media-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background-color: #f5f7fa;
}

.album-empty-slide {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  color: #6e7785;
  font-size: 0.9rem;
}

/* 保留旧结构类名，避免其他页面复用时受影响 */
.album-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
}

.album-container.has-album {
  display: block;
}

.album-container.has-album .album-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background-color: #f5f7fa;
  opacity: 0;
}

.album-container.has-album .album-image.is-active {
  opacity: 1;
}

.album-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.album-control {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  border: 0;
  color: #333;
}

.album-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.album-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border: 0;
}

.album-indicator.active {
  background-color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .content-area {
    padding: 1rem;
  }

  .company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .recruitment-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }
}
