/* 良食云 AI+ 官网样式：深色平涂首屏 + 无衬线大字 + 编辑排版骨架（细线、编号、留白），克制视差 */

:root {
  --color-paper: #F7F4EE;
  --color-ink: #1D1A15;
  --color-ink-soft: #57503F;
  --color-ink-faint: #8A8272;
  --color-accent: #E37318;
  --color-hero: #0C1220;
  --color-hero-text: #F2EFE7;
  --color-hero-muted: #8E99AE;
  --color-dark: #161310;
  --color-dark-muted: #A79E8E;
  --color-line: #DED7C8;
  --color-line-dark: rgba(242, 239, 231, 0.14);
  --container-max: 1120px;
  --header-h: 76px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(227, 115, 24, 0.25);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 顶部导航：首屏上透明白标，滚过首屏后纸面深标 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 20px;
  width: auto;
  display: none;
}

.site-header:not(.is-scrolled) .brand-logo--white {
  display: block;
}

.site-header.is-scrolled .brand-logo--dark {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(242, 239, 231, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-header.is-scrolled .site-nav a {
  color: var(--color-ink-soft);
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--color-ink);
}

/* ===== 首屏：深色平涂，无辉光无网格 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-hero);
  color: var(--color-hero-text);
  padding: calc(var(--header-h) + 32px) 0 120px;
}

/* 角落刻度线：版面框线，低存在感 */
.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0.35;
}

.hero-corner--tl {
  top: calc(var(--header-h) + 20px);
  left: 24px;
  border-top: 1px solid var(--color-hero-text);
  border-left: 1px solid var(--color-hero-text);
}

.hero-corner--br {
  bottom: 24px;
  right: 24px;
  border-bottom: 1px solid var(--color-hero-text);
  border-right: 1px solid var(--color-hero-text);
}

/* 首屏氛围层：网格、辉光、圆环、描边大字，克制低存在感，靠速度差营造纵深 */
.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(242, 239, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 231, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 55% 45%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 25%, transparent 72%);
  pointer-events: none;
  will-change: transform;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.hero-glow--blue {
  width: 560px;
  height: 560px;
  right: 8%;
  top: 10%;
  background: rgba(43, 127, 255, 0.26);
}

.hero-glow--warm {
  width: 360px;
  height: 360px;
  left: -6%;
  bottom: 6%;
  background: rgba(227, 115, 24, 0.13);
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 231, 0.12);
  pointer-events: none;
  will-change: transform;
}

.hero-ring--a {
  width: 420px;
  height: 420px;
  right: 14%;
  top: 14%;
}

.hero-ring--b {
  width: 700px;
  height: 700px;
  right: -6%;
  top: 0;
  border-style: dashed;
  border-color: rgba(43, 127, 255, 0.2);
}

.hero-outline-text {
  position: absolute;
  left: -2%;
  bottom: 5%;
  font-size: clamp(90px, 13vw, 180px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.08);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

/* 竖排文字条：置于左侧空白区，反向漂移 */
.hero-vertical {
  position: absolute;
  left: 24px;
  top: 50%;
  margin-top: -140px;
  writing-mode: vertical-rl;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: rgba(242, 239, 231, 0.35);
  user-select: none;
  will-change: transform;
}

/* 云 Logo 景深层：远景小而慢且虚，主层大而实，前景斜切条快而微虚 —— 2渲3视差 */
.hero-cloud {
  position: absolute;
  height: auto;
  will-change: transform;
}

.hero-cloud--main {
  right: -14%;
  top: 58%;
  width: min(540px, 44vw);
  margin-top: min(-270px, -22vw);
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.5));
  animation: hero-float 7s ease-in-out infinite;
}

/* 呼吸浮动：用独立的 translate 属性，与 JS 视差的 transform 互不干扰 */
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

.hero-cloud--back-a {
  left: 4%;
  bottom: 10%;
  width: 190px;
  opacity: 0.16;
  filter: blur(3px);
}

.hero-cloud--back-b {
  right: 30%;
  top: 12%;
  width: 130px;
  opacity: 0.12;
  filter: blur(4px);
}

/* 前景斜切条：全境封锁式斜切图形，最大幅度视差 + 轻微景深虚化 */
.hero-shard {
  position: absolute;
  display: block;
  will-change: transform;
  pointer-events: none;
}

