/* =======================
   ATN Hydraulic - Optimized Styles (International)
   v2.1 | 2023-08-20
   ======================= */

/* --------- Design Tokens --------- */
:root {
  /* Light Theme (Default) */
  --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;
  
  /* Animation */
  --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;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

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;
}

.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);
}

/* ===== Logo & Branding ===== */
/* 导航栏品牌样式 */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .logo-icon {
  width: 48px; /* 增大尺寸 */
  height: 48px; /* 增大尺寸 */
  flex-shrink: 0;
}

.site-header .logo-text {
  font-weight: 700;
  font-size: 1.5rem; /* 增大字体 */
  color: var(--text);
  white-space: nowrap; /* 防止文字换行 */
}

/* 页脚品牌样式 */
.footer-info .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-info .logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .site-header .logo-text,
  .footer-info .logo-text {
    color: #f8fafc;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .site-header .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .site-header .logo-text {
    font-size: 1.25rem;
  }
}
/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 20px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 120px;
  display: none;
  z-index: 10;
}

.lang-switcher:hover .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 8px 16px;
}

.lang-dropdown a:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* Mobile nav */
@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;
  }
  
  .lang-switcher {
    margin-left: auto;
    margin-right: 12px;
  }
}

/* --------- Hero --------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  min-height: clamp(420px, 60vw, 680px);
}

.hero-art picture,
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  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.3);
}

.hero-copy .lead {
  color: #e8eef7;
  margin-bottom: 1rem;
}

.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;
}

/* --------- 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);
}

/* ===== Logo 优化 ===== */
/* 导航栏图标 */
.brand .logo-icon {
  display: block; /* 确保SVG正常显示 */
  width: 36px;
  height: 36px;
  margin-right: 10px; /* 图标和文字之间的间距 */
}

/* 导航栏文字 */
.brand .logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

/* 页脚完整版logo */
.footer-logo {
  display: none; /* 默认隐藏 */
  margin-bottom: 20px;
  text-align: center; /* 居中显示 */
}

.footer-logo svg {
  width: 180px;
  height: auto;
}

/* 在大屏幕上显示页脚logo */
@media (min-width: 992px) {
  .footer-logo {
    display: block;
  }
}
/* --------- 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,
  .lang-switcher {
    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;
  }
  /* ===== Hero 统一布局（绝对填充 + 居中）===== */
.hero{ position:relative; overflow:hidden; color:#fff; }
.hero-inner{ position:relative; min-height:clamp(520px, 62vw, 760px); }
.hero-art{ position:absolute; inset:0; } /* 关键：图像占满容器 */
.hero-art picture, .hero-art img{ width:100%; height:100%; object-fit:cover; }
.hero-copy{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
  /* 语言切换器类名兼容（与你的 HTML/JS 保持一致） */
.lang-current{ display:flex; align-items:center; gap:4px; cursor:pointer; }
.lang-switcher .lang-dropdown{ display:none; }
  /* 导航在窄屏交给汉堡按钮，不要挤成两行 */
@media (max-width: 1140px){
  .nav-menu{ gap:14px; }
}
@media (max-width: 980px){
  .nav-menu{ display:none; }      /* 交给汉堡菜单 */
  .nav-toggle{ display:inline-flex; }
}
.brand .logo-text{ white-space:nowrap; } /* 防止品牌名换行 */


}