/* 设计 Token：黑白灰单色 */
:root {
  --text: #111111;
  --chrome: #111111;
  --chrome-muted: #a3a3a3;
  --bg: #f3f3f3;
  --bg-muted: #e8e8e8;
  --surface: #ffffff;
  --surface-raised: #fafafa;
  --ink: #111111;
  --muted: #6b6b6b;
  --color-primary: #2a2a2a;
  --color-primary-hover: #000000;
  --accent: var(--color-primary);
  --accent-hover: var(--color-primary-hover);
  --accent-soft: #ececec;
  --accent-border: rgba(0, 0, 0, 0.14);
  --border: #dedede;
  --border-strong: #c4c4c4;
  --warn-bg: #f0f0f0;
  --warn-border: #c8c8c8;
  --warn-ink: #2a2a2a;
  --error-bg: #ebebeb;
  --error-ink: #111111;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.12);
  --focus-ring: 0 0 0 3px rgba(0, 0, 0, 0.18);
  --font: "Inter", "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --font-en: "Inter", "Segoe UI", sans-serif;
  --transition-fast: 0.15s ease;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(0, 0, 0, 0.04), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0, 0, 0, 0.05), transparent 45%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 32%, #ececec 100%);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* 营销站与工作区：与首页一致的白底，避免仅首页「宜家式」、其余页渐变底割裂 */
body.product-shell {
  background: #fff;
  background-image: none;
}

.home-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.product-shell--workspace {
  display: flex;
  flex-direction: column;
}

.product-shell--workspace .layout {
  flex: 1;
  min-height: 0;
}

.product-shell--workspace .site-footer {
  margin-top: auto;
}

.product-shell .panel {
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 12px 40px -18px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--border) 85%, var(--color-primary));
}

/* —— Top chrome：与首页统一（纯黑条 + 白底主按钮） —— */
.site-chrome {
  background: #000;
  color: #fafafa;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-chrome-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-chrome-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.site-chrome-logo {
  width: 148px;
  height: 48px;
  border-radius: 0;
  background-color: transparent;
  background-image: url("file:///C:/Users/PC/.cursor/projects/d-AAA-floro/assets/c__Users_PC_AppData_Roaming_Cursor_User_workspaceStorage_5d5fb1f3099a21e08c5af28557cbfbb8_images_6e0617528239472b2114af6e1c0958d5-196e5d44-addb-4290-874d-d95dda07785d.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  border: none;
  flex-shrink: 0;
  filter: grayscale(1);
}

.site-chrome-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}

.floro-home .site-chrome-titles,
.product-shell .site-chrome-titles {
  display: none;
}

.site-chrome-en {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-chrome-zh {
  font-size: 0.8rem;
  color: #a3a3a3;
  font-weight: 500;
  margin-top: 0.1rem;
}

.site-chrome-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #a3a3a3;
}

.site-chrome-release {
  font-family: var(--font-en);
  font-weight: 500;
  color: #a3a3a3;
}

.site-chrome-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.site-chrome-edition {
  color: #a3a3a3;
}

.site-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-chrome-auth-email {
  font-size: 0.72rem;
  color: #cbd5e1;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-chrome-auth {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-chrome-auth:hover {
  background: #e5e5e5;
  border-color: #e5e5e5;
  color: #000;
}

a.btn-chrome-auth {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.2;
}

/* —— 站点导航：与首页统一纯黑底 —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.25rem;
  box-shadow: none;
}

.site-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav-link {
  font-size: 0.8rem;
  color: #d4d4d4;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav-link:hover {
  color: #fff;
}

.site-nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}

.site-nav-link--cta {
  margin-left: auto;
  color: #e5e5e5;
  font-weight: 700;
}

/* 首页：悬停 / Tab 展开分层导览（不点「首页」也能看到下钻路径） */
.site-nav-item--mega {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.site-nav-link--mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link--mega-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #a3a3a3;
  margin-top: 2px;
}

.site-nav-mega {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  z-index: 60;
  width: min(240px, calc(100vw - 2.5rem));
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.38);
}

.site-nav-item--mega:hover .site-nav-mega,
.site-nav-item--mega:focus-within .site-nav-mega {
  display: block;
}

.site-nav-mega-inner {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.site-nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.site-nav-mega-label {
  display: none;
}

.site-nav-mega-link {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #262626;
  text-decoration: none;
  line-height: 1.35;
  border-radius: 8px;
}

.site-nav-mega-link:hover,
.site-nav-mega-link:focus-visible {
  color: #0f172a;
  background: #f3f4f6;
  outline: none;
}

.site-nav-mega-sub {
  display: none;
}

.site-nav-mega-hint {
  display: none;
}

.site-nav-mobile-fallback {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 0.45rem;
}

.site-nav-mobile-fallback-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.72rem;
}

.site-nav-mobile-fallback-inner a {
  color: #a3a3a3;
  text-decoration: none;
  font-weight: 600;
}

.site-nav-mobile-fallback-inner a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-nav-item--mega:hover .site-nav-mega,
  .site-nav-item--mega:focus-within .site-nav-mega {
    display: none;
  }

  .site-nav-mobile-fallback {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-nav-link--cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
  }
}

/* 首页 · 大图主视觉条（少字，点整块下钻到专页） */
.floro-home .home-visual-strip {
  background: #111827;
  border-top: none;
  border-bottom: 1px solid #dbe3ea;
}

.floro-home .home-visual-panorama {
  position: relative;
  min-height: clamp(360px, 76vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

.floro-home .home-visual-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.floro-home .home-visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(1.16) saturate(0.95) contrast(0.95);
  transform: scale(1.03);
  animation: home-hero-carousel 24s linear infinite;
}

.floro-home .home-visual-slide:nth-child(1) {
  animation-delay: 0s;
}

.floro-home .home-visual-slide:nth-child(2) {
  animation-delay: 6s;
}

.floro-home .home-visual-slide:nth-child(3) {
  animation-delay: 12s;
}

.floro-home .home-visual-slide:nth-child(4) {
  animation-delay: 18s;
}

.floro-home .home-visual-panorama__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.2) 55%, rgba(15, 23, 42, 0.42) 100%);
}

.floro-home .home-visual-panorama__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(56px, 9vw, 92px);
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  color: #fff;
  text-align: center;
}

.floro-home .home-visual-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.floro-home .home-visual-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.floro-home .home-visual-lead {
  margin: 0.55rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.68rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.floro-home .home-visual-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
  align-items: center;
}

.floro-home .home-visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  animation: home-hero-dot 24s linear infinite;
}

.floro-home .home-visual-dots span:nth-child(1) {
  animation-delay: 0s;
}

.floro-home .home-visual-dots span:nth-child(2) {
  animation-delay: 6s;
}

.floro-home .home-visual-dots span:nth-child(3) {
  animation-delay: 12s;
}

.floro-home .home-visual-dots span:nth-child(4) {
  animation-delay: 18s;
}

/* 首页桌面端：顶栏叠在轮播上，实现“上下连成一体” */
@media (min-width: 901px) {
  .floro-home .site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.18) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    box-shadow: none;
    flex-wrap: nowrap;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    transition: background-color 0.22s ease, border-color 0.22s ease;
  }

  .floro-home .site-chrome-brand {
    flex-shrink: 0;
  }

  .floro-home .site-chrome-logo {
    width: 128px;
    height: 40px;
    border-radius: 0;
  }

  .floro-home .site-chrome-en {
    font-size: 0.9rem;
  }

  .floro-home .site-chrome-zh,
  .floro-home .site-chrome-meta {
    display: none;
  }

  .floro-home .site-chrome-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.1rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
    white-space: nowrap;
  }

  .floro-home .site-chrome-nav .site-nav-item,
  .floro-home .site-chrome-nav .site-nav-link {
    flex: 0 0 auto;
  }

  .floro-home .site-chrome-nav .site-nav-link,
  .floro-home .site-chrome-nav .site-nav-link[aria-current="page"] {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 600;
  }

  .floro-home .site-chrome-nav .site-nav-link:hover {
    color: #fff;
  }

  .floro-home .site-chrome-nav .site-nav-link--mega-trigger::after {
    border-top-color: rgba(255, 255, 255, 0.86);
  }

  .floro-home .site-chrome-zh,
  .floro-home .site-chrome-release,
  .floro-home .site-chrome-edition {
    color: rgba(255, 255, 255, 0.74);
  }

  .floro-home .site-chrome-actions {
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-left: auto;
  }

  .floro-home .btn-chrome-auth {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.72rem;
    padding: 0.28rem 0.62rem;
    border-radius: 6px;
  }

  .floro-home.home-header-scrolled .site-chrome {
    background: rgba(0, 0, 0, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

@keyframes home-hero-carousel {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  4% {
    opacity: 1;
  }
  23% {
    opacity: 1;
    transform: scale(1.01);
  }
  27% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 0;
  }
}

@keyframes home-hero-dot {
  0% {
    width: 8px;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.5);
  }
  4% {
    width: 26px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
  }
  23% {
    width: 26px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
  }
  27% {
    width: 8px;
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.5);
  }
  100% {
    width: 8px;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.5);
  }
}