/* 斜切用 clip-path 实现，把 transform 留给视差位移 */
.hero-shard--a {
  left: -60px;
  bottom: 16%;
  width: 340px;
  height: 14px;
  background: var(--color-accent);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.hero-shard--b {
  right: 6%;
  top: 34%;
  width: 180px;
  height: 7px;
  background: rgba(242, 239, 231, 0.22);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  filter: blur(1px);
}

/* ===== 全页通用装饰层：每个区块都有远景云（慢、虚、淡）与前景斜切条（快、实、带投影） ===== */
.deco-cloud {
  position: absolute;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

.deco-shard {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
  background: var(--color-accent);
}

.deco-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* 各区圆环：浅色区用墨线，深色区用虚线 */
.deco-ring--dir {
  left: -6%;
  top: -8%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(29, 26, 21, 0.1);
}

.deco-glow--phi {
  left: -8%;
  bottom: -12%;
  width: 420px;
  height: 420px;
  background: rgba(43, 127, 255, 0.15);
}

.deco-ring--phi {
  right: 6%;
  top: -15%;
  width: 460px;
  height: 460px;
  border: 1px dashed rgba(242, 239, 231, 0.14);
}

.deco-ring--contact {
  right: -4%;
  top: -10%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(29, 26, 21, 0.1);
}

/* 业务方向：浅色底，远景云极淡，前景橙色斜切条带投影 */
.deco-cloud--dir-a {
  right: -90px;
  top: 40px;
  width: 340px;
  opacity: 0.1;
  filter: blur(2px) drop-shadow(0 24px 48px rgba(29, 26, 21, 0.12));
}

.deco-cloud--dir-b {
  left: -70px;
  bottom: 60px;
  width: 220px;
  opacity: 0.07;
  filter: blur(3px) drop-shadow(0 20px 40px rgba(29, 26, 21, 0.1));
}

.deco-shard--dir {
  right: 6%;
  top: 14%;
  width: 200px;
  height: 10px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  filter: drop-shadow(0 10px 22px rgba(227, 115, 24, 0.35));
}

/* 品牌理念：深色底，远景云补左上空白，前景斜切条半透明橙 */
.deco-cloud--phi {
  left: -60px;
  top: -40px;
  width: 240px;
  opacity: 0.11;
  filter: blur(3px);
}

.deco-shard--phi {
  left: -40px;
  top: 26%;
  width: 240px;
  height: 11px;
  opacity: 0.85;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5));
}

/* 联系我们：浅色底，左下远景云，右下小斜切条 */
.deco-cloud--contact {
  left: -80px;
  bottom: -30px;
  width: 260px;
  opacity: 0.09;
  filter: blur(2px) drop-shadow(0 20px 40px rgba(29, 26, 21, 0.1));
}

.deco-shard--contact {
  right: 9%;
  bottom: 24%;
  width: 140px;
  height: 8px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  filter: drop-shadow(0 8px 18px rgba(227, 115, 24, 0.3));
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* 眉头小标：橙色细线 + 宽字距 */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--color-hero-muted);
  margin-bottom: 40px;
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 5px;
  background: var(--color-accent);
  transform: skewX(-40deg);
  flex-shrink: 0;
}

.eyebrow-short {
  display: none;
}

/* 无衬线大标题：两行独立容器，断行点是设计好的 */
.hero-title {
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin-bottom: 44px;
}

.hero-title-line {
  display: block;
  font-size: clamp(44px, 7vw, 84px);
  white-space: nowrap;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-hero-muted);
  max-width: 460px;
  margin-bottom: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* 主按钮：直角橙块，无渐变无发光 */
.hero-cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 16px 44px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-cta:hover {
  background: #C96412;
  transform: translateY(-2px);
}

/* 次按钮：下划线文字链 */
.hero-ghost {
  font-size: 15px;
  color: var(--color-hero-text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(242, 239, 231, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-ghost:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ===== 通用区块：斜切接缝（Stripe 式），后一块以斜边盖住前一块 ===== */
.section {
  position: relative;
  padding: 128px 0;
  overflow: hidden;
}

.section-directions,
.section-philosophy,
.section-contact {
  margin-top: -4vw;
  padding-top: calc(128px + 3vw);
}

/* 斜边方向交替，形成折线节奏 */
.section-directions {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

.section-philosophy {
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
  z-index: 1;
}

.section-contact {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  background: var(--color-paper);
  z-index: 2;
}

/* 接缝内阴影：沿斜边上沿的渐变带，让区块像纸层一样叠压（clip-path 会裁掉 drop-shadow，故用内阴影） */
.section-directions::before,
.section-philosophy::before,
.section-contact::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(29, 26, 21, var(--seam-shadow, 0.12)), transparent);
}

.section-directions::before {
  --seam-shadow: 0.16;
}

.section-philosophy::before {
  --seam-shadow: 0.32;
}

.section-contact::before {
  --seam-shadow: 0.14;
}

.site-footer::before {
  --seam-shadow: 0.07;
}

/* Curtain 过渡：理念区钉住，联系区从其上方滑过（矮视口与移动端禁用） */
@media (min-width: 861px) and (min-height: 720px) {
  .section-philosophy {
    position: sticky;
    top: 0;
  }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-ink-faint);
  margin-bottom: 28px;
}

/* 斜切条标记：替代编号的图形签名 */
.section-mark {
  display: inline-block;
  width: 18px;
  height: 6px;
  background: var(--color-accent);
  transform: skewX(-40deg);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-bottom: 72px;
}

/* ===== 01 业务方向 ===== */

.direction-list {
  border-top: 1px solid var(--color-line);
}

/* 左右分栏：标题与说明对齐成网格，平面设计式排版 */
.direction-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: baseline;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-line);
}

