/**
 * 留学国家页面专属样式
 * 适用于: countries_usa.html, countries_uk.html 等
 */

/* 特色卡片样式 */
.usa-feature-card {
  background: white;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.usa-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #EB5C20 0%, #FF8F50 100%);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.usa-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(235, 92, 32, 0.2);
}

.usa-feature-card:hover .feature-icon svg {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.usa-feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 15px;
  display: inline-block;
}

/* 教育体系卡片 */
.usa-education-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  border-top: 3px solid #EB5C20;
}

.usa-education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(235, 92, 32, 0.15);
  border-top-color: #EB5C20;
}

.education-badge {
  display: inline-block;
  background: linear-gradient(135deg, #EB5C20 0%, #FF8F50 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* 学校类型卡片 */
.usa-school-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 4px solid #EB5C20;
}

.usa-school-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(235, 92, 32, 0.15);
}

.usa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usa-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #666;
  font-size: 14px;
}

.usa-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #EB5C20;
  font-weight: bold;
}

/* 申请材料卡片 */
.usa-application-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.usa-application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(235, 92, 32, 0.15);
}

.usa-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usa-checklist li {
  padding: 8px 0;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.usa-checklist li:last-child {
  border-bottom: none;
}

.check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.check-label input[type="checkbox"]:checked {
  background-color: #EB5C20;
  border-color: #EB5C20;
}

.check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-label span {
  flex: 1;
  transition: all 0.2s ease;
  position: relative;
}

.check-label input[type="checkbox"]:checked~span {
  text-decoration: line-through;
  color: #999;
  opacity: 0.8;
}

/* 费用卡片 */
.usa-cost-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.usa-cost-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.usa-cost-card:hover .cost-icon svg {
  transform: scale(1.15) rotate(-5deg);
}

.cost-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* 时间轴样式 */
.usa-timeline-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, #EB5C20 0%, #FF8F50 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  height: fit-content;
}

.timeline-content {
  flex: 1;
}

.timeline-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* 签证流程 */
.usa-visa-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.visa-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.visa-step:hover {
  background: #fff3cd;
  transform: translateX(5px);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #EB5C20 0%, #FF8F50 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-bottom: 8px;
}

.step-content p {
  margin: 0;
  color: #666;
}

.visa-note {
  margin-top: 20px;
  padding: 12px 20px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  font-size: 13px;
}

/* 工作卡片 */
.usa-work-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-top: 3px solid #EB5C20;
}

.usa-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(235, 92, 32, 0.15);
}

.usa-work-note {
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  text-align: center;
}

.usa-work-note p {
  margin: 0;
  color: #856404;
  font-weight: 600;
  font-size: 15px;
}

/* 卡片统一高度 */
.usa-feature-card,
.usa-education-card,
.usa-school-card,
.usa-application-card,
.usa-cost-card,
.usa-work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

/* 服务流程线性布局 */
.service-flow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.flow-card {
  flex: 1;
  background: white;
  padding: 40px 20px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  border-top: 3px solid #EB5C20;
  transition: all 0.3s ease;
  height: 100%;
}

.flow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(235, 92, 32, 0.15);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EB5C20;
  opacity: 0.5;
}

.service-step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #EB5C20;
  border: 2px solid #EB5C20;
  width: 36px;
  height: 36px;
  line-height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  z-index: 12;
  box-shadow: 0 4px 10px rgba(235, 92, 32, 0.15);
  transition: all 0.3s ease;
}

.flow-card:hover .service-step-num {
  background: #EB5C20;
  color: white;
  transform: translateX(-50%) scale(1.1) rotate(10deg);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .service-flow-container {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .flow-arrow img {
    transform: rotate(0deg) !important;
  }

  .usa-feature-card,
  .usa-education-card,
  .usa-school-card,
  .usa-application-card,
  .usa-cost-card,
  .usa-work-card {
    padding: 20px;
  }

  .feature-icon,
  .cost-icon {
    font-size: 30px;
  }

  .usa-visa-box {
    padding: 25px 20px;
  }

  .visa-step {
    flex-direction: column;
    gap: 15px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
    flex-shrink: 0;
  }
}

/* ============================================
   水平时间线样式 (Timeline Style)
   ============================================ */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-top: 40px;
}

/* 时间线连接线 */
.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, #EB5C20 0%, #FFD4C2 50%, #e9ecef 100%);
  z-index: 1;
}

.timeline-item-h {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 320px;
  min-width: 160px;
  /* Reduced from 200px */
}