.floro-home #brand-intro,
.floro-home #application-scenes,
.floro-home #core-value,
.floro-home #product-matrix-home {
  scroll-margin-top: 112px;
}

.floro-home .home-section {
  padding: clamp(2.8rem, 6vw, 4rem) 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.floro-home .home-section--muted {
  background: #f6f7f9;
}

.floro-home .home-section--muted .home-mini-card,
.floro-home .home-section--muted .home-pill {
  background: #fff;
}

.floro-home .home-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.floro-home .home-section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.floro-home .home-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.floro-home .home-section-lead {
  margin: 0.9rem 0 1.5rem;
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
}

.floro-home .home-whitepaper-cta {
  margin: 1.25rem 0 0;
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #475569;
}

.floro-home .home-whitepaper-cta a {
  font-weight: 600;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.floro-home .home-section--split .home-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.floro-home .home-section-image {
  border-radius: 12px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.floro-home .home-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.floro-home .home-mini-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px -24px rgba(15, 23, 42, 0.3);
}

.floro-home .home-mini-card-image {
  min-height: 130px;
  background-size: cover;
  background-position: center;
}

.floro-home .home-mini-card h3 {
  margin: 0.85rem 0.95rem 0.4rem;
  font-size: 1.06rem;
  color: #0f172a;
}

.floro-home .home-mini-card p {
  margin: 0 0.95rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
}

.floro-home .home-pills-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.floro-home .home-pill {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 190px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 30px -24px rgba(15, 23, 42, 0.32);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.floro-home .home-pill:hover {
  background: #fff;
  border-color: #bdbdbd;
  transform: translateY(-1px);
}

.floro-home .home-pill-image {
  display: block;
  min-height: 132px;
  background-size: cover;
  background-position: center;
}

.floro-home .home-pill-title {
  display: block;
  padding: 0.8rem 0.85rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  text-align: center;
}

.floro-home .home-pill-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
}

@media (max-width: 920px) {
  .floro-home .home-visual-panorama {
    min-height: 62vh;
  }

  .floro-home .home-section--split .home-section-inner {
    grid-template-columns: 1fr;
  }

  .floro-home .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .floro-home .home-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .floro-home .home-visual-panorama {
    min-height: 56vh;
  }

  .floro-home .home-visual-panorama__copy {
    bottom: 52px;
  }

  .floro-home .home-visual-title {
    font-size: clamp(1.6rem, 8.5vw, 2.35rem);
  }

  .floro-home .home-visual-lead {
    font-size: clamp(0.95rem, 4.6vw, 1.2rem);
  }

  .floro-home .home-pills-grid {
    grid-template-columns: 1fr;
  }
}

.floro-home .home-overview-modules {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 2.2rem 1.25rem 2.6rem;
}

.floro-home .home-overview-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
}

.floro-home .home-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.floro-home .home-overview-card__text {
  padding: 1rem 1.05rem;
}

.floro-home .home-overview-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.floro-home .home-overview-card h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
  color: #0f172a;
}

.floro-home .home-overview-card p {
  margin: 0.55rem 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.floro-home .home-overview-card a {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.floro-home .home-overview-card a:hover {
  text-decoration: underline;
}

.floro-home .home-overview-card__visual {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  border-left: 1px solid #e2e8f0;
}

@media (max-width: 920px) {
  .floro-home .home-overview-card {
    grid-template-columns: 1fr;
  }

  .floro-home .home-overview-card__visual {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    min-height: 170px;
  }
}

.product-hub {
  padding: 2.5rem 1.25rem 3.25rem;
  background: linear-gradient(180deg, #eef2f7 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
}

.product-hub-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.product-hub-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.product-hub-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52rem;
}

.product-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

a.product-hub-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
}

.product-hub-card__img {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #e2e8f0;
}

.product-hub-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

a.product-hub-card:hover .product-hub-card__img img {
  transform: scale(1.04);
}

.product-hub-card__body {
  padding: 1.15rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

a.product-hub-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 40%, #0f172a));
  opacity: 0;
  transition: opacity 0.18s ease;
}

a.product-hub-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

a.product-hub-card:hover::before {
  opacity: 1;
}

.product-hub-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.product-hub-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.product-hub-card--cta {
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--border));
  background: linear-gradient(165deg, #eeeeee 0%, #fff 55%);
}

.product-hub-card--cta .product-hub-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(238, 238, 238, 0.85) 100%);
}

.product-page-main {
  padding-bottom: 2rem;
}

.section-pager {
  margin-top: 1.5rem;
}

.start-page-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.start-section-tight {
  padding-top: 0;
}

.start-lead-p {
  margin: 0;
}

.start-subheading {
  font-size: 1.15rem;
}

.start-subheading--spaced {
  margin-top: 1.5rem;
}

.start-lead {
  font-size: 0.95rem;
}

.start-tech-p {
  line-height: 1.65;
}

/* —— Workspace: sync status bar —— */
.sync-status-bar {
  background: #ebebeb;
  border-bottom: 1px solid #c4c4c4;
  color: #111111;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
}

.sync-status-bar--hidden {
  display: none;
}

.sync-status-bar--warn {
  background: #e8e8e8;
  border-bottom-color: #bdbdbd;
  color: #222222;
}

.sync-status-bar--ok {
  background: #f0f0f0;
  border-bottom-color: #c4c4c4;
  color: #1a1a1a;
}

.sync-status-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
}

.sync-status-text {
  flex: 1;
  min-width: 12rem;
  line-height: 1.5;
}

.sync-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-sync-retry,
.btn-sync-dismiss {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #1a1a1a;
}

.btn-sync-retry:hover,
.btn-sync-dismiss:hover {
  background: #f0f0f0;
}

.sync-status-bar--warn .btn-sync-retry,
.sync-status-bar--warn .btn-sync-dismiss {
  border-color: #a3a3a3;
  color: #262626;
}

.sync-status-bar--ok .btn-sync-retry,
.sync-status-bar--ok .btn-sync-dismiss {
  display: none;
}

/* —— Workspace: onboarding —— */
.welcome-onboarding {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--border));
  background: linear-gradient(165deg, #ececec 0%, #fff 55%);
  box-shadow: var(--shadow);
}

.welcome-onboarding-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.welcome-onboarding-list {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
}

.welcome-onboarding-list li {
  margin-bottom: 0.35rem;
}

.welcome-onboarding-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.btn-onboarding-dismiss {
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.sidebar-onboarding {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 35%, var(--border));
  background: #f8fafc;
}

.sidebar-onboarding-inner {
  margin: 0;
}

.sidebar-onboarding-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sidebar-onboarding .small {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.sidebar-onboarding .btn-sm {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

/* —— 能力边界：非实盘报价 —— */
.expectation-callout {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #cfcfcf;
  background: linear-gradient(180deg, #f0f0f0 0%, #fff 100%);
  color: #262626;
  font-size: 0.88rem;
  line-height: 1.6;
}

.expectation-callout-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111111;
}

.expectation-callout-list {
  margin: 0;
  padding-left: 1.2rem;
}

.expectation-callout-list li {
  margin-bottom: 0.4rem;
}

.expectation-callout-list li:last-child {
  margin-bottom: 0;
}

.vendor-directory-callout {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--border));
  background: #f8fafc;
  color: #334155;
}

.vendor-directory-callout a {
  color: var(--color-primary);
  font-weight: 600;
}

.vendor-website a {
  color: var(--color-primary);
}

.vendor-photo-refs {
  font-size: 0.76rem;
  line-height: 1.45;
}

.vendor-photo-refs-lead {
  color: var(--muted);
}

.vendor-photo-refs a {
  color: var(--color-primary);
  font-weight: 500;
}

.modal--auth .body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-modal-lead {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

.auth-modal-lead code {
  font-size: 0.85em;
}

.auth-modal-lead a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.auth-terms-agree input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.auth-terms-agree label {
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}

.auth-terms-agree a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms-agree a:hover {
  color: var(--color-primary-hover);
}

.auth-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
}

