/* ==========================================================================
   company-site — style.css
   单文件样式表：无外部依赖、无 CDN、无构建步骤
   修改配色只需改下面的 :root 变量
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌主色（深青蓝，稳重可信） */
  --brand-900: #062a3a;
  --brand-800: #083a50;   /* 备用深色，色阶留全便于以后微调 */
  --brand-700: #0b4f6c;
  --brand-600: #12657f;
  --brand-100: #e6f1f6;
  --brand-50:  #f2f8fb;

  /* 强调色（用于按钮、数字、下划线） */
  --accent-600: #e8620a;
  --accent-500: #ff7a1a;
  --accent-100: #ffeee1;

  /* WhatsApp 品牌绿 */
  --wa-500: #25d366;
  --wa-600: #1da851;

  /* 中性色 */
  --ink:      #12222e;
  --ink-soft: #41586a;
  --muted:    #6b8394;
  --line:     #e1eaf0;
  --surface:  #ffffff;
  --bg:       #f6f9fb;

  /* 圆角与阴影 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 58, .06), 0 2px 8px rgba(11, 42, 58, .05);
  --shadow-md: 0 6px 24px rgba(11, 42, 58, .10);
  --shadow-lg: 0 18px 48px rgba(11, 42, 58, .14);

  /* 布局 */
  --container: 1140px;
  --gutter: 20px;
  --section-y: clamp(56px, 7vw, 96px);
  --header-h: 68px;

  /* 字体：只用系统字体，零网络请求，中/英/印尼文都不缺字形 */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
figure, dl, dd { margin: 0; }

