/* ===== 季色 Chroma · 移动端界面 (≤768px) ===== */

.only-desktop {
  display: none !important;
}

html {
  scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

/* ---------- 顶栏 ---------- */
.topbar {
  height: 52px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
}

.brand-info h1 {
  font-size: 15px;
}

.eyebrow {
  font-size: 10px;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* ---------- Hero：独立移动端布局 ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 0% 40%, rgba(196,149,106,0.12) 0%, transparent 60%);
}

/* 人物：右侧氛围衬底，不抢文案 */
.hero-mobile-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: min(72vw, 340px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 28%, black 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 28%, black 58%);
}

.hero-mobile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.34;
  filter: saturate(0.82) brightness(0.9);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: auto;
  max-width: 100%;
  padding: 0;
  gap: 0;
}

/* 左侧文字渐变遮罩，保证可读 */
.hero-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(72vw, 340px);
  background: linear-gradient(
    105deg,
    var(--brand-black) 0%,
    rgba(10,10,10,0.92) 42%,
    rgba(10,10,10,0.45) 68%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* 1. 介绍区（左对齐，突出） */
.hero-content {
  position: relative;
  z-index: 2;
  order: 1;
  max-width: 100%;
  width: 100%;
  padding: 22px 16px 12px;
  box-sizing: border-box;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 10px;
}

.hero-title {
  font-size: clamp(28px, 8vw, 36px);
  margin-bottom: 10px;
  line-height: 1.18;
  max-width: 14em;
}

.hero-sub {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 18em;
  color: rgba(255,255,255,0.52);
}

.hero-features {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-features li {
  font-size: 11px;
}

.hf-num {
  font-size: 14px;
}

/* 四季色条：单行横滑 */
.hero-season-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 2px;
  max-width: 100%;
}

.hero-season-strip::-webkit-scrollbar {
  display: none;
}

.season-strip-item {
  flex: 0 0 auto;
  min-width: 86px;
  padding: 6px 10px;
}

.season-strip-name {
  font-size: 10px;
}

.hero-cta-btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  min-height: 50px;
  font-size: 15px;
  border-radius: 12px;
}

/* 2. 报告示例：居中扇形 */
.hero-preview-mobile {
  position: relative;
  z-index: 2;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 16px 16px 28px;
  box-sizing: border-box;
}

.hero-preview-mobile .hero-preview-label {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.hero-report-stack--mobile {
  position: relative;
  width: min(100%, 290px);
  height: 228px;
  margin: 0 auto;
}

.hero-report-stack--mobile .hero-report-card {
  width: 124px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.42);
}

.hero-report-stack--mobile .hero-report-card.card-back {
  top: 32px;
  left: 0;
  transform: rotate(-9deg);
  z-index: 1;
}

.hero-report-stack--mobile .hero-report-card.card-mid {
  top: 0;
  left: 83px;
  transform: rotate(0deg);
  z-index: 3;
}

.hero-report-stack--mobile .hero-report-card.card-front {
  top: 32px;
  left: 166px;
  transform: rotate(9deg);
  z-index: 2;
}

/* ---------- 主内容区 ---------- */
.layout {
  padding: 12px 12px calc(100px + env(safe-area-inset-bottom));
  gap: 10px;
}

.workbench {
  gap: 10px;
  padding-bottom: 0;
}

/* 流程条 */
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-lg);
}

.process-connector {
  display: none;
}

.process-step {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  gap: 5px;
  min-height: auto;
}

.step-dot {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.step-text strong {
  font-size: 11px;
  line-height: 1.25;
}

.step-text small {
  display: none;
}

/* 面板通用 */
.panel {
  padding: 14px;
  border-radius: var(--radius-lg);
}

.upload-panel {
  padding: 14px;
}

.upload-section-intro h2,
.report-section-intro h2 {
  font-size: 17px;
}

.upload-section-intro p {
  font-size: 12px;
}

.upload-box {
  min-height: 200px;
  border-radius: var(--radius-lg);
}

.upload-box::after {
  inset: 10px;
}

.upload-placeholder {
  padding: 28px 16px;
}

.upload-placeholder b {
  font-size: 14px;
}

.upload-footer {
  margin-top: 10px;
}

.upload-status {
  width: 100%;
  justify-content: center;
}

/* ---------- 报告类型：横向滑动卡片 ---------- */
#reportSection.panel {
  padding: 14px 0 0;
  overflow: hidden;
}

.report-section-head {
  padding: 0 14px;
  margin-bottom: 8px;
}

.selected-report-badge {
  font-size: 12px;
  padding: 5px 10px;
}

.report-samples {
  position: relative;
  margin: 0;
}

.report-samples-fade {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 14px;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--panel));
  pointer-events: none;
  z-index: 2;
}

.report-samples-track {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 14px 14px;
  width: 100%;
  max-width: 100%;
}

.report-samples-track::-webkit-scrollbar {
  display: none;
}

.report-sample-card {
  flex: 0 0 min(72vw, 260px);
  width: min(72vw, 260px);
  max-width: 260px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.report-sample-card:hover {
  transform: none;
}

.sample-img-wrap img {
  aspect-ratio: 4/5;
  object-fit: contain;
}

.sample-caption {
  padding: 28px 8px 10px;
}

.sample-label {
  font-size: 13px;
}

.samples-scroll-hint {
  display: block;
  margin: 0;
  padding: 0 14px 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 底部固定 CTA ---------- */
.submit-panel.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  margin: 0;
  width: 100%;
  border-radius: 16px 16px 0 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}

.submit-panel .primary-btn {
  min-height: 50px;
  font-size: 15px;
  border-radius: 12px;
}

.submit-panel .status-line {
  margin-top: 6px;
  font-size: 11px;
}

/* ---------- 侧栏（进度/历史）---------- */
.side {
  gap: 10px;
}

.side-panel-heading {
  padding: 12px 14px;
}

.side-panel-heading h2 {
  font-size: 16px;
}

.side-panel-body {
  padding: 12px 14px 14px;
}

.sticky-panel {
  position: static;
}

/* ---------- 页脚 ---------- */
.site-footer {
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  font-size: 11px;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  align-items: flex-end;
  padding: 0;
}

.modal-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
}

.modal-form-grid {
  grid-template-columns: 1fr;
}

.modal-actions {
  grid-template-columns: 1fr;
  gap: 8px;
}

.modal-cancel,
.modal-confirm {
  min-height: 48px;
}

/* ---------- 超小屏 ---------- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-report-stack--mobile {
    width: 250px;
    height: 200px;
  }

  .hero-report-stack--mobile .hero-report-card {
    width: 108px;
  }

  .hero-report-stack--mobile .hero-report-card.card-mid {
    left: 71px;
  }

  .hero-report-stack--mobile .hero-report-card.card-front {
    left: 142px;
    top: 28px;
  }

  .report-sample-card {
    flex: 0 0 82vw;
    width: 82vw;
  }
}
