/* ==========================================================================
   耒欧 LEIOU · 前台视觉层 site.css
   说明：导航 / 首屏轮播 / 产品中心 / 品牌优势 / 线索表单 / 新闻 / 联系 / 页脚
   配色：蓝白渐变（浅色底 + 清透蓝 + 深蓝渐变带），留白充足、动效克制
   ========================================================================== */

/* ---------- 1. 顶部导航（浅色主题：透明 → 白玻璃） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  /* 始终带一层白色毛玻璃，图片轮播被它托住，导航文字在深浅图上都清晰 */
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background-color .55s var(--ease), border-color .55s var(--ease),
              box-shadow .55s var(--ease), backdrop-filter .55s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16, 47, 86, .4);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); position: relative; }

/* 品牌标识 */
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--navy-900); }
.brand__cn { font-family: var(--font-serif); font-size: 23px; letter-spacing: .18em; line-height: 1; }
.brand__en { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-600); line-height: 1; }

/* 导航链接 + 响应式显隐（用媒体查询而非工具类，避免与 Tailwind CDN 加载顺序冲突） */
.nav-desktop { display: none; }
/* 顶部只有品牌与导航，导航右对齐，右侧留白 */
@media (min-width: 1024px) { .nav-desktop { display: flex; margin-left: auto; } .mobile-menu { display: none !important; } }

.nav-list { display: flex; align-items: center; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; font-size: 13.5px; letter-spacing: .12em; color: var(--text-700);
  padding: 6px 0; transition: color .4s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--grad-blue); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* 汉堡按钮 */
.menu-btn {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-strong); border-radius: 4px;
}
.menu-btn span {
  display: block; width: 18px; height: 1.5px; background: var(--navy-800);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
/* 展开态变为 ✕（位移量 = 线高 + 间距 = 1.5 + 6 = 7.5px，保证两线在中心交叉） */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* 桌面端隐藏汉堡按钮（选择器加权，确保覆盖 .menu-btn 的基础 display） */
@media (min-width: 1024px) { .site-header__inner .menu-btn { display: none; } }

/* 移动端抽屉菜单（浅蓝白面板） */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
  padding: calc(var(--header-h) + 40px) 32px 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .45s var(--ease), visibility .45s var(--ease), transform .45s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-family: var(--font-serif); font-size: 20px;
  letter-spacing: .12em; color: var(--navy-900);
}
.mobile-menu__link i { font-size: 12px; color: var(--accent-500); }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; color: var(--text-400); font-size: 12.5px; letter-spacing: .1em; }

/* ---------- 2. 首屏 Hero：纯图片轮播（图上不叠文字 / 蒙版，保证画面清晰通透） ---------- */
.hero {
  position: relative;
  /* 图片从固定导航栏下方开始，避免压住图片自带的顶部标题 */
  padding-top: var(--header-h);
  background: var(--surface-1);
}
/* 舞台：16:9 比例；只有超宽屏才轻微裁切，尽量保留完整构图 */
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(92vh, 1000px);
  overflow: hidden;
  background: var(--surface-1);
}
@media (max-width: 640px) {
  .hero__stage { min-height: 240px; }
}
/* 图片层：双图层交叉淡入，无任何遮罩 / 滤镜，保持原始画质 */
.hero__photo {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  /* 顶部对齐：图片自带的标题一般在上方，裁切时优先保住顶部内容 */
  background-position: center top;
  background-size: cover;
  opacity: 0;
  transition: opacity .7s var(--ease);
  will-change: opacity;
}
.hero__photo.is-on { opacity: 1; }

