/* =============================================================
   GreenTec Garden Tools — 全局样式
   设计基线：白/浅灰底 + 绿色品牌色，扁平卡片、克制留白、响应式
   ============================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --brand:        #2E7D32;   /* 主色：园林绿 */
  --brand-dark:   #1B5E20;   /* 深色：hover/标题 */
  --brand-soft:   #E8F5E9;   /* 浅色：背景/标签 */
  --accent:       #558B2F;   /* 辅助：副文案/链接 */

  --ink:          #1F2937;   /* 主文字 */
  --ink-soft:     #4B5563;   /* 副文字 */
  --muted:        #6B7280;   /* 弱化文字 */
  --line:         #E5E7EB;   /* 分隔线/边框 */
  --bg:           #FFFFFF;   /* 页面底色 */
  --bg-soft:      #F7FAF7;   /* 浅灰底（极淡绿白） */
  --bg-card:      #FFFFFF;   /* 卡片底 */

  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow:       0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-lg:    0 12px 32px rgba(16, 24, 40, 0.08);

  --container:    1200px;
  --gap:          24px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------- 布局容器 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section   { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--brand); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Header 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }
.brand-text { font-weight: 700; color: var(--brand-dark); font-size: 18px; }

.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 6px 0; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--brand); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- 语言切换器 ---------- */
.lang-switch { position: relative; display: inline-block; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
  transition: all .2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch summary .caret { font-size: 10px; opacity: .7; }
.lang-switch[open] summary { border-color: var(--brand); color: var(--brand); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column;
}
.lang-menu a {
  display: block; padding: 9px 14px; border-radius: 6px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.lang-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-menu a.cur { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; transition: transform .2s, opacity .2s;
}
.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); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .2s; text-align: center;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost   { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--lg      { padding: 14px 28px; font-size: 16px; }
.btn--block   { width: 100%; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #F1F8E9 0%, #FFFFFF 100%);
  padding: 80px 0 96px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.hero h1 { color: var(--brand-dark); margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; display: block; }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,255,255,.95); padding: 12px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  color: var(--brand-dark); box-shadow: var(--shadow);
}
.hero-badge strong { color: var(--brand); display: block; font-size: 18px; }

/* ---------- 优势板块 ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all .25s;
}
.adv-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.adv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.adv-card h3 { font-size: 17px; margin-bottom: 8px; }
.adv-card p  { font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.product-thumb {
  aspect-ratio: 4 / 3; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin-bottom: 8px; }
.product-body p  { font-size: 14px; margin-bottom: 16px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 4px 10px; border-radius: 100px;
}
.product-foot { margin-top: auto; display: flex; gap: 10px; }

/* ---------- 合作流程 ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-step {
  text-align: center; padding: 24px 16px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--line); position: relative;
}
.process-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.process-step h3 { font-size: 16px; margin-bottom: 6px; }
.process-step p  { font-size: 13px; margin: 0; }

/* ---------- 通用页面内页 Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #F1F8E9 0%, #FFFFFF 100%);
  padding: 64px 0 56px; border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--brand-dark); margin-bottom: 12px; }
.page-hero p  { font-size: 17px; color: var(--ink-soft); max-width: 720px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- 产品详情布局 ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li {
  padding-left: 28px; position: relative; margin-bottom: 10px;
  color: var(--ink-soft); font-size: 15px;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 询盘表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.contact-info { padding-right: 16px; }
.contact-info dl { margin: 24px 0 0; }
.contact-info dt { font-size: 13px; color: var(--muted); margin-top: 18px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 16px; color: var(--ink); font-weight: 500; }

.form-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 8px; }
.form-card .form-hint { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-group label .req { color: #DC2626; margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error { color: #DC2626; font-size: 13px; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #DC2626; }
.form-group.has-error .form-error { display: block; }
.form-toast {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 14px; display: none;
}
.form-toast.show { display: block; }
.form-toast.error { background: #FEE2E2; color: #B91C1C; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0F1F12; color: #D1D5DB; padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.8; color: #9CA3AF; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #9CA3AF; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-text { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1F2D22; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #6B7280;
}

/* ---------- 关于/资质/政策 通用块 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-points { list-style: none; padding: 0; margin: 24px 0 0; }
.about-points li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.about-points li:last-child { border-bottom: 0; }
.about-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.about-points strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.about-points span { color: var(--ink-soft); font-size: 14px; }

.policy-prose { max-width: 820px; margin: 0 auto; }
.policy-prose h2 { font-size: 20px; margin-top: 32px; color: var(--brand-dark); }
.policy-prose p, .policy-prose li { color: var(--ink-soft); }

/* ---------- 占位卡（图片待补）---------- */
.placeholder-card {
  background: var(--bg-soft); border: 2px dashed var(--line);
  border-radius: var(--radius-lg); padding: 56px 24px; text-align: center;
}
.placeholder-card svg { max-width: 360px; margin: 0 auto; opacity: .9; }
.placeholder-card h3 { color: var(--accent); margin: 16px 0 8px; }
.placeholder-card p  { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .product-detail, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .advantages, .process, .product-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 640px) {
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0; background: #fff;
    flex-direction: column; gap: 0; padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .25s;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 24px; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .advantages, .process, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .gallery { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
