/* ============================================================
   湖南意之科技 官网占位模板 — 苹果风极简样式
   配色 / 字体参考苹果官网：白底、近黑文字、克制蓝链接、浅灰分区
   部署前请把所有占位文案、颜色变量、图片替换为贵司真实内容
   ============================================================ */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f5f5f7;
  --c-ink: #1d1d1f;
  --c-ink-soft: #6e6e73;
  --c-link: #0066cc;
  --c-line: #d2d2d7;
  --nav-h: 52px;
  --maxw: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav--scrolled { border-bottom-color: var(--c-line); }
.nav__inner {
  width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; }
.nav__logo-img { height: 26px; width: auto; display: block; }
.nav__logo-text { font-size: 17px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; color: var(--c-ink); opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  font-size: 13px; background: var(--c-link); color: #fff;
  padding: 6px 14px; border-radius: 980px; transition: filter 0.2s;
}
.nav__cta:hover { filter: brightness(1.08); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--c-ink); transition: 0.3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 22px 60px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.30) 45%, rgba(245,245,247,0.92) 100%),
    url(../assets/hero.webp);
  background-size: cover;
  background-position: center;
}
.hero__eyebrow { font-size: 19px; font-weight: 600; color: var(--c-link); margin-bottom: 8px; }
.hero__title {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero__subtitle {
  font-size: clamp(17px, 2.4vw, 22px); color: var(--c-ink-soft);
  max-width: 600px; margin: 0 auto 26px;
}
.hero__actions { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; font-size: 12px; color: var(--c-ink-soft);
  letter-spacing: 1px; animation: bob 2s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------------- 链接箭头 ---------------- */
.link-arrow { color: var(--c-link); font-size: 17px; transition: opacity 0.2s; }
.link-arrow:hover { opacity: 0.7; }
.link-arrow--dark { font-size: 15px; }
/* 产品卡「了解更多」透明幽灵按钮 */
.card .link-arrow--ghost {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 980px;
  color: var(--c-link);
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.card .link-arrow--ghost:hover { background: var(--c-bg-soft); border-color: var(--c-ink-soft); opacity: 1; }

/* ---------------- 通用 section ---------------- */
.section { padding: 110px 0; }
.section--light { background: var(--c-bg-soft); }
.section__title {
  font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; text-align: center;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.section__lead { text-align: center; color: var(--c-ink-soft); font-size: 19px; margin-bottom: 56px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: 20px; padding: 38px 30px; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.09); }
.card__icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--c-link); }
.card__icon svg { width: 100%; height: 100%; }
.card__img { width: 100%; max-width: 200px; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 auto 18px; display: block; border-radius: 14px; }
.card__img--left { object-position: left center; }
.card__title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.card__desc { color: var(--c-ink-soft); font-size: 15px; margin-bottom: 18px; }

/* ---------------- 大图功能区块 ---------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; max-width: 1100px; margin: 0 auto; padding: 100px 22px; }
.feature--reverse .feature__media { order: 2; }
.feature__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.feature__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__eyebrow { color: var(--c-link); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.feature__desc { color: var(--c-ink-soft); font-size: 18px; margin-bottom: 20px; }

/* ---------------- 案例弹层（Apple 风模态） ---------------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s var(--ease); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal [data-reveal] { opacity: 1; transform: none; }
.modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0.96);
  width: min(960px, 92vw); max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 22px; padding: 48px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  opacity: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.modal__close {
  position: absolute; top: 18px; right: 20px; width: 42px; height: 42px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 50%;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: var(--c-ink); cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.modal__close svg { width: 18px; height: 18px; display: block; }
.modal__close:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.18); }
.modal__head { text-align: center; margin-bottom: 36px; }
.modal__eyebrow { color: var(--c-link); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.modal__title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.modal__lead { color: var(--c-ink-soft); font-size: 17px; }
.modal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { border-radius: 16px; overflow: hidden; background: var(--c-bg); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.case-card__thumb { position: relative; height: 132px; display: flex; align-items: flex-end; padding: 16px; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 0.02em; overflow: hidden; }
.case-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.case-card__thumb > :not(img) { position: relative; z-index: 1; }
.case-card__body { padding: 18px 18px 22px; }
.case-card__tag { display: inline-block; font-size: 12px; color: var(--c-link); margin-bottom: 8px; }
.case-card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.case-card__desc { color: var(--c-ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
@media (max-width: 720px) {
  .modal__panel { padding: 36px 20px; }
  .modal__grid { grid-template-columns: 1fr; }
}

/* ---------------- 数据条（浅色，融入主体） ---------------- */
.stats { background: var(--c-bg); color: var(--c-ink); padding: 80px 0; border-top: 1px solid var(--c-line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(38px, 6vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: 15px; color: var(--c-ink-soft); margin-top: 6px; }

/* ---------------- 关于 ---------------- */
.about { max-width: 760px; }
.about__text { font-size: 20px; color: var(--c-ink-soft); text-align: center; line-height: 1.7; }

/* ---------------- CTA ---------------- */
.cta { background: var(--c-bg-soft); padding: 110px 0; text-align: center; }
.cta__title { font-size: clamp(30px, 5vw, 48px); font-weight: 700; margin-bottom: 14px; }
.cta__sub { font-size: 19px; color: var(--c-ink-soft); margin-bottom: 30px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 980px; font-size: 17px; transition: filter 0.2s, transform 0.2s; }
.btn--primary { background: var(--c-link); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cta__note { margin-top: 22px; font-size: 14px; color: var(--c-ink-soft); }

/* ---------------- 横向滚动画廊 ---------------- */
.carousel { padding: 40px 0 50px; }
.section--light .carousel { padding-bottom: 0; }
.carousel__title {
  font-size: clamp(21px, 3vw, 28px); font-weight: 700; text-align: center;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  justify-content: safe center;
  max-width: 1144px; margin: 0 auto;
  padding: 10px 22px 28px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: 0 0 auto; width: 260px; scroll-snap-align: start;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  border: none; padding: 0; cursor: pointer; text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.carousel__card:hover { transform: translateY(-7px); box-shadow: 0 18px 44px rgba(0,0,0,0.13); }
.carousel__thumb {
  position: relative; height: 190px; display: flex; align-items: flex-end; padding: 18px;
  color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 0.02em;
  background-size: cover; background-position: center;
}
.carousel__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__caption { padding: 14px 18px; font-size: 14px; color: var(--c-ink-soft); text-align: center; }

/* ---------------- Lightbox 图片放大 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: none;
}
.lightbox.is-open { display: block; }
.lightbox__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.52);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.lightbox.is-open .lightbox__overlay { opacity: 1; }
.lightbox__panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 92vw; max-height: 88vh; background: #fff;
  border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  overflow: hidden; opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lightbox__stage {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.lightbox__stage > img,
.lightbox__stage > .carousel__thumb {
  max-width: 90vw; max-height: 86vh; object-fit: contain;
  width: auto; height: auto; border-radius: 0;
}
.lightbox__stage > .carousel__thumb {
  width: 80vw; height: 70vh; background-size: cover; border-radius: 0;
  display: flex; align-items: flex-end; padding: 24px; font-size: 24px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__close svg { width: 20px; height: 20px; display: block; }
.lightbox__close:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.70); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__nav svg { width: 22px; height: 22px; display: block; }
.lightbox__nav:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.70); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 36px; height: 36px; }
  .lightbox__nav svg { width: 18px; height: 18px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------------- 页脚 ---------------- */
.footer { background: var(--c-bg); border-top: 1px solid var(--c-line); padding: 56px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand { display: flex; align-items: center; justify-content: flex-start; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.footer__brand-text { font-size: 17px; font-weight: 600; white-space: nowrap; }
.footer__slogan { font-size: 13px; color: var(--c-ink-soft); text-align: left; }
.footer__col h4 { font-size: 13px; color: var(--c-ink-soft); margin-bottom: 12px; }
.footer__col a { display: block; font-size: 13px; color: var(--c-ink); opacity: 0.8; margin-bottom: 9px; }
.footer__col a:hover { opacity: 1; }
.footer__addr { font-size: 12px; color: var(--c-ink-soft); line-height: 1.5; letter-spacing: 0.01em; margin-top: 6px; max-width: 220px; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-ink-soft); }

/* ---------------- 滚动渐显动画 ---------------- */
[data-reveal] { opacity: 0; transform: translateY( 28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 尊重「减少动态效果」偏好：关闭过渡与循环动画，直接显示内容 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll { animation: none !important; }
}


/* ---------------- 响应式 ---------------- */
@media (max-width: 834px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
    padding: 10px 22px 18px; border-bottom: 1px solid var(--c-line);
  }
  .nav__links.is-open a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--c-bg-soft); }
  .grid--3 { grid-template-columns: 1fr; }
  .carousel__card { width: 210px; }
  .carousel__thumb { height: 155px; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 70px 22px; }
  .feature--reverse .feature__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .section { padding: 80px 0; }
}
