/* ===== 工具箱功能页 ===== */
.omni-home__toolbox-page {
  --toolbox-green: #00ff88;
  --toolbox-blue: #4fc3f7;
  --toolbox-purple: #a855f7;
  --toolbox-surface: rgba(255, 255, 255, 0.04);
  --toolbox-elevated: rgba(255, 255, 255, 0.06);
  --toolbox-highlight: rgba(28, 31, 68, 0.9);
  --toolbox-border-subtle: rgba(0, 255, 136, 0.08);
  --toolbox-border-default: rgba(0, 255, 136, 0.14);
  --toolbox-border-hover: rgba(0, 255, 136, 0.28);
  --toolbox-text-primary: #e8eaef;
  --toolbox-text-secondary: #9aa1b8;
  --toolbox-text-tertiary: #62697f;

  position: relative;
  isolation: isolate;
  min-height: var(--home-section-min-height);
  border-top: 1px solid rgb(255 255 255 / 8%);
  background:
    linear-gradient(180deg, #070b10 0%, #05080d 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(42, 159, 212, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.omni-home__toolbox-shell {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(18px, 2.8vw, 36px);
  padding: clamp(36px, 5.5vw, 68px) clamp(20px, 6vw, 76px);
  min-height: var(--home-section-min-height);
  align-items: center;
}

/* ===== Left Panel ===== */
.omni-home__toolbox-left {
  width: clamp(320px, 30vw, 450px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
  justify-content: flex-start;
  padding-top: clamp(34px, 6vh, 84px);
}

.omni-home__toolbox-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.omni-home__toolbox-brand-icon {
  width: 56px;
  height: 56px;
  background: var(--toolbox-green);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0b12;
  font-size: 28px;
}

.omni-home__toolbox-brand-icon .anticon {
  font-size: 30px;
}

.omni-home__toolbox-brand-text {
  font-weight: 900;
  font-size: 34px;
  color: #fff;
  letter-spacing: -0.5px;
}

.omni-home__toolbox-title {
  font-weight: 900;
  font-size: clamp(36px, 3.8vw, 50px);
  line-height: 1.15;
  background: linear-gradient(135deg, var(--toolbox-green), var(--toolbox-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.omni-home__toolbox-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--toolbox-text-secondary);
  max-width: 100%;
}

.omni-home__toolbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.omni-home__toolbox-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 17px 22px;
  border-radius: 16px;
  background: var(--toolbox-surface);
  border: 1px solid var(--toolbox-border-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: omni-toolbox-fadeSlideIn 0.6s ease both;
}

.omni-home__toolbox-item:nth-child(1) { animation-delay: 0.1s; }
.omni-home__toolbox-item:nth-child(2) { animation-delay: 0.2s; }
.omni-home__toolbox-item:nth-child(3) { animation-delay: 0.3s; }
.omni-home__toolbox-item:nth-child(4) { animation-delay: 0.4s; }

.omni-home__toolbox-item:hover {
  border-color: var(--toolbox-border-hover);
  transform: translateX(4px);
  background: var(--toolbox-elevated);
}

.omni-home__toolbox-item-icon {
  font-size: 29px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(0, 255, 136, 0.08);
}

.omni-home__toolbox-item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.omni-home__toolbox-item-name {
  font-weight: 700;
  font-size: 19px;
  color: var(--toolbox-text-primary);
}

.omni-home__toolbox-item-desc {
  font-size: 16px;
  color: var(--toolbox-text-tertiary);
  line-height: 1.4;
}

@keyframes omni-toolbox-fadeSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.omni-home__toolbox-workflow {
  margin-top: auto;
  padding: 19px 24px;
  border-radius: 16px;
  background: var(--toolbox-surface);
  border: 1px solid var(--toolbox-border-subtle);
}

.omni-home__toolbox-workflow-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--toolbox-green);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.omni-home__toolbox-workflow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
  color: var(--toolbox-text-tertiary);
}

.omni-home__toolbox-workflow-step {
  color: var(--toolbox-text-secondary);
  white-space: nowrap;
}

.omni-home__toolbox-workflow-arrow {
  color: var(--toolbox-green);
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== Grid Area ===== */
.omni-home__toolbox-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: clamp(560px, 52vw, 760px);
}

/* ===== Tool Cards ===== */
.omni-home__toolbox-card {
  position: relative;
  border-radius: 18px;
  background: var(--toolbox-elevated);
  border: 1px solid var(--toolbox-border-default);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: omni-toolbox-cardIn 0.7s ease both;
}

.omni-home__toolbox-card:nth-child(1) { animation-delay: 0.15s; }
.omni-home__toolbox-card:nth-child(2) { animation-delay: 0.25s; }
.omni-home__toolbox-card:nth-child(3) { animation-delay: 0.35s; }
.omni-home__toolbox-card:nth-child(4) { animation-delay: 0.45s; }

.omni-home__toolbox-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--toolbox-border-hover);
  box-shadow:
    0 12px 40px rgba(0, 255, 136, 0.08),
    0 0 60px rgba(0, 255, 136, 0.04);
}