/* 圆形编号 */
.timeline-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid #EB5C20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #EB5C20;
  margin-bottom: 20px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(235, 92, 32, 0.15);
  transition: all 0.3s ease;
}

.timeline-item-h:first-child .timeline-number,
.timeline-item-h.active .timeline-number {
  background: linear-gradient(135deg, #EB5C20 0%, #FF8F50 100%);
  color: white;
  border-color: #EB5C20;
  transform: scale(1.1);
}

/* 时间线卡片 */
.timeline-card {
  background: white;
  padding: 24px 15px;
  /* Reduced padding from 28px 24px */
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  width: 100%;

  transition: all 0.3s ease;
  position: relative;
}

.timeline-item-h:first-child .timeline-card,
.timeline-item-h.active .timeline-card {
  border-left: 4px solid #EB5C20;
  box-shadow: 0 8px 24px rgba(235, 92, 32, 0.15);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.timeline-card h4 {
  color: #EB5C20;
  margin-bottom: 12px;
  font-size: 17px;
}

.timeline-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* 响应式 - 时间线 */
@media (max-width: 1200px) {
  .timeline-horizontal {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .timeline-horizontal::before {
    display: none;
  }

  .timeline-item-h {
    max-width: 180px;
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
  }

  .timeline-item-h {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .timeline-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline-card {
    text-align: left;
    flex: 1;
  }

  .timeline-item-h:first-child .timeline-card,
  .timeline-item-h.active .timeline-card {
    border-left: 4px solid #EB5C20;
  }
}

/* ============================================
   对比表格样式 (Compare Table)
   ============================================ */
.compare-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  background: white;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  min-width: 600px;
}

.compare-table thead tr {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.compare-header {
  padding: 28px 30px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  color: #222;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
  position: relative;
}

.compare-header:first-child {
  width: 130px;
  background: linear-gradient(180deg, #f8f9fa 0%, #f0f1f3 100%);
  font-size: 14px;
  color: #666;
}

.wo-header {
  background: linear-gradient(180deg, rgba(235, 92, 32, 0.08) 0%, rgba(235, 92, 32, 0.03) 100%);
  border-top: 4px solid #EB5C20;
}

.hbo-header {
  background: linear-gradient(180deg, rgba(23, 162, 184, 0.08) 0%, rgba(23, 162, 184, 0.03) 100%);
  border-top: 4px solid #17a2b8;
}

.compare-badge {
  display: inline-block;
  background: linear-gradient(135deg, #EB5C20 0%, #FF8F50 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(235, 92, 32, 0.3);
}

.compare-badge.hbo {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

.compare-table tbody tr {
  transition: all 0.25s ease;
}

.compare-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(235, 92, 32, 0.03) 0%, rgba(23, 162, 184, 0.03) 100%);
  transform: scale(1.005);
}

.compare-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #eee;
}

.compare-table td {
  padding: 22px 30px;
  color: #444;
  line-height: 1.7;
  font-size: 15px;
}

.compare-table tbody td:nth-child(2) {
  background: rgba(235, 92, 32, 0.02);
  border-left: 3px solid rgba(235, 92, 32, 0.1);
}

.compare-table tbody td:nth-child(3) {
  background: rgba(23, 162, 184, 0.02);
  border-left: 3px solid rgba(23, 162, 184, 0.1);
}

.compare-label {
  font-weight: 700;
  color: #333;
  background: linear-gradient(90deg, #f8f9fa 0%, #f0f1f3 100%) !important;
  white-space: nowrap;
  font-size: 14px;
  border-left: none !important;
}

/* 响应式 - 对比表格 */
@media (max-width: 768px) {
  .compare-table {
    min-width: 500px;
  }

  .compare-header {
    padding: 20px 18px;
    font-size: 14px;
  }

  .compare-table td {
    padding: 16px 18px;
    font-size: 14px;
  }

  .compare-header:first-child {
    width: 100px;
  }
}



/* ============================================
   垂直时间线样式 (用于申请时间线等)
   ============================================ */
.timeline-vertical {
  position: relative;
  padding-left: 30px;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, #EB5C20 0%, #FFB89A 100%);
  border-radius: 2px;
}

.timeline-v-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-v-item:last-child {
  padding-bottom: 0;
}

.timeline-v-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #EB5C20;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(235, 92, 32, 0.3);
}

.timeline-v-content strong {
  display: block;
  color: #222;
  font-size: 15px;
  margin-bottom: 6px;
}

.timeline-v-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}