/* ==========================================================
   Harvest Technology Consulting Limited — style.css
   Palette sampled from logo: charcoal #353535 / gold #EEC54B
   ========================================================== */

:root {
  --charcoal: #2f2f31;
  --charcoal-soft: #48484a;
  --gold: #eec54b;
  --gold-deep: #c79a2e;
  --ink: #232326;
  --paper: #fafaf7;
  --paper-soft: #f1f0ea;
  --muted: #6b6b70;
  --muted-light: #b9b9be;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 35, 38, 0.08);
  --font: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 微信内置浏览器有时会强制放大字号，这里锁定 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 去掉移动端点击链接/按钮时的灰色高亮块 */
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Typography helpers ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }

h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow-dark { color: var(--gold-deep); }

.accent { color: var(--gold); }

.section { padding: 96px 0; }

.section-head { max-width: 560px; margin-bottom: 56px; }

.section-light { background: var(--paper); }
.section-dark { background: var(--charcoal); color: #fff; }
.section-dark h2 { color: #fff; }
.section-gold { background: var(--gold); color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #f5d579; box-shadow: 0 8px 20px rgba(238, 197, 75, 0.4); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* Language switcher (top-right) */
.lang-switch {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch:hover { background: var(--gold); color: var(--ink); }

.site-nav a.active { color: var(--gold-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 35, 38, 0.06);
}

/* 微信安卓 X5 内核不支持 backdrop-filter，退回纯白实底 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: #ffffff; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo { height: 34px; width: auto; }

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

.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.site-nav a:not(.btn):hover { color: var(--gold-deep); }

/* 键盘聚焦可见（桌面无障碍），移动端点击不受影响 */
a:focus-visible,
.btn:focus-visible,
.lang-switch:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* Mobile nav */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(238, 197, 75, 0.12), transparent 60%),
    var(--charcoal);
  color: #fff;
  padding: 130px 0 110px;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero-sub {
  margin: 24px 0 36px;
  font-size: 1.15rem;
  color: var(--muted-light);
  max-width: 620px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-platforms {
  margin-top: 56px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-chip {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e4e4e7;
}

/* Decorative gold triangles echoing the logo mark */
.hero-triangle {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(238, 197, 75, 0.9), rgba(199, 154, 46, 0.7));
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  opacity: 0.9;
  z-index: 1;
}

.hero-triangle-2 {
  right: 180px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.about-copy p { margin-bottom: 18px; color: var(--charcoal-soft); }

.about-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(35, 35, 38, 0.08);
  padding-top: 40px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: -0.02em;
}

.stat-label { font-size: 0.88rem; color: var(--muted); }

/* ---------- Services ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #3a3a3c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 197, 75, 0.5);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(238, 197, 75, 0.14);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { color: #fff; margin-bottom: 10px; }

.card p { color: var(--muted-light); font-size: 0.95rem; }

/* ---------- Process ---------- */

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid rgba(35, 35, 38, 0.1);
}

.process-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: 0.95rem; color: rgba(35, 35, 38, 0.75); }

/* ---------- Contact ---------- */

.contact-inner {
  max-width: 720px;
  text-align: left;
}

.contact-sub {
  margin: 20px 0 44px;
  color: var(--muted-light);
  font-size: 1.05rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.contact-card {
  background: #3a3a3c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.contact-card:hover { border-color: rgba(238, 197, 75, 0.5); }

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-value { color: #e4e4e7; font-size: 0.98rem; }

a.contact-card:hover .contact-value { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  background: #202023;
  color: var(--muted-light);
  padding: 56px 0 40px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}

.footer-triangle {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 5px;
  background: var(--gold);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

.footer-brand p { margin-top: 2px; }

.footer-meta p { margin-bottom: 4px; }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  color: #7a7a80;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-triangle { width: 260px; height: 260px; opacity: 0.5; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .process-grid { grid-template-columns: 1fr; }

  .nav-toggle-label { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 5%;
    gap: 20px;
    border-bottom: 1px solid rgba(35, 35, 38, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  /* 触控优化：导航项加大点击区域，长文本允许折行防横向滚动 */
  .site-nav a { font-size: 1rem; padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }

  .contact-value, .footer-meta p, .about-copy p { overflow-wrap: anywhere; }
}
