/* ============================================
   LibRootSystem Corporate Website - Dark Style
   Design: "The Luminous Monolith" Dark Editorial
   ============================================ */

/* --- Section Transition Motion (Didi-style) --- */
:root {
  --grid-max: 1280px;
  --section-gap-a: 120px;
  --section-gap-b: 160px;
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 420ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-stagger: 70ms;
}

.section-rhythm-a {
  padding-block: var(--section-gap-a);
}

.section-rhythm-b {
  padding-block: var(--section-gap-b);
}

#values {
  scroll-margin-top: 7rem;
}

.section-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease),
    filter var(--motion-slow) var(--motion-ease);
}

.section-reveal.section-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.section-reveal[data-reveal="hero"] {
  transform: translateY(0) scale(1.02);
}

.section-reveal[data-reveal="hero"].section-visible {
  transform: translateY(0) scale(1);
}

.section-reveal[data-reveal="editor"] {
  transition-duration: 560ms;
}

.section-reveal[data-reveal="aigc"] {
  transition-duration: 500ms;
}

.section-reveal[data-reveal="news"],
.section-reveal[data-reveal="values"],
.section-reveal[data-reveal="team"],
.section-reveal[data-reveal="contact"] {
  transition-duration: 500ms;
}

.section-reveal[data-reveal="footer"] {
  transition-duration: 320ms;
}

@media (max-width: 768px) {
  .section-reveal {
    transform: translateY(18px) scale(0.995);
    filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-reveal,
  .fade-in-up,
  .fade-in-left,
  .fade-in-right,
  .fade-in,
  .stagger-children > * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* --- Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  background-color: #0a0a0a;
  color: #F5F5F5;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: rgba(224, 48, 32, 0.3);
}

/* --- Design Tokens (Black + Red + White + Gray) --- */
:root {
  --primary: #E03020;
  --primary-container: #C41E10;
  --on-primary: #ffffff;
  --on-primary-container: #ffffff;
  --secondary: #FF4D3D;
  --surface: #0a0a0a;
  --surface-dim: #0a0a0a;
  --surface-container-low: #141414;
  --surface-container: #1a1a1a;
  --surface-container-high: #242424;
  --surface-container-highest: #2e2e2e;
  --surface-variant: #2e2e2e;
  --on-surface: #F5F5F5;
  --on-surface-variant: #999999;
  --outline: #666666;
  --outline-variant: #333333;
}

/* --- Glassmorphism Floating Navigation --- */
.glass-nav {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
}

/* --- Text Gradient (Red) --- */
.text-gradient {
  background: linear-gradient(135deg, #FF4D3D 0%, #E03020 50%, #C41E10 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- CTA Button Gradient --- */
.btn-primary-didi {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary-container);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(224, 48, 32, 0.25);
}

.btn-primary-didi:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(224, 48, 32, 0.35);
}

.btn-secondary-didi {
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: #f2e9e3;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-secondary-didi:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 18rem);
  min-height: 3.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.2;
}

.hero-cta-group {
  align-items: center;
}

/* --- Ambient Shadow (Dark theme) --- */
.ambient-shadow {
  box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.4);
}

.ambient-shadow-sm {
  box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.3);
}

/* --- Ghost Border --- */
.ghost-border {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Hero Background Overlay --- */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.75) 50%,
    rgba(10, 10, 10, 1) 100%
  );
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Feature Cards --- */
.section-head {
  margin-bottom: 4rem;
}

.section-core {
  margin-bottom: 3rem;
}

.section-tail {
  margin-top: 1.25rem;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 48, 32, 0.2);
}

/* --- Team Cards --- */
.team-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(224, 48, 32, 0.15), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.team-card-overlay {
  background: linear-gradient(to top, #0a0a0a 0%, transparent 60%);
}

.team-card img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* --- News Cards --- */
#news .news-card-main.fade-in-left {
  transition: opacity 560ms var(--motion-ease), transform 560ms var(--motion-ease);
}

.news-card-main img {
  transition: transform 0.7s ease;
}

.news-card-main:hover img {
  transform: scale(1.05);
}

.news-card-side {
  transition: background 0.3s ease;
}

.news-card-side:hover {
  background: var(--surface-container);
}

.news-card-side img {
  transition: transform 0.5s ease;
}

.news-card-side:hover img {
  transform: scale(1.04);
}

.news-side-stagger.stagger-children > * {
  transition-duration: 360ms;
}

.news-side-stagger.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.news-side-stagger.stagger-children.visible > *:nth-child(2) { transition-delay: 0.07s; }
.news-side-stagger.stagger-children.visible > *:nth-child(3) { transition-delay: 0.14s; }

/* --- AIGC Cards (softer hover) --- */
#aigc .fade-in-up {
  transform: translateY(28px);
}

#aigc .stagger-children > .space-y-3 img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

#aigc .stagger-children > .space-y-3:hover img {
  filter: brightness(1.05);
}

/* --- Partner Icons --- */
.partner-row {
  opacity: 0.85;
  transition: all 0.7s ease;
}

