/* ==========================================================================
   禾西禾官网 · 共用基础层
   字体：思源黑体（Noto Sans SC） / 拉丁辅助 Archivo
   ========================================================================== */

:root {
  --accent: #E85D04;
  --ink: #111110;
  --paper: #ffffff;
  --grey: #7c7c75;
  --line: #e6e6e1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: clamp(20px, 5vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-inline: var(--rail);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 全幅图像：无圆角、无边框 */
.media {
  position: relative;
  overflow: hidden;
  background: #efeeea;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.4s var(--ease);
}

.media:hover img {
  transform: scale(1.045);
}

figcaption {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
}

/* 滚动淡入 */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.32s ease-out,
    transform 0.32s ease-out;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.06s; }
[data-reveal-delay="2"] { transition-delay: 0.12s; }
[data-reveal-delay="3"] { transition-delay: 0.18s; }

/* 合成图标注：不与已交付/实拍叙事混同 */
.media-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(12, 12, 11, 0.5);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* 极简按钮 / 链接 */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.link-line:hover::after {
  transform: scaleX(0);
}

.link-line svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.link-line:hover svg {
  transform: translateX(4px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.skip-link:focus {
  top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
