/* ============================================================================
 * contact.css — 独立“联系我们”页面样式
 * ----------------------------------------------------------------------------
 * 独立页面 contact.html 专用，自包含 Header / Navbar / 联系卡 / Footer /
 * 悬浮按钮所需的全部样式，不依赖 base.css / mobile.css / tablet.css。
 * ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.5vw + 0.5rem, 16px);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  background-image:
    radial-gradient(1200px 400px at 10% -10%, rgb(212 175 55 / 0.08), transparent 55%),
    linear-gradient(180deg, #f3f4f5 0%, var(--background-color) 180px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  overflow-x: hidden;
  padding: 0;
}

:root {
  --primary-color: #2a3238;
  --secondary-color: #5d6a72;
  --light-gray: #8f9aa1;
  --accent-color: #d4af37;
  --accent-dark: #b8941f;
  --surface-color: #ffffff;
  --muted-surface: #eef0f1;
  --background-color: #eaeff5;
  --text-color: #20262b;
  --header-background-color: #f7f4ec;
  --navbar-hover-color: #d4af37;
  --link-color: #3a4a55;
  --transition-speed: 0.3s;
  --shadow-light: 0 2px 8px rgb(42 50 56 / 0.06);
  --shadow-medium: 0 8px 24px rgb(42 50 56 / 0.08);
  --shadow-heavy: 0 16px 40px rgb(42 50 56 / 0.14);
  --border-radius: 8px;
  --border-radius-lg: 14px;
}

/* ============================================================================
 * 1. 顶部 Header
 * ============================================================================ */
.header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
  margin: 0;
  border-bottom: 3px solid var(--accent-color);
  background: var(--background-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-light);
}

.header .header-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 0.9rem 1.2rem 1.1rem;
  gap: 0.15rem;
}

.header-content .branding {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  margin-right: 0;
  width: auto;
  flex-shrink: 0;
  height: auto;
  flex-wrap: wrap;
  margin-bottom: 0.1rem;
}

.header-content .branding .branding-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: 0.25rem;
  max-width: calc(100% - 80px);
  width: max-content;
}

.header .header-content .branding .logo {
  width: clamp(60px, 3.2vw, 90px);
  height: auto;
  max-height: 80px;
  margin-right: 0;
  object-fit: contain;
  display: block;
}

.header .header-content .branding-text h1 {
  font-size: clamp(1.6rem, 4.3vw, 2.0rem);
  color: #001166;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: 700;
}

.header .header-content .branding-text .branding-sub {
  display: block;
  margin-top: 0 !important;
  white-space: nowrap;
  line-height: 1.1;
  font-size: clamp(0.8rem, 2.15vw, 1rem);
  letter-spacing: 0.31em;
  text-align: center;
  width: auto;
  color: #242c33;
}

.header .header-content .company-intro {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  justify-content: center;
  width: 100%;
  min-width: 200px;
  flex: 1;
  margin-left: 0;
}

.header .header-content .company-intro .intro-text {
  width: 100%;
  max-width: 100%;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(0.875rem, 1vw, 1rem);
  letter-spacing: normal;
  margin: 0;
  line-height: 1.6;
  white-space: normal !important;
  text-align: left;
  color: #777;
  text-indent: 0.8em;
}

.header .header-content .company-intro .intro-text .product-keyword {
  font-weight: 500;
  color: #2c3e50;
}

.header .header-content .company-intro .intro-text .highlight {
  color: #2c3e50;
  font-weight: 500;
}

/* ============================================================================
 * 2. 主导航 Navbar
 * ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(42 50 56 / 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(42 50 56 / 0.18);
  padding: 0.7em 0.5em;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.navbar ul {
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.5s ease;
}

.navbar ul li {
  margin: 0 0.15em;
  text-align: center;
  border-right: none;
  padding-right: 0;
}

.navbar ul li:last-child {
  border-right: none;
}

.navbar ul li a {
  border-radius: 999px;
  color: #fff;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  padding: 0.45em 0.95em;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  color: var(--navbar-hover-color);
  transform: translateY(-4px);
}

.navbar.scrolled {
  background-color: rgb(33 40 45 / 0.98);
  box-shadow: 0 8px 22px rgb(33 40 45 / 0.28);
  padding: 0.55em 0.5em;
}

/* 当前页面导航项高亮 */
.navbar ul li a[aria-current="page"] {
  color: var(--navbar-hover-color);
  font-weight: 600;
}

/* ============================================================================
 * 3. 联系我们 主体
 * ============================================================================ */
main {
  display: block;
}

.screen8 {
  width: 98%;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
  margin: 2vh auto;
}

.section-divider {
  width: min(98%, 1500px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgb(212 175 55 / 0.55) 50%, transparent 100%);
  margin: 2.2rem auto;
  box-sizing: border-box;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.contact-us {
  text-align: center;
  width: 100%;
  max-width: 98%;
  margin: 0 auto;
  padding: 1rem;
}

#contact .contact-us h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 auto 0.9rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

#contact .contact-us h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4.5rem;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: 2px;
}

#contact .contact-us h2 span {
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-left: 10px;
}

/* 短句说明（“联系我们”）：保持居中、不缩进 */
.section-lead--short {
  text-indent: 0 !important;
  text-align: center !important;
  text-justify: auto;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #1a1a1a;
  max-width: min(60%, 1000px);
  width: 100%;
  padding: 0;
  margin: 1.3rem auto 1.7rem;
  box-sizing: border-box;
}