/* 内联 SVG 图标精灵容器（不可见但不 display:none，保证 <use> 可靠） */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--brand-900);
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 无障碍：跳转到主内容 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg); }
.section--dark { background: var(--brand-900); color: #d8e6ee; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  border-radius: 999px;
}
.section--dark .eyebrow { color: #ffd9bd; background: rgba(255, 122, 26, .18); }

.lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--ink-soft); }
.section--dark .lead { color: #b9cdd8; }

/* 网格变体：本页用的是 .grid--3；--2 / --4 是留给以后新增板块的备用列数 */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease,
              background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--wa { background: var(--wa-500); color: #04301b; box-shadow: var(--shadow-sm); }
.btn--wa:hover { background: var(--wa-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--primary { background: var(--accent-500); color: #3a1500; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-50); }

.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn .icon { width: 20px; height: 20px; flex: none; }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: auto; height: 34px; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--brand-900);
  white-space: nowrap;
}
.brand-sub { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-list a:hover { color: var(--brand-700); background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  padding: 6px 9px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.lang a:hover { background: var(--brand-50); color: var(--brand-700); }
.lang a[aria-current="true"] { color: var(--brand-700); background: var(--brand-100); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--brand-900);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 122, 26, .16), transparent 62%),
    radial-gradient(700px 460px at 8% 6%, rgba(18, 101, 127, .14), transparent 60%),
    linear-gradient(180deg, var(--brand-50) 0%, #fff 74%);
  padding-block: clamp(40px, 6vw, 76px) clamp(36px, 5vw, 64px);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl {
  color: var(--accent-600);
  box-shadow: inset 0 -.34em 0 var(--accent-100);
}
.hero .lead { margin-bottom: 26px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-500); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--brand-100);
}
.hero-badge {
  position: absolute;
  left: -10px;
  bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: .8125rem;
  line-height: 1.35;
}
.hero-badge b { display: block; font-size: 1.35rem; color: var(--brand-700); }

/* ---------- 7. 数据条 ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--brand-700); line-height: 1.1; }
.stat span { font-size: .8125rem; color: var(--muted); }

/* ---------- 8. 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0e9; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-text { color: var(--ink-soft); font-size: .9375rem; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
}
.card-icon svg { width: 24px; height: 24px; }
.card--accent .card-icon { background: var(--accent-100); color: var(--accent-600); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .875rem;
  font-weight: 600;
}
.card-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* 服务卡片里的要点列表 */
.card-list { display: grid; gap: 8px; margin-top: 14px; }
.card-list li {
  position: relative;
  padding-left: 17px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* ---------- 9. 优势（带编号） ---------- */
.why-list { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.why-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.why-num {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-500);
  color: #3a1500;
  font-weight: 800;
}
.why-item h3 { margin-bottom: .3em; font-size: 1.0625rem; }
.why-item p { margin: 0; font-size: .9375rem; color: #b9cdd8; }

/* ---------- 10. 图库 ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--brand-50);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 42, 58, .82));
}

/* ---------- 11. 关于 ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .9375rem; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--wa-600); }

/* ---------- 12. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--brand-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details[open] summary { color: var(--brand-700); }
.faq .faq-body { padding: 0 0 18px; color: var(--ink-soft); font-size: .9375rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 13. 联系 ---------- */
.contact-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 48px); }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .card-icon { margin-bottom: 0; flex: none; width: 42px; height: 42px; }
.contact-item dt { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contact-item dd { margin: 2px 0 0; font-size: .9375rem; color: var(--ink); }
.contact-item dd a { font-weight: 600; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.contact-card h3 { margin-bottom: .4em; }
.contact-card .btn { margin-top: 6px; }
.hours { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-soft); }
.hours b { color: var(--brand-900); }

/* ---------- 14. 页脚 ---------- */
.site-footer { background: var(--brand-900); color: #9fb8c6; padding-block: 52px 34px; font-size: .875rem; }
.site-footer h4 { color: #fff; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 30em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-contact a { color: #9fb8c6; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-500); }
.footer-contact { display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .8125rem;
  color: #7f9bab;
}

/* ---------- 15. 移动端底部固定条 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(11, 42, 58, .08);
}
.mobile-bar .btn { flex: 1; padding: 13px 12px; font-size: .9375rem; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; margin-left: auto; }
  .header-actions .lang { display: none; }

  /* 有 JS 时：导航折叠成抽屉面板，由 main.js 切换 .is-open */
  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .js .nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  /* 没有 JS 时：不折叠，直接把导航纵向展开在页头下方，保证链接永远点得到 */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav { flex: 1 0 100%; order: 5; margin: 0; }
  html:not(.js) .nav-list { padding: 0 var(--gutter) 12px; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 20px; }
  .nav-list a { padding: 14px 8px; border-radius: var(--radius-sm); font-size: 1rem; border-bottom: 1px solid var(--line); }
  /* 最后一项（Kontak）不要下边框；.nav-list 的第 7 个 li 是语言切换，要跳过 */
  .nav-list > li:nth-last-child(2) > a { border-bottom: 0; }
  .nav-lang-mobile { display: flex; gap: 8px; padding: 14px 8px 4px; }
  .nav-lang-mobile a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
  }
  .nav-lang-mobile a[aria-current="true"] { background: var(--brand-100); border-color: var(--brand-100); }

  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { border-radius: var(--radius); }
  .hero-badge { left: 12px; bottom: 12px; }
  .why-list { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
}

@media (min-width: 901px) {
  .nav-lang-mobile { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .brand-sub { display: none; }
}

/* ---------- 17. 工具类 ---------- */
.u-mt { margin-top: 12px; }
.u-mt-lg { margin-top: 22px; }
.u-mb-0 { margin-bottom: 0; }
.u-center { justify-content: center; }

/* ---------- 18. 动效 ----------
   注意：淡入效果只在 <html class="js"> 时生效（由 <head> 里的一行脚本添加），
   这样即使 JavaScript 被禁用，内容也不会被隐藏。 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. 打印 ---------- */

@media print {
  .site-header, .mobile-bar, .hero-cta, .btn { display: none !important; }
  body { padding: 0; color: #000; }
  .section { padding-block: 20px; }
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
