:root {
  --biran-blue: #2f6bff;
  --biran-blue-strong: #1f55e6;
  --biran-blue-soft: #eef4ff;
  --biran-orange: #f28a2e;
  --biran-ink: #17214d;
  --biran-text: #30394f;
  --biran-muted: #697386;
  --biran-line: #dde6f7;
  --biran-page: #f5f8ff;
  --biran-card: #ffffff;
  --biran-shadow: 0 18px 45px rgba(29, 60, 139, 0.11);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--biran-page);
}

body.biran-console-ready #__nuxt {
  position: fixed !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.biran-original-mode #biran-product-console {
  display: none !important;
}

#biran-product-console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  color: var(--biran-text);
  background:
    radial-gradient(circle at 78% 8%, rgba(47, 107, 255, 0.16), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(242, 138, 46, 0.11), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f7ff 46%, #edf4ff 100%);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.biran-sidebar {
  min-height: 100vh;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(214, 225, 247, 0.9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  align-self: start;
}

.biran-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px 20px;
  color: var(--biran-ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.biran-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.18);
}

.biran-sidebar nav {
  display: grid;
  gap: 8px;
}

.biran-sidebar nav button {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--biran-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.biran-sidebar nav button i {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(113, 156, 255, 0.72));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.biran-sidebar nav button span {
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.biran-sidebar nav button small {
  color: var(--biran-muted);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biran-sidebar nav button:hover,
.biran-sidebar nav button.is-active {
  background: var(--biran-blue-soft);
  border-color: #cddcff;
  color: var(--biran-blue-strong);
  transform: translateX(2px);
}

.biran-main-shell {
  min-width: 0;
  padding: 22px 30px 28px;
}

.biran-topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 12px 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--biran-line);
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(44, 66, 132, 0.07);
  backdrop-filter: blur(16px);
}

.biran-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.biran-topbar-brand img {
  width: 126px;
  height: auto;
  display: block;
}

.biran-topbar-brand span {
  color: var(--biran-muted);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.biran-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.biran-primary-btn,
.biran-ghost-btn,
.biran-card-cta,
.biran-search-wrap button,
.biran-filter-tabs button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0;
}

.biran-primary-btn {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--biran-orange), #ff9d42);
  box-shadow: 0 12px 28px rgba(242, 138, 46, 0.24);
}

.biran-ghost-btn {
  min-height: 42px;
  padding: 0 16px;
  color: var(--biran-blue-strong);
  background: #fff;
  border: 1px solid #cbd9fa;
}

.biran-hero-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.biran-hero-copy,
.biran-hero-metrics {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--biran-line);
  border-radius: 8px;
  box-shadow: var(--biran-shadow);
}

.biran-hero-copy {
  min-height: 270px;
  padding: 34px 38px;
  position: relative;
  overflow: hidden;
}

.biran-hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 36px solid rgba(47, 107, 255, 0.08);
  pointer-events: none;
}

.biran-hero-copy h1 {
  max-width: 850px;
  margin: 0;
  color: var(--biran-ink);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.biran-hero-copy p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--biran-muted);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 600;
}

.biran-search-wrap {
  margin-top: 26px;
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 6px;
  background: #f7faff;
  border: 1px solid #cfdbf3;
  border-radius: 8px;
}

.biran-search-wrap input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--biran-ink);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.biran-search-wrap input::placeholder {
  color: #9aa8bf;
}

.biran-search-wrap button {
  color: var(--biran-blue-strong);
  background: #fff;
  border: 1px solid #d7e2fb;
}

.biran-hero-metrics {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.biran-hero-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px solid #e2eafb;
  border-radius: 8px;
}

