/* 临沂恒泰国际货运代理有限公司 — 站点样式 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --color-bg: #f6f8fb;
  --color-bg-subtle: #eef2f7;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-brand: #0a2d4a;
  --color-brand-mid: #0c4a6e;
  --color-brand-light: #1a6b8f;
  --color-accent: #c4a035;
  --color-accent-soft: rgba(196, 160, 53, 0.14);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: radial-gradient(
      ellipse 90% 60% at 50% -10%,
      rgba(26, 107, 143, 0.07),
      transparent 55%
    ),
    var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— 页头 / 导航（由 site-nav.js 注入） —— */
#site-nav-mount {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--color-surface);
}

.lang-switch__btn {
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-family: inherit;
}

.lang-switch__btn:hover {
  color: var(--color-brand);
  background: rgba(12, 74, 110, 0.05);
}

.lang-switch__btn.is-active {
  background: var(--color-brand);
  color: #fff;
}

.lang-switch__btn.is-active:hover {
  color: #fff;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo:hover {
  color: inherit;
}

.site-logo__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}

.site-logo__sub {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  max-width: min(320px, 46vw);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .site-nav {
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0.15rem;
  }

  .site-nav__link {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* 英文副标题较长：仅压缩 Logo 占位，导航按钮与中文共用同一套尺寸 */
  html[lang="en"] .site-logo__sub {
    max-width: 10.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  html[lang="en"] .site-logo__sub {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-nav__link:hover {
  background: var(--color-accent-soft);
  color: var(--color-brand);
}

.site-nav__link.is-active {
  background: transparent;
  color: var(--color-brand);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.site-nav__link.is-active:hover {
  color: var(--color-brand);
  background: var(--color-accent-soft);
}

/* —— 子导航（产品服务 / 信息查询） —— */
.sub-nav {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.sub-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sub-nav__link {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.sub-nav__link:hover {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.6);
}

.sub-nav__link.is-active {
  color: var(--color-brand);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-brand);
  border-radius: 1px;
}

@media (max-width: 767px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-logo {
    flex: 1;
    min-width: 0;
  }

  .site-header__tools {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__link {
    padding: 0.85rem 1rem;
  }
}

body.nav-open {
  overflow: hidden;
}

/* —— 布局 —— */
main {
  min-height: 50vh;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4rem;
}

main > .wrap + .wrap {
  border-top: 1px solid var(--color-border);
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.85rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand-light));
}

.section-lead {
  margin: 0 0 2.25rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 58ch;
}

/* 标题与正文居中、内容区略放宽（关于恒泰、产品内页、中东、文化、联系等） */
.content-centered {
  text-align: center;
}

.content-centered > .section-title::after,
.content-centered > h1.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.content-centered > .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 46rem;
}

.content-centered > .card {
  max-width: 46rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 2rem 2.5rem;
}

.content-centered > .grid-2,
.content-centered > .grid-3,
.content-centered > .home-product-grid,
.content-centered > .carrier-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.content-centered > .partner-banner,
.content-centered > figure.partner-banner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.content-centered .prose {
  max-width: none;
}

.content-centered .prose p,
.content-centered .prose li {
  line-height: 1.75;
}

/* —— 轮播 —— */
.carousel {
  position: relative;
  background: #0f172a;
  color: #fff;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(240px, 56.25vw, 580px);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 3.25rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    transparent
  );
  z-index: 2;
}

.carousel__caption-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.carousel__caption h1,
.carousel__caption h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
}

.carousel__caption p {
  margin: 0;
  opacity: 0.95;
  max-width: 42ch;
  font-size: 0.95rem;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.04);
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.3s var(--ease-out), background 0.25s var(--ease-out);
}

.carousel__dot.is-active {
  width: 28px;
  background: var(--color-accent);
}

/* —— 卡片 / 栅格 —— */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.product-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(196, 160, 53, 0.3);
}

.product-tile .btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* —— 信息查询：承运人卡片（背景图 + 外链） —— */
.carrier-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.carrier-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.carrier-tile__img {
  width: 100%;
  max-width: none;
  aspect-ratio: 480 / 280;
  object-fit: cover;
  display: block;
}

.carrier-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 160, 53, 0.35);
}

.carrier-tile:hover .carrier-tile__label {
  color: var(--color-brand);
}

.carrier-tile:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 2px;
}

.carrier-tile__label {
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}

/* —— 首页：产品服务四宫格（背景图 + 跳转） —— */
.home-product-grid {
  margin-top: 0.25rem;
}

.home-product-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.home-product-tile__img {
  width: 100%;
  max-width: none;
  aspect-ratio: 640 / 320;
  object-fit: cover;
  display: block;
}

.home-product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 160, 53, 0.35);
  color: inherit;
}

.home-product-tile:hover .home-product-tile__title {
  color: var(--color-brand);
}

.home-product-tile:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 2px;
}

.home-product-tile__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.home-product-tile__title {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--color-brand);
  transition: color 0.2s var(--ease-out);
}

.home-product-tile__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
  max-width: 42ch;
}

/* —— 首页：合作船东大图 —— */
.partner-banner {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-surface);
}

.partner-banner img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-brand);
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* —— CTA 条 —— */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    var(--color-brand-mid) 45%,
    var(--color-brand-light) 100%
  );
  color: #fff;
  padding: 3rem 1.5rem;
}

.cta-strip::before {
  content: "";
  position: absolute;
  right: -5%;
  top: -40%;
  width: 45%;
  height: 180%;
  background: radial-gradient(
    circle,
    rgba(196, 160, 53, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-strip__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-strip p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--light {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn--light:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--color-accent);
  color: #1a1003;
}

.btn--accent:hover {
  filter: brightness(1.05);
  color: #1a1003;
}

/* —— 页脚 —— */
.site-footer {
  background: linear-gradient(180deg, #0a1628 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 3rem 1.5rem 2.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(196, 160, 53, 0.2);
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* —— 表单 —— */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

label.field span.hint {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.8rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  font: inherit;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(3, 105, 161, 0.35);
  border-color: var(--color-brand-light);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status--ok {
  color: #047857;
}

.form-status--error {
  color: #b91c1c;
}

/* —— 关于 / 服务内页 —— */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 2.25rem;
  color: var(--color-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.prose p,
.prose li {
  color: var(--color-muted);
}

.list-check {
  padding-left: 1.1rem;
}

.list-check li {
  margin: 0.35rem 0;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.map-placeholder {
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--color-border);
}

/* —— 联系信息列表 —— */
.contact-list {
  margin: 0;
}

.contact-list__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list__row:first-of-type {
  padding-top: 0;
}

.contact-list__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-list dd {
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 480px) {
  .contact-list__row {
    grid-template-columns: 1fr;
  }
}
