/* 回水湾专题页样式优化 - 美观大方版 */

:root {
  --primary-color: #0d6efd; /* 品牌主色 - 蓝色 */
  --secondary-color: #6c757d; /* 辅助色 - 灰色 */
  --bg-light: #f8f9fa; /* 浅灰背景 */
  --text-dark: #333333; /* 深色文字 */
  --text-gray: #666666; /* 次要文字 */
  --border-radius: 12px; /* 统一圆角 */
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 默认阴影 */
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1); /* 悬浮阴影 */
}

/* 全局基础样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* 页面头部区域 */
.page-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 装饰背景圆 */
.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
  font-weight: 700;
  color: #0a58ca;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.page-header .btn-primary, 
.page-header .btn-secondary {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s;
    border: none;
}

.page-header .btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.page-header .btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.page-header .btn-secondary {
    background-color: #fff;
    color: var(--text-dark);
    border: 1px solid #dee2e6;
}

.page-header .btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.page-header .btn-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    margin: 0 10px;
}

.page-header .btn-link:hover {
    color: var(--primary-color);
}

/* 通用区块样式 */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header .header-line {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* 带有操作栏的头部（如合作企业筛选） */
.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.header-with-action .header-left {
    text-align: left;
}
.header-with-action .header-left .header-line {
    margin: 0;
}

@media (max-width: 768px) {
    .header-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 关于/理念区块 */
.about-section {
  background-color: #ffffff;
}

.about-section p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-section .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
    margin-right: 5px;
    margin-bottom: 10px;
    font-weight: 500;
    border-radius: 20px;
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: var(--secondary-color) !important;
    display: inline-block;
}

.ratio-16x9 {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* 合作企业卡片 */
.partners-section {
    background-color: var(--bg-light);
}

#companies .card {
  border: none;
  border-radius: var(--border-radius);
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
}

#companies .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

#companies .card-img-top {
  height: 140px;
  object-fit: contain;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #f8f9fa;
}

#companies .card-body {
    padding: 20px;
}

#companies .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
}

/* 招聘岗位表格 */
.news-list-section {
    background-color: #ffffff;
}

#jobs .table {
    border-collapse: separate;
    border-spacing: 0;
}

#jobs .table thead th {
    background-color: #f1f4f9;
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#jobs .table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-gray);
}

#jobs .table tbody tr:hover {
    background-color: #f8f9fa;
}

#jobs .btn-outline-primary {
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#jobs .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 岗位列表移动端优化 */
@media (max-width: 768px) {
  #jobs table thead { display: none; }
  #jobs table tbody tr { 
      display: block; 
      margin-bottom: 15px; 
      border: 1px solid #eee; 
      border-radius: 10px; 
      padding: 15px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03); 
  }
  #jobs table tbody td { 
      display: flex; 
      justify-content: space-between; 
      padding: 8px 0;
      border: none;
      font-size: 0.95rem;
  }
  #jobs table tbody td::before { 
      content: attr(data-label); 
      font-weight: 600; 
      color: var(--text-dark);
      margin-right: 15px;
  }
  #jobs table tbody td:last-child {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed #eee;
      justify-content: flex-end;
  }
}

/* 预约表单 */
#reservation {
    background-color: var(--bg-light);
}

#reservation form {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

#reservation .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

#reservation .form-control,
#reservation .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.2s;
}

#reservation .form-control:focus,
#reservation .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

#reservation .btn-success {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    background-color: #198754;
    border: none;
    margin-top: 15px;
    transition: all 0.3s;
}

#reservation .btn-success:hover {
    background-color: #157347;
    transform: translateY(-1px);
}

#reservation .list-group-item {
    border: none;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px !important;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-left: 4px solid var(--primary-color);
}

/* 培训与赋能 */
.majors-section {
    background-color: #ffffff;
}

.majors-section .card {
    border: none;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid transparent;
}

.majors-section .card:hover {
    background: #fff;
    box-shadow: var(--box-shadow);
    transform: translateY(-3px);
    border-color: #eee;
}

.majors-section .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.majors-section .card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.majors-section .card-text {
    color: var(--text-gray);
    flex-grow: 1;
}

.majors-section .btn-outline-secondary {
    align-self: flex-start;
    border-radius: 20px;
    margin-top: 15px;
}

/* 底部联系区 */
.contact-section {
    background-color: #212529; /* 深色背景 */
    color: #fff;
    padding: 50px 0;
}

.contact-section h5 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.contact-section h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.contact-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.contact-section .border {
    border-color: rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 0.9rem;
}