/* 深圳市安科盟科技 — 企业官网样式（依据 Pencil 设计稿） */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* 设计变量（来自 pencil-new.pen，与 4umhx 等页头 primary 一致） */
  --primary: #0f3460;
  --background: #FDFCF9;
  --foreground: #1A1A1A;
  --muted-foreground: #777777;
  --border: #E5E2DC;
  --card: #FDFCF9;
  --surface-tint: #F5F2ED;
  --surface-warm: #E8E5DF;
  --text-inverted: #FFFFFF;
  --text-tertiary: #999999;
  --accent: #2563eb;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  --spacing-standard: 12px;
  --spacing-medium: 16px;
  --spacing-large: 24px;
  --spacing-major: 32px;
  --spacing-section: 48px;
  --radius: 8px;
  --container-max: 1440px;
  --header-height: 64px;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
}

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

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

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1024px) {
  .container { padding-left: 64px; padding-right: 64px; }
}

/* 页头 */
.site-header {
  height: var(--header-height);
  background: var(--primary);
  border-bottom: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (min-width: 768px) {
  .site-header { padding: 0 64px; }
}

.site-logo {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-inverted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.site-nav a {
  color: var(--text-inverted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:hover {
  opacity: 0.9;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
}

.lang-switch a {
  color: var(--text-inverted);
  font-size: 12px;
}

.lang-switch a.active {
  font-weight: 600;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-inverted);
}

/* 移动端下拉导航 */
.nav-dropdown {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-dropdown.is-open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-dropdown a {
  color: var(--text-inverted);
  font-weight: 600;
}

/* Hero（设计稿 BdVj3：padding 48 64，gap 24，左对齐） */
.hero {
  background: var(--surface-tint);
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero { padding: 48px 64px; }
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 42px; }
}

.hero .subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 720px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverted);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

/* 区块标题（设计稿 TLfqp/tH7Xi：padding 24 64，border-bottom） */
.section-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.section-title:first-child {
  margin-top: 0;
}

/* 带浅灰背景的区块（设计稿中仅 hero/contact/footer 使用 surface-tint，此处保留供可选） */
.section-alt {
  background: var(--surface-tint);
  padding: 0 0 48px;
  border-bottom: 1px solid var(--border);
}

.section-alt .container {
  padding-top: 0;
}

.section-alt .section-title {
  padding-top: 24px;
}

/* 产品卡片网格（设计稿 Xn42F：padding 24 64，gap 24，卡高 320，图高 120） */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 320px;
  transition: box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card .thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.product-card h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.product-card .desc {
  font-size: 13px;
  color: var(--muted-foreground);
  flex: 1;
}

.product-card .link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.product-card .link:hover {
  text-decoration: underline;
}

/* 企业优势 4 栏 */
.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}

@media (min-width: 640px) {
  .advantages { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .advantages { grid-template-columns: repeat(4, 1fr); }
}

.advantage-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--card-shadow);
}

.advantage-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.advantage-card p {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

/* 团队介绍（设计稿 Josml：padding 48 64，gap 24，标题无下边线、无额外 padding） */
.team-section {
  padding: 48px 24px;
  background: var(--background);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .team-section { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1024px) {
  .team-section { padding-left: 64px; padding-right: 64px; }
}

.team-section .section-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: none;
  padding: 0;
  margin: 0;
}

.team-section .section-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
}

.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: var(--surface-tint);
}