.biran-hero-metrics strong {
  color: var(--biran-blue);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.biran-hero-metrics span {
  color: var(--biran-muted);
  font-size: 15px;
  font-weight: 800;
}

.biran-section-head {
  margin: 28px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.biran-section-head.compact {
  margin-top: 0;
}

.biran-section-head h2 {
  margin: 0;
  color: var(--biran-ink);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.biran-section-head p {
  margin: 6px 0 0;
  color: var(--biran-muted);
  font-size: 14px;
  font-weight: 700;
}

.biran-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.biran-filter-tabs button {
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  color: var(--biran-muted);
  border: 1px solid #d9e4fb;
}

.biran-filter-tabs button.is-active {
  color: #fff;
  background: var(--biran-blue);
  border-color: var(--biran-blue);
}

.biran-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#biran-product-console [hidden] {
  display: none !important;
}

.biran-product-card {
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--biran-card);
  border: 1px solid var(--biran-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 58, 128, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.biran-product-card:hover {
  transform: translateY(-3px);
  border-color: #bcd0ff;
  box-shadow: 0 18px 42px rgba(35, 58, 128, 0.13);
}

.biran-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.biran-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--biran-blue), #7fa4ff);
  position: relative;
}

.biran-card-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.biran-card-icon-geo,
.biran-card-icon-sales {
  background: linear-gradient(135deg, var(--biran-orange), #ffbe72);
}

.biran-favorite {
  width: 32px;
  height: 32px;
  border: 1px solid #d9e4fb;
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.biran-favorite::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #9aa8bf;
  border-top-color: transparent;
  transform: rotate(45deg);
  border-radius: 3px;
}

.biran-favorite.is-favorite {
  background: #fff6ed;
  border-color: #ffd3a6;
}

.biran-favorite.is-favorite::before {
  border-color: var(--biran-orange);
  background: var(--biran-orange);
}

.biran-product-card h3 {
  margin: 18px 0 0;
  color: var(--biran-ink);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.biran-product-card p {
  margin: 12px 0 0;
  color: var(--biran-muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 650;
}

.biran-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.biran-tag-row span {
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--biran-blue-strong);
  background: #edf4ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.biran-card-bottom {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf2fb;
}

.biran-card-bottom strong {
  min-width: 0;
  color: var(--biran-blue);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.biran-card-cta {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--biran-blue);
}

.biran-workflows {
  margin-top: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--biran-line);
  border-radius: 8px;
}

.biran-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.biran-workflow-card {
  appearance: none;
  min-width: 0;
  min-height: 112px;
  padding: 18px;
  text-align: left;
  background: linear-gradient(135deg, #fff, #f7faff);
  border: 1px solid #dbe6fb;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.biran-workflow-card:hover {
  transform: translateY(-2px);
  border-color: #bcd0ff;
}

.biran-workflow-card strong {
  display: block;
  color: var(--biran-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.biran-workflow-card span {
  display: block;
  margin-top: 8px;
  color: var(--biran-muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
}

.biran-console-footer {
  padding: 20px 4px 0;
  color: #8c98ad;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  #biran-product-console {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .biran-sidebar {
    padding-inline: 12px;
  }

  .biran-brand span,
  .biran-sidebar nav button small {
    display: none;
  }

  .biran-brand {
    justify-content: center;
    padding-inline: 0;
  }

  .biran-sidebar nav button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 11px 6px;
  }

  .biran-sidebar nav button i {
    grid-row: auto;
  }

  .biran-sidebar nav button span {
    font-size: 12px;
    line-height: 16px;
  }

  .biran-hero-panel {
    grid-template-columns: 1fr;
  }

  .biran-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  #biran-product-console {
    display: block;
  }

  .biran-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--biran-line);
  }

  .biran-sidebar nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(74px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .biran-sidebar nav button {
    min-height: 64px;
  }

  .biran-main-shell {
    padding: 14px;
  }

  .biran-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .biran-topbar-brand {
    width: 100%;
    justify-content: space-between;
  }

  .biran-topbar-brand span {
    white-space: normal;
    text-align: right;
    font-size: 12px;
  }

  .biran-topbar-actions {
    width: 100%;
  }

  .biran-topbar-actions button {
    flex: 1;
  }

  .biran-hero-copy {
    padding: 24px 20px;
  }

  .biran-hero-copy h1 {
    font-size: 32px;
  }

  .biran-hero-copy p {
    font-size: 15px;
  }

  .biran-search-wrap {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .biran-search-wrap button {
    min-height: 40px;
  }

  .biran-hero-metrics,
  .biran-product-grid,
  .biran-workflow-grid {
    grid-template-columns: 1fr;
  }

  .biran-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .biran-card-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .biran-card-cta {
    width: 100%;
  }
}
