/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

.main-arrival {
  --primary: #1152d4;
  --primary-light: rgba(17, 82, 212, 0.1);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  /* 高质量系统字体栈：适配 Mac, Windows, Linux, iOS, Android */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.main-arrival .page-header-arrival {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.main-arrival h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.main-arrival .btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(17, 82, 212, 0.3);
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.main-arrival .btn-primary:hover {
  background-color: #0d44b3;
  transform: translateY(-1px);
}

/* Timeline */
.main-arrival .timeline {
  position: relative;
  /* 移除 padding-left，改由 line 和 item 自身控制 */
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2rem; /* 4rem 图标的一半 */
  top: 2rem; /* 从第一个图标中心开始 */
  bottom: 2rem; /* 到最后一个图标中心结束 */
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary) 70%, var(--success) 85%, var(--success-light));
  transform: translateX(-50%);
}

.main-arrival .step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.main-arrival .step-icon-container {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  color: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(17, 82, 212, 0.2);
  transition: transform 0.3s;
}

.main-arrival .step-item:hover .step-icon-container {
  transform: scale(1.1);
}

.step-item.success .step-icon-container {
  background-color: var(--success);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.main-arrival .step-content {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  flex-grow: 1;
  transition: all 0.3s;
}

.main-arrival .step-item:hover .step-content {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.step-meta {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  display: block;
}

.main-arrival .step-item.success .step-meta {
  color: var(--success);
}

.main-arrival h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.main-arrival .step-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .main-arrival .timeline::before {
    left: 1.5rem; /* 3rem 图标的一半 */
    top: 1.5rem;
    bottom: 1.5rem;
  }

  .main-arrival .timeline {
    padding-left: 0;
  }

  .main-arrival .step-item {
    gap: 1rem;
  }

  .step-icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }

  .main-arrival .compliance-box {
    flex-direction: column;
    text-align: center;
  }
}