@keyframes omni-toolbox-cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.omni-home__toolbox-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.omni-home__toolbox-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.omni-home__toolbox-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

.omni-home__toolbox-card-title {
  font-weight: 900;
  font-size: 14px;
  color: var(--toolbox-text-primary);
}

.omni-home__toolbox-card-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--toolbox-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  letter-spacing: 0.3px;
}

.omni-home__toolbox-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
}

.omni-home__toolbox-card-footer {
  padding: 8px 18px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.omni-home__toolbox-card-feat {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--toolbox-text-tertiary);
  background: rgba(255, 255, 255, 0.04);
}

.omni-home__toolbox-card-feat-sep {
  color: rgba(0, 255, 136, 0.2);
  font-size: 10px;
}

/* === Card 1: 图片工作室 === */
.toolbox-card1-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
  position: relative;
}

.toolbox-card1-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 6px;
}

.toolbox-card1-left {
  background: rgba(255, 255, 255, 0.02);
  margin-right: 1px;
}

.toolbox-card1-right {
  background: rgba(0, 255, 136, 0.02);
  margin-left: 1px;
}

.toolbox-card1-img {
  width: 100%;
  flex: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.toolbox-card1-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.toolbox-card1-left .toolbox-card1-img {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.toolbox-card1-right .toolbox-card1-img {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.06);
}

.toolbox-card1-label {
  font-size: 10px;
  color: var(--toolbox-text-tertiary);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.toolbox-card1-left .toolbox-card1-label {
  color: rgba(255, 255, 255, 0.35);
}

.toolbox-card1-right .toolbox-card1-label {
  color: rgba(0, 255, 136, 0.5);
}

.toolbox-card1-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.3), transparent);
  position: absolute;
  left: 50%;
  top: 8%;
  height: 84%;
}

/* === Card 2: 镜头实验室 === */
.toolbox-card2-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
}

