:root {
  --bg-base: #eef2f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-outer-border: rgba(15, 23, 42, 0.07);
  --glass-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.08), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  --pill-bg: rgba(15, 23, 42, 0.055);
  --pill-active-bg: #ffffff;
  --pill-active-shadow: 0 4px 12px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --accent-blue: #0071e3;
  --accent-emerald: #059669;
  --card-hover-shadow: 0 26px 54px -12px rgba(0, 113, 227, 0.16), inset 0 1.5px 0 rgba(255, 255, 255, 0.98);
  --spring-bounce: cubic-bezier(0.22, 1.58, 0.36, 1);
  --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
  --bg-base: #070b14;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --glass-bg: rgba(17, 24, 39, 0.72);
  --glass-bg-strong: rgba(17, 24, 39, 0.94);
  --glass-outer-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 24px 52px -14px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --pill-bg: rgba(255, 255, 255, 0.07);
  --pill-active-bg: rgba(255, 255, 255, 0.16);
  --pill-active-shadow: 0 4px 16px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --card-hover-shadow: 0 28px 58px -12px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.3s ease;
}

/* Ambient Backdrop */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(105px);
  opacity: 0.38;
  animation: drift 20s ease-in-out infinite alternate;
}
html.dark .aurora-blob { opacity: 0.22; }

.blob-blue { width: 560px; height: 560px; background: #38bdf8; top: -180px; left: -100px; }
.blob-emerald { width: 500px; height: 500px; background: #34d399; top: 80px; right: -120px; animation-delay: -7s; }
.blob-violet { width: 520px; height: 520px; background: #a78bfa; bottom: -200px; left: 34%; animation-delay: -13s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(34px, 24px, 0) scale(1.06); }
}

#click-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Dynamic Island */
.dynamic-island {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.42s var(--spring-bounce), padding 0.32s var(--spring-smooth);
}
.dynamic-island.island-pop { transform: translateX(-50%) scale(1.07); padding: 8px 22px; }
.island-pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.island-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #bae6fd; }

/* Main Container */
.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 58px 24px 68px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(34px) saturate(195%);
  -webkit-backdrop-filter: blur(34px) saturate(195%);
  border: 1px solid var(--glass-outer-border);
  box-shadow: var(--glass-shadow);
  border-radius: 26px;
}

.tactile-btn,
.tactile-card {
  cursor: pointer;
  user-select: none;
  transition: transform 0.42s var(--spring-bounce), box-shadow 0.3s var(--spring-smooth), border-color 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}
.tactile-btn:active { transform: scale(0.91) translateY(2px) !important; transition: transform 0.06s ease-out; }
.tactile-card:active { transform: scale(0.97) translateY(3px) !important; transition: transform 0.07s ease-out; }

/* Top Nav */
.top-nav {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 1px solid var(--glass-outer-border);
  overflow: hidden;
  padding: 0;
  background: #fff;
  box-shadow: var(--pill-active-shadow);
}
.brand-thumb { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-size: 19.5px; font-weight: 800; letter-spacing: -0.02em; }
.brand-subtitle { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.glass-pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--glass-outer-border);
  background: var(--pill-active-bg); color: var(--text-primary);
  font-size: 13px; font-weight: 600; text-decoration: none;
  box-shadow: var(--pill-active-shadow);
}
.glass-pill-btn:hover { transform: translateY(-1.5px) scale(1.02); }

.primary-apple-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 17px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #0077ed 0%, #005bb5 100%);
  color: #ffffff; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 20px -4px rgba(0, 113, 227, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.primary-apple-btn:hover { transform: translateY(-1.5px) scale(1.025); }

/* 2. Split Hero Bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1040px) {
  .hero-bento { grid-template-columns: 1fr; }
}

/* Left App-Store Today Featured Visual Card */
.featured-showcase {
  position: relative;
  min-height: 335px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
}

.featured-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f172a;
}

.featured-bg-blur {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(32px) saturate(160%) brightness(0.65);
  transform: scale(1.08);
  transition: opacity 0.4s ease;
}

.featured-cover-stage {
  position: absolute;
  right: 22px;
  top: 18px;
  bottom: 18px;
  aspect-ratio: 3 / 4;
  width: auto;
  border-radius: 18px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.featured-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s var(--spring-smooth);
}
.featured-showcase:hover .featured-cover-img {
  transform: scale(1.05);
}

.featured-gradient-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 16, 30, 0.94) 0%, rgba(10, 16, 30, 0.86) 54%, rgba(10, 16, 30, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.22) 0%, rgba(10, 16, 30, 0.88) 100%);
}