.auth-field span {
  font-weight: 600;
}

.auth-field input {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.auth-error {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.82rem;
  color: #b91c1c;
}

.auth-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— 合规条（中性、非警告色） —— */
.compliance-strip {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.compliance-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.compliance-en {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: var(--font-en);
  line-height: 1.45;
}

/* —— Hero（产品级首屏） —— */
header.hero {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 55%, #f4f6f9 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hero--product .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 8%, var(--surface)) 0%,
    var(--surface) 42%,
    #f1f5f9 100%
  );
  pointer-events: none;
}

.hero--product .hero-bg::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-primary) 15%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.35rem 1.5rem 2.5rem;
}

.hero--visual-first .hero-inner {
  padding-top: 1.65rem;
}

.hero-flow--top {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: var(--shadow-md);
}

.hero-flow-heading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.2rem 0.15rem;
}

.hero-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  min-width: 4.75rem;
  flex: 1 1 4.5rem;
  max-width: 7.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.hero-flow-step--arrow {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  padding: 0 0.1rem;
  background: transparent;
  border: none;
  justify-content: center;
  align-self: center;
}

.hero-flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--color-primary);
}

.hero-flow-icon svg {
  display: block;
}

.hero-flow-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.25;
}

.hero-flow-chevron {
  font-size: 1.35rem;
  font-weight: 300;
  color: #cbd5e1;
  line-height: 1;
  padding: 0 0.05rem;
}

@media (max-width: 640px) {
  .hero-flow-step--arrow {
    flex-basis: 100%;
    height: 0.5rem;
    padding: 0;
  }

  .hero-flow-chevron {
    transform: rotate(90deg);
    font-size: 1.15rem;
  }
}

.hero-subtitle--glance {
  margin-bottom: 1rem;
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
  line-height: 1.45;
}

.hero-glance-icons {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hero-glance-icons li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.hero-glance-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-glance-ic svg {
  display: block;
}

.hero-expand {
  margin-top: 0.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.65);
}

.hero-expand summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-expand[open] summary {
  margin-bottom: 0.65rem;
  color: var(--color-primary);
}

.hero-expand .hero-punch {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.hero-expand .hero-sub {
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.hero-figure--ambient .hero-photo {
  box-shadow: var(--shadow-md);
}

.hero-figure--ambient .hero-photo-caption {
  text-align: right;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
  gap: 2rem 2.25rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-lg);
}

.hero-photo-caption {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

header.hero h1,
.hero-title {
  margin: 0 0 0.65rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero--impact .hero-title {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.18;
}

.hero-subtitle {
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.02em;
  max-width: 40em;
}

.hero-subtitle-sep {
  opacity: 0.35;
  margin: 0 0.4rem;
  font-weight: 400;
  color: #94a3b8;
}

.hero-punch {
  margin: 0 0 0.75rem;
  color: #334155;
  font-size: 1.08rem;
  max-width: 42em;
  line-height: 1.65;
}

.hero-sub {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.98rem;
  max-width: 40em;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.hero-link-row {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.hero-link-row a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.hero-link-row a:hover {
  text-decoration: underline;
}

.hero-link-dot {
  margin: 0 0.35rem;
  color: #94a3b8;
}

.btn-hero {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn-hero:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-hero-secondary:hover {
  background: var(--accent-soft);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.btn-hero-ghost:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics-note {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  max-width: 52rem;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.hero-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-lead {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  max-width: 38em;
  line-height: 1.6;
}

.hero-tagline-en {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-en);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 40em;
  line-height: 1.5;
}

/* 产品与内容交付（深化纯产品路线） */
.deliverables-section {
  padding: 2.5rem 1.25rem 2.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.deliverables-section--after-hero {
  padding-top: 1.5rem;
}

.deliverables-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.deliverables-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.deliverables-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52em;
  line-height: 1.6;
}

.deliverables-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deliverables-card {
  background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.deliverables-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--border));
}

.deliverables-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.deliverables-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
}

.deliverables-subheading {
  margin: 1.5rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.deliverables-table-wrap {
  margin-top: 0.25rem;
}

.deliverables-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.deliverables-table th,
.deliverables-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.deliverables-table thead th {
  background: #f1f5f9;
  font-weight: 600;
}

.deliverables-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* 价值区 */
.value-section {
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2.75rem;
}

.value-section--after-hero {
  padding-top: 1.5rem;
}

.value-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.value-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.value-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40em;
}

.value-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.value-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--border));
  box-shadow: 0 8px 30px -12px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.value-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.value-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.65;
}

.compare-box {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.compare-table thead th {
  background: #f1f5f9;
  font-weight: 600;
}

/* 多角色协作（产品方向） */
.roles-section {
  padding: 2.5rem 1.25rem 2.75rem;
  background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.roles-section--after-hero {
  padding-top: 1.5rem;
}

.roles-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.roles-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.roles-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52em;
  line-height: 1.6;
}

.roles-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roles-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.roles-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--border));
  box-shadow: 0 8px 28px -14px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.roles-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.roles-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.65;
}

.mvp-boundary {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fffbeb;
  border-left: 4px solid #d97706;
}

.mvp-boundary-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  text-transform: none;
}

.mvp-boundary-title:not(:first-child) {
  margin-top: 1rem;
}

.mvp-boundary-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.6;
}

.mvp-boundary-next {
  margin: 0;
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.6;
}

/* 信任区 */
.trust-section {
  padding: 2rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-section--compact {
  padding: 1.35rem 1.25rem 2rem;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.trust-heading {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.trust-lead {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.trust-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 快速启动条 */
.quick-start-banner {
  background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
  border-bottom: 1px solid var(--accent-border);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: #333333;
}

.quick-start-inner {
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.55;
}

.quick-start-banner code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
}

/* 纯产品与内容定位条 */
.position-strip {
  background: linear-gradient(90deg, #ececec 0%, #f8fafc 50%, #ececec 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.55;
}

.position-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.position-inner strong {
  color: var(--ink);
}

.position-en {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-en);
}

/* —— 子页：纯文字顶栏（不展示装饰性大图） —— */
.subpage-hero {
  position: relative;
  min-height: 0;
  height: auto;
  display: block;
  overflow: visible;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.subpage-hero__media,
.subpage-hero__overlay {
  display: none !important;
}

.subpage-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.15rem;
}

.subpage-hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.subpage-hero__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
  text-shadow: none;
}

.subpage-hero__tag {
  margin: 0 0 1rem;
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: #475569;
  line-height: 1.5;
  max-width: 40rem;
}

.subpage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.subpage-hero__actions .btn-hero,
.subpage-hero__actions .btn-hero-secondary {
  min-width: 120px;
  justify-content: center;
}

.subpage-hero__actions .btn-hero-secondary {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.subpage-hero__actions .btn-hero-secondary:hover {
  background: #e2e8f0;
}

.subpage-hero__actions .btn-hero-ghost {
  color: #334155;
}

.subpage-hero__actions .btn-hero-ghost:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@media (max-width: 920px) {
  .subpage-hero__inner {
    padding: 1.1rem 1rem 1rem;
  }
}

/* 长文默认折叠，减轻首屏负担 */
.page-fold {
  margin: 0 0 1.35rem;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 52em;
}

.page-fold > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.45rem 0;
}

.page-fold > summary::-webkit-details-marker {
  display: none;
}

.page-fold[open] > summary {
  margin-bottom: 0.55rem;
}

.page-fold__body {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: #f8fafc;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.62;
}

.compliance-strip--after-hero {
  border-top: none;
}

.smb-lead--tight {
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #334155;
}

/* 为谁而做 · 中小微企业 */
.smb-section {
  padding: 2rem 1.25rem 2.25rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.smb-section--after-hero {
  padding-top: 1.35rem;
}

.smb-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.smb-heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.smb-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  max-width: 52em;
}

.smb-lead--secondary {
  margin: -0.35rem 0 1.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.62;
  max-width: 52em;
}

.smb-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .smb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.smb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.smb-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--border));
}

.smb-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.smb-card p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.6;
}

/* 欢迎区 · 规模模板按钮 */
.welcome-onboarding-details {
  margin: 0 0 1.15rem;
  text-align: left;
}

.welcome-onboarding-details > summary {
  text-align: center;
}

.welcome-onboarding-body {
  text-align: left;
}

.welcome-onboarding-body .welcome-onboarding-list {
  margin: 0.35rem 0 0.65rem;
}

.welcome-templates {
  margin: 1.15rem 0 1rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--border));
  background: color-mix(in srgb, var(--color-primary) 4%, var(--surface));
}