/* 背景描边大数字：作为景深装饰层缓慢漂移，悬停条目时淡橙填充 */
.direction-num {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -0.68em;
  font-size: clamp(88px, 9vw, 132px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(227, 115, 24, 0.28);
  user-select: none;
  pointer-events: none;
  will-change: transform;
  transition: color 0.3s ease;
}

.direction-item:hover .direction-num {
  color: rgba(227, 115, 24, 0.14);
}

.direction-item h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.direction-item p {
  font-size: 15px;
  color: var(--color-ink-soft);
  max-width: 560px;
}

/* ===== 02 品牌理念：深色墨块，平涂无渐变 ===== */
.section-philosophy {
  background: var(--color-dark);
  color: var(--color-paper);
}

.philosophy-watermark {
  position: absolute;
  right: -150px;
  bottom: -170px;
  width: 500px;
  opacity: 0.06;
  pointer-events: none;
  will-change: transform;
}

.philosophy-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 52px;
}

.philosophy-line {
  display: block;
}

.philosophy-text {
  max-width: 620px;
}

.philosophy-text p {
  font-size: 15px;
  color: var(--color-dark-muted);
  margin-bottom: 22px;
}

.philosophy-closing {
  color: var(--color-paper) !important;
  font-weight: 600;
}

/* ===== 03 联系我们 ===== */
.section-contact {
  border-top: none;
}

.contact-lead {
  font-size: 16px;
  color: var(--color-ink-soft);
  max-width: 520px;
  margin-bottom: 64px;
  margin-top: -36px;
}

.contact-info {
  border-top: 1px solid var(--color-line);
  max-width: 720px;
}

.contact-row {
  display: flex;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}

.contact-row dt {
  flex-shrink: 0;
  width: 120px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-ink-faint);
  padding-top: 2px;
}

.contact-row dd {
  font-size: 16px;
  color: var(--color-ink);
}

.contact-mail {
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(227, 115, 24, 0.5);
  transition: color 0.2s ease;
}

.contact-mail:hover {
  color: var(--color-accent);
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--color-paper);
  margin-top: -4vw;
  padding: calc(44px + 4vw) 0 44px;
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
  border-top: none;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
  font-size: 13px;
  color: var(--color-ink-faint);
}

.footer-logo {
  height: 15px;
  width: auto;
  opacity: 0.8;
}

.footer-icp {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: var(--color-accent);
}

/* ===== 入场动画：上移淡入，首屏逐行 stagger ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax],
[data-depth] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cloud--main {
    animation: none;
  }
}

/* ===== 移动端：断行点全部显式控制 ===== */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 96px;
    align-items: flex-start;
  }

  /* 云 Logo 退到首屏底部，作为收尾视觉而非并列元素；景深层在移动端只留主层 */
  .hero-cloud--main {
    right: -18%;
    top: auto;
    bottom: -14%;
    margin-top: 0;
    width: min(420px, 88vw);
    opacity: 0.5;
    filter: none;
  }

  .hero-cloud--back-a,
  .hero-cloud--back-b,
  .hero-shard,
  .hero-grid,
  .hero-glow,
  .hero-ring,
  .hero-outline-text,
  .deco-cloud,
  .deco-shard,
  .deco-glow,
  .deco-ring,
  .direction-num {
    display: none;
  }

  .hero-vertical {
    display: none;
  }

  .hero-corner {
    display: none;
  }

  .direction-item {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-eyebrow::before {
    width: 32px;
  }

  .eyebrow-full {
    display: none;
  }

  .eyebrow-short {
    display: inline;
  }

  /* 两行标题按 vw 收敛：6 字行恒为一行，不会随机折行 */
  .hero-title {
    margin-bottom: 32px;
  }

  .hero-title-line {
    font-size: clamp(36px, 10.4vw, 44px);
    line-height: 1.32;
  }

  .hero-lead {
    font-size: 15px;
    max-width: none;
    margin-bottom: 40px;
  }

  .hero-actions {
    gap: 24px;
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 14px;
  }

  .hero-ghost {
    font-size: 14px;
  }

  .section {
    padding: 88px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .direction-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 40px 0;
  }

  .direction-item h3 {
    font-size: 20px;
  }

  .philosophy-title {
    margin-bottom: 40px;
  }

  .philosophy-watermark {
    width: 320px;
    right: -110px;
    bottom: -110px;
  }

  .contact-lead {
    margin-top: -24px;
    margin-bottom: 44px;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
  }

  .contact-row dt {
    width: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
