/* ============================================================
   Shanzhi Dental — Dental Equipment, Consumables & Solutions
   Clean clinical enterprise design system (light)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(13, 33, 55, 0.10);
  --border-strong: rgba(13, 33, 55, 0.18);

  --text: #0d2137;
  --text-2: #33465c;
  --muted: #6b7d92;

  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-glow: rgba(15, 118, 110, 0.24);
  --navy: #0d2137;

  --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                  "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-lg: 0 30px 70px -32px rgba(13, 33, 55, 0.28);
  --shadow-sm: 0 10px 30px -18px rgba(13, 33, 55, 0.22);
  --maxw: 1200px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.section-sub { color: var(--text-2); font-size: 17px; margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.7; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px var(--accent-glow);
}
.btn-primary:hover { background: #0d6b63; transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--accent-glow); }
.btn-ghost {
  border-color: var(--border-strong); color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #ffffff; color: var(--navy); box-shadow: 0 10px 26px -14px rgba(0,0,0,0.5); }
.btn-light:hover { background: #eef7f5; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.text-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); border-bottom-color: var(--border); box-shadow: 0 4px 20px -16px rgba(13, 33, 55, 0.2); }
.nav.is-overlay { background: linear-gradient(180deg, rgba(6,17,28,0.62) 0%, rgba(6,17,28,0) 100%); }
.nav.is-overlay .brand, .nav.is-overlay .brand-name { color: #ffffff; }
.nav.is-overlay .brand-mark { color: #5eead4; }
.nav.is-overlay .nav-links a { color: rgba(255, 255, 255, 0.84); }
.nav.is-overlay .nav-links a:hover { color: #ffffff; }
.nav.is-overlay .lang-toggle { border-color: rgba(255, 255, 255, 0.42); color: rgba(255, 255, 255, 0.92); }
.nav.is-overlay .lang-toggle:hover { border-color: #5eead4; color: #5eead4; }
.nav.is-overlay .menu-toggle:not(.open) span { background: #ffffff; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; position: relative; transition: color 0.2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width 0.25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-2);
  padding: 8px 15px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  font-family: var(--font-display); transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--navy); transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — full-bleed image */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 92vh; padding: 176px 0 108px;
  background: #06111c;
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,17,28,0.72) 0%, rgba(6,17,28,0.22) 24%, rgba(6,17,28,0) 46%),
    linear-gradient(90deg, rgba(6,17,28,0.95) 0%, rgba(6,17,28,0.88) 32%, rgba(6,17,28,0.56) 62%, rgba(6,17,28,0.24) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 22px; color: #5eead4; }
.hero-copy .eyebrow::before { background: #5eead4; }
.hero-copy h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; color: #ffffff; }
.hero-copy h1 .accent { color: #5eead4; }
.hero-copy .lead { margin-top: 24px; max-width: 540px; color: rgba(255, 255, 255, 0.82); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; }
.hero-trust li { color: rgba(255, 255, 255, 0.74); font-size: 13.5px; position: relative; padding-left: 18px; }
.hero-trust li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #5eead4; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.44); color: #ffffff; background: rgba(255, 255, 255, 0.07); }
.hero .btn-ghost:hover { border-color: #5eead4; color: #5eead4; background: rgba(255, 255, 255, 0.12); }
.hero-badge {
  position: absolute; z-index: 3; right: 32px; bottom: 40px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 54px -24px rgba(0, 0, 0, 0.6);
  max-width: 224px;
}
.hero-badge-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-badge-text { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* Value strip */
.value { padding: 88px 0 30px; background: var(--bg-2); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  padding: 28px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.value-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.value-icon { display: inline-flex; color: var(--accent); margin-bottom: 16px; }
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Sections shared */
.solutions, .technology, .about, .news, .contact { padding: 100px 0; }
.about { background: var(--bg-2); }
.contact { background: var(--bg-2); }

/* Solutions */
.solutions .section-head { margin-bottom: 52px; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solution-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.solution-media {
  position: relative; height: 188px; overflow: hidden;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.solution-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.04); }
.solution-body { padding: 24px 24px 26px; }
.solution-body h3 { font-size: 19px; margin-bottom: 10px; }
.solution-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tech-card { padding: 30px 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); position: relative; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.tech-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tech-num { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.tech-card h3 { font-size: 18px; margin-bottom: 12px; }
.tech-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* News */
.news .section-head { margin-bottom: 52px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.news-media {
  position: relative; height: 190px; overflow: hidden;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body { padding: 24px 24px 26px; }
.news-date { display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.news-body h3 { font-size: 18px; margin-bottom: 12px; }
.news-body p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin-bottom: 18px; }

/* About */
.about-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.about-head .eyebrow { margin-bottom: 16px; }
.about-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 22px; }
.about-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-col {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.about-col:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.about-col h3 { font-size: 17px; margin-bottom: 12px; }
.about-col p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* CTA band */
.cta-band { padding: 30px 0 0; }
.cta-card {
  position: relative; text-align: center; padding: 72px 40px; border-radius: 28px;
  border: 1px solid var(--border-strong); overflow: hidden;
  background: linear-gradient(180deg, #0b2f2b, #0d423b);
  color: #ffffff;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 280px at 50% 0%, rgba(20, 184, 166, 0.28), transparent 70%);
}
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; }
.cta-card .btn { position: relative; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-info .eyebrow { margin-bottom: 18px; }
.contact-info h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.contact-info > p { color: var(--text-2); margin-bottom: 36px; }
.contact-list { display: grid; gap: 24px; }
.contact-list li { display: grid; gap: 4px; }
.c-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.c-value { color: var(--text); font-size: 16px; }
a.c-value:hover { color: var(--accent); }

.contact-form { display: grid; gap: 20px; padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 15px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; }
.form-note { min-height: 20px; font-size: 14px; color: var(--accent); text-align: center; }

/* Footer */
.footer { padding: 70px 0 34px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); font-size: 13.5px; }
.footer-legal a:hover { color: var(--accent); }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { padding: 150px 0 100px; min-height: 86vh; }
  .value-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .container { padding: 0 22px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
    padding: 12px 22px 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); color: var(--navy); }
  .nav.is-overlay .nav-links a { color: var(--navy); }
  .nav:has(.nav-links.open) { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px); }
  .nav:has(.nav-links.open) .brand, .nav:has(.nav-links.open) .brand-name { color: var(--navy); }
  .nav:has(.nav-links.open) .lang-toggle { border-color: var(--border-strong); color: var(--text-2); }
  .nav-links a::after { display: none; }
  .nav-actions .btn-sm { display: none; }
  .menu-toggle { display: flex; }
  .solution-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .value-grid, .tech-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 138px 0 132px; min-height: 74vh; }
  .hero-copy { max-width: none; }
  .hero-badge { left: auto; right: 22px; bottom: 26px; padding: 14px 18px; max-width: 200px; }
  .hero-badge-num { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero { padding: 122px 0 128px; min-height: auto; }
  .hero-bg-img { object-position: 62% 50%; }
  .hero-copy h1 { font-size: 36px; }
  .hero-badge { left: 22px; right: 22px; bottom: 22px; max-width: none; flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
  .hero-badge-num { font-size: 24px; }
  .hero-cta .btn { width: 100%; }
  .section-head { margin-bottom: 40px; }
  .solutions, .technology, .about, .news, .contact { padding: 72px 0; }
  .value { padding: 64px 0 24px; }
}
