/* 自研工具使用同一区域切换图文，名称标签保留横向滚动。 */
.home-tools { width: calc(100% - 144px); max-width: 1296px; padding: 64px 0 64px; }
.home-tools .tools-eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  color: #bd2d2d;
  font-size: 16px;
  line-height: 1.6;
}
.home-tools .tools-eyebrow::before { content: ""; width: 38px; height: 1px; background: #bd2d2d; flex-shrink: 0; }
.home-tools .tools-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
.home-tools .tools-heading h2 { font-size: 52px; line-height: 1.35; }
.home-tools .tools-heading > p { justify-self: end; max-width: 300px; margin: 0; color: #6c6961; font-size: 21px; line-height: 1.8; }
.home-tools .tools-tablist {
  display: flex;
  gap: 44px;
  margin: 34px 0 44px;
  padding: 0;
  border-bottom: 1px solid #e3e0da;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.home-tools .tool-tab {
  flex-shrink: 0;
  padding: 0 2px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #57544f;
  font-size: 20px;
  line-height: 1.5;
  white-space: nowrap;
}
.home-tools .tool-tab:hover { color: #bd2d2d; }
.home-tools .tool-tab[aria-selected="true"] { color: #bd2d2d; border-bottom-color: #bd2d2d; }
.home-tools .tool-tab:focus-visible { outline-offset: -3px; }
.home-tools .tool-panel {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 56px;
  min-height: 550px;
  animation: tools-appear .18s ease-out;
}
.home-tools .tool-panel[hidden] { display: none; }
.home-tools .tool-panel:focus-visible { outline: 2px solid #bd2d2d; outline-offset: 8px; }
.home-tools .tool-copy { min-width: 0; padding-top: 28px; }
.home-tools .tool-copy h3 { margin: 0; font-size: 48px; line-height: 1.25; overflow-wrap: anywhere; }
.home-tools .tool-purpose { margin: 16px 0 28px; font-size: 26px; line-height: 1.5; }
.home-tools .tool-description { max-width: 330px; margin: 0; color: #6c6961; font-size: 21px; line-height: 1.8; }
.home-tools .tool-catalog-link { display: inline-block; margin-top: 36px; padding-bottom: 5px; border-bottom: 1px solid #bd2d2d; color: #bd2d2d; font-size: 18px; }
.home-tools .tool-catalog-link:hover { color: #992323; border-color: #992323; }
.home-tools .tool-visual { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 840px; min-width: 0; margin: 0; }
.home-tools .tool-visual::before {
  content: "";
  position: absolute;
  inset: -22px -22px 24px 64px;
  z-index: -1;
  border-radius: 12px;
  background: #fcf0f0;
  transform: rotate(1.1deg);
}
.home-tools .tool-image-frame { aspect-ratio: 8 / 5; overflow: hidden; border: 1px solid #dedbd3; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #2424220c; }
.home-tools .tool-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-tools .tool-visual figcaption { margin-top: 9px; color: #81796e; font-size: 12px; line-height: 1.5; text-align: right; }
@keyframes tools-appear { from { opacity: .25; } to { opacity: 1; } }

@media (max-width: 1150px) {
  .home-tools { width: calc(100% - 88px); }
  .home-tools .tools-heading { gap: 32px; }
  .home-tools .tools-heading h2 { font-size: 46px; }
  .home-tools .tools-heading > p { font-size: 19px; }
  .home-tools .tools-tablist { gap: 32px; }
  .home-tools .tool-panel { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.5fr); gap: 36px; min-height: 420px; }
  .home-tools .tool-copy { padding-top: 12px; }
  .home-tools .tool-copy h3 { font-size: 40px; }
  .home-tools .tool-purpose { font-size: 24px; }
  .home-tools .tool-description { font-size: 19px; }
}
@media (max-width: 980px) {
  .home-tools { width: calc(100% - 64px); }
  .home-tools .tools-tablist { gap: 26px; }
  .home-tools .tool-tab { font-size: 18px; }
  .home-tools .tool-panel { grid-template-columns: minmax(210px, .85fr) minmax(0, 1.3fr); gap: 30px; min-height: 360px; }
  .home-tools .tool-copy h3 { font-size: 34px; }
  .home-tools .tool-purpose { margin: 14px 0 22px; font-size: 22px; }
  .home-tools .tool-description { font-size: 18px; }
  .home-tools .tool-visual::before { inset: -16px -16px 24px 40px; }
}
@media (max-width: 700px) {
  .home-tools { width: calc(100% - 44px); padding: 44px 0 48px; }
  .home-tools .tools-eyebrow { gap: 14px; margin-bottom: 18px; font-size: 14px; }
  .home-tools .tools-eyebrow::before { width: 30px; }
  .home-tools .tools-heading { grid-template-columns: 1fr; gap: 18px; }
  .home-tools .tools-heading h2 { font-size: 34px; }
  .home-tools .tools-heading > p { justify-self: start; max-width: none; font-size: 17px; }
  .home-tools .tools-tablist { gap: 26px; margin: 28px 0 30px; }
  .home-tools .tool-tab { padding-bottom: 12px; font-size: 17px; }
  .home-tools .tool-panel { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .home-tools .tool-copy { padding: 0; }
  .home-tools .tool-copy h3 { font-size: 34px; }
  .home-tools .tool-purpose { margin: 12px 0 20px; font-size: 23px; }
  .home-tools .tool-description { max-width: none; font-size: 17px; }
  .home-tools .tool-catalog-link { margin-top: 24px; font-size: 16px; }
  .home-tools .tool-visual { justify-self: stretch; }
  .home-tools .tool-visual::before { inset: -14px -12px 22px 32px; border-radius: 8px; }
  .home-tools .tool-image-frame { border-radius: 7px; }
  .home-tools .tool-visual figcaption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .home-tools .tool-panel { animation: none; } }