.welcome-templates-lead {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--ink);
  text-align: center;
}

.welcome-template-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn-welcome-tpl {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

/* 项目模板专章 */
.project-templates-section {
  padding: 2.25rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.project-templates-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.project-templates-heading {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.project-templates-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  max-width: 52em;
}

.project-templates-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .project-templates-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-templates-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.project-templates-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--border));
}

.project-templates-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tpl-meta {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
}

.tpl-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.project-templates-foot {
  margin: 1.25rem 0 0;
  color: var(--muted);
  max-width: 52em;
}

.btn-sidebar-highlight {
  box-shadow: 0 2px 12px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

/* 主区引导（无项目时） */
.onboarding-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}

.onboarding-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.onboarding-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.onboarding-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

.onboarding-steps strong {
  color: var(--ink);
}

.onboarding-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-onboarding {
  align-self: flex-start;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
}

.onboarding-link {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.onboarding-metrics {
  font-size: 0.78rem;
  color: #94a3b8;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* 欢迎引导面板（与 app.js WELCOME_PANEL_HTML 配套） */
.welcome-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.welcome-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.welcome-sub {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.welcome-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.welcome-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--border));
}

.welcome-step-icon {
  flex-shrink: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  width: 2.25rem;
  text-align: center;
}

.welcome-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.welcome-step-body strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.welcome-step-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

.welcome-hook {
  margin: 0.25rem 0 1.15rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.45;
}

.welcome-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.btn-welcome-start {
  padding: 0.75rem 1.85rem;
  font-weight: 700;
  font-size: 1rem;
}

.welcome-alt {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.welcome-demo {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(248, 250, 252, 0.85);
}

.welcome-demo summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
}

.welcome-demo summary::-webkit-details-marker {
  display: none;
}

.welcome-demo summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.welcome-demo[open] summary::before {
  transform: rotate(90deg);
}

