/* 工具索引页样式（配合 ios-glass-theme 与 tools.css 的导航样式使用） */
.tools-index-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.tools-hero {
  text-align: center;
  margin: 12px 0 40px;
}

.tools-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #002e3d;
}

.tools-hero p {
  margin: 0;
  font-size: 16px;
  color: #0a4a63;
}

.tools-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 0;
}

.tools-catalog-column {
  min-width: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 22px;
  padding-left: 12px;
  border-left: 4px solid #00aceb;
  color: #002e3d;
}

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

.tools-grid > .tool-card:only-child {
  width: 100%;
}

.tools-development-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(235, 248, 255, .78));
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05), inset 0 1px 0 rgba(255, 255, 255, .68);
}

.tools-development-note__eyebrow {
  margin: 0 0 10px;
  color: #3178d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
}

.tools-development-note h2 {
  margin: 0 0 12px;
  color: #002e3d;
  font-size: 25px;
  line-height: 1.25;
}

.tools-development-note > p:not(.tools-development-note__eyebrow) {
  margin: 0;
  color: #0a4a63;
  font-size: 13px;
  line-height: 1.8;
}

.tools-development-note__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 172, 235, .35);
  border-radius: 999px;
  background: rgba(0, 172, 235, .1);
  color: #0087b3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.tools-development-note__link:hover {
  background: rgba(0, 172, 235, .18);
  transform: translateY(-1px);
}

/* 桌面端让开发提示与工具卡片从同一水平线开始，并共享同一行高。 */
@media (min-width: 641px) {
  .tools-development-note {
    margin-top: 50.6px;
  }
}

.tool-card {
  min-height: 254px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 28px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,172,235,0.45);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.tool-card:focus-visible {
  outline: 2px solid #00aceb;
  outline-offset: 2px;
}

.tool-card-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}

.tool-card-placeholder:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tool-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  margin: 0 0 18px;
  border: 1px solid rgba(111, 175, 242, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fcff, #dff1ff);
  box-shadow: 0 10px 22px rgba(64, 139, 222, 0.1);
  font-size: 30px;
  line-height: 1;
}

.tool-card .tool-card-category {
  order: -1;
  margin: 0 0 12px;
  color: #3178d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tool-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #002e3d;
}

.tool-card p {
  margin: 0 0 14px;
  color: #0a4a63;
  line-height: 1.65;
  font-size: 14px;
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,172,235,0.1);
  color: #0087b3;
  border-radius: 999px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .tools-index-main {
    padding: 24px 16px 60px;
  }

  .tools-hero h1 {
    font-size: 27px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tools-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tool-card {
    min-height: 0;
    padding: 20px;
  }

  .tools-development-note {
    min-height: 0;
    padding: 22px;
  }
}

/* Dedicated mobile URL: keep the index structure shared with desktop while
   using the same compact outer spacing as the mobile product page. */
body.mobile-page[data-page="tools"] .tools-index-main {
  padding: 10px 0 42px !important;
}
body.mobile-page[data-page="tools"] .tools-hero {
  text-align: left !important;
  margin: 0 0 18px !important;
  padding: 8px 0 0 !important;
}
body.mobile-page[data-page="tools"] .tools-hero h1 {
  margin: 0 0 6px !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
}
body.mobile-page[data-page="tools"] .tools-hero p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
body.mobile-page[data-page="tools"] .tools-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  margin-bottom: 0 !important;
}
body.mobile-page[data-page="tools"] .section-title {
  width: auto !important;
  margin: 0 0 14px !important;
  padding: 0 0 0 10px !important;
  border-left: 4px solid #00aceb !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  writing-mode: horizontal-tb !important;
}
body.mobile-page[data-page="tools"] .tools-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}
body.mobile-page[data-page="tools"] .tool-card {
  width: 100% !important;
  min-height: 0 !important;
  padding: 20px !important;
  border-radius: 18px !important;
}
body.mobile-page[data-page="tools"] .tool-card .tool-card-category {
  order: -1 !important;
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
body.mobile-page[data-page="tools"] .tool-card .tool-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  margin: 0 0 16px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  font-size: 30px !important;
  line-height: 1 !important;
}
body.mobile-page[data-page="tools"] .tool-card h3 {
  margin: 0 0 10px !important;
  font-size: 19px !important;
  line-height: 1.4 !important;
}
body.mobile-page[data-page="tools"] .tool-card > p:not(.tool-card-category) {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
body.mobile-page[data-page="tools"] .tool-card .tool-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: auto !important;
}
body.mobile-page[data-page="tools"] .tool-card .tag {
  display: inline-block !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
body.mobile-page[data-page="tools"] .tools-development-note {
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 22px !important;
  border-radius: 18px !important;
}
body.mobile-page[data-page="tools"] .tools-development-note h2 {
  margin: 0 0 12px !important;
  font-size: 23px !important;
  line-height: 1.3 !important;
}
body.mobile-page[data-page="tools"] .tools-development-note > p:not(.tools-development-note__eyebrow) {
  font-size: 13px !important;
  line-height: 1.7 !important;
}
body.mobile-page[data-page="tools"] .tools-development-note__link {
  margin-top: 18px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
}