.team-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.team-card .role {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

.team-card .bio {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 100%;
}

/* 公司简介区块（首页） */
.intro-section {
  background: var(--surface-tint);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.intro-section .section-title {
  padding-top: 0;
  border-bottom: none;
  margin-bottom: 16px;
}

.intro-section .intro-text {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 800px;
}

.intro-section .btn {
  align-self: flex-start;
}

/* 联系我们区块（首页）（设计稿 contactBlock：padding 24 64，gap 16，map 180） */
.contact-block {
  background: var(--surface-tint);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-block .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-block .section-title {
  padding-top: 0;
  margin-bottom: 0;
}

.contact-block .address,
.contact-block .extra {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

.map-placeholder {
  width: 100%;
  height: 180px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* 页脚（设计稿 GsDNc：fill surface-tint，padding 24 64，gap 12） */
.site-footer {
  background: var(--surface-tint);
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .company {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}

.site-footer .address,
.site-footer .extra {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

.site-footer .copyright {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--muted-foreground);
}

.breadcrumb a:hover {
  color: var(--foreground);
}

.breadcrumb span.sep {
  color: var(--text-tertiary);
}

.breadcrumb span.current {
  font-weight: 600;
  color: var(--foreground);
}

/* 产品列表页：分类标签 */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-tint);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.cat-tabs a {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  background: var(--background);
  border-bottom: 3px solid transparent;
}

.cat-tabs a.active {
  font-weight: 600;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 产品列表网格（列表页） */
.product-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .product-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-list-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-list-empty {
  font-size: 14px;
  color: var(--muted-foreground);
  text-align: center;
  padding: 48px 24px;
  margin: 0;
}

.product-list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-list-card .thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.product-list-card h3 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.product-list-card .desc {
  font-size: 13px;
  color: var(--muted-foreground);
  flex: 1;
  margin: 0;
}

.product-list-card .link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.product-list-card .link:hover {
  text-decoration: underline;
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 13px;
}

.pagination a {
  color: var(--muted-foreground);
}

.pagination a:hover {
  color: var(--foreground);
}

.pagination a.disabled {
  pointer-events: none;
  color: var(--text-tertiary);
  cursor: default;
}

.pagination span.current {
  font-weight: 600;
  color: var(--primary);
}

/* 内页通用：页面标题区 */
.page-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 42px; }
}

.page-header .subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}

/* 关于我们：简介 + 信息卡 */
.about-intro {
  margin-bottom: 32px;
}

.about-page .main-content .about-intro {
  margin-bottom: 0;
}

.about-intro h2,
.about-info h2 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
}

.about-intro p,
.about-info p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 8px;
}

.about-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.about-page .main-content .about-info {
  margin-bottom: 0;
}

/* 关于我们页：「为什么选择我们」独立区块（设计稿 M0rr4 h5QY8：居中标题 + 4 图卡） */
.about-page .why-section {
  padding: 48px 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .about-page .why-section { padding: 48px 64px; }
}

.about-page .why-section .title-row {
  text-align: center;
  margin-bottom: 32px;
}

.about-page .why-section .title-row h2 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .about-page .why-section .title-row h2 { font-size: 32px; }
}

.about-page .why-section .title-row .subtitle-en {
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--muted-foreground);
  letter-spacing: 4px;
  margin: 0 0 8px;
}

.about-page .why-section .title-row .line-deco {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
}

.about-page .why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-page .why-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .about-page .why-cards { grid-template-columns: repeat(4, 1fr); }
}

.about-page .why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-page .why-card .why-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-warm);
}

.about-page .why-card .why-card-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  padding: 0 12px 12px;
  margin: 0;
}

.about-page .why-card .why-card-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
  padding: 0 12px 12px;
  margin: 0;
}

/* 联系我们页：地图 + 信息栏 */
.contact-page .content-wrap {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-page .content-wrap {
    grid-template-columns: 1fr 420px;
  }
}

.map-section h2,
.info-section h2 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}

.map-section .map-frame {
  width: 100%;
  height: 400px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
}

.info-section .info-line {
  margin-bottom: 24px;
}

.info-section .info-line label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-section .info-line span {
  font-size: 14px;
  color: var(--muted-foreground);
}

.wechat-block {
  margin-top: 24px;
}

.wechat-qr {
  width: 160px;
  height: 160px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* 产品详情页（设计稿 8nFfI：bhi9L padding 32 40，gap 48；PpkeW gap 20；图片圆角 12；btnRow gap 12；divider；nav-products padding 16 0, gap 8） */
.container--detail {
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container--detail { padding-left: 40px; padding-right: 40px; }
}

.product-detail-content {
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-detail .product-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.product-detail .product-hero h1 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--foreground);
  margin: 0;
}

.product-detail .product-hero .subtitle {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

.product-detail .product-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  object-fit: contain;
  object-position: top;
}

.product-detail .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.product-detail .divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  padding: 0;
}

.product-detail .nav-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  margin: 0;
}

.product-detail .nav-products a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.product-detail .nav-products a:hover {
  text-decoration: underline;
}

.site-footer--compact .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* 主内容区 padding */
.main-content {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .main-content { padding: 32px 0 48px; }
}

/* 关于我们页主内容区（设计稿 W7kwr：padding 32 64，子区块 gap 32） */
.about-page .main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-page .main-content .team-section {
  padding-top: 0;
  padding-bottom: 0;
}