.welcome-demo-body {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.welcome-demo-body p {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
}

.welcome-demo-body p:last-child {
  margin-bottom: 0;
}

.welcome-footer-link {
  text-align: center;
  margin: 1rem 0 0;
  color: var(--muted);
}

.welcome-footer-link a {
  color: var(--color-primary);
  font-weight: 600;
}

/* 第 6 步 · 协作与老板视图 */
.panel-collab {
  border-color: color-mix(in srgb, var(--color-primary) 22%, var(--border));
}

.collab-thread {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.collab-empty {
  margin: 0;
  color: var(--muted);
}

.collab-msg {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.collab-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.collab-msg-author {
  font-weight: 700;
  color: var(--ink);
}

.collab-msg-time {
  font-variant-numeric: tabular-nums;
}

.collab-msg-body {
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.collab-hr {
  margin: 1.15rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.collab-hint {
  color: #2a2a2a;
  margin-top: 0.5rem;
}

.boot-screen {
  padding: 2.5rem 1.5rem;
}

.boot-title {
  margin: 1rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.boot-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-en);
}

.panel-sidebar--product .sidebar-caption {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.panel-sidebar--product .sidebar-footnote {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

.site-footer {
  max-width: none;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.site-footer--minimal {
  padding: 1.35rem 1.25rem 1.75rem;
  text-align: center;
  background: var(--bg);
}

.site-footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.site-footer-inner p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer-inner__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-inner__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer--minimal .footer-icp {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

.site-footer--minimal .footer-icp a {
  color: var(--muted);
}

.site-footer-grid {
  max-width: 1180px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.site-footer-brand-block .site-footer-brand {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-footer-tagline {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 18rem;
}

.site-footer-col--links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.site-footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.site-footer-col--links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.site-footer-col--links a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .site-footer {
    text-align: center;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer-col--links {
    align-items: center;
  }

  .site-footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.site-footer-dot {
  opacity: 0.4;
}

.site-footer-brand {
  font-weight: 700;
  color: var(--color-primary);
}

.footer-legal {
  font-size: 0.78rem;
  color: #94a3b8;
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.55;
  text-align: center;
}

.footer-legal a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* 工信部 ICP 备案号（首页底部公示，链至 beian.miit.gov.cn） */
.footer-icp {
  margin: 0.65rem auto 0;
  padding: 0 1rem;
  max-width: 820px;
  text-align: center;
  font-size: 0.78rem;
}

.footer-icp a {
  color: #64748b;
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* —— 法律页 / 联系页正文 —— */
.legal-page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0.5rem;
}

.legal-page-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.legal-page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.legal-page-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.legal-doc-inner {
  max-width: 46rem;
}

.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

.legal-doc p {
  margin: 0 0 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc .legal-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: #f8fafc;
  font-size: 0.86rem;
  color: #475569;
}

.contact-card {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 28rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 600;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 1.35rem;
}

#mainWorkspace {
  min-height: 280px;
}

.empty-state-main {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state-main p {
  margin: 0 0 0.5rem;
}

.empty-state-main .small {
  line-height: 1.65;
}

.empty-en {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: #94a3b8;
}

.boot-hint kbd {
  font: inherit;
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
}

.boot-hint code {
  font-size: 0.88em;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: 288px 1fr;
    align-items: start;
  }

  .panel-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.panel-sidebar h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
}

.panel h2.panel-title {
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink);
}

.panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1rem;
}

.panel-title-zh {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.panel-title-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

h3.section-heading.mt {
  margin-top: 0.75rem;
}

.section-heading-en {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.3rem;
}

.field-label-zh {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.field-label-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

.scenario-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.scenario-zh {
  font-size: 0.92rem;
}

.scenario-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.preset-card h3 {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.preset-title-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.est-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .est-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .est-grid.tgt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scheme-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .scheme-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scheme-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--accent);
}

.est-output .card-like,
.est-result.card-like {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.file-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.ocr-block {
  padding: 0.85rem 1rem;
}

.ocr-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.target-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: #fafafa;
}

.target-row .mt {
  margin-top: 0.5rem;
}

.lease-legend-list {
  margin: 0.5rem 0 0 1.15rem;
  padding: 0;
}

.lease-legend-list li {
  margin-bottom: 0.35rem;
}

label.row {
  cursor: pointer;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-ghost:hover {
  background: #d1fae5;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-bi .btn-en {
  font-family: var(--font-en);
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.92;
}

.scenario-grid {
  display: grid;
  gap: 0.45rem;
}

.scenario-grid label.row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0;
}

.scenario-grid input[type="checkbox"] {
  margin-top: 0.2rem;
}

.preset-cards {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .preset-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.preset-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.preset-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.preset-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.preset-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.preset-desc-en {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

.alloc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.alloc-table th,
.alloc-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.alloc-table th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
}

.alloc-table th .th-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.alloc-table tr.alloc-total-row td {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--surface));
  font-weight: 600;
}

.panel-workflow-phase {
  background: color-mix(in srgb, var(--color-primary, #2a2a2a) 6%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--color-primary, #2a2a2a) 22%, var(--border));
}

.workflow-phase-select {
  display: block;
  width: 100%;
  max-width: 42rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface, #fff);
}

.workflow-phase-hint {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  max-width: 44rem;
  line-height: 1.5;
}

.site-scenario-hint {
  max-width: 48rem;
  line-height: 1.55;
  color: var(--muted);
}

.location-filter {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.location-filter-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.location-filter .workflow-phase-select {
  max-width: 22rem;
}

.vendor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  background: #fafafa;
}

.vendor-card--with-photo {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  grid-template-areas:
    "media main"
    "details details";
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.75rem;
}

.vendor-card--with-photo .vendor-card-media {
  grid-area: media;
}

.vendor-card--with-photo .vendor-card-main {
  grid-area: main;
}

.vendor-card--with-photo .vendor-card-details {
  grid-area: details;
}

@media (max-width: 520px) {
  .vendor-card--with-photo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "main"
      "details";
  }
}

.vendor-card--has-details {
  cursor: pointer;
}

.vendor-card--has-details a,
.vendor-card--has-details label,
.vendor-card--has-details input {
  cursor: pointer;
}

.vendor-card-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.vendor-card-details {
  margin: 0;
  padding: 0.65rem 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  cursor: default;
}

.vendor-card-details .vendor-specs {
  margin-top: 0.25rem;
}

.vendor-card-details .vendor-photo-gallery {
  margin: 0.5rem 0 0.35rem;
}

/* 商办名录：同盘多图（与主图可重复，便于展开后横向浏览） */
.vendor-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}

.vendor-photo-gallery__cell {
  flex: 0 0 auto;
  max-width: min(100%, 200px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: #f8fafc;
}

.vendor-photo-gallery__img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.vendor-card--has-details.is-expanded {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--border));
  box-shadow: var(--shadow);
}

.vendor-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vendor-card-photo-slot {
  aspect-ratio: 8 / 5;
  max-height: 140px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.vendor-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vendor-card-photo--missing {
  object-fit: none;
  background: #e2e8f0;
  min-height: 5rem;
}

.vendor-card-photo-caption {
  margin: 0;
  padding: 0 0.1rem 0.15rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted-foreground, #64748b);
}

.vendor-card-main {
  min-width: 0;
}

.vendor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.25rem;
}

.vendor-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.vendor-card .name {
  font-weight: 600;
}

.vendor-card .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* 楼宇名录：通用 specs 表，便于多项目横向扫读对比 */
.vendor-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 0.45rem 0 0.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.vendor-specs th {
  width: 5.75rem;
  max-width: 32%;
  vertical-align: top;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 0.38rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface, #f8fafc) 88%, #fff);
  font-size: 0.72rem;
  line-height: 1.35;
}

.vendor-specs td {
  vertical-align: top;
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  line-height: 1.45;
  word-break: break-word;
}

.vendor-specs tr:last-child th,
.vendor-specs tr:last-child td {
  border-bottom: none;
}

@media (max-width: 420px) {
  .vendor-specs th,
  .vendor-specs td {
    display: block;
    width: 100%;
    max-width: none;
  }

  .vendor-specs th {
    padding-bottom: 0.1rem;
    border-bottom: none;
  }

  .vendor-specs td {
    padding-top: 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  }

  .vendor-specs tr:last-child td {
    border-bottom: none;
  }
}

/* 第4步：勾选多家后的横向对照（办公楼 specs 按列对齐） */
.vendor-compare-panel {
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
  margin-top: 1rem;
}

.vendor-compare-panel .vendor-compare-panel-title {
  margin-top: 0.35rem;
}

.vendor-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.35rem 0 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.vendor-compare-table {
  margin: 0;
  min-width: 100%;
  font-size: 0.8rem;
}

.vendor-compare-table th[scope="row"] {
  white-space: nowrap;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-raised);
  min-width: 5.5rem;
  max-width: 8rem;
}

.vendor-compare-table td {
  vertical-align: top;
  word-break: break-word;
}

.vendor-compare-table .vc-col-head {
  font-weight: 600;
}

.vendor-compare-table .vc-col-meta {
  font-weight: 400;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.vc-intro {
  margin-bottom: 0.65rem;
}

.vc-nav {
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

.vc-nav-lead {
  margin: 0 0 0.35rem;
}

.vc-nav-list {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.vc-nav-list a {
  color: var(--accent-hover);
  font-weight: 500;
}

.vc-toolbar {
  margin: 0.15rem 0 0;
}

details.vc-cat.vendor-compare-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 0 0.65rem;
  padding: 0 var(--space-3) var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow);
}

details.vc-cat summary.vc-cat-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

details.vc-cat summary::-webkit-details-marker {
  display: none;
}

details.vc-cat summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--muted);
  transition: transform var(--transition-fast);
  font-size: 0.85em;
}

details.vc-cat[open] summary::before {
  transform: rotate(90deg);
}

.vc-cat-title {
  font-weight: 600;
  color: var(--ink);
}

.vc-cat-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.vc-cat-body {
  padding-top: 0.25rem;
}

.vc-cat-stack {
  margin-top: 0.25rem;
}

.vc-inv-stack {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.vc-inv-block {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.65rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 92%, #fff);
}

.vc-inv-lead {
  margin: 0 0 0.4rem;
  line-height: 1.45;
}

.vendor-rental-inv-wrap {
  margin: 0.5rem 0 0.35rem;
}

.vendor-rental-inv-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.vendor-rental-inv-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.vendor-rental-inv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin: 0.25rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.vendor-rental-inv th,
.vendor-rental-inv td {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding: 0.35rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.vendor-rental-inv thead th {
  background: color-mix(in srgb, var(--surface-raised) 90%, #fff);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.vendor-rental-inv tbody tr:last-child td {
  border-bottom: none;
}

.vendor-card .meta.vendor-note {
  margin-top: 0.35rem;
  padding-top: 0.25rem;
  border-top: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

.acc-item {
  margin-bottom: 1rem;
}

.acc-item h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.acc-item h4 .h4-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.empty-hint {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.5rem 0;
}

.report-preview {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  max-height: 60vh;
  overflow: auto;
  font-size: 0.9rem;
}

.report-preview h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.report-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

.report-preview th,
.report-preview td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.report-preview tr.alloc-total-row td {
  background: rgba(13, 148, 136, 0.08);
  font-weight: 600;
}

.report-preview .report-doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.report-preview .rpt-dash {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%);
}

.report-preview .rpt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.report-preview .rpt-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.report-preview .rpt-kpi-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
}

.report-preview .rpt-kpi-num {
  display: block;
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.2rem 0;
}

.report-preview .rpt-kpi-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.report-preview .rpt-split-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.report-preview .rpt-split-bar {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}

.report-preview .rpt-split-seg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-preview .rpt-split-seg--rent {
  background: linear-gradient(90deg, #4a4a4a, #737373);
}

.report-preview .rpt-split-seg--once {
  background: linear-gradient(90deg, #525252, #8a8a8a);
}

.report-preview .rpt-charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .report-preview .rpt-charts-row.has-scheme {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
    align-items: start;
  }
}

.report-preview .rpt-donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.report-preview .rpt-donut-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.report-preview .rpt-donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.report-preview .rpt-donut-hole {
  position: absolute;
  inset: 28%;
  background: #fff;
  border-radius: 50%;
}

.report-preview .rpt-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #475569;
}

.report-preview .rpt-donut-center strong {
  font-size: 14px;
  color: #0f172a;
}

.report-preview .rpt-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}

.report-preview .rpt-legend li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 0.35rem;
}

.report-preview .rpt-leg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.report-preview .rpt-scheme-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.report-preview .rpt-panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.report-preview .rpt-scheme-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.5rem;
  min-height: 140px;
}

.report-preview .rpt-sbar-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.report-preview .rpt-sbar-track {
  width: 100%;
  max-width: 56px;
  height: 110px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.report-preview .rpt-sbar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #3a3a3a, #6b6b6b);
  min-height: 4px;
}

.report-preview .rpt-sbar-label {
  font-size: 0.72rem;
  color: #475569;
  text-align: center;
  line-height: 1.25;
}

.report-preview .rpt-sbar-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

.report-preview .rpt-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}

.report-preview .rpt-badge--cycle {
  background: rgba(0, 0, 0, 0.08);
  color: #2a2a2a;
}

.report-preview .rpt-badge--once {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.report-preview .rpt-badge--meta {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.modal--report {
  max-width: 1080px;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  width: 28px;
  height: 28px;
  margin: 1rem auto 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: app-spin 0.65s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
    border-color: var(--accent);
  }

  .modal-overlay,
  .modal {
    transition: none;
  }

  .modal-overlay.open .modal {
    transform: none;
  }
}

.modal header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.modal header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal .body {
  padding: 1rem 1.25rem;
  overflow: auto;
  flex: 1;
}

.modal .actions {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: #fafafa;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
   transition: color 0.12s;
}

.project-list li:hover {
  color: var(--accent);
}

.project-list li.active {
  font-weight: 600;
  color: var(--accent);
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
}

.mt {
  margin-top: 0.75rem;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.card-like {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafafa;
}

.panel-estimate {
  border-left: 3px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* —— 列表页工具栏（名录搜索等） —— */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.input-search {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E")
    0.65rem 50% no-repeat;
  background-size: 16px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toolbar-hint {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* —— 数据表容器（横向滚动 + 行悬停） —— */
.data-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.data-table-wrap .alloc-table {
  margin-top: 0;
}

.data-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--border);
}

.alloc-table tbody tr {
  transition: background var(--transition-fast);
}

.alloc-table tbody tr:hover td {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--surface));
}

.vendor-card.is-hidden {
  display: none !important;
}

.vendor-card--match-suggest {
  box-shadow: inset 3px 0 0 0 #d97706;
  background: color-mix(in srgb, #fffbeb 50%, var(--surface));
}

.workspace-smart-match {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.workspace-smart-match-lead {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.workspace-smart-match textarea {
  width: 100%;
  min-height: 4.75rem;
  resize: vertical;
  padding: var(--space-3);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font: inherit;
  box-sizing: border-box;
}

.workspace-smart-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  align-items: center;
}

.workspace-smart-match-summary {
  margin-top: var(--space-3);
  padding: var(--space-3);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xs);
}

.workspace-smart-match-summary[hidden] {
  display: none !important;
}

.workspace-smart-match-panel .workspace-smart-match-lead {
  margin-top: var(--space-2);
}

.workspace-smart-match-thread {
  max-height: 14rem;
  overflow-y: auto;
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--bg-muted);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.workspace-smart-match-thread-empty {
  margin: 0;
  color: var(--muted);
}

.workspace-smart-match-bubble {
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 92%;
}

.workspace-smart-match-bubble:last-child {
  margin-bottom: 0;
}

/* 客户在左、顾问在右；色调用 Floro 黑白灰主色 */
.workspace-smart-match-bubble--user {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.workspace-smart-match-bubble--assistant {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.workspace-smart-match-bubble-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.workspace-smart-match-bubble--user .workspace-smart-match-bubble-label {
  color: var(--muted);
  background: var(--bg-muted);
}

.workspace-smart-match-bubble--assistant .workspace-smart-match-bubble-label {
  color: #fff;
  background: var(--color-primary);
}

.workspace-smart-match-bubble--user .workspace-smart-match-bubble-text {
  display: inline-block;
  text-align: left;
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px 12px 12px 12px;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.workspace-smart-match-bubble--assistant .workspace-smart-match-bubble-text {
  display: inline-block;
  text-align: left;
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  border: 1px solid var(--color-primary-hover);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.workspace-smart-match-chips-wrap {
  margin: var(--space-2) 0 var(--space-3);
}

.workspace-smart-match-chips-lead {
  margin: 0 0 var(--space-2) !important;
}

.workspace-smart-match-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-vendor-pager {
  margin-top: var(--space-3);
}

.acc-filter-empty {
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius-xs);
  border: 1px dashed var(--border);
  display: none;
}

.acc-filter-empty.is-visible {
  display: block;
}

/* —— 统一空态 —— */
.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.state-block__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-primary) 15%, var(--surface)),
    var(--bg-muted)
  );
  border: 1px solid var(--border);
  position: relative;
}

.state-block__icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--border-strong);
  border-radius: 4px;
  opacity: 0.7;
}

.empty-state-main.state-block {
  border-style: solid;
}

/* —— 首页：企业级信任条 / 能力支柱（index 专用） —— */
.trust-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
}

.trust-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
}