.partner-row:hover {
  opacity: 1;
}

/* --- Value Cards Stagger --- */
.value-card-offset-up {
  margin-top: 3rem;
}

.value-card-offset-down {
  margin-top: -3rem;
}

/* --- Contact Section (Dark) --- */
.contact-card-dark {
  background: var(--surface-container);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card-dark:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 48, 32, 0.25);
}

.qr-placeholder-dark {
  width: 160px;
  height: 160px;
  background: var(--surface-container-high);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-surface);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* --- Language Button --- */
.lang-btn-dark {
  padding: 0.5rem;
  border-radius: 9999px;
  color: var(--on-surface-variant);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-btn-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-surface);
}

/* --- Scroll to Top --- */
.scroll-top-btn {
  position: fixed;
  bottom: 3.5rem;
  right: 2rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}

.scroll-top-btn .material-symbols-outlined {
  font-size: 2.2rem;
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* WeChat/Enterprise WeChat compatibility: avoid hidden sections caused by observer timing differences */
  .section-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .hero-cta-group {
    width: min(100%, 20rem);
    margin-left: auto;
    margin-right: auto;
    gap: 0.875rem;
  }

  .hero-cta-btn {
    max-width: none;
    min-height: 3.25rem;
    padding: 0.95rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 0.875rem;
  }

  .value-card-offset-up,
  .value-card-offset-down {
    margin-top: 0;
  }

  #editor,
  #news,
  #team {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #aigc .max-w-7xl,
  #values .max-w-7xl,
  #contact .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #news {
    padding-block: 4.5rem;
  }

  #news .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  #news .section-head h2 {
    font-size: 2rem;
    line-height: 1.15;
  }

  #news .section-core {
    gap: 1.25rem;
  }

  #news .news-card-main h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  #news .news-card-main p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  #news .news-card-side {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  #news .news-card-side > div:first-child {
    width: 6.5rem;
    height: 4.5rem;
    flex: 0 0 auto;
  }

  #news .news-card-side > div:last-child {
    min-width: 0;
    width: 100%;
  }

  #news .news-card-side span {
    white-space: nowrap;
  }

  #news .news-card-side h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
  }

  #values {
    padding-block: 4.5rem;
  }

  #values .section-core {
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  #values .stagger-children {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  #values .feature-card {
    padding: 1.25rem;
  }

  #values .section-tail h2 {
    font-size: 2rem;
    line-height: 1.15;
  }

  #values .section-tail {
    margin-top: 0;
  }

  #values .section-tail > .grid {
    gap: 1.25rem 0.75rem;
  }

  #values .counter-number {
    font-size: 2.25rem !important;
    line-height: 1.1;
  }
}

/* --- Bounce Animation (Hero Arrow) --- */
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
}

.animate-bounce-custom {
  animation: bounce 2s ease-in-out infinite;
}

/* --- Number counter --- */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* --- Active nav link --- */
.nav-link-active {
  color: #E03020;
  border-bottom: 2px solid #E03020;
  padding-bottom: 0.25rem;
}

/* --- Play button (glassmorphism) --- */
.play-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.play-btn-glass {
  background: transparent;
  color: rgba(245, 245, 245, 0.78);
  border: 1px solid rgba(245, 245, 245, 0.26);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.play-btn-glass:hover {
  background: transparent;
  color: rgba(245, 245, 245, 0.96);
  border-color: rgba(245, 245, 245, 0.42);
}

/* --- Glow effect behind images --- */
.glow-effect {
  position: absolute;
  inset: -1rem;
  background: rgba(224, 48, 32, 0.08);
  filter: blur(48px);
  border-radius: 9999px;
}

/* --- Adaptive Logo --- */
.logo-adaptive {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1559 / 255;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.logo-adaptive-nav {
  width: clamp(9.75rem, 12vw, 12.5rem);
}

.logo-adaptive-footer {
  width: clamp(10.5rem, 14vw, 13rem);
}

/* --- Case Detail Modal --- */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.case-modal.is-open {
  display: flex;
}

.case-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  min-width: 0;
  max-height: min(90vh, 920px);
  overflow: auto;
  overflow-x: hidden;
  border-radius: 1.75rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-modal-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.news-list-modal-dialog {
  width: min(720px, 100%);
}

.case-modal-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 460px);
  object-fit: cover;
}

.case-modal-body {
  min-width: 0;
  padding: 2rem 2rem 2.2rem;
}

.case-modal-kicker {
  margin-bottom: 0.85rem;
  color: rgba(224, 48, 32, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-modal-title {
  margin-bottom: 1rem;
  min-width: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #f5f5f5;
  overflow-wrap: anywhere;
}

.case-modal-description {
  min-width: 0;
  color: #cfc7c1;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
}

.case-card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: pre-line;
}

.case-modal-gallery {
  display: none;
  gap: 1rem;
  margin-top: 1.35rem;
}

.case-modal-gallery.has-items {
  display: grid;
}

.case-modal-gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-modal-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  background: rgba(10, 10, 10, 0.68);
  color: #f5f5f5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.case-modal-close:hover {
  background: rgba(196, 159, 92, 0.22);
  transform: translateY(-1px);
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #a8a19b;
  font-size: 0.9rem;
  font-weight: 700;
}

