/* ==========================================================================
   华晟实业 — 企业官网样式
   主题：专业商务（蓝灰主色）
   说明：配色、字体、间距都集中在 :root 变量里，改主题只需改这里。
   ========================================================================== */

:root {
  /* 主色（深蓝） */
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-soft: #e0eaff;

  /* 深色文字 / 背景（深海军蓝） */
  --navy: #0a1c3a;
  --text: #1f2937;
  --text-muted: #5b6b7f;

  /* 背景 / 边框 */
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --border: #e2e8f0;

  /* 圆角 / 阴影 */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 28, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 28, 58, 0.14);

  /* 布局 */
  --container: 1100px;

  /* 字体（中文系统字体优先，避免加载大体积字体文件） */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  color: var(--navy);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
}

.brand-text { font-size: 18px; color: var(--navy); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }
.nav-cta { padding: 9px 20px; font-size: 14px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* 汉堡按钮（默认隐藏，移动端显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(243, 246, 251, 0.94)),
    url('../assets/cover.jpg') center / cover no-repeat;
}
.hero-inner { max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}
.stat-label { font-size: 14px; color: var(--text-muted); }

/* ---------- 通用版块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  color: var(--navy);
  line-height: 1.3;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text .lead {
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 16px;
}
.about-text p { margin-bottom: 16px; color: var(--text-muted); }

.about-points { margin-top: 20px; }
.about-points li { padding: 8px 0; font-size: 15px; }

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.about-card-icon { font-size: 28px; }
.about-card-head h3 { font-size: 20px; color: var(--navy); }

.about-features li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.about-features li:last-child { border-bottom: none; }
.about-features strong { color: var(--navy); font-size: 15px; }
.about-features span { color: var(--text-muted); font-size: 14px; }

/* ---------- 服务 / 产品 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  font-size: 34px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 20px; color: var(--navy); margin-bottom: 20px; }

.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-list a { color: var(--primary); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-note { margin-top: 12px; font-size: 14px; color: var(--primary-dark); text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: #c3cbd6;
  padding: 48px 0 32px;
}
.footer-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-text { color: #fff; }
.footer-copy { font-size: 14px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-icp { font-size: 12px; color: #7d8ea8; }
.footer-icp a:hover { color: #fff; }

/* ---------- 品牌标签小字 ---------- */
.brand-text small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ---------- 版块副标题 ---------- */
.section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- 品牌系列（经营范围） ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.brand-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s ease;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.brand-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
}
.brand-card h3 span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.brand-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.brand-models span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 500;
}
.brand-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--bg-alt);
}

/* ---------- 公司环境图集 ---------- */
.env-block { margin-top: 48px; }
.env-title {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 20px;
}
.env-title span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
}
.env-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.env-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- 集装箱装载案例 ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.25s ease;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--bg-alt);
}
.case-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.case-dim {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- 联系方式补充 ---------- */
.contact-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 页脚标语 ---------- */
.footer-slogan {
  font-size: 15px;
  color: #9db3cf;
  letter-spacing: 0.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .env-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 26px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .env-gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* 移动端导航 */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; text-align: center; }
}