.featured-overlay {
  position: relative;
  z-index: 2;
  padding: 22px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.featured-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.featured-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}
.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s var(--spring-smooth), background 0.3s ease;
}
.c-dot.active {
  width: 24px;
  background: #ffffff;
}

.featured-bottom-content {
  max-width: calc(100% - 256px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: auto;
}
@media (max-width: 720px) {
  .featured-bottom-content { max-width: 100%; }
  .featured-cover-stage { display: none; }
}

.feat-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.feat-title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.feat-gain-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid rgba(52, 211, 153, 0.48);
  color: #6ee7b7;
  font-size: 13.5px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.feat-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}
.feat-cta { font-weight: 700; color: #7dd3fc; }

/* Right: Dual Liquid Glass Spheres Console */
.liquid-console {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: 28px;
}

.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.console-title { font-size: 16.5px; font-weight: 800; }
.console-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.mini-reset-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
  font-size: 11.5px;
  font-weight: 700;
}

.dual-orbs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.orb-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 22px;
  background: var(--pill-bg);
  border: 1.5px solid transparent;
}
.orb-unit:hover {
  background: var(--pill-active-bg);
  box-shadow: var(--pill-active-shadow);
}
.orb-unit.selected-orb {
  border-color: var(--accent-blue);
  background: var(--pill-active-bg);
  box-shadow: var(--card-hover-shadow);
}

.orb-canvas-wrap {
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
}
.orb-canvas {
  width: 142px;
  height: 142px;
  border-radius: 50%;
}
.orb-squish { animation: orbJelly 0.6s var(--spring-bounce); }
@keyframes orbJelly {
  0% { transform: scale(1, 1); }
  24% { transform: scale(1.11, 0.89); }
  52% { transform: scale(0.94, 1.07); }
  100% { transform: scale(1, 1); }
}

.orb-label-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.orb-label-count {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.orb-label-count strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.dot-blue { width: 8px; height: 8px; border-radius: 50%; background: #0071e3; display: inline-block; }
.dot-emerald { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }

.ratio-bar-card {
  background: var(--pill-bg);
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ratio-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.ratio-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  gap: 3px;
}
.ratio-fill-blue {
  background: linear-gradient(90deg, #0071e3, #38bdf8);
  border-radius: 999px;
  transition: width 0.6s var(--spring-smooth);
}
.ratio-fill-emerald {
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.6s var(--spring-smooth);
}

/* 3. Three Illustrated Arena Cards */
.arenas-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.sec-heading { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sec-desc { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

.clear-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 700;
}

.arenas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 920px) {
  .arenas-grid { grid-template-columns: 1fr; }
}

.arena-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.arena-card.selected-arena {
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.arena-img-box {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: #e2e8f0;
}
.arena-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--spring-smooth);
}
.arena-card:hover .arena-img { transform: scale(1.06); }

.arena-count-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.arena-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arena-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.arena-title-row h3 { font-size: 16px; font-weight: 800; }
.arena-split {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pill-bg);
}
.arena-summary {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Famous Landmarks / Brand Wall */
.landmarks-panel {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.landmarks-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}
.landmarks-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landmark-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-outer-border);
  background: var(--pill-active-bg);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.landmark-chip:hover { transform: translateY(-1.5px) scale(1.03); }
.landmark-chip.active-chip {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}
.landmark-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* 4. Filter Dock */
.filter-dock {
  position: sticky;
  top: 54px;
  z-index: 90;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.segmented-group {
  display: inline-flex;
  background: var(--pill-bg);
  padding: 4px;
  border-radius: 14px;
  gap: 3px;
  flex-wrap: wrap;
}
.seg-btn, .cat-btn, .view-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.seg-btn.active, .cat-btn.active, .view-btn.active {
  background: var(--pill-active-bg);
  color: var(--text-primary);
  box-shadow: var(--pill-active-shadow);
}

.dock-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-ico { position: absolute; left: 11px; color: var(--text-muted); font-size: 14px; pointer-events: none; }
#search-input {
  padding: 8px 14px 8px 31px;
  border-radius: 12px;
  border: 1px solid var(--glass-outer-border);
  background: var(--pill-active-bg);
  color: var(--text-primary);
  font-size: 13px;
  width: 220px;
  outline: none;
  transition: width 0.3s var(--spring-smooth), box-shadow 0.2s ease;
}
#search-input:focus { width: 270px; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22); }

.result-status-bar {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 6px;
  margin-top: -8px;
}

/* 5. Visual Media Case Cards Grid (3:4 Vertical Posters) */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .app-shell { padding: 52px 12px 48px; gap: 16px; }
  .media-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .card-content-body { padding: 11px 12px 13px; gap: 7px; }
  .card-headline { font-size: 13.5px; }
  .card-gain-box { padding: 6px 9px; font-size: 11.5px; }
  .card-foot-line { font-size: 11px; }
  #case-drawer-backdrop { padding: 8px; }
  #case-drawer-backdrop .apple-drawer { width: 100vw; height: 94vh; border-radius: 22px; }
  .drawer-scroll { padding: 16px; }
}

