/* ===== INFIBOOTH DESIGN SYSTEM ===== */
/* Shared CSS for all INFIBOOTH pages */

:root {
  color-scheme: dark;
  --base: #080808;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.075);
  --tp: #faf6f0;
  --ts: rgba(250,246,240,.56);
  --tm: rgba(250,246,240,.34);
  --border: rgba(255,255,255,.09);
  --border-2: rgba(255,255,255,.16);
  --accent: #D62828;
  --dim: rgba(214,40,40,.55);
  --glow: rgba(214,40,40,.45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1240px;
}

[data-theme="light"] {
  color-scheme: light;
  --base: #f9f5ef;
  --surface: rgba(0,0,0,.025);
  --surface-2: rgba(0,0,0,.05);
  --tp: #0a0a0a;
  --ts: rgba(10,10,10,.6);
  --tm: rgba(10,10,10,.38);
  --border: rgba(0,0,0,.09);
  --border-2: rgba(0,0,0,.16);
  --dim: rgba(214,40,40,.3);
  --glow: rgba(214,40,40,.2);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.ib {
  font-family: var(--sans);
  background: var(--base);
  color: var(--tp);
  line-height: 1.55;
  min-height: 100vh;
}

.ib * { box-sizing: border-box; }
.ib a { color: inherit; text-decoration: none; }
.ib img { max-width: 100%; display: block; }
.ib button, .ib input, .ib select, .ib textarea { font: inherit; }
.ib ul, .ib ol { margin: 0; padding: 0; list-style: none; }
.ib h1, .ib h2, .ib h3, .ib h4, .ib p { margin: 0; }

/* ===== SCROLL PROGRESS ===== */
.scroll-prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: calc(var(--prog, 0) * 100%);
  background: var(--accent);
  z-index: 200;
  transform-origin: left;
  pointer-events: none;
}

/* ===== NAV ===== */
.ib .nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .3s;
}

[data-theme="light"] .ib .nav {
  background: rgba(249,245,239,.9);
}

.ib .logo {
  width: 140px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.ib .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.ib .nav-links a {
  color: var(--ts);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  transition: color .25s;
  white-space: nowrap;
}

.ib .nav-links a:hover,
.ib .nav-links a.active { color: var(--tp); }

.ib .nav-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ib .theme-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ts);
  transition: color .25s, border-color .25s;
}

.ib .theme-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ib .i-moon { display: none; }
[data-theme="light"] .ib .i-sun { display: none; }
[data-theme="light"] .ib .i-moon { display: block; }

.ib .lang-btn {
  min-width: 46px;
  height: 38px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  color: var(--ts);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.ib .wa-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #25D366;
  border-radius: 50%;
  flex-shrink: 0;
}

.ib .wa-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.ib .burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  cursor: pointer;
  padding: 0 9px;
}

.ib .burger span {
  display: block;
  height: 1.5px;
  background: var(--ts);
  border-radius: 999px;
  transition: transform .3s, opacity .3s;
}

.ib .mobile-menu {
  display: none;
  position: fixed;
  z-index: 98;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--base);
  border-top: 1px solid var(--border);
  flex-direction: column;
  padding: 24px var(--pad) 40px;
  overflow-y: auto;
}

.ib .mobile-menu.open { display: flex; }

.ib .mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ts);
  font-size: 1.05rem;
  font-weight: 400;
  transition: color .25s;
}

.ib .mobile-menu a:first-child { border-top: 1px solid var(--border); }
.ib .mobile-menu a:hover { color: var(--tp); }

@media (max-width: 980px) {
  .ib .nav { grid-template-columns: auto auto; }
  .ib .nav-links { display: none; }
  .ib .burger { display: flex; }
}

/* ===== TRUST TICKER ===== */
.ib .trust {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 14px 0;
}

.ib .trust-track {
  display: flex;
  width: max-content;
  animation: ibTicker 32s linear infinite;
}

.ib .trust-set {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.ib .trust-item {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tm);
  white-space: nowrap;
}

.ib .trust-item::before {
  content: "✦";
  margin-right: 16px;
  color: var(--accent);
  font-size: .6rem;
}

@keyframes ibTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.ib .sec {
  padding: clamp(72px,10vw,120px) var(--pad);
}

/* 模糊图片氛围背景 — 替代死白纯色，给交替板块加质感 */
.ib .sec.tech:not(#infilab-teaser) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ib .sec.tech:not(#infilab-teaser)::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -2;
  background: url("assets/detail/scene-live-service.jpg") center/cover no-repeat;
  filter: blur(38px) saturate(1.12) brightness(.95);
  opacity: .26;
  transform: scale(1.14);
  pointer-events: none;
}
.ib .sec.tech:not(#infilab-teaser)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 中部留出图片质感，四周收回到 base，保证文字对比度 */
  background: radial-gradient(120% 100% at 50% 50%, color-mix(in srgb, var(--base) 64%, transparent), var(--base) 78%);
  pointer-events: none;
}

