:root {
  --paper: #f3f3f3;
  --ink: #2c2c2c;
  --muted: #8f8f8f;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--paper);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-feature-settings: "palt";
  line-height: 1;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.stage {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  animation: stageZoom 9s ease forwards;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.26) 0%, rgba(15, 14, 12, 0.04) 36%, rgba(15, 14, 12, 0.5) 100%);
  pointer-events: none;
}
@keyframes stageZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px 30px;
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.62) 0%, rgba(15, 14, 12, 0.3) 55%, rgba(15, 14, 12, 0) 100%);
  pointer-events: none;
}
.header .brand, .header .nav { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  white-space: nowrap;
}
.brand-mark {
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
  margin-top: 0.25em;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}
.brand-copy { display: flex; flex-direction: column; gap: 0.15em; }
.brand em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.56em;
  letter-spacing: 0.12em;
  line-height: 1.4;
  background: linear-gradient(90deg, rgba(243,243,243,0.82) 0%, rgba(243,243,243,0.2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  line-height: 2rem;
  color: rgba(243, 243, 243, 0.6);
  transition: color 0.3s ease;
}
.nav a:hover, .nav a.active { color: var(--paper); }
.nav a.index-link { margin-right: 6px; }

.back {
  position: fixed;
  left: 30px;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: rgba(243, 243, 243, 0.48);
  transition: color 0.3s ease;
}
.back:hover { color: var(--paper); }

.main {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.main::-webkit-scrollbar { width: 4px; }
.main::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 2px; }
.main::-webkit-scrollbar-track { background: transparent; }
.info { max-width: 560px; margin-top: auto; }
.pager { margin-top: auto; }
.eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(243, 243, 243, 0.55);
}
h1 {
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}
.desc {
  font-size: 1.4rem;
  line-height: 1.9;
  color: rgba(243, 243, 243, 0.78);
  max-width: 460px;
  margin: 0;
}
.meta {
  margin-top: 26px;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: rgba(243, 243, 243, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.case-cta { margin-top: 18px; font-size: 1.2rem; letter-spacing: 0.08em; line-height: 2.4; }
.case-cta a { color: rgba(243, 243, 243, 0.82); border-bottom: 1px solid rgba(243, 243, 243, 0.42); padding-bottom: 4px; transition: color 0.25s ease, border-color 0.25s ease; }
.case-cta a:hover { color: var(--paper); border-color: currentColor; }
.case-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 100%);
  margin-top: 18px;
  padding: 9px 10px;
  background: rgba(25, 23, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.case-thumb + .case-thumb { margin-top: 10px; }
.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
}
.case-nav a {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}
.case-nav a:hover { color: var(--paper); border-color: rgba(243, 243, 243, 0.8); }
.case-group { scroll-margin-top: 90px; }
.case-group { margin-top: 22px; }
.case-group + .case-group { margin-top: 26px; }
.case-group-label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45);
  padding-bottom: 7px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.case-group .case-thumb:first-of-type { margin-top: 10px; }
.case-thumb:hover { background: rgba(25, 23, 20, 0.62); border-color: rgba(255, 255, 255, 0.4); }
.case-thumb img { width: 64px; height: 46px; object-fit: cover; flex: none; filter: sepia(0.12) contrast(1.03); }
.case-thumb .thumb-text { display: grid; gap: 3px; min-width: 0; }
.case-thumb .thumb-label { font-size: 0.9rem; letter-spacing: 0.14em; color: rgba(243, 243, 243, 0.58); }
.case-thumb .thumb-title { font-size: 1.15rem; line-height: 1.4; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 02 页：品牌导航与 meta 固定，案例列表独立滚动 */
.main-cases { overflow: hidden; }
.info-cases {
  margin-top: 0;
  height: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
}
.info-cases .case-nav { flex: none; }
.info-cases .meta { flex: none; margin-top: 16px; }
.case-groups {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 14px;
  padding-right: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.case-groups::-webkit-scrollbar { width: 4px; }
.case-groups::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 2px; }
.case-groups::-webkit-scrollbar-track { background: transparent; }
.main-cases .case-group { scroll-margin-top: 8px; }

.pager {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 4px;
  white-space: nowrap;
}
.pager a {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: rgba(243, 243, 243, 0.62);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.pager a:hover { color: var(--paper); border-color: currentColor; }
.pager .next::after { content: " →"; }

@media (max-width: 720px) {
  .header { padding: 18px; }
  .nav { gap: 14px; }
  .nav a:not(.index-link):not(.active) { display: none; }
  .back { display: none; }
  .main {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 26px;
    padding: 18px;
  }
  .pager { gap: 18px; }
  .info-cases { padding-top: 82px; }
  .info-cases .case-nav a { font-size: 1.4rem; }
  .info-cases .case-nav { margin-top: 24px; gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; }
}

/* 并列英文：中文下方的小字英文行 */
.en-line {
  display: block;
  font-size: 0.82em;
  line-height: 1.7;
  letter-spacing: 0.05em;
  font-weight: 400;
  opacity: 0.58;
  margin-top: 6px;
}

/* ICP 备案号 */
.icp-badge {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(243, 243, 243, 0.52);
}
.icp-badge a { color: inherit; }
.icp-badge a:hover { text-decoration: underline; text-underline-offset: 2px; }