.toolbox-card2-frame {
  flex: 1;
  height: 85%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(180deg, #1a1d42 0%, #141230 100%);
  border: 1px solid rgba(0, 255, 136, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toolbox-card2-frame:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.08);
  transform: scale(1.04);
}

.toolbox-card2-product {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 50%;
  border-radius: 6px;
  transition: all 0.3s;
}

.toolbox-card2-frame:nth-child(1) .toolbox-card2-product {
  background: repeating-linear-gradient(0deg, #6b9b7a 0px, #6b9b7a 2px, #d4dfc8 2px, #d4dfc8 4px);
}

.toolbox-card2-frame:nth-child(2) .toolbox-card2-product {
  background: repeating-linear-gradient(0deg, #6b9b7a 0px, #6b9b7a 2px, #d4dfc8 2px, #d4dfc8 4px);
  transform: translateX(-50%) perspective(200px) rotateY(25deg);
  width: 48%;
}

.toolbox-card2-frame:nth-child(3) .toolbox-card2-product {
  background: repeating-linear-gradient(90deg, #6b9b7a 0px, #6b9b7a 2px, #d4dfc8 2px, #d4dfc8 4px);
  width: 50%;
  height: 40%;
  border-radius: 50%;
}

.toolbox-card2-frame:nth-child(4) .toolbox-card2-product {
  background: repeating-linear-gradient(0deg, #6b9b7a 0px, #6b9b7a 2px, #d4dfc8 2px, #d4dfc8 4px);
  width: 58%;
  transform: translateX(-50%) perspective(200px) rotateX(-15deg);
}

.toolbox-card2-frame:nth-child(5) .toolbox-card2-product {
  background: repeating-linear-gradient(0deg, #5a7a4e 0px, #5a7a4e 2px, #b8c8a8 2px, #b8c8a8 4px);
  width: 50%;
  opacity: 0.8;
}

.toolbox-card2-shadow {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.06);
  filter: blur(3px);
}

.toolbox-card2-angle-label {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  color: var(--toolbox-text-tertiary);
  margin-bottom: 10%;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.08);
}

.toolbox-card2-frame:nth-child(1) .toolbox-card2-angle-label {
  color: var(--toolbox-green);
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
}

/* === Card 3: 一键数字人 === */
.toolbox-card3-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
  position: relative;
}

.toolbox-card3-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.toolbox-card3-left {
  background: rgba(255, 255, 255, 0.02);
  margin-right: 1px;
}

.toolbox-card3-right {
  background: rgba(0, 255, 136, 0.02);
  margin-left: 1px;
}

.toolbox-card3-portrait {
  width: 70%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.toolbox-card3-left .toolbox-card3-portrait {
  background: linear-gradient(180deg, #2a2d5e, #1e2050);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.toolbox-card3-left .toolbox-card3-portrait::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(200, 190, 220, 0.1);
}

.toolbox-card3-left .toolbox-card3-portrait::after {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 40%;
  border-radius: 20% 20% 5% 5%;
  background: rgba(200, 190, 220, 0.06);
}

.toolbox-card3-portrait-mark {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.toolbox-card3-right .toolbox-card3-portrait {
  background: linear-gradient(180deg, #1a3a2e, #0d2a20);
  border: 1px solid rgba(0, 255, 136, 0.12);
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.08),
    inset 0 0 20px rgba(0, 255, 136, 0.04);
}

.toolbox-card3-right .toolbox-card3-portrait::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.toolbox-card3-right .toolbox-card3-portrait::after {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 40%;
  border-radius: 20% 20% 5% 5%;
  background: rgba(0, 255, 136, 0.06);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.08);
}

.toolbox-card3-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 255, 136, 0.2);
  animation: omni-toolbox-glowPulse 2.5s ease-in-out infinite;
}

@keyframes omni-toolbox-glowPulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 10px rgba(0, 255, 136, 0.05); }
  50% { opacity: 1; box-shadow: 0 0 25px rgba(0, 255, 136, 0.15); }
}

.toolbox-card3-lipsync {
  position: absolute;
  top: 32%;
  left: 62%;
  display: flex;
  align-items: center;
  gap: 1.5px;
}

.toolbox-card3-lipsync span {
  width: 2px;
  border-radius: 1px;
  background: var(--toolbox-green);
  animation: omni-toolbox-lipsync 0.8s ease-in-out infinite;
}

.toolbox-card3-lipsync span:nth-child(1) { height: 4px; animation-delay: 0s; }
.toolbox-card3-lipsync span:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.toolbox-card3-lipsync span:nth-child(3) { height: 5px; animation-delay: 0.2s; }
.toolbox-card3-lipsync span:nth-child(4) { height: 10px; animation-delay: 0.3s; }
.toolbox-card3-lipsync span:nth-child(5) { height: 4px; animation-delay: 0.4s; }

@keyframes omni-toolbox-lipsync {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.3); opacity: 1; }
}

.toolbox-card3-gesture {
  position: absolute;
  top: 55%;
  left: 20%;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  opacity: 0.5;
}

.toolbox-card3-gesture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
  animation: omni-toolbox-gestureMove 2s ease-in-out infinite;
}

.toolbox-card3-gesture::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 255, 136, 0.3);
  animation: omni-toolbox-gestureMove 2s ease-in-out infinite;
}

@keyframes omni-toolbox-gestureMove {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(6px); }
}

.toolbox-card3-live {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 900;
  color: #0a0b12;
  background: var(--toolbox-green);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 1px;
  animation: omni-toolbox-livePulse 1.5s ease-in-out infinite;
}

@keyframes omni-toolbox-livePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.6); }
}

