@charset "UTF-8";

body.tools-page,
body.tool-detail-page {
  background: #f7f8fb;
}

.tools-hero,
.tool-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(235, 237, 244, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 237, 244, 0.72) 1px, transparent 1px),
    linear-gradient(180deg, #fff, #fafbfe);
  background-size: 46px 46px, 46px 46px, 100% 100%;
}

.tools-hero::before,
.tool-detail-hero::before {
  position: absolute;
  width: 560px;
  height: 560px;
  content: "";
  background: radial-gradient(circle, rgba(104, 88, 232, 0.16), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.tools-hero::before {
  top: -270px;
  right: -80px;
}

.tool-detail-hero::before {
  top: -330px;
  right: 8%;
}

.tools-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: 92px;
  padding-bottom: 82px;
}

.tools-kicker,
.tool-detail-kicker {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6166d4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.tools-kicker::before,
.tool-detail-kicker::before {
  width: 8px;
  height: 8px;
  content: "";
  background: linear-gradient(135deg, #725ee8, #347fd9);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(95, 90, 229, 0.09);
}

.tools-hero h1,
.tool-detail-hero h1 {
  margin: 0;
  color: #22252d;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 740;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.tools-hero-summary,
.tool-detail-summary {
  max-width: 690px;
  margin: 22px 0 0;
  color: #747983;
  font-size: 15px;
  line-height: 1.9;
}

.tools-library {
  padding: 68px 0 112px;
}

.tools-library-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.tools-library-head small {
  display: block;
  margin-bottom: 7px;
  color: #646be0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.tools-library-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.tools-library-head p {
  max-width: 450px;
  margin: 0 0 3px;
  color: #7d828c;
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
}

.tools-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tools-card {
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: #292c34;
  background: #fff;
  border: 1px solid #e2e4eb;
  border-radius: 21px;
  box-shadow: 0 16px 48px rgba(28, 31, 45, 0.06);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.tools-card:hover {
  border-color: #cac8f3;
  box-shadow: 0 22px 58px rgba(48, 44, 105, 0.12);
  transform: translateY(-5px);
}

.tools-card-number {
  align-self: flex-end;
  margin-top: -45px;
  color: #d4d6dd;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.tools-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.tools-card > p {
  margin: 12px 0 0;
  color: #7b808a;
  font-size: 13px;
  line-height: 1.8;
}

.tools-card-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tools-card-tags span {
  padding: 6px 9px;
  color: #676d78;
  background: #f5f6f9;
  border: 1px solid #e8e9ee;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.tools-card-action {
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5359c6;
  font-size: 12px;
  font-weight: 800;
}

.tools-card-action span:last-child {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.tools-card:hover .tools-card-action span:last-child {
  transform: translateX(4px);
}

.tool-detail-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 42px;
  padding-bottom: 48px;
}

.tool-breadcrumbs {
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #9297a1;
  font-size: 11px;
}

.tool-breadcrumbs a:hover {
  color: #5c62ce;
}

.tool-detail-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.tool-main {
  padding: 48px 0 112px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.tool-panel,
.tool-side-card {
  background: #fff;
  border: 1px solid #e2e4eb;
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(28, 31, 45, 0.052);
}

.tool-panel {
  padding: 28px;
}

.tool-side {
  display: grid;
  gap: 16px;
}

.tool-side-card {
  padding: 21px;
}

.tool-side-card small {
  color: #676edb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.tool-side-card h2,
.tool-side-card h3 {
  margin: 0;
  color: #33363e;
  font-size: 16px;
}

.tool-side-card p,
.tool-side-card li {
  color: #7d828c;
  font-size: 11px;
  line-height: 1.8;
}

.tool-side-card p {
  margin: 10px 0 0;
}

.tool-side-card ul {
  margin: 10px 0 0;
  padding-left: 17px;
}

.tool-panel-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.tool-panel-head small {
  display: block;
  margin-bottom: 6px;
  color: #666de0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.tool-panel-head h2 {
  margin: 0;
  color: #30333b;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.tool-panel-head p {
  max-width: 460px;
  margin: 8px 0 0;
  color: #858a94;
  font-size: 12px;
  line-height: 1.7;
}

.tool-status-chip {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #65706d;
  background: #eff8f3;
  border: 1px solid #dcefe4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 780;
}

.tool-status-chip.is-loading {
  color: #5c63cc;
  background: #f0f0ff;
  border-color: #ddddfb;
}

.tool-status-chip.is-error {
  color: #ad5555;
  background: #fff1f1;
  border-color: #f2d8d8;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.tool-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.tool-field.is-wide {
  grid-column: 1 / -1;
}

.tool-field label,
.tool-field-label {
  color: #4c5059;
  font-size: 11px;
  font-weight: 760;
}

.tool-field-help {
  margin: -2px 0 0;
  color: #989ca5;
  font-size: 10px;
  line-height: 1.65;
}

.tool-input,
.tool-select,
.tool-textarea {
  width: 100%;
  color: #32353d;
  background: #fbfbfd;
  border: 1px solid #dfe2e9;
  border-radius: 11px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.tool-input,
.tool-select {
  height: 44px;
  padding: 0 13px;
}

.tool-textarea {
  min-height: 188px;
  padding: 13px;
  resize: vertical;
  line-height: 1.75;
}

.tool-output-textarea {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
  background: #fff;
  border-color: #7771df;
  box-shadow: 0 0 0 4px rgba(99, 90, 218, 0.1);
}

.tool-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4d515a;
  background: #fff;
  border: 1px solid #dce0e7;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.tool-button:hover:not(:disabled) {
  background: #f8f8fb;
  border-color: #c8cbd4;
  transform: translateY(-1px);
}

.tool-button.is-primary {
  color: #fff;
  background: #292b31;
  border-color: #292b31;
}

.tool-button.is-primary:hover:not(:disabled) {
  background: #18191d;
  border-color: #18191d;
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tool-alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #775f25;
  background: #fffaea;
  border: 1px solid #f0e4b8;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.7;
}

.tool-alert.is-error {
  color: #9d4e4e;
  background: #fff2f2;
  border-color: #f0d8d8;
}

.tool-alert.is-success {
  color: #326d52;
  background: #effaf4;
  border-color: #d4ecdf;
}

.tool-alert[hidden] {
  display: none;
}

.ip-primary-result {
  min-height: 126px;
  padding: 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #292b31, #383a46);
  border-radius: 16px;
}

.ip-primary-result small {
  color: #aeb3c0;
  font-size: 10px;
  font-weight: 730;
}

.ip-primary-result strong {
  margin-top: 0;
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.045em;
}

.ip-result-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.ip-result-item {
  min-height: 88px;
  padding: 15px;
  background: #f8f9fb;
  border: 1px solid #e6e8ed;
  border-radius: 13px;
}

.ip-result-item span {
  display: block;
  color: #979ba4;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.ip-result-item strong {
  margin-top: 8px;
  display: block;
  color: #444851;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ip-route-list {
  display: grid;
  gap: 8px;
}

.ip-route {
  min-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #747984;
  background: #f8f9fb;
  border: 1px solid #eaebef;
  border-radius: 9px;
  font-size: 10px;
}

.ip-route b {
  color: #9499a2;
  font-weight: 750;
}

.ip-route.is-active b {
  color: #5960ca;
}

.ip-route.is-success b {
  color: #39785a;
}

.ip-route.is-error b {
  color: #a85c5c;
}

.tool-mode-switch {
  margin-bottom: 22px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  background: #f1f2f6;
  border: 1px solid #e4e5eb;
  border-radius: 11px;
}

.tool-mode-switch button {
  min-height: 34px;
  padding: 0 15px;
  color: #747984;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.tool-mode-switch button[aria-selected="true"] {
  color: #353840;
  background: #fff;
  box-shadow: 0 3px 10px rgba(34, 37, 48, 0.08);
}

.tool-mode-panel[hidden] {
  display: none;
}

.proxy-capability {
  margin-bottom: 20px;
  padding: 14px 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #7a6229;
  background: #fff9e9;
  border: 1px solid #eee1b3;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.7;
}

.proxy-capability::before {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
  content: "";
  background: #d5a943;
  border-radius: 50%;
}

.proxy-capability.is-ready {
  color: #376b53;
  background: #effaf4;
  border-color: #d4ecdf;
}

.proxy-capability.is-ready::before {
  background: #4ea075;
}

.proxy-results {
  min-height: 160px;
  margin-top: 22px;
  overflow: hidden;
  background: #fafbfc;
  border: 1px solid #e2e4ea;
  border-radius: 14px;
}

.proxy-results-head {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f3f4f7;
  border-bottom: 1px solid #e4e5ea;
}

.proxy-results-head strong {
  color: #4c5059;
  font-size: 11px;
}

.proxy-results-head span {
  color: #9297a0;
  font-size: 10px;
}

.proxy-results-empty {
  min-height: 112px;
  display: grid;
  place-items: center;
  color: #9a9ea7;
  font-size: 11px;
}

.proxy-result-list {
  display: grid;
}

.proxy-result-row {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e9eaee;
}

.proxy-result-row:last-child {
  border-bottom: 0;
}

.proxy-result-status {
  width: 9px;
  height: 9px;
  background: #aeb2bb;
  border-radius: 50%;
}

.proxy-result-row.is-testing .proxy-result-status {
  background: #6d72db;
  box-shadow: 0 0 0 4px rgba(109, 114, 219, 0.1);
}

.proxy-result-row.is-success .proxy-result-status {
  background: #45a273;
}

.proxy-result-row.is-error .proxy-result-status {
  background: #d06c6c;
}

.proxy-result-main {
  min-width: 0;
}

.proxy-result-main strong,
.proxy-result-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-result-main strong {
  color: #464a53;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.proxy-result-main span {
  margin-top: 4px;
  color: #9297a0;
  font-size: 9px;
}

.proxy-result-latency {
  color: #7e838d;
  font-size: 10px;
  white-space: nowrap;
}

.proxy-copy-button {
  min-height: 30px;
  padding: 0 10px;
  color: #565cc8;
  background: #f0f0ff;
  border: 1px solid #dddffa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.binding-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.binding-summary div {
  padding: 12px;
  background: #f7f8fa;
  border: 1px solid #e6e7eb;
  border-radius: 11px;
}

.binding-summary span,
.binding-summary strong {
  display: block;
}

.binding-summary span {
  color: #969aa3;
  font-size: 9px;
}

.binding-summary strong {
  margin-top: 5px;
  color: #474b54;
  font-size: 13px;
}

.tools-footer {
  background: #fff;
  border-top: 1px solid #eceef2;
}

@media (max-width: 980px) {
  .tools-card-grid {
    grid-template-columns: 1fr;
  }

  .tools-card {
    min-height: 260px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .tools-hero h1,
  .tool-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 10.5vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    text-wrap: balance;
  }

  .tools-hero-inner {
    padding-top: 68px;
    padding-bottom: 62px;
  }

  .tools-library,
  .tool-main {
    padding-top: 46px;
    padding-bottom: 82px;
  }

  .tools-library-head,
  .tool-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .tools-library-head p {
    text-align: left;
  }

  .tools-card,
  .tool-panel {
    padding: 21px;
  }

  .tool-detail-hero-inner {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .tool-form-grid,
  .ip-result-grid,
  .tool-side {
    grid-template-columns: 1fr;
  }

  .ip-primary-result {
    grid-template-columns: 1fr;
  }

  .proxy-result-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .proxy-result-latency {
    display: none;
  }

  .binding-summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-card,
  .tools-card-action span:last-child,
  .tool-button {
    transition: none;
  }
}