.media-case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  transform-style: preserve-3d;
}
.media-case-card:hover {
  box-shadow: var(--card-hover-shadow);
}

/* 3:4 Portrait Cover Header on Every Card */
.card-visual-header {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.card-cover-blur-bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(18px) saturate(140%) brightness(0.72);
  transform: scale(1.1);
}

.card-cover-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.55s var(--spring-smooth);
}
.media-case-card:hover .card-cover-main {
  transform: scale(1.05);
}

.card-cover-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.36) 0%,
    rgba(15, 23, 42, 0.0) 20%,
    rgba(15, 23, 42, 0.0) 70%,
    rgba(15, 23, 42, 0.80) 100%
  );
  pointer-events: none;
}

.cover-top-badges {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.prod-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  color: #ffffff;
}
.prod-doubao { background: rgba(0, 113, 227, 0.86); }
.prod-workbody { background: rgba(5, 150, 105, 0.88); }

.cover-meta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums;
}

.cover-bottom-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cover-where-tag {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-play-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  color: #0f172a;
  font-size: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--spring-bounce);
}
.media-case-card:hover .cover-play-btn {
  transform: scale(1.15);
  background: #ffffff;
}

/* Scannable Card Body */
.card-content-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-headline {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-gain-box {
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(0, 113, 227, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.20);
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
  line-height: 1.45;
}
html.dark .card-gain-box {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.25);
}

.card-foot-line {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}
html.dark .card-foot-line { color: #7dd3fc; }
.card-cat-mini { color: var(--text-muted); font-weight: 600; }

/* Timeline Layout */
.cases-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline-day-group {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) {
  .timeline-day-group { grid-template-columns: 1fr; }
}
.timeline-date-pill {
  position: sticky;
  top: 116px;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.timeline-day-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
}

/* Audit Section */
.filtered-audit { padding: 14px 20px; }
.audit-toggle {
  width: 100%; border: none; background: transparent;
  color: var(--text-secondary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.audit-list {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--glass-outer-border);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px;
}
.audit-item {
  padding: 10px 13px; border-radius: 12px;
  background: var(--pill-bg); font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}

/* Centered Studio Deep-Dive Modal & Feishu Slide-over */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(12px);
  display: flex; justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}
#case-drawer-backdrop {
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.apple-drawer {
  width: min(660px, 95vw);
  height: calc(100vh - 24px);
  margin: 12px;
  background: var(--glass-bg-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.38s var(--spring-bounce);
}

#case-drawer-backdrop .apple-drawer {
  width: min(1060px, 96vw);
  height: min(90vh, 920px);
  margin: 0;
  border-radius: 30px;
  animation: modalZoomIn 0.36s var(--spring-bounce);
}

@keyframes modalZoomIn {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(48px) scale(0.97); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.drawer-topbar {
  padding: 15px 24px;
  border-bottom: 1px solid var(--glass-outer-border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-heading { font-size: 17px; font-weight: 800; }
.drawer-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.icon-close-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--pill-bg); color: var(--text-primary); font-size: 15px; font-weight: 800;
}

.drawer-scroll {
  padding: 24px 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Deep-Dive Module 1: Top Executive Split Header */
.deep-top-hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 760px) {
  .deep-top-hero { grid-template-columns: 1fr; }
}
.deep-cover-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.deep-cover-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.deep-cover-btn {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  justify-content: center; text-decoration: none; font-size: 12px; padding: 8px 12px;
}

.deep-exec-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.deep-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.deep-tech-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.tech-tag-pill {
  font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(0, 113, 227, 0.10);
  color: var(--accent-blue);
}
html.dark .tech-tag-pill {
  background: rgba(56, 189, 248, 0.16); color: #7dd3fc;
}
.deep-oneliner-box {
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.07), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(0, 113, 227, 0.14);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
}

/* Deep-Dive Module 2: Dual Visual Charts Grid */
.deep-charts-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 18px;
}
@media (max-width: 860px) {
  .deep-charts-grid { grid-template-columns: 1fr; }
}

