/* 关于页面：公司介绍、产品线和联系方式 */

/* 设计变量：页面颜色、字号、间距和组件参数 */
:root {
  --brand: #2cc335;
  --brand-600: #22a82a;
  --brand-50: #f0fdf4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --bg: #ffffff;
  --bg-subtle: var(--gray-50);
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --border: var(--gray-200);
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-3xl: 30px;
  --fs-4xl: 36px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.12);
  --ease: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置和通用布局 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section {
  padding: var(--space-20) 0;
}
.section--subtle {
  background: var(--bg-subtle);
}
.section--flush-top {
  padding-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.section-sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 660px;
}
.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.text-center {
  text-align: center;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--ease);
  min-height: 44px;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}
.btn--lg {
  font-size: var(--fs-base);
  padding: var(--space-4) var(--space-8);
}

/* 页头、导航和页脚 */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
header.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  transition: color var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-item--products {
  position: relative;
}
.nav-item--products > a {
  display: inline-flex;
  align-items: center;
}
.nav-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ease);
}
.product-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 216px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 10px 30px rgb(17 24 39 / 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition:
    opacity var(--ease),
    visibility var(--ease),
    transform var(--ease);
}
.product-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 18px;
}
.nav-item--products:hover .product-menu,
.nav-item--products:focus-within .product-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-item--products:hover .nav-chevron,
.nav-item--products:focus-within .nav-chevron {
  transform: translateY(1px) rotate(225deg);
}
.nav-links .product-menu a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--gray-700);
}
.nav-links .product-menu a::after {
  display: none;
}
.nav-links .product-menu a:hover,
.nav-links .product-menu a:focus-visible {
  color: var(--text);
  background: var(--brand-50);
  outline: none;
}
.product-menu b {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.product-menu small {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-grid p {
  max-width: 260px;
  margin-top: var(--space-4);
}
.footer-grid h4 {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

/* footer 二维码：放在第一列介绍下方 */
.footer-qrcode {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer-qrcode img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.footer-qrcode span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  background: #fff;
  z-index: 40;
  transform: translateX(100%);
  transition: transform var(--ease);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-size: var(--fs-lg);
  color: var(--gray-700);
}
.mobile-product-links {
  display: grid;
  gap: var(--space-3);
  margin-top: calc(var(--space-3) * -1);
  padding-left: var(--space-5);
  border-left: 2px solid rgb(44 195 53 / 0.24);
}
.mobile-menu .mobile-product-links a {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

/* 面包屑和关于页首屏 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--space-6) 0 0;
  flex-wrap: wrap;
}
.breadcrumb .sep {
  color: var(--gray-300);
}
.subhero {
  padding: var(--space-8) 0 var(--space-16);
  background: radial-gradient(
    1000px 360px at 85% -10%,
    var(--brand-50),
    transparent
  );
}
.subhero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.subhero h1 {
  font-size: var(--fs-4xl);
  margin: var(--space-4) 0 var(--space-6);
}
.subhero .lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 520px;
}
.subhero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.panel {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
  min-width: 360px;
}
.panel .badge {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.panel .stat-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-1);
}
.panel .stat-row:last-child {
  border-bottom: none;
}
.panel .stat-row .k {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}
.panel .stat-row .v {
  font-weight: 600;
  color: var(--gray-800);
  font-size: var(--fs-lg);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* 公司介绍和产品线 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.intro-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  margin-top: var(--space-12);
}
.adv {
  display: flex;
  gap: var(--space-4);
}
.adv .aic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.adv h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-1);
}
.adv p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.about-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-6);
}
.about-summary {
  color: var(--text-muted);
}

/* 联系方式和地图 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: stretch;
}
.contact-grid--spaced {
  margin-top: var(--space-12);
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.ccard {
  display: flex;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.ccard .cic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.ccard h3 {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-1);
}
.ccard p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.map-placeholder {
  aspect-ratio: 16 / 6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}
.company-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}
.company-map--message {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  color: var(--gray-400);
  font-size: var(--fs-sm);
}
.about-actions {
  display: flex;
  justify-content: center;
}
.about-actions .btn {
  max-width: 100%;
}
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: #fff;
}
.cta h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}
.cta p {
  font-size: var(--fs-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
}
.cta .btn--secondary {
  background: #fff;
  color: var(--brand);
}

/* 滚动显现动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.18s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.26s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.34s;
}

/* 响应式布局 */
@media (max-width: 1023px) {
  .subhero-grid,
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .map-placeholder {
    aspect-ratio: 16 / 9;
  }
  .panel {
    order: -1;
    max-width: 480px;
  }
  .adv-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .nav-links,
  .nav-cta .btn--secondary {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .subhero h1 {
    font-size: var(--fs-3xl);
  }
  .panel {
    aspect-ratio: auto;
  }
  .section {
    padding: var(--space-16) 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .panel {
    animation: none !important;
  }
}
