

/* 企业考察样式 */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.company-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--light-color);
}

.company-name {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.company-location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #666;
}

.location-icon {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.company-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-style: italic;
}

.company-website {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.company-website:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 报名提示样式 */
.registration-notice {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.registration-notice:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.notice-content {
    position: relative;
    z-index: 2;
}

.notice-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.notice-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.notice-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #f39c12;
    font-weight: bold;
}

/* 特色标签 */
.feature-tag {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 2rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- 企业考察：单列全宽布局 --- */
.company-grid {
  grid-template-columns: 1fr;   /* ✅ 强制单列 */
  width: 100%;                  /* 占满容器 */
  gap: 1.5rem;                  /* 行距稍紧凑一点，可调 */
}

/* 卡片改为更适合“横向内容”的排版 */
.company-card {
  text-align: left;             /* 文案左对齐更易读 */
  padding: clamp(1.25rem, 2vw, 2rem);
}


/* 只显示每个公司介绍的第 1 段；其余段落隐藏 */
.company-description p + p { 
  display: none;                 /* ✅ 第二段及之后的段落全部隐藏 */
}

/* 如果你只留一段但仍嫌略长，可以再夹一个 2~3 行的折叠： */
.company-description p {
  display: -webkit-box;
  /* -webkit-line-clamp: 3;          显示 3 行，超出以省略号隐藏 */
  -webkit-box-orient: vertical;
  overflow: hidden;
} 
.company-video {
  max-width: 640px;   /* ✅ 控制最大宽度 */
  margin: 0 auto;     /* ✅ 居中 */
}

.company-video iframe {
  width: 100%;
  height: 360px;      /* ✅ 稍微降低高度 */
  border: none;
}

@media (max-width: 768px) {
  .company-video iframe {
    height: 200px;    /* ✅ 手机端再小一点 */
  }
}

.company-card .company-video video {
  display: block;
  width: 60%;
  height: auto;
  border-radius: 8px;
}
.company-card .company-video {
    text-align: center;
}

.company-location {
  gap: .4rem;
  margin-bottom: .75rem;
  color: #555;
}
.location-icon { margin-right: .25rem; }

/* 卡片做成“两栏网格”：左图（最小260px，最大不超过容器40%），右文自适应 */
.company-card{
  display: grid;
  grid-template-columns: minmax(260px, 40%) 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  text-align: left;
}

/* 让左侧图片“靠左并限制最大尺寸” */
.company-media{
  justify-self: start;                         /* ✅ 固定在左侧 */
  max-width: clamp(260px, 38vw, 420px);        /* ✅ 控制最大宽度（按需改420） */
  width: 100%;
}

/* 方案 A：完整显示不裁切（推荐用于 logo/竖图） */
.company-image{
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;                         /* ✅ 不裁切，完整显示 */
  background: #fff;                            /* 可选：防止透明背景发灰 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* 可选：如果你用横版宣传大图，想铺满容器，可把上面 object-fit 改为 cover：*/
.company-image{ width:100%; height:100%; object-fit: cover; } 

/* （可选）给左图一个固定比例框，避免比例跳变 */
.company-media.aspect-4-3 { aspect-ratio: 4 / 3; overflow: hidden; }
.company-media.aspect-16-9{ aspect-ratio: 16 / 9; overflow: hidden; }
/* 使用时：<div class="company-media aspect-4-3">...</div> */

/* 小屏时改成上下排列，图片在上 */
@media (max-width: 768px){
  .company-card{ grid-template-columns: 1fr; }
  .company-media{ justify-self: stretch; max-width: none; }
}

/* 视频水平居中（如果该卡片有视频） */
.company-card .company-video video{
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.company-card .company-video{ text-align: center; }

/* 仅保留一种基础规则：默认完整显示 */
.company-image{
  display:block;
  max-width:100%;
  height:auto;
  object-fit:contain;     /* 基础：完整显示 */
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}

/* 需要铺满时，单独加修饰类 .fit-cover */
.company-image.fit-cover{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 媒体容器：限制最大宽、固定比例、负责裁切 */
.company-media{
  position:relative;
  justify-self:start;
  max-width: clamp(260px, 38vw, 420px);
  width:100%;
  overflow:hidden;        /* 配合 cover 裁切边缘 */
  border-radius:12px;
}

/* 固定常见比例，避免列表滚动时高度忽大忽小 */
.company-media.aspect-4-3{ aspect-ratio: 4 / 3; }
.company-media.aspect-16-9{ aspect-ratio: 16 / 9; }

/* 角标定位到媒体容器 */
.company-media .feature-tag{
  position:absolute;
  top:8px; right:-22px;
  z-index:2;
}

.company-video iframe {
  width: 100%;
  height: 360px;      /* ✅ 稍微降低高度 */
  border: none;
}

@media (max-width: 768px) {
  .company-video iframe {
    height: 200px;    /* ✅ 手机端再小一点 */
  }
}