.news-modal-dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.24);
}

.news-list-items {
  display: grid;
  gap: 1rem;
}

.news-list-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.news-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 48, 32, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

.news-list-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 5.5rem;
  object-fit: cover;
  border-radius: 0.85rem;
}

.news-list-item > div {
  min-width: 0;
}

.news-list-item-date {
  display: block;
  margin-bottom: 0.45rem;
  color: #9d9792;
  font-size: 0.78rem;
  font-weight: 700;
}

.news-list-item-title {
  margin-bottom: 0.45rem;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.news-list-item-desc {
  color: #bfb8b2;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.case-more-trigger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid rgba(224, 48, 32, 0.2);
  background: transparent;
  color: #d4af37;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.case-more-trigger:hover {
  border-color: #d4af37;
}

.case-more-trigger .material-symbols-outlined {
  font-size: 1.05rem;
}

.case-more-wrap {
  position: absolute;
  top: -2.4rem;
  right: 0;
  width: calc((100% - 3 * 2.5rem) / 4);
  pointer-events: none;
}

.case-more-wrap .case-more-trigger {
  pointer-events: auto;
}

@media (max-width: 767px) {
  .case-more-wrap {
    top: -2.2rem;
    width: calc((100% - 1 * 2rem) / 2);
  }
}

/* --- Hero Copy Layout --- */
.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy-lead {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.85rem 0;
  font-size: 1.45rem;
  line-height: 1.5;
  color: #d8cdc6;
}

.hero-copy-brand {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.85rem;
  font-size: clamp(0.88rem, 1.1vw, 1.45rem);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  display: inline-block;
  vertical-align: baseline;
}

.hero-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  width: clamp(8.5rem, 16vw, 13rem);
  height: clamp(3rem, 5vw, 4.2rem);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-brand-logo-wrap-tight {
  width: clamp(10.5rem, 19vw, 16.5rem);
  margin-right: 0.12rem;
}

.hero-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-mark + .brand-mark {
  margin-left: 0.28em;
}

.brand-mark-red {
  color: #E03020;
}

.brand-mark-light {
  color: #f2e9e3;
}

.brand-mark-italic {
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark-wide {
  font-weight: 800;
  letter-spacing: -0.015em;
}

.brand-mark-cn {
  color: #d8cdc6;
  font-weight: 600;
  text-shadow: none;
}

.brand-mark-x {
  color: rgba(216, 205, 198, 0.46);
  font-weight: 600;
  font-size: 0.92em;
  margin-inline: 0.28em;
  margin-top: 10px;
}

.hero-copy-tail {
  width: max-content;
  max-width: 100%;
  margin: 0 0 0 auto;
  font-size: 1.45rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.86);
}

@media (max-width: 768px) {
  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-copy-lead,
  .hero-copy-brand,
  .hero-copy-tail {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-copy-lead {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
  }

  .hero-copy-brand {
    margin-bottom: 0.6rem;
    font-size: 0.96rem;
    line-height: 1.3;
    gap: 0.12rem;
  }

  .brand-mark + .brand-mark {
    margin-left: 0;
  }

  .hero-brand-logo-wrap {
    width: clamp(7.4rem, 42vw, 10rem);
    height: 1.45rem;
    margin-right: 0;
    vertical-align: middle;
  }

  .hero-brand-logo-wrap-tight {
    width: clamp(8.6rem, 46vw, 11.2rem);
    margin-right: 0;
  }

  .brand-mark-x {
    margin-inline: 0;
    margin-top: 6px;
  }

  .logo-adaptive-nav {
    width: clamp(8.5rem, 34vw, 10.5rem);
  }

  .logo-adaptive-footer {
    width: clamp(9.5rem, 42vw, 11.5rem);
  }

  .hero-copy-tail {
    font-size: 1.1rem;
    line-height: 1.55;
  }

  .case-modal {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(3rem, env(safe-area-inset-right));
  }

  .case-modal-dialog {
    width: min(80vw, 300px);
    max-width: min(80vw, 300px);
    border-radius: 1.25rem;
  }

  .news-list-modal-dialog {
    width: min(88vw, 420px);
    max-width: min(88vw, 420px);
  }

  .case-modal-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .case-modal-title {
    font-size: 1.4rem;
  }

  .case-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.8rem;
    align-items: start;
  }

  .news-list-item img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-list-item-date {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
  }

  .news-list-item-title {
    margin-bottom: 0.35rem;
    font-size: 0.94rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .news-list-item-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .scroll-top-btn {
    bottom: 3rem;
    right: 1.25rem;
    width: 72px;
    height: 72px;
  }

  .scroll-top-btn .material-symbols-outlined {
    font-size: 1.9rem;
  }
}