.toolbox-card3-transform {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--toolbox-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0a0b12;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  animation: omni-toolbox-transformSpin 3s ease-in-out infinite;
}

@keyframes omni-toolbox-transformSpin {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.5); }
}

.toolbox-card3-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.toolbox-card3-left .toolbox-card3-label {
  color: rgba(255, 255, 255, 0.3);
}

.toolbox-card3-right .toolbox-card3-label {
  color: rgba(0, 255, 136, 0.5);
}

.toolbox-card3-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.25), transparent);
  position: absolute;
  left: 50%;
  top: 8%;
  height: 84%;
}

/* === Card 4: 去除水印 === */
.toolbox-card4-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
  position: relative;
}

.toolbox-card4-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.toolbox-card4-left {
  background: rgba(255, 255, 255, 0.02);
  margin-right: 1px;
}

.toolbox-card4-right {
  background: rgba(0, 255, 136, 0.02);
  margin-left: 1px;
}

.toolbox-card4-img {
  width: 100%;
  flex: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.toolbox-card4-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.toolbox-card4-left .toolbox-card4-img {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.toolbox-card4-right .toolbox-card4-img {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.06);
}

.toolbox-card4-label {
  font-size: 10px;
  color: var(--toolbox-text-tertiary);
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.toolbox-card4-left .toolbox-card4-label {
  color: rgba(255, 200, 200, 0.5);
}

.toolbox-card4-right .toolbox-card4-label {
  color: rgba(0, 255, 136, 0.5);
}

.toolbox-card4-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.3), transparent);
  position: absolute;
  left: 50%;
  top: 8%;
  height: 84%;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .omni-home__toolbox-shell {
    flex-direction: column;
    padding: 36px 20px 48px;
    gap: 24px;
  }

  .omni-home__toolbox-left {
    width: 100%;
    flex-shrink: unset;
    padding-top: 0;
  }

  .omni-home__toolbox-grid {
    width: 100%;
    min-height: clamp(400px, 60vw, 560px);
  }

  .omni-home__toolbox-workflow {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .omni-home__toolbox-shell {
    padding: 28px 16px 40px;
  }

  .omni-home__toolbox-title {
    font-size: 20px;
  }

  .omni-home__toolbox-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .omni-home__toolbox-card {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omni-home__toolbox-item,
  .omni-home__toolbox-card {
    animation: none;
  }

  .toolbox-card3-glow-ring,
  .toolbox-card3-lipsync span,
  .toolbox-card3-gesture::before,
  .toolbox-card3-gesture::after,
  .toolbox-card3-live,
  .toolbox-card3-transform {
    animation: none;
  }
}

/* ===== Home toolbox polish and responsive hardening ===== */
.web-shell[data-view="home"] .omni-home__toolbox-page {
  --toolbox-radius-card: 16px;
  --toolbox-radius-inner: 12px;
  background:
    linear-gradient(180deg, #070b10 0%, #05080d 100%),
    radial-gradient(ellipse 70% 48% at 58% 42%, rgba(0, 255, 136, 0.045) 0%, transparent 70%);
}

.web-shell[data-view="home"] .omni-home__toolbox-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px);
  align-items: center;
}

.web-shell[data-view="home"] .omni-home__toolbox-left {
  width: clamp(300px, 28vw, 420px);
  gap: 14px;
  padding-top: 0;
}

.web-shell[data-view="home"] .omni-home__toolbox-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 16px 32px rgba(0, 255, 136, 0.12);
}

.web-shell[data-view="home"] .omni-home__toolbox-brand-icon .anticon {
  font-size: 24px;
}

.web-shell[data-view="home"] .omni-home__toolbox-brand-text {
  font-size: clamp(24px, 2.3vw, 32px);
}

.web-shell[data-view="home"] .omni-home__toolbox-title {
  color: #f7fff9;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(32px, 3.4vw, 46px);
  letter-spacing: 0;
}

.web-shell[data-view="home"] .omni-home__toolbox-subtitle {
  color: rgba(232, 238, 236, 0.68);
  font-size: clamp(15px, 1.18vw, 17px);
}

