/* =======================
   ATN Hydraulic - Optimized Styles (International)
   v2.2
   ======================= */

/* --------- Design Tokens --------- */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --brand: #0ea5e9;
  --brand-2: #22c55e;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 16px;
  --maxw: 1120px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --text: #f8fafc; --muted: #94a3b8; --line: #1e293b; --card: #1e293b;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
  }
}

/* --------- Base & Reset --------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { margin: 0; padding-left: 1.1rem; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 28px); }
h3 { font-size: 18px; }

/* --------- Layout Helpers --------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.align-center { align-items: center; }

/* --------- Header / Nav --------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-weight: 700; font-size: 1.25rem; white-space: nowrap; }

.nav { position: relative; }
.nav-toggle {
  display: none; cursor: pointer; background: transparent;
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; color: var(--text);
}
.nav-menu {
  display: flex; gap: 20px; list-style: none; margin: 0; padding: 0;
}
.nav-menu a { display: block; padding: 12px 10px; border-radius: 10px; font-weight: 500; }
.nav-menu a:hover { background: rgba(14, 165, 233, 0.1); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow);
    display: none; flex-direction: column; min-width: 200px; padding: 8px;
  }
  .nav-menu.open { display: flex; }
}

/* --------- Hero --------- */
.hero { position: relative; border-bottom: 1px solid var(--line); color: #fff; overflow: hidden; }
.hero-inner { position: relative; min-height: clamp(520px, 62vw, 760px); }
.hero-art { position: absolute; inset: 0; z-index: 1; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* 让文案盖在图片之上 + 渐变提升对比度 */
.hero-copy {
  position: absolute; z-index: 2;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #fff; padding: 0 16px; max-width: 720px; width: calc(100% - 32px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero::after{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events:none;
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-bullets {
  list-style: none; color: #e8eef7; display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; max-width: 80%;
}
.hero-bullets li { display: flex; align-items: center; gap: 6px; }
.hero-bullets li::before { content: "•"; color: var(--brand); }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  transition: all var(--transition); box-shadow: var(--shadow); gap: 8px; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--brand); color: #fff; border-color: transparent; }
.btn.outline { background: transparent; border-color: currentColor; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.small { padding: 8px 14px; border-radius: 10px; }

/* --------- Trust bar --------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 14px 0;
  align-items: center; text-align: center;
}
.trust-item {
  font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 8px; box-shadow: 0 2px 10px rgba(2, 6, 23, 0.04);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform var(--transition);
  white-space: nowrap;
}
.trust-item:hover { transform: translateY(-3px); }
@media (max-width: 860px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }

/* --------- Sections --------- */
.section { padding: 80px 0; content-visibility: auto; }
.section.alt { background: var(--bg); }
.section-head { margin-bottom: 2rem; text-align: center; }
.section-head p { color: var(--muted); max-width: 700px; margin: 0 auto; }

/* --------- Cards / Products --------- */
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform var(--transition); will-change: transform;
}
.card:hover { transform: translateY(-5px); }
.card.small { padding: 16px; }
.card h3 { margin: 1rem 0 0.5rem; }
.card p { color: var(--muted); margin: 0; }

.specs { margin: 0.8rem 0 0; color: var(--muted); list-style: none; }
.specs li { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.specs li::before { content: "•"; color: var(--brand); }

.card picture img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }

/* --------- Feature grid --------- */
.feature-grid { margin-top: 2rem; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.feature h3 { display: flex; align-items: center; gap: 8px; }
.feature p { color: var(--muted); margin: 0.8rem 0 0; }

/* --------- Capabilities --------- */
.capabilities { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.cap {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.cap h3 { display: flex; align-items: center; gap: 8px; }
.cap p { color: var(--muted); margin: 0.8rem 0 0; }

/* --------- Quality checklist --------- */
.checklist {
  display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr);
  list-style: none; max-width: 800px; margin: 0 auto;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 0;
}
.checklist li::before { content: "✓"; color: var(--brand); font-weight: bold; }
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

/* --------- Applications --------- */
.cards.four .card.small h3 { margin-bottom: 0.5rem; }

/* --------- Contact --------- */
.contact-grid {
  display: grid; gap: 40px; grid-template-columns: 1fr; max-width: 800px; margin: 0 auto;
}
.contact-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow);
}
.contact-box h3 { margin-bottom: 1rem; }
.contact-box details { margin-top: 1.5rem; }
.contact-box summary { font-weight: 600; cursor: pointer; outline: none; }
.contact-box ul { margin-top: 1rem; list-style: none; }
.contact-box li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.contact-box li::before { content: "•"; color: var(--brand); }

.contact a { color: var(--brand); text-decoration: underline; font-weight: 500; }

/* GDPR Banner */
.gdpr-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: white; padding: 16px; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
}
.gdpr-banner p { margin: 0; flex: 1; min-width: 200px; }
.gdpr-banner a { color: var(--brand); }
#accept-cookies {
  background: var(--brand); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}

/* --------- Footer --------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 40px 0 20px; }
.foot { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { padding: 8px; border-radius: 8px; font-weight: 500; }
.foot-nav a:hover { background: rgba(14, 165, 233, 0.1); }

/* --------- Accent underline --------- */
.accent-underline { background: linear-gradient(transparent 70%, rgba(14, 165, 233, 0.25) 0); }

/* --------- Responsive --------- */
@media (max-width: 1120px) {
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .capabilities { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 860px) {
  .cards.three { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 1.5rem; }
}
@media (max-width: 720px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .foot { flex-direction: column; text-align: center; }
  .foot-nav { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .cards.four { grid-template-columns: 1fr; }
  .hero-inner { min-height: 420px; }
  .hero-copy .cta-row { flex-direction: column; align-items: stretch; }
  .hero-copy .btn { width: 100%; }
  .hero-bullets { display: none; }
  .feature-grid, .capabilities { grid-template-columns: 1fr; }
}

/* --------- Utilities --------- */
.lead { font-size: clamp(16px, 2.2vw, 18px); line-height: 1.5; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Print Styles */
@media print {
  .site-header, .gdpr-banner { display: none; }
  body { font-size: 12pt; line-height: 1.5; }
  .container { max-width: 100%; padding: 0; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; font-weight: normal; }
}