.trust-item-tag {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
}

.trust-strip--visual .trust-thumb {
  width: 140px;
  height: 93px;
  border-radius: 10px;
  object-fit: cover;
}

.trust-thumb-link {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
}

.trust-thumb-link:hover .trust-thumb {
  transform: scale(1.02);
}

/* 首页：工具场景图（每图对应一个工具） */
.tool-scenes {
  padding: 1.5rem 1.25rem 1.8rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.tool-scenes-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tool-scenes-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tool-scenes-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.tool-scenes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tool-scenes-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.tool-scenes-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.tool-scenes-card-link {
  display: block;
}

.tool-scenes-card-link:hover img {
  transform: scale(1.02);
}

.tool-scenes-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.trust-strip--visual .trust-item-label {
  font-size: 1.05rem;
}

.trust-strip--visual .trust-item-text {
  font-size: 0.82rem;
  line-height: 1.4;
}

.trust-thumb {
  width: 100px;
  height: 67px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.trust-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.trust-item-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-en);
}

.trust-item-text {
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .trust-strip-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    flex-wrap: wrap;
  }

  .tool-scenes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tool-scenes-grid {
    grid-template-columns: 1fr;
  }
}

.enterprise-pillars {
  padding: 2.75rem 1.25rem 2.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.enterprise-pillars-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.enterprise-heading-block {
  margin-bottom: 1.65rem;
  max-width: 44rem;
}

.enterprise-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.28rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.enterprise-section-lead {
  margin: 0;
  font-size: 0.96rem;
  color: #64748b;
  line-height: 1.65;
}

.enterprise-section-lead strong {
  color: #334155;
  font-weight: 600;
}

.pillars-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.pillar-card {
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #f1f5f9 0%, #ffffff 52%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pillar-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pillar-title {
  margin: 0;
  padding: 1.1rem 1.45rem 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pillar-desc {
  margin: 0;
  padding: 0.55rem 1.45rem 1.35rem;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.62;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* 首页：产品功能（工具清单） */
.product-tools {
  padding: 2.5rem 1.25rem 2.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.product-tools-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.product-tools-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.product-tools-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 40rem;
}

.product-tools-lead--short {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  max-width: 36rem;
}

.product-tools-expand {
  margin: 0 0 1.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: #f8fafc;
}

.product-tools-expand summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.product-tools-expand[open] summary {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-tools-lead--in-details {
  margin: 0;
  font-size: 0.88rem;
}

.product-tools-expand + .product-tools-subtitle {
  margin-top: 0.35rem;
}

.product-tools-subtitle {
  margin: 2rem 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-tools-lead + .product-tools-subtitle {
  margin-top: 0.35rem;
}

.product-tools-grid + .product-tools-subtitle {
  margin-top: 2.35rem;
}

.product-tools-planned-lead {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.58;
  max-width: 42rem;
}

.product-tools-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 1rem;
}

.product-tools-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.product-tools-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--color-primary);
}

.product-tools-icon svg {
  display: block;
}

.product-tools-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.product-tools-item--planned {
  flex-direction: column;
  gap: 0.55rem;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--border-strong) 85%, var(--muted));
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: none;
}

.product-tools-item__row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
}

.product-tools-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  background: #e2e8f0;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-xs);
  line-height: 1.2;
}

.product-tools-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.product-tools-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.58;
}

.product-tools-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* —— 首页：四宫格主视觉等（仅 body.floro-home）；顶栏/导航已上提为全局 .site-chrome —— */
.floro-home header.hero.floro-home-hero {
  padding: 0;
  overflow: visible;
  background: #000;
  border-bottom: none;
  box-shadow: none;
}

.floro-home .floro-pillar-grid {
  position: relative;
  width: 100%;
  background: #000;
}

.floro-home .floro-pillar-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: min(52vh, 520px);
  gap: 0;
}

.floro-home .floro-pillar-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 200px;
  padding: 1.35rem 1.15rem 1.5rem;
  background-color: #171717;
  background-image: var(--floro-tile);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
  outline-offset: 2px;
}

.floro-home .floro-pillar-tile:hover {
  opacity: 0.97;
  z-index: 1;
}

.floro-home .floro-pillar-tile:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}

.floro-home .floro-pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
  pointer-events: none;
}

.floro-home .floro-pillar-label {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.65vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.floro-home .floro-pillar-label strong {
  font-weight: 700;
  color: #fff;
}

.floro-home .floro-pillar-footnote {
  margin: 0;
  padding: 0.5rem 1.25rem 0.65rem;
  font-size: 0.72rem;
  color: #737373;
  text-align: center;
  background: #000;
}

.floro-home .hero-lower {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.floro-home .hero-lower .hero-bg {
  position: absolute;
  inset: 0;
}

.floro-home .hero--product .hero-lower .hero-bg {
  background: linear-gradient(180deg, #fafafa 0%, #fff 55%);
}

.floro-home .hero--product .hero-lower .hero-bg::after {
  opacity: 0.18;
}

.floro-home .hero-lower .hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.85rem 1.5rem 3.1rem;
  max-width: 1200px;
}

.floro-home .hero-copy--solo {
  max-width: 42rem;
}

.floro-home a.btn-hero-ghost.floro-home-ghost-dark {
  color: #64748b;
}

.floro-home a.btn-hero-ghost.floro-home-ghost-dark:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 1024px) {
  .floro-home .floro-pillar-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .floro-home .floro-pillar-tile {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .floro-home .floro-pillar-tiles {
    grid-template-columns: 1fr;
  }

  .floro-home .floro-pillar-tile {
    min-height: 200px;
  }
}

.floro-home .hero-title {
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.floro-home .hero-subtitle--glance {
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  font-weight: 500;
  color: #64748b;
}

.floro-home .hero-kicker {
  color: #0f172a;
  letter-spacing: 0.1em;
}

.floro-home .hero-split {
  gap: 2.5rem 3rem;
  align-items: center;
}

.floro-home .hero-photo {
  border-radius: 4px;
  border: none;
  box-shadow: 0 28px 56px -28px rgba(15, 23, 42, 0.28);
}

.floro-home .btn-hero--ink {
  background: #0f172a;
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.4);
}

.floro-home .btn-hero--ink:hover {
  background: #111827;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.45);
}

.floro-home a.btn-hero-secondary.floro-home-outline-cta {
  border: 2px solid #0f172a;
  color: #0f172a;
  background: transparent;
}

.floro-home a.btn-hero-secondary.floro-home-outline-cta:hover {
  background: #0f172a;
  color: #fff;
}

.floro-home .hero-flow--after-split {
  margin: 2.75rem 0 0;
  padding: 1.5rem 1.35rem 1.65rem;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: none;
}

.floro-home .hero-flow--after-split .hero-flow-heading {
  font-weight: 600;
  color: #334155;
}

.floro-home .trust-strip--visual {
  padding: 3rem 1.25rem;
}

.floro-home .tool-scenes {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.floro-home .product-tools {
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
}

.floro-home .product-hub {
  padding: 3.25rem 1.25rem 3.5rem;
}

.floro-home .product-hub-heading {
  font-size: clamp(1.35rem, 2.8vw, 1.55rem);
}

@media (max-width: 640px) {
  .floro-home .hero-lower .hero-inner {
    padding-top: 2rem;
  }
}

/* —— 首页：宜家式分区（大白底、三列推荐卡、五列环节 pill）仅 .floro-home —— */
.floro-home .floro-ikea-promo {
  padding: 3rem 1.25rem 3.25rem;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.floro-home .floro-ikea-promo-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.floro-home .floro-ikea-h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #111827;
}

.floro-home .floro-ikea-lead {
  margin: 0 0 1.75rem;
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}

.floro-home .floro-ikea-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.floro-home .floro-ikea-promo-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floro-home .floro-ikea-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.15);
}

.floro-home .floro-ikea-promo-card:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

.floro-home .floro-ikea-promo-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e5e7eb;
}

