/* ColorOS case study base styles */

.coloros-case {
  color: #111111;
}

.coloros-case-wrap {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.coloros-hero-section {
  position: relative;
  padding-top: 0;
}

.coloros-hero-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #08140d;
}

.coloros-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.coloros-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 11, 0.2) 0%, rgba(10, 12, 11, 0.34) 24%, rgba(10, 12, 11, 0.6) 72%, rgba(10, 12, 11, 0.8) 100%),
    linear-gradient(120deg, rgba(10, 12, 11, 0.72) 0%, rgba(10, 12, 11, 0.18) 42%, rgba(10, 12, 11, 0.06) 100%),
    radial-gradient(circle at 18% 22%, rgba(118, 163, 130, 0.12), transparent 28%);
}

.coloros-hero-copy {
  position: absolute;
  inset: 0;
  left: 50%;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
  padding: clamp(2rem, 5vw, 3.6rem) 0;
  text-align: center;
  color: #f8fff9;
}

.coloros-kicker {
  margin: 0;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 255, 240, 0.82);
}

.coloros-wordmark {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  width: max-content;
  max-width: 100%;
}

.case-hero-transition-coloros .case-hero-transition-wordmark:not(.is-inline),
.coloros-wordmark.is-title {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.coloros-wordmark.is-inline {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
}

.coloros-wordmark-main,
.coloros-wordmark-stroke {
  font-family: var(--font-body);
  font-size: clamp(4rem, 9vw, 7.2rem);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.coloros-wordmark-main {
  color: #ffffff;
  letter-spacing: 0.05em;
}

.coloros-wordmark-stroke {
  color: transparent;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.78);
}

.coloros-wordmark-local {
  font-family: var(--font-meta);
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(233, 255, 239, 0.78);
}

.case-hero-transition-coloros .case-hero-transition-wordmark:not(.is-inline) .case-hero-transition-main,
.coloros-wordmark.is-title .coloros-wordmark-main {
  display: block;
  width: min(100%, 18em);
  margin-inline: auto;
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-wrap: balance;
}

.coloros-hero-note {
  margin: 0;
  font-family: var(--font-meta);
  font-size: clamp(0.96rem, 1.5vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 255, 242, 0.88);
}

.coloros-hero-summary {
  margin: 0;
  max-width: 46rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.18em;
  color: rgba(245, 255, 247, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

body[data-lang="zh"] .coloros-hero-summary {
  letter-spacing: 0.22em;
}

.coloros-scroll-mark {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 3vw, 2.2rem);
  bottom: clamp(1.2rem, 2.6vw, 2.1rem);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.coloros-meta-section {
  padding-block: 1rem 0.4rem;
}

.coloros-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.coloros-meta-card {
  min-height: 156px;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 243, 0.92)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.coloros-meta-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-meta);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #50715d;
}

.coloros-meta-value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #153f27;
}

.coloros-report-section {
  padding-top: 0.9rem;
}

.coloros-report-head {
  margin-bottom: 1.1rem;
}

.coloros-report-shell {
  padding: 1.2rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(251, 255, 252, 0.98), rgba(243, 248, 245, 0.95)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.coloros-report-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: start;
}

.coloros-report-sidebar {
  position: relative;
}

.coloros-report-sidebar-card {
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 245, 0.96)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.coloros-report-nav-title {
  margin: 0;
  color: #375c49;
  font-family: var(--font-meta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coloros-report-nav {
  display: grid;
  gap: 0.52rem;
}

.coloros-report-nav-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  width: 100%;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #4d6e5d;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.coloros-report-nav-link:hover,
.coloros-report-nav-link:focus-visible {
  border-color: rgba(78, 120, 96, 0.36);
  background: rgba(244, 250, 246, 0.94);
  color: #234734;
  transform: translateX(3px);
  outline: none;
}

.coloros-report-nav-link.is-active {
  border-color: rgba(78, 120, 96, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: #183826;
  box-shadow: 0 14px 28px rgba(52, 87, 68, 0.12);
}

.coloros-report-nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 2.1rem;
  border-radius: 999px;
  background: rgba(57, 96, 75, 0.08);
  color: #2f5f47;
  font-family: var(--font-meta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.coloros-report-nav-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.coloros-report-nav-label {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.coloros-report-nav-label-sub {
  color: rgba(80, 113, 93, 0.92);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coloros-report-status {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(20, 88, 48, 0.08);
  color: #18442a;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coloros-report-stage {
  min-width: 0;
  padding-left: clamp(0rem, 0.6vw, 0.35rem);
}

.coloros-report-frame {
  display: block;
  width: 100%;
  height: clamp(760px, 86svh, 1180px);
  border: 0;
  border-radius: 22px;
  background: #f9fcf9;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

body[data-lang="zh"] .coloros-wordmark-main,
body[data-lang="zh"] .coloros-wordmark-stroke,
body[data-lang="zh"] .coloros-hero-note,
body[data-lang="zh"] .coloros-wordmark-local {
  letter-spacing: normal;
}

body[data-route="coloros"][data-lang="en"] .coloros-wordmark.is-title .coloros-wordmark-main {
  font-weight: 1000;
  -webkit-text-stroke: 1.4592px currentColor;
  paint-order: stroke fill;
}
