/* ════════════════════════════════════════════════════════════════
   鼎隆卫浴 AMMING LLC —— 全站样式
   ────────────────────────────────────────────────────────────────
   颜色变量集中在下面 :root 里，想改全站配色只改这一处即可：
     --dark  深灰黑（深色区块背景）
     --teal  青绿色（强调色：按钮边框、标题高亮、悬停）
     --white 纯白（浅色区块背景）
   ════════════════════════════════════════════════════════════════ */

:root {
  --dark: #222222;
  --footer-bg: #1a1a1a;
  --teal: #009688;
  --white: #ffffff;
  --gray-text: #9ca3af;
  --max-width: 1200px;
}

/* ── 基础重置 ─────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 锚点平滑滚动 */
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── 通用工具类 ───────────────────────────────────────────── */
.text-teal {
  color: var(--teal);
}

.text-white {
  color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 768px;
}

/* 固定宽高比的图片容器：换真实图片后布局不会跳动 */
.ratio-16x9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ratio-16x9 img,
.ratio-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 图片填满容器并居中裁剪 */
}

/* ── 按钮 ─────────────────────────────────────────────────── */
/* 青绿线框按钮：悬停时填充为实心 */
.btn-outline {
  display: inline-block;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-spaced {
  margin-top: 32px;
}

/* 深灰线框按钮（Attach Files） */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(34, 34, 34, 0.3);
  color: var(--dark);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 青绿实心按钮（Send）：悬停时变为线框 */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-solid:hover {
  background: transparent;
  color: var(--teal);
}

/* ════════════════════════ ① 顶部导航 ════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.01);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dark);
}

.logo-accent {
  color: var(--teal);
}

.logo-sub {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dark);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

/* 移动端汉堡按钮（桌面端隐藏） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  line-height: 1;
}

/* 移动端下拉菜单（默认收起） */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-top: 1px solid #f3f4f6;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dark);
}

.mobile-menu a:hover {
  color: var(--teal);
}

/* ════════════════════════ ② Hero 首屏 ════════════════════════ */
.hero {
  position: relative;
  background: var(--dark);
}

.hero-media {
  position: relative;
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* 背景图压暗，突出标题 */
}

.hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.hero-title {
  text-align: center;
  color: var(--white);
  font-size: clamp(28px, 5vw, 60px); /* 字号随屏幕宽度自动缩放 */
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ════════════════════════ ③ 标语区 ════════════════════════ */
.slogan {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.slogan-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--dark);
}

/* 按钮 + 左右横线 */
.slogan-btn-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.side-line {
  height: 1px;
  width: 96px;
  background: rgba(34, 34, 34, 0.4);
}

/* ════════════════════════ ④⑥ 深色区块通用（About / Welcome） ════════════════════════ */
.section-dark {
  background: var(--dark);
  padding: 80px 0;
}

.section-light {
  background: var(--white);
  padding: 80px 0;
}

/* 左图右文两列布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--teal);
}

.section-title-light {
  margin-top: 16px;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--white);
}

.text-muted {
  margin-top: 24px;
  line-height: 1.8;
  color: var(--gray-text);
}

/* ════════════════════════ ⑤ 产品网格 ════════════════════════ */
.section-title-dark {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--dark);
}

/* 标题下方的青绿色短横线 */
.title-bar {
  margin: 16px auto 0;
  height: 4px;
  width: 64px;
  background: var(--teal);
}

/* 响应式网格：手机 1 列 → 平板 2 列 → 桌面 3 列 */
.product-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* 卡片：悬停时上浮 + 阴影加深 */
.product-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-model {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.product-name {
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--teal);
}

/* ════════════════════════ ⑦ 联系表单 ════════════════════════ */
.contact-form {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: var(--white);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

/* 输入框聚焦时变青绿色描边 */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.contact-form textarea {
  resize: none;
}

.full-row {
  grid-column: 1 / -1; /* 占满整行 */
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ════════════════════════ ⑧ 页脚 ════════════════════════ */
.footer {
  background: var(--footer-bg);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
}

.footer-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-text);
}

.footer-hours {
  margin-top: 16px;
  list-style: none;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--gray-text);
}

.footer-hours li.footer-hours-highlight {
  font-weight: 700;
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* ════════════════════════ 响应式适配 ════════════════════════ */

/* 平板（≥640px）：产品 2 列、表单 2 列、按钮横排 */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 桌面（≥768px）：显示桌面菜单、隐藏汉堡按钮、页脚 3 列 */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-legal {
    text-align: right;
  }
}

/* 桌面（≥1024px）：左图右文两列、产品 3 列 */
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机端隐藏桌面菜单、显示汉堡按钮 */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo-sub {
    display: none;
  }

  .side-line {
    width: 48px;
  }

  .slogan,
  .section-dark,
  .section-light {
    padding: 64px 0;
  }

  .slogan {
    padding-left: 24px;
    padding-right: 24px;
  }
}