#contact .contact-us p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.6rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 0;
  padding: 0;
  height: auto;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease;
  width: min(92vw, 1800px);
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.contact-card:hover {
  border-color: #336699;
}

.contact-card h3 {
  margin: 0;
  padding: 5px 10px;
  font-family: Tahoma, "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(180deg, #5b8ec0 0%, #336699 50%, #2a5582 100%);
  border-bottom: 1px solid #24486e;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

#contact .contact-list {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  font-family: Tahoma, "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #20262b;
}

#contact .contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
}

#contact .contact-item + .contact-item {
  border-top: 1px solid #d5dde5;
}

#contact .contact-label {
  color: #2a5582;
  font-weight: 700;
  white-space: nowrap;
}

#contact .contact-value {
  color: #0000cc;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}

#contact a.contact-value {
  white-space: nowrap;
}

#contact a.contact-value:hover {
  color: #000099;
}

#contact .contact-value--block {
  color: #20262b;
  font-weight: 400;
  text-decoration: none;
}

#contact .contact-hint {
  color: #8f9aa1;
  white-space: nowrap;
}

#contact .contact-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.18em;
  color: #336699;
}

/* ============================================================================
 * 4. Footer 页脚
 * ============================================================================ */
.footer {
  width: 100%;
  background: linear-gradient(180deg, #21282d 0%, #161d21 100%);
  color: #e6e8ea;
  text-align: center;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  box-shadow: 0 -8px 24px rgb(12 28 45 / 0.2);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.footer-content {
  max-width: 2200px;
  margin: 0 auto;
  padding: 1.5rem 20px;
}

.footer-top a {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-top a:hover {
  color: #ead98c;
  transform: scale(1.05);
}

.footer-top {
  margin-bottom: 0;
}

.divider {
  width: 90%;
  height: 1px;
  background-color: #7f8c8d;
  margin: 10px auto;
  opacity: 0.5;
}

.footer-bottom {
  font-size: 0.75rem;
  color: #adb4b9;
}

.powered {
  margin-top: 0.5rem;
  color: #b7bfc5;
}

/* ============================================================================
 * 5. 移动端悬浮操作按钮（桌面端默认隐藏）
 * ============================================================================ */
.floating-actions {
  display: none;
}

/* ============================================================================
 * 6. 响应式：移动端（≤767px）
 * ============================================================================ */
@media (max-width: 767px) {
  .header-content .branding {
    flex-direction: row;
    align-items: center;
    transition: all 0.3s ease;
  }

  .header .header-content .branding .logo {
    width: clamp(50px, 3vw, 60px);
    height: auto;
    margin-right: 0.1rem;
    margin-top: 0;
    object-fit: contain;
  }

  .header-content .branding .branding-text {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    margin-left: 0;
    max-width: 100%;
    height: auto;
  }

  .header .header-content .branding-text h1 {
    white-space: nowrap;
    line-height: 1.4;
  }

  .header .header-content .company-intro .intro-text {
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-size: 1rem;
  }

  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 8px 10px;
    transition: all 0.3s ease;
  }

  .navbar ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 4px;
    margin: 0;
    width: 100%;
    justify-content: stretch;
  }

  .navbar ul li {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: rgb(255 255 255 / 0.08);
    border-right: none;
  }

  .navbar ul li a {
    display: block;
    width: 100%;
    padding: 0.55em 0.4em;
    font-size: 0.92rem;
    border-radius: 0;
  }

  .contact-us h2 {
    line-height: 1.4;
  }

  #contact .contact-us p {
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }

  .contact-cards {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }

  .contact-card {
    margin: 0 auto;
    padding: 0;
  }

  #contact .section-lead--short {
    max-width: 90% !important;
  }

  .footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 1px 0 !important;
    box-sizing: border-box;
  }

  .footer .footer-content {
    padding: 0.875rem 10px;
    max-width: 100%;
  }

  .footer .footer-content .footer-bottom {
    line-height: 1.4;
  }

  .footer .footer-content .footer-top {
    margin-bottom: 8px;
  }

  .floating-actions {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    background: #21282d;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .float-call {
    background: #f0b429;
    color: #1f262b;
  }

  .float-btn:active {
    transform: scale(0.92);
  }

  .float-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .float-top.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================================
 * 7. 响应式：平板端（768–1024px）
 * ============================================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .header {
    padding: 8px;
  }

  .header-content .branding {
    flex-direction: row;
    align-items: center;
  }

  .header .header-content .branding .logo {
    width: clamp(60px, 2.9vw, 90px);
  }

  .header .header-content .branding-text {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: 200px;
    max-width: 100%;
    margin-left: 0.3rem;
  }

  .header .header-content .branding-text h1 {
    white-space: nowrap;
  }

  .navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .navbar ul li {
    margin: 0 0.5em;
  }

  .navbar ul li a {
    padding: 1.1em 0.8em;
  }

  .contact-cards {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .contact-card {
    margin: 0 auto;
    padding: 0;
  }

  .contact-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 10px;
  }

  #contact .section-lead--short {
    max-width: 82% !important;
  }

  .footer {
    padding: 1rem 0;
  }

  .footer-content {
    padding: 0 2rem;
  }
}

/* ============================================================================
 * 8. 桌面端（≥1025px）：联系我们说明文字尽量保持一行，不换行
 * ============================================================================ */
@media (min-width: 1025px) {
  #contact .section-lead--short {
    max-width: none;
    white-space: nowrap;
  }
}