/* 首屏轮播控制：左右箭头 */
.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
  color: var(--navy-800); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -14px rgba(16, 47, 86, .55);
  opacity: .9; transition: all .35s var(--ease);
}
.hero__nav:hover { opacity: 1; background: #fff; color: var(--accent-600); transform: translateY(-50%) scale(1.05); }
.hero__nav--prev { left: clamp(12px, 3vw, 44px); }
.hero__nav--next { right: clamp(12px, 3vw, 44px); }
@media (max-width: 640px) {
  .hero__nav { width: 38px; height: 38px; }
}

/* 圆点指示器：毛玻璃胶囊，浮在图片上但不遮挡内容 */
.hero__dots {
  position: absolute; left: 50%; bottom: clamp(12px, 2.2vw, 26px); transform: translateX(-50%); z-index: 4;
  display: flex; gap: 9px; padding: 7px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -18px rgba(16, 47, 86, .6);
}
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(18, 59, 110, .3); transition: all .35s var(--ease);
}
.hero__dots button:hover { background: rgba(18, 59, 110, .55); }
.hero__dots button.is-active { background: var(--accent-500); width: 24px; border-radius: 4px; }

/* ---------- 2.1 品牌主张（文字独立成块，不压图） ---------- */
.hero-intro {
  padding-block: clamp(52px, 6.4vw, 96px);
  background: var(--surface-0);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-intro .eyebrow { justify-content: center; }
.hero-intro__title {
  margin: 22px auto 0; max-width: 800px;
  font-size: clamp(1.75rem, 4vw, 3.1rem); line-height: 1.3;
}
.hero-intro__sub {
  margin: 22px auto 0; max-width: 580px;
  font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 2.1; color: var(--text-500);
}
.hero-intro__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 3. 产品中心 ---------- */
.product-grid { display: grid; gap: 26px; margin-top: 56px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-200); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-1); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: 10.5px;
  letter-spacing: .16em; background: var(--grad-blue); color: #fff; border-radius: 2px;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 20px 20px; }
.product-card__name { margin: 0; font-family: var(--font-serif); font-size: 1.06rem; letter-spacing: .05em; color: var(--navy-900); }
.product-card__desc { margin: 10px 0 0; font-size: 12.8px; line-height: 1.9; color: var(--text-500); flex: 1; }
.product-card__meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__spec { font-size: 11.5px; letter-spacing: .08em; color: var(--text-400); }
.product-card__more {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .1em;
  color: var(--accent-600); background: none; border: 0; padding: 0;
  transition: color .35s var(--ease), gap .35s var(--ease);
}
.product-card__more:hover { color: var(--accent-700); gap: 10px; }
.product-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--text-400); font-size: 13.5px; letter-spacing: .1em; border: 1px dashed var(--line-strong); border-radius: 6px; background: rgba(255, 255, 255, .6); }

/* 分页（结构已预留，后台可无限新增） */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; }
.pager__btn {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-700);
  border-radius: 4px; font-size: 12.5px; letter-spacing: .08em; transition: all .35s var(--ease);
}
.pager__btn:hover:not([disabled]) { border-color: var(--accent-400); color: var(--accent-600); }
.pager__btn.is-active { background: var(--grad-blue); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -14px rgba(37, 99, 196, .9); }
.pager__btn[disabled] { opacity: .35; cursor: not-allowed; }
.pager__info { margin-left: 14px; font-size: 12px; color: var(--text-400); letter-spacing: .1em; }

/* 产品详情弹窗 */
.product-modal { max-width: 900px; }
.product-modal__body { display: grid; }
@media (min-width: 768px) { .product-modal__body { grid-template-columns: 1fr 1fr; } }
.product-modal__media { background: var(--surface-1); }
.product-modal__media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.product-modal__info { padding: 40px 34px 36px; }
.product-modal__cat { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-600); }
.product-modal__name { margin: 12px 0 0; font-family: var(--font-serif); font-size: 1.55rem; letter-spacing: .04em; color: var(--navy-900); }
.product-modal__desc { margin: 16px 0 0; font-size: 13.5px; line-height: 2; color: var(--text-500); }
.product-modal__params { margin-top: 24px; border-top: 1px solid var(--line); }
.product-modal__param { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.8px; }
.product-modal__param dt { width: 84px; flex: none; color: var(--text-400); letter-spacing: .08em; }
.product-modal__param dd { margin: 0; color: var(--text-900); }
.product-modal__feats { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.product-modal__feats li { padding: 5px 12px; font-size: 11.5px; letter-spacing: .08em; background: var(--accent-100); color: var(--accent-700); border-radius: 2px; }
.product-modal__cta { margin-top: 30px; }

/* ---------- 5. 品牌优势（深蓝渐变色带 + 玻璃卡片） ---------- */
.adv-grid { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }
.adv-card {
  padding: 38px 28px; border-radius: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.adv-card:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); transform: translateY(-4px); }