.floro-home .floro-ikea-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floro-home .floro-ikea-promo-panel {
  position: relative;
  flex: 1;
  min-height: 7.25rem;
  padding: 1.25rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.floro-home .floro-ikea-promo-panel--earth {
  background: #4a4a4a;
}

.floro-home .floro-ikea-promo-panel--blue {
  background: #2a2a2a;
}

.floro-home .floro-ikea-promo-panel--terracotta {
  background: #5c5c5c;
}

.floro-home .floro-ikea-promo-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.floro-home .floro-ikea-promo-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  padding-right: 2.75rem;
}

.floro-home .floro-ikea-promo-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.floro-home .floro-ikea-promo-cta::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.floro-home .floro-ikea-explore {
  padding: 3rem 1.25rem 3.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.floro-home .floro-ikea-explore-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.floro-home .floro-ikea-explore-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.floro-home .floro-ikea-explore-tile {
  position: relative;
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e5e7eb;
  background-image: var(--explore-img);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.85rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floro-home .floro-ikea-explore-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.2);
}

.floro-home .floro-ikea-explore-tile:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

.floro-home .floro-ikea-explore-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.52) 100%
  );
  pointer-events: none;
}

.floro-home .floro-ikea-explore-pill {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #111827;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* 首页 · 产品矩阵（全站能力一览，与下方专题区互补不重复） */
.floro-home .home-product-matrix {
  padding: 2.25rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 48%);
  border-top: 1px solid var(--border);
}

.floro-home .home-product-matrix-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.floro-home .home-product-matrix-lead {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52rem;
}

.floro-home .home-product-matrix-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.floro-home .home-matrix-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.floro-home .home-matrix-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.floro-home .home-matrix-card:focus-visible {
  outline: 2px solid #404040;
  outline-offset: 2px;
}

.floro-home .home-matrix-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.floro-home .home-matrix-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floro-home .home-matrix-card__body {
  padding: 0.85rem 1rem 1rem;
}

.floro-home .home-matrix-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.floro-home .home-matrix-card__tag--primary {
  color: #1d4ed8;
}

.floro-home .home-matrix-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.floro-home .home-matrix-card__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
}

@media (min-width: 1000px) {
  .floro-home .home-product-matrix-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 首页 · 对外极简（图标入口，无装饰配图） */
.floro-home .floro-home-hero--public .hero-lower {
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}

.floro-home .home-public-suite {
  padding: 1.75rem 1.25rem 2.25rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.floro-home .home-public-suite-inner {
  max-width: 720px;
  margin: 0 auto;
}

.floro-home .home-public-suite-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.floro-home .home-public-suite-lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.floro-home .home-public-suite-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.floro-home .home-public-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.floro-home .home-public-tile:hover {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.floro-home .home-public-tile:focus-visible {
  outline: 2px solid #404040;
  outline-offset: 2px;
}

.floro-home .home-public-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #334155;
  margin-bottom: 0.15rem;
}

.floro-home .home-public-tile__icon--primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.floro-home .home-public-tile__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.floro-home .home-public-tile__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

@media (min-width: 560px) {
  .floro-home .home-public-suite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.floro-home .home-public-support {
  padding: 1.25rem 1.25rem 2.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.floro-home .home-public-support-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.floro-home .home-public-support-heading {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.floro-home .home-public-support-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.floro-home .home-public-support-nav a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.floro-home .home-public-support-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .floro-home .floro-ikea-promo-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }

  .floro-home .floro-ikea-explore-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floro-home .floro-ikea-explore-tile {
    min-height: 200px;
  }
}

@media (max-width: 520px) {
  .floro-home .floro-ikea-explore-row {
    grid-template-columns: 1fr;
  }
}

/* —— 首页登录弹窗（邮箱/手机 + 第三方 + 微信扫码）—— */
.modal--auth-ref {
  max-width: 420px;
  width: calc(100% - 2rem);
}

.modal--auth-ref .auth-ref-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 0;
}

.modal--auth-ref .auth-ref-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.modal--auth-ref .auth-ref-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.modal--auth-ref .auth-ref-close {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

.modal--auth-ref .auth-ref-qr-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--text);
}

.modal--auth-ref .auth-ref-qr-tab:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.modal--auth-ref .auth-ref-qr-ic {
  width: 14px;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #334155 0,
    #334155 2px,
    transparent 2px,
    transparent 4px
  ),
    repeating-linear-gradient(
      #334155 0,
      #334155 2px,
      transparent 2px,
      transparent 4px
    );
  background-size: 6px 6px;
  opacity: 0.85;
}

.modal--auth-ref .auth-ref-body {
  padding-top: 0.25rem;
}

.modal--auth-ref .auth-ref-lead {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.modal--auth-ref .auth-method-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.modal--auth-ref .auth-method-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.modal--auth-ref .auth-method-tab--active {
  color: #111827;
  border-bottom-color: #f97373;
}

.modal--auth-ref .auth-field-ref input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
}

.modal--auth-ref .auth-password-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.modal--auth-ref .auth-password-row input {
  padding-right: 2.5rem;
}

.modal--auth-ref .auth-pwd-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.65;
}

.modal--auth-ref .auth-helpers-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.modal--auth-ref .auth-helper-link {
  color: #404040;
  text-decoration: none;
}

.modal--auth-ref .auth-helper-link:hover {
  text-decoration: underline;
}