.web-shell[data-view="home"] .omni-home__toolbox-item,
.web-shell[data-view="home"] .omni-home__toolbox-workflow,
.web-shell[data-view="home"] .omni-home__toolbox-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
    rgba(10, 15, 16, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.web-shell[data-view="home"] .omni-home__toolbox-item {
  border-radius: 14px;
  padding: 14px 16px;
}

.web-shell[data-view="home"] .omni-home__toolbox-item:hover {
  border-color: rgba(0, 255, 136, 0.24);
  transform: translateX(3px);
}

.web-shell[data-view="home"] .omni-home__toolbox-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 22px;
}

.web-shell[data-view="home"] .omni-home__toolbox-item-name {
  font-size: 16px;
}

.web-shell[data-view="home"] .omni-home__toolbox-item-desc {
  font-size: 13px;
  color: rgba(232, 238, 236, 0.48);
}

.web-shell[data-view="home"] .omni-home__toolbox-workflow {
  margin-top: 4px;
  border-radius: 14px;
  padding: 15px 17px;
}

.web-shell[data-view="home"] .omni-home__toolbox-workflow-label {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.web-shell[data-view="home"] .omni-home__toolbox-workflow-steps {
  gap: 8px;
  font-size: 13px;
}

.web-shell[data-view="home"] .omni-home__toolbox-grid {
  gap: 14px;
  min-height: clamp(500px, 48vw, 680px);
}

.web-shell[data-view="home"] .omni-home__toolbox-card {
  border-radius: var(--toolbox-radius-card);
  transform: translateZ(0);
}

.web-shell[data-view="home"] .omni-home__toolbox-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.24);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 255, 136, 0.07);
}

.web-shell[data-view="home"] .omni-home__toolbox-card-header {
  padding: 15px 16px 0;
}

.web-shell[data-view="home"] .omni-home__toolbox-card-content {
  padding: 10px 16px;
  min-height: 0;
}

.web-shell[data-view="home"] .omni-home__toolbox-card-footer {
  padding: 7px 16px 14px;
}

.web-shell[data-view="home"] :is(.toolbox-card1-side, .toolbox-card3-side, .toolbox-card4-side),
.web-shell[data-view="home"] :is(.toolbox-card1-img, .toolbox-card3-portrait, .toolbox-card4-img),
.web-shell[data-view="home"] .toolbox-card2-frame {
  border-radius: var(--toolbox-radius-inner);
}

@media (max-width: 1160px) {
  .web-shell[data-view="home"] .omni-home__toolbox-shell {
    gap: 22px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-left {
    width: clamp(280px, 32vw, 360px);
  }

  .web-shell[data-view="home"] .omni-home__toolbox-grid {
    min-height: clamp(460px, 58vw, 620px);
  }
}

@media (max-width: 980px) {
  .web-shell[data-view="home"] .omni-home__toolbox-page {
    min-height: auto;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-shell {
    min-height: auto;
    padding-block: clamp(42px, 7vw, 64px);
  }

  .web-shell[data-view="home"] .omni-home__toolbox-left {
    width: min(100%, 760px);
  }

  .web-shell[data-view="home"] .omni-home__toolbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-shell[data-view="home"] .omni-home__toolbox-workflow {
    width: 100%;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card {
    min-height: clamp(230px, 34vw, 300px);
  }
}

@media (max-width: 680px) {
  .web-shell[data-view="home"] .omni-home__toolbox-shell {
    padding-inline: 14px;
    gap: 18px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-brand-icon {
    width: 42px;
    height: 42px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-brand-text {
    font-size: 22px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .web-shell[data-view="home"] .omni-home__toolbox-list,
  .web-shell[data-view="home"] .omni-home__toolbox-grid {
    grid-template-columns: 1fr;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-item {
    align-items: center;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card {
    min-height: 236px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card-header {
    align-items: flex-start;
    gap: 10px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card-tag {
    flex-shrink: 0;
  }
}

@media (max-width: 420px) {
  .web-shell[data-view="home"] .omni-home__toolbox-workflow-steps {
    align-items: flex-start;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-workflow-arrow {
    display: none;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card {
    min-height: 220px;
  }

  .web-shell[data-view="home"] .omni-home__toolbox-card-footer {
    gap: 5px;
  }
}