.adv-card__icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .38); color: #fff; font-size: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.adv-card__no { font-size: 11px; letter-spacing: .3em; color: rgba(255, 255, 255, .55); }
.adv-card h3 { margin: 22px 0 12px; font-family: var(--font-serif); font-size: 1.08rem; letter-spacing: .14em; color: #fff; }
.adv-card p { margin: 0; font-size: 12.8px; line-height: 2; color: rgba(255, 255, 255, .72); }

/* ---------- 6. 客户线索表单 ---------- */
.lead__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .lead__grid { grid-template-columns: .85fr 1fr; gap: 80px; } }
.lead__form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.lead__row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .lead__row--2 { grid-template-columns: 1fr 1fr; } }
.lead__tip {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 4px;
  background: var(--surface-1); border-left: 2px solid var(--accent-500);
  font-size: 12.5px; line-height: 1.9; color: var(--text-500);
}
.lead__tip i { color: var(--accent-500); margin-top: 4px; }
/* 提交成功态 */
.lead__success { text-align: center; padding: 40px 10px; }
.lead__success i { font-size: 40px; color: var(--accent-500); }
.lead__success h4 { margin: 20px 0 10px; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .1em; color: var(--navy-900); }
.lead__success p { margin: 0; font-size: 13px; color: var(--text-500); line-height: 1.9; }

/* ---------- 7. 新闻资讯（模块已删除） ---------- */

/* ---------- 8. 联系我们 ---------- */
.contact__grid { display: grid; gap: 40px; margin-top: 52px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { padding: 28px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); transition: box-shadow .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease); }
.contact-item:hover { border-color: var(--accent-200); background: #fff; box-shadow: var(--shadow-sm); }
.contact-item__icon { color: var(--accent-500); font-size: 15px; }
.contact-item dt { margin: 16px 0 10px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-400); }
.contact-item dd { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text-900); letter-spacing: .02em; }
.contact-item dd a { transition: color .3s var(--ease); }
.contact-item dd a:hover { color: var(--accent-600); }

/* ---------- 9. 页脚（深蓝渐变） ---------- */
.site-footer { background: var(--grad-navy); color: rgba(255, 255, 255, .62); padding-top: 66px; }
/* 底部信息条：版权 + 备案号 + 后台登录入口 */
.site-footer__meta { display: flex; align-items: center; gap: 10px; }
.site-footer__meta i { font-style: normal; margin-inline: 8px; opacity: .5; }
.site-footer__admin {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px;
  color: rgba(255, 255, 255, .78); transition: all .35s var(--ease);
}
.site-footer__admin:hover { border-color: var(--accent-300); background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer__admin i { margin: 0; opacity: 1; font-size: 11px; }
.site-footer__top { display: grid; gap: 40px; padding-bottom: 52px; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.6fr .8fr .8fr 1fr; gap: 48px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__en { color: var(--accent-300); }
.site-footer__slogan { margin: 20px 0 0; max-width: 320px; font-size: 12.8px; line-height: 2; color: rgba(255, 255, 255, .45); }
.site-footer h4 { margin: 0 0 20px; font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-300); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 12px; font-size: 13px; }
.site-footer ul a { transition: color .3s var(--ease); }
.site-footer ul a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .42);
}
.site-footer__bottom a:hover { color: #fff; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 4px;
  background: rgba(255, 255, 255, .94); color: var(--accent-600); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .45s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--grad-blue); color: #fff; border-color: transparent; }
