* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #ececec;
  color: #333;
}

a {
  color: #1a73e8;
}

.site-header {
  background: #555;
  color: #fff;
  border-bottom: 1px solid #444;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 14px;
}

.header-nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover {
  text-decoration: underline;
}

.search-form {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
}

.search-form input {
  flex: 1;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.search-form button {
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #f5f5f5;
  padding: 0 12px;
  cursor: pointer;
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.hub-main {
  background: #fff;
  border: 1px solid #d8d8d8;
  margin-top: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #ececec;
  border-right: 1px solid #ececec;
}

.tool-card:nth-child(2n) {
  border-right: none;
}

.tool-card.hidden {
  display: none;
}

.tool-icon {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(145deg, #f7fbff, #e8f0fa);
  border: 1px solid #dbe7f5;
}

.tool-body h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.tool-body h2 a {
  text-decoration: none;
}

.tool-body h2 a:hover {
  text-decoration: underline;
}

.tool-desc {
  margin: 0 0 12px;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid #d5e6fb;
}

.tool-tag:hover {
  background: #dcecff;
}

.tool-tag.soon {
  background: #f3f3f3;
  color: #888;
  border-color: #e0e0e0;
  cursor: default;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: #666;
}

.site-footer {
  margin-top: 18px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
}

@media (max-width: 820px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    border-right: none;
  }

  .header-inner {
    gap: 10px;
  }

  .search-form {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (min-width: 821px) {
  .brand {
    font-size: 1.5rem;
  }

  .tool-body h2 {
    font-size: 1.5rem;
  }

  .tool-desc {
    font-size: 1rem;
  }

  .tool-tag {
    font-size: 0.95rem;
    padding: 7px 14px;
  }
}

@media (min-width: 1200px) {
  .page-wrap {
    max-width: 1280px;
  }

  .header-inner {
    max-width: 1280px;
    padding: 12px 20px;
  }

  .brand {
    font-size: 1.65rem;
  }

  .tool-card {
    padding: 22px 24px;
  }

  .tool-icon {
    width: 108px;
    height: 108px;
    font-size: 2.8rem;
  }
}