.ib .wrap {
  max-width: var(--max);
  margin-inline: auto;
}

/* ===== REVEAL ===== */
.ib .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.ib .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== EYEBROW / TITLE / LEAD ===== */
.ib .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tm);
  margin-bottom: .7em;
}

.ib .eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.ib .title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--tp);
}

/* ===== 高亮色块（马克笔式画重点）=====
   底部一条约 1/3 高的斜角色块，从左到右横扫出现。
   文字保持继承色（深底浅字 / 浅底深字），对比度由 heading 颜色保证，色块只在下方画重点。 */
.ib .hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;          /* 关键词永不断行（如"独一无二""两个故事"）*/
  font-weight: 700;
  color: inherit;
  z-index: 0;
  isolation: isolate;
}
.ib .hl::before {
  content: "";
  position: absolute;
  left: -.12em; right: -.12em;
  bottom: .02em;
  height: .34em;                /* 底部约 1/3 高的高亮条 */
  background: var(--accent);
  z-index: -1;
  transform: skewX(-18deg) scaleX(0);   /* 斜角 + 横向收起 */
  transform-origin: left center;        /* 从左往右扫出 */
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.ib .hl.lit::before { transform: skewX(-18deg) scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .ib .hl::before { transition: none; transform: skewX(-18deg) scaleX(1); }
}

.ib .lead {
  color: var(--ts);
  font-size: clamp(.95rem, .8rem + .5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 50ch;
  margin-top: 1.2em;
  text-wrap: pretty;
}

/* ===== BUTTONS ===== */
.ib .btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
  text-decoration: none;
  white-space: nowrap;
}

.ib .btn:hover { transform: translateY(-2px); }

.ib .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .3s;
}

.ib .btn:hover svg { transform: translateX(3px); }

.ib .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(214,40,40,.3);
}

.ib .btn-primary:hover { background: #b91c1c; border-color: #b91c1c; }

.ib .btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--tp);
}

.ib .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== CARDS ===== */
.ib .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.ib .card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-4px); }

[data-theme="light"] .ib .card:hover { border-color: rgba(0,0,0,.22); }

.ib .card-media {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.ib .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}

.ib .card:hover .card-media img { transform: scale(1.04); }

/* ===== CHIPS ===== */
.ib .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ib .chip {
  display: inline-block;
  padding: 4px 11px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  color: var(--tm);
}

/* ===== PAGE HERO (subpages) ===== */
.ib .phero {
  padding: calc(66px + clamp(56px,8vw,100px)) var(--pad) clamp(56px,8vw,90px);
  max-width: var(--max);
  margin-inline: auto;
}

.ib .phero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: .2em 0 .5em;
}

.ib .phero h1 em {
  font-style: italic;
  color: var(--accent);
}

.ib .phero p {
  color: var(--ts);
  font-weight: 300;
  max-width: 50ch;
  font-size: clamp(.95rem,.8rem + .4vw,1.1rem);
}

/* ===== FEEDBACK MARQUEE ===== */
.ib .fb-marquee {
  overflow: hidden;
  margin-top: clamp(36px,5vw,56px);
}

.ib .fb-row {
  display: flex;
  width: max-content;
  animation: ibTicker 40s linear infinite;
}

.ib .fb-set {
  display: flex;
  gap: 20px;
  padding: 0 10px;
}

.ib .fb-card2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: clamp(280px, 32vw, 380px);
  flex-shrink: 0;
}

.ib .fb-card2 .fb-stars {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: .9rem;
}

.ib .fb-card2 p {
  color: var(--ts);
  font-size: 1.08rem;
  font-weight: 300;
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.5;
  flex: 1;
}

.ib .fb-card2 strong {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--tm);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.ib .footer {
  padding: clamp(56px,8vw,90px) var(--pad) clamp(28px,4vw,40px);
  border-top: 1px solid var(--border);
  background: var(--base);
}

.ib .foot-grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(36px,5vw,56px);
  border-bottom: 1px solid var(--border);
}

.ib .foot-grid .logo {
  width: 130px;
  height: 36px;
  margin-bottom: 16px;
}

.ib .foot-grid .tag {
  color: var(--tm);
  font-size: .78rem;
  letter-spacing: .04em;
  line-height: 1.6;
}

.ib .foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ib .foot-col h5 {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tm);
  font-weight: 600;
  margin-bottom: 4px;
}

.ib .foot-col a, .ib .foot-col p {
  font-size: .86rem;
  color: var(--ts);
  transition: color .25s;
}

.ib .foot-col a:hover { color: var(--tp); }

.ib .foot-bottom {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .76rem;
  color: var(--tm);
  letter-spacing: .04em;
}

@media (max-width: 760px) {
  .ib .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .ib .foot-grid { grid-template-columns: 1fr; }
  .ib .foot-bottom { flex-direction: column; gap: 8px; }
}

/* ===== WHITE BUTTON (used in cta-band) ===== */
.ib .btn-white {
  background: #fff;
  color: #080808;
  border-color: #fff;
}
.ib .btn-white:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