.chart-panel {
  background: var(--pill-bg);
  border: 1px solid var(--glass-outer-border);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart-panel-title {
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chart-metric-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Chart 1: Before vs After Bars + Donut */
.ba-visual-wrap {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
  align-items: center;
}
.ba-bars-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ba-row-label {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ba-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.ba-bar-before {
  height: 100%;
  background: linear-gradient(90deg, #94a3b8, #ef4444);
  border-radius: 999px;
}
.ba-bar-after {
  height: 100%;
  background: linear-gradient(90deg, #0071e3, #10b981);
  border-radius: 999px;
  transition: width 0.7s var(--spring-smooth);
}
.ba-donut-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ba-roi-banner {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
  font-size: 13px;
  font-weight: 800;
}
html.dark .ba-roi-banner { color: #6ee7b7; }

/* Chart 2: Radar SVG + 4 Dimension Breakdown */
.radar-split-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 560px) {
  .radar-split-wrap { grid-template-columns: 1fr; }
}
.radar-svg-box {
  display: grid;
  place-items: center;
}
.radar-dims-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.radar-dim-item {
  background: var(--pill-active-bg);
  border-radius: 11px;
  padding: 7px 10px;
  border: 1px solid var(--glass-outer-border);
}
.radar-dim-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}
.radar-dim-score { color: var(--accent-blue); font-variant-numeric: tabular-nums; }
.radar-dim-note { font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; }

/* Deep-Dive Module 3: 4-Step Visual Workflow Diagram */
.workflow-section-box {
  background: var(--pill-bg);
  border: 1px solid var(--glass-outer-border);
  border-radius: 22px;
  padding: 18px 20px;
}
.workflow-steps-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 860px) {
  .workflow-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .workflow-steps-grid { grid-template-columns: 1fr; }
}
.wf-step-card {
  position: relative;
  background: var(--pill-active-bg);
  border: 1px solid var(--glass-outer-border);
  border-radius: 16px;
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.wf-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wf-step-num {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0071e3, #10b981);
  color: #ffffff;
}
.wf-step-arrow {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}
.wf-step-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}
.wf-step-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Deep-Dive Module 4: Before vs After Stage Comparison Table */
.cmp-table-wrap {
  background: var(--pill-bg);
  border: 1px solid var(--glass-outer-border);
  border-radius: 22px;
  padding: 18px 20px;
}
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 8px;
}
.cmp-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 4px 12px;
}
.cmp-table td {
  background: var(--pill-active-bg);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  border-top: 1px solid var(--glass-outer-border);
  border-bottom: 1px solid var(--glass-outer-border);
}
.cmp-table td:first-child {
  font-weight: 800;
  width: 20%;
  border-left: 1px solid var(--glass-outer-border);
  border-radius: 12px 0 0 12px;
}
.cmp-table td:nth-child(2) {
  color: var(--text-secondary);
  width: 39%;
}
.cmp-table td:last-child {
  color: #047857;
  font-weight: 600;
  width: 41%;
  border-right: 1px solid var(--glass-outer-border);
  border-radius: 0 12px 12px 0;
}
html.dark .cmp-table td:last-child { color: #6ee7b7; }

/* Deep-Dive Module 5: Clean Timeline & Original Post Copy */
.timeline-chips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.tl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}
.tl-time-badge {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent-blue);
}
html.dark .tl-time-badge { color: #7dd3fc; background: rgba(56, 189, 248, 0.18); }

.detail-block {
  background: var(--pill-bg);
  border-radius: 18px;
  padding: 15px 18px;
  border: 1px solid var(--glass-outer-border);
}
.detail-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--text-secondary);
}
.detail-pre {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.68; color: var(--text-secondary);
}

/* Forms */
.form-stack { gap: 15px; }
.form-card {
  background: var(--pill-bg); border-radius: 18px; padding: 16px 18px;
  border: 1px solid var(--glass-outer-border);
  display: flex; flex-direction: column; gap: 11px;
}
.form-card-title { font-size: 14px; font-weight: 800; }
.form-help { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.field-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.apple-input {
  padding: 9px 12px; border-radius: 11px; border: 1px solid var(--glass-outer-border);
  background: var(--pill-active-bg); color: var(--text-primary); font-size: 13px; outline: none;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }
.btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sync-feedback {
  padding: 12px 15px; border-radius: 14px;
  background: rgba(16, 185, 129, 0.14); color: #059669; font-size: 13px; font-weight: 700;
}
html.dark .sync-feedback { color: #6ee7b7; }