.modal--auth-ref .auth-terms-agree--compact {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.modal--auth-ref .btn-auth-ref-submit {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal--auth-ref .btn-auth-ref-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.modal--auth-ref .btn-auth-ref-register {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.modal--auth-ref .btn-auth-ref-register:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal--auth-ref .auth-oauth-sep {
  display: flex;
  align-items: center;
  margin: 1rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.modal--auth-ref .auth-oauth-sep::before,
.modal--auth-ref .auth-oauth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.modal--auth-ref .auth-oauth-sep span {
  padding: 0 0.5rem;
  white-space: nowrap;
}

.modal--auth-ref .auth-oauth-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 0.25rem;
}

.modal--auth-ref .auth-oauth-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.modal--auth-ref .auth-oauth-circle--wx {
  background: #07c160;
}

.modal--auth-ref .auth-oauth-circle--ali {
  background: #1677ff;
}

.modal--auth-ref .auth-oauth-circle--wb {
  background: #e6162d;
}

.modal--auth-ref .auth-panel-qr {
  text-align: center;
}

.modal--auth-ref .auth-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.modal--auth-ref .auth-ref-back {
  width: 100%;
  margin-top: 0.35rem;
}

/* —— 首页登录弹窗（双栏 · 扫码 + 密码/短信，参考主流门户登录布局）—— */
.modal--auth-bili {
  position: relative;
  max-width: 860px;
  width: calc(100% - 1.5rem);
  padding: 0;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.modal--auth-bili .auth-bili-x {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal--auth-bili .auth-bili-x:hover {
  background: #f1f5f9;
  color: #475569;
}

.modal--auth-bili .auth-bili-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1px minmax(280px, 1.15fr);
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}

.modal--auth-bili .auth-bili-col {
  padding: 2.25rem 1.75rem 1.75rem;
  box-sizing: border-box;
}

.modal--auth-bili .auth-bili-col--qr {
  text-align: center;
  padding-top: 2.5rem;
}

.modal--auth-bili .auth-bili-divider {
  background: #e8e8e8;
  margin: 2rem 0 1.5rem;
  width: 1px;
  min-height: 200px;
}

.modal--auth-bili .auth-bili-qr-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
}

.modal--auth-bili .auth-bili-qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  margin: 0 auto 0.75rem;
}

.modal--auth-bili .auth-bili-qr-placeholder {
  width: 168px;
  height: 168px;
  background-color: #fff;
  background-image: linear-gradient(90deg, #0f172a 50%, #fff 50%), linear-gradient(#0f172a 50%, #fff 50%);
  background-size: 8px 8px;
  border-radius: 4px;
}

.modal--auth-bili .auth-bili-qr-tip {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #737373;
}

.modal--auth-bili .auth-bili-qr-tip a {
  color: #23ade5;
  font-weight: 600;
  text-decoration: none;
}

.modal--auth-bili .auth-bili-qr-tip a:hover {
  text-decoration: underline;
}

.modal--auth-bili .auth-bili-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.modal--auth-bili .auth-bili-btn-scan {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #23ade5;
  background: #f0f9ff;
  color: #404040;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal--auth-bili .auth-bili-btn-scan:hover {
  background: #e0f2fe;
}

.modal--auth-bili .auth-bili-btn-scan--ghost {
  background: #fff;
  color: #0c4a6e;
}

.modal--auth-bili .auth-bili-qr-foot {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.modal--auth-bili .auth-bili-col--form {
  padding-top: 2.5rem;
  padding-right: 2.25rem;
}

.modal--auth-bili .auth-bili-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: none;
}

.modal--auth-bili .auth-bili-tab {
  padding: 0.15rem 0;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: #a3a3a3;
  cursor: pointer;
  position: relative;
  line-height: 1.3;
}

.modal--auth-bili .auth-bili-tab--active {
  color: #23ade5;
}

.modal--auth-bili .auth-bili-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: #23ade5;
}

.modal--auth-bili .auth-bili-fieldbox {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.modal--auth-bili .auth-bili-fieldbox--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.modal--auth-bili .auth-bili-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  box-sizing: border-box;
}

.modal--auth-bili .auth-bili-row + .auth-bili-row {
  border-top: 1px solid #e5e5e5;
}

.modal--auth-bili .auth-bili-label {
  flex: 0 0 52px;
  padding-left: 14px;
  font-size: 0.88rem;
  color: #525252;
  text-align: left;
  white-space: nowrap;
}

.modal--auth-bili .auth-bili-vsep {
  width: 1px;
  align-self: stretch;
  min-height: 46px;
  background: #e5e5e5;
  flex-shrink: 0;
}

.modal--auth-bili .auth-bili-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 0.9rem;
  color: #171717;
  background: transparent;
}

.modal--auth-bili .auth-bili-row input::placeholder {
  color: #a3a3a3;
}

.modal--auth-bili .auth-bili-row--pwd {
  position: relative;
  padding-right: 7.5rem;
}

.modal--auth-bili .auth-bili-row--pwd input {
  padding-right: 2.25rem;
}

.modal--auth-bili .auth-bili-eye {
  position: absolute;
  right: 5.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1;
}

.modal--auth-bili .auth-bili-eye:hover {
  opacity: 1;
}

.modal--auth-bili .auth-bili-forgot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #23ade5;
  text-decoration: none;
  white-space: nowrap;
}

.modal--auth-bili .auth-bili-forgot:hover {
  text-decoration: underline;
}

.modal--auth-bili .auth-bili-code-btn {
  flex-shrink: 0;
  margin-right: 10px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  font-size: 0.75rem;
  color: #737373;
  cursor: not-allowed;
}

.modal--auth-bili .auth-bili-hint {
  margin: 0.5rem 0 0;
}

.modal--auth-bili .auth-bili-hint a {
  color: #64748b;
}

.modal--auth-bili .auth-bili-panel--sms .auth-bili-sms-lead {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748b;
}

.modal--auth-bili .auth-bili-form-footer {
  margin-top: 1rem;
}

.modal--auth-bili .auth-bili-terms {
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-color: #e5e5e5;
  background: #fafafa;
}

.modal--auth-bili .auth-error {
  margin: 0 0 0.65rem;
  min-height: 1.25rem;
  font-size: 0.8rem;
}

.modal--auth-bili .auth-bili-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.modal--auth-bili .auth-bili-btn-reg {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #404040;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.modal--auth-bili .auth-bili-btn-reg:hover:not(:disabled) {
  border-color: #a3a3a3;
  background: #fafafa;
}

.modal--auth-bili .auth-bili-btn-reg:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal--auth-bili .auth-bili-btn-login {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #b8e0ff 0%, #7ec8ff 55%, #5eb8f7 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(37, 99, 235, 0.2);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.modal--auth-bili .auth-bili-btn-login:hover:not(:disabled) {
  filter: brightness(1.03);
}

.modal--auth-bili .auth-bili-btn-login:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

.modal--auth-bili .auth-bili-oauth {
  text-align: center;
  padding-top: 0.25rem;
}

.modal--auth-bili .auth-bili-oauth-title {
  display: block;
  font-size: 0.76rem;
  color: #a3a3a3;
  margin-bottom: 0.65rem;
}

.modal--auth-bili .auth-bili-oauth-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.modal--auth-bili .auth-bili-oauth-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.modal--auth-bili .auth-bili-oauth-item span {
  font-size: 0.72rem;
  color: #737373;
}

.modal--auth-bili .auth-bili-oauth-item .auth-oauth-circle {
  width: 44px;
  height: 44px;
}

.modal--auth-bili .auth-bili-legal {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #a3a3a3;
}

.modal--auth-bili .auth-bili-legal a {
  color: #23ade5;
  text-decoration: none;
}

.modal--auth-bili .auth-bili-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .modal--auth-bili .auth-bili-grid {
    grid-template-columns: 1fr;
  }

  .modal--auth-bili .auth-bili-divider {
    display: none;
  }

  .modal--auth-bili .auth-bili-col--qr {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .modal--auth-bili .auth-bili-col--form {
    padding-top: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .modal--auth-bili {
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* —— Floro 工作台（app.html）内嵌 iframe：收起站点顶栏 / 主导航 / 页脚，避免与外壳重复 —— */
html.floro-in-iframe body.product-shell .site-chrome,
html.floro-in-iframe body.product-shell > nav.site-nav,
html.floro-in-iframe body.product-shell > .site-nav,
html.floro-in-iframe body.product-shell .site-nav-mobile-fallback,
html.floro-in-iframe body.product-shell .site-footer {
  display: none !important;
}

html.floro-in-iframe body.product-shell {
  min-height: 100vh;
}

/* 工作台 iframe 内：名录页不展示大图/筛选/卡片，改由对话匹配 */
html.floro-in-iframe body.floro-dir-directory .subpage-hero,
html.floro-in-iframe body.floro-dir-directory .dir-filter-panel,
html.floro-in-iframe body.floro-dir-directory .dir-section,
html.floro-in-iframe body.floro-dir-directory .dir-actions {
  display: none !important;
}

body.floro-dir-directory .dir-embed-agent {
  display: none;
}

html.floro-in-iframe body.floro-dir-directory .dir-embed-agent {
  display: block;
  max-width: 720px;
  margin: 20px auto 28px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

html.floro-in-iframe body.floro-dir-directory .dir-embed-agent-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

html.floro-in-iframe body.floro-dir-directory .dir-embed-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Floro 3.0 对外下线：备忘与排程、商户入驻 */
a[href*="personal-ledger.html"],
a[href*="merchants.html"] {
  display: none !important;
}

.floro-privacy-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  margin: 0;
}
.floro-privacy-row__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.floro-privacy-row__desc {
  color: var(--muted, #64748b);
  font-weight: 400;
}
.floro-privacy-switch {
  width: 2.5rem;
  height: 1.35rem;
  min-width: 2.5rem;
  margin-top: 2px;
  accent-color: var(--color-primary, #2563eb);
  cursor: pointer;
}
.floro-privacy-status {
  margin: 12px 0 0;
  color: var(--muted, #475569);
  line-height: 1.5;
}
.modal--privacy .body {
  padding-top: 0.5rem;
}
