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

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  color: #1f2933;
  background-color: #f5fbfc;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* ========== Top bar ========== */
.top-bar {
  background: #0b5d85;
  color: #eaf6fb;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.top-bar-phone {
  font-weight: 600;
}

/* ========== Header + Nav ========== */
.site-header {
  background: linear-gradient(135deg, #0d6e8c, #6bc3d6);
  color: #ffffff;
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  margin-left: 6px;
}

/* 小汉堡按钮先不使用，隐藏即可 */
.nav-toggle {
  display: none;
}

/* ========== Buttons ========== */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: #ffffff;
  color: #0d6e8c;
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #f2fbff;
}

.btn-secondary {
  background: #0d6e8c;
  color: #ffffff;
  border-color: #0d6e8c;
}

.btn-secondary:hover {
  background: #094860;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 48px 0 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1.1s ease;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  margin: 0 0 12px;
}

.hero-subtitle {
  max-width: 520px;
  opacity: 0.95;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.hero-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(13, 110, 140, 0.4);
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  width: 100%;
}

/* 从上方淡入落下的动画（最后居中） */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Sections ========== */
.section {
  padding: 60px 0;
}

.section-light {
  background: #f5fbfc;
}

.section-soft {
  background: #e3f3f7;
}

.section-cta {
  background: linear-gradient(135deg, #0d6e8c, #6bc3d6);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-header h2 {
  margin-bottom: 8px;
}

.section-header p {
  opacity: 0.85;
}

/* ========== Layout helpers ========== */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-image-wrapper img {
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 52, 67, 0.18);
}

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ========== Cards & lists ========== */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(15, 52, 67, 0.12);
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.tick-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0d6e8c;
  font-size: 0.9rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e3f3f7;
  color: #0d6e8c;
}

/* ========== Services grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 20px rgba(15, 52, 67, 0.09);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0d6e8c;
}

/* ========== CTA ========== */
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-text p {
  max-width: 480px;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-details p {
  margin: 4px 0;
}

.contact-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(15, 52, 67, 0.12);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #c0d3dd;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0d6e8c;
  box-shadow: 0 0 0 1px rgba(13, 110, 140, 0.15);
}

/* ========== Footer ========== */
.site-footer {
  background: #0b3b52;
  color: #e3f3f7;
  padding-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(227, 243, 247, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-footer h4 {
  margin-top: 0;
  margin-bottom: 6px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-contact li {
  margin-bottom: 4px;
}

.footer-bottom {
  padding: 10px 0 18px;
  font-size: 0.8rem;
  color: #c7d9e0;
}

.footer-bottom .ack {
  margin-bottom: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero-inner,
  .two-col,
  .three-cards,
  .services-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 32px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-image {
    order: -1;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 导航上下排：logo 在上，菜单在下 */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 菜单仍然横向排布，但允许换行 */
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 12px;
    row-gap: 4px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}

/* 手机竖屏：减小间距，让它更规矩地横向排、自动换行 */
@media (max-width: 768px) {
  .nav-container {
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 4px 0;
    display: inline-flex;
  }

  .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 44px 0;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* 超小屏：隐藏文字 logo，只留小树，给菜单腾空间 */

  .logo img {
    width: 32px;
    height: 32px;
  }
}
