* {
  box-sizing: border-box;
}

:root {
  --primary: #1e4a8c;
  --primary-dark: #152a52;
  --accent: #e8c547;
  --blue-900: #1e3a8a;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Banner 轮播 ========== */
.hero-banner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 16px 48px;
  text-align: center;
}

.hero-slides {
  max-width: 896px;
  margin: 0 auto;
  min-height: 180px;
  position: relative;
}

.hero-slide {
  display: none;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  animation: slideFadeIn 0.5s ease-out;
  margin: 60px 0
}

.hero-slide.active {
  display: flex;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-slide h1 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 16px rgba(255, 255, 255, 0.4);
}

.hero-slide .subtitle {
  margin: 0 auto;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--blue-900);
  line-height: 1.6;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 6px rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats .stat-value {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
    text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 16px rgba(255, 255, 255, 0.4);
}

.hero-stats .stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  width: 24px;
  border-radius: 6px;
  background: var(--accent);
}

.hero-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== 通用区块 ========== */
.block {
  padding: 24px 0;
}

.block-tight {
  padding: 24px 0;
}

.bg-muted {
  background: rgba(249, 250, 251, 0.5);
}

.bg-white {
  background: #fff;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.row-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-head .section-desc {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.section-desc {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}
.row-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-head-left > div:last-child h2 {
  margin-bottom: 0;
}

.icon-box {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}

.icon-box svg {
  display: block;
  margin: 6px auto;
}

.more {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.more:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ========== 最新动态 ========== */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.news-mount {
  display: none !important;
}

.news-layout {
  display: flex;
  flex-wrap: wrap;
}

.news-pic {
  flex: 1 1 100%;
  position: relative;
  background: #eee;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 200px;
}

.news-carousel {
  position: absolute;
  inset: 0;
}

.news-carousel-slides {
  position: absolute;
  inset: 0;
}

.news-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.news-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.news-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-carousel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.news-carousel-title {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.news-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.news-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.news-side {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .news-layout {
    flex-wrap: nowrap;
  }

  .news-pic {
    flex: 2;
    aspect-ratio: 16 / 9;
  }

  .news-side {
    flex: 1;
    max-width: 33.333%;
    border-left: 1px solid #e5e7eb;
  }
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.news-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.news-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.news-tab-sep {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.news-panels {
  flex: 1;
  min-height: 0;
}

.news-panel {
  display: none;
  padding: 4px 16px 12px;
}

.news-panel.is-active {
  display: block;
}

.news-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed #e5e7eb;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.news-item:last-child {
  border-bottom: none;
}

a.news-item:hover {
  text-decoration: none;
}

.news-item:hover .news-item__title {
  color: var(--primary);
}

.news-item__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #1f2937;
  transition: color 0.2s;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}

.tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.tag-info {
  background: #dbeafe;
  color: #2563eb;
}

.tag-act {
  background: #ffedd5;
  color: #ea580c;
}

.tag-policy {
  background: #dcfce7;
  color: #16a34a;
}

/* ========== 泰达海外综合服务体系 ========== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card .top-bar {
  height: 6px;
}

.service-card .top-bar.bar-blue {
  background: #3b82f6;
}

.service-card .top-bar.bar-emerald {
  background: #10b981;
}

.service-card .top-bar.bar-primary {
  background: var(--primary);
}

.service-card .top-bar.bar-orange {
  background: #f97316;
}

.service-card .card-body {
  padding: 20px;
}

.service-card .card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.service-card .card-label svg {
  width: 16px;
  height: 16px;
}

.service-card .card-label .icon-blue {
  color: #3b82f6;
}

.service-card .card-label .icon-emerald {
  color: #10b981;
}

.service-card .card-label .icon-primary {
  color: var(--primary);
}

.service-card .card-label .icon-orange {
  color: #f97316;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ========== 核心服务入口 ========== */
.grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .grid4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.svc {
  display: block;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.svc:hover {
  border-color: rgba(30, 74, 140, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.svc .dot {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.svc:hover .dot {
  transform: scale(1.05);
}

.svc .dot svg {
  width: 20px;
  height: 20px;
}

.svc h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.svc p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.c-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.c-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.c-purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.c-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
