/* =========================================================================
   杭州羊之甘林企业管理有限公司 · 官方网站
   设计语言：对标 Apple 官网（apple.com）市场页
   纯静态 · 无构建工具 · 所有资源本地化
   ========================================================================= */

/* ---------- 设计变量 ---------- */
:root {
  /* 颜色 */
  --color-text:        #1d1d1f;   /* Apple 主文字 近黑 */
  --color-text-soft:   #6e6e73;   /* 次级灰文字 */
  --color-bg:          #ffffff;
  --color-bg-soft:     #f5f5f7;   /* Apple 浅灰背景 */
  --color-bg-dark:     #000000;
  --color-accent:      #0071e3;   /* Apple 蓝 */
  --color-accent-hover:#0077ed;
  --color-link:        #2997ff;
  --color-border:      #d2d2d7;

  /* 字体：系统字体栈，中文苹方 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;

  /* 布局 */
  --nav-height: 48px;
  --max-width: 1024px;
  --content-width: 692px;

  /* 圆角 */
  --radius-pill: 980px;
  --radius-lg: 18px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点定位时为吸顶导航留出空间 */
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--color-link); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* 板块基础：每屏独立、上下大留白、内容居中 */
.section {
  padding: 100px 22px;
  text-align: center;
}
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #f5f5f7; }

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Apple 式排版 ---------- */
.eyebrow {
  font-size: 21px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.subhead {
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--color-text-soft);
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto 24px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-desc {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* ---------- Apple 胶囊按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); }

/* 文字链接式按钮 “了解更多 ›” */
.btn--text {
  color: var(--color-accent);
  font-size: 17px;
  padding: 6px 0;
  background: none;
}
.btn--text:hover { text-decoration: underline; }

/* 链接组：两个相邻 CTA */
.cta-group {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================================
   导航栏 · 半透明毛玻璃吸顶
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo svg { width: 22px; height: 22px; }

.nav__links {
  display: flex;
  gap: 34px;
}
.nav__links a {
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity .2s ease;
}
.nav__links a:hover { opacity: 1; }
/* 当前所在板块高亮（scrollspy，由 main.js 切换 .is-active） */
.nav__links a.is-active { opacity: 1; color: var(--color-accent); font-weight: 500; }

/* 移动端汉堡按钮 */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle span:nth-child(1) { top: 10px; }
.nav__toggle span:nth-child(2) { top: 16px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 833px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 8px 22px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }
  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
  }
}

/* =========================================================================
   Hero 首屏
   ========================================================================= */
.hero {
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 22px 80px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 55%, #ededf0 100%);
  position: relative;
}
.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #1d1d1f 0%, #434345 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--color-text-soft);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.35;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-soft);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 18px; height: 18px; opacity: 0.6; }
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================================
   产品展示 · 数据驱动模块
   ========================================================================= */
.product {
  padding: 110px 22px;
  text-align: center;
}
.product:nth-child(even) { background: var(--color-bg-soft); }

.product__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.product__status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.product__status--coming {
  background: #f0e8d8;
  color: #8a6d3b;
}
.product__status--live {
  background: #e3f3e6;
  color: #1d7a33;
}
.product__name {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-bottom: 10px;
}
.product__tagline {
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}
.product__desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--color-text-soft);
  max-width: 600px;
  margin: 0 auto 26px;
  line-height: 1.55;
}
.product__media {
  max-width: 720px;
  margin: 0 auto 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}
.product__media img { width: 100%; }

/* =========================================================================
   业务领域卡片网格
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
  text-align: left;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 833px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ---------- 真实数据高亮条 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 56px auto 0;
}
.facts .fact {
  padding: 8px 0;
  position: relative;
}
.facts .fact:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--color-border);
}
.fact__num {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #0071e3 0%, #5e44e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fact__unit { font-size: 0.42em; font-weight: 600; margin-left: 2px; }
.fact__label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--color-text-soft);
}
@media (max-width: 540px) {
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .facts .fact:not(:last-child)::after { display: none; }
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.card__icon {
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--color-accent);
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card__text {
  font-size: 15px;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* =========================================================================
   关于我们
   ========================================================================= */
.about__body {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: left;
}
.about__body p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 22px;
}
.about__body p:last-child { margin-bottom: 0; }

/* =========================================================================
   资质与信息 · 信息表
   ========================================================================= */
.info-table {
  max-width: var(--content-width);
  margin: 16px auto 0;
  text-align: left;
  border-top: 1px solid var(--color-border);
}
.info-row {
  display: flex;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border);
  gap: 20px;
}
.info-row__label {
  flex: 0 0 168px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.info-row__value {
  flex: 1;
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.5;
  word-break: break-word;
}
@media (max-width: 540px) {
  .info-row { flex-direction: column; gap: 4px; }
  .info-row__label { flex: none; }
}

/* =========================================================================
   联系我们
   ========================================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--content-width);
  margin: 16px auto 0;
  text-align: left;
}
@media (max-width: 540px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.section--dark .contact__item-label {
  font-size: 14px;
  color: #a1a1a6;
  margin-bottom: 8px;
}
.contact__item-value {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.contact__item-value a { color: var(--color-link); }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--color-bg-soft);
  color: var(--color-text-soft);
  font-size: 12px;
  padding: 36px 22px;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer__links a {
  color: var(--color-text-soft);
}
.footer__links a:hover { color: var(--color-text); text-decoration: underline; }
.footer__copy {
  margin-top: 12px;
  text-align: center;
  color: #86868b;
}
.footer__beian a { color: #86868b; }

/* =========================================================================
   滚动渐入动画 (IntersectionObserver 控制 .is-visible)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 卡片依次延迟，形成阶梯渐入 */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* 尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-hint { animation: none; }
}

/* =========================================================================
   隐私政策页（沿用通用排版）
   ========================================================================= */
.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 22px 80px;
  text-align: left;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--color-text-soft);
  font-size: 15px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 12px;
}
.legal p, .legal li {
  font-size: 17px;
  color: #333336;
  line-height: 1.6;
  margin-bottom: 14px;
}
.legal ul { padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--color-accent); }
.legal__back {
  display: inline-block;
  margin-top: 40px;
  color: var(--color-accent);
  font-size: 17px;
}
