/* 小工具列表页 */
.tools-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.tools-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px 48px;
}

.tools-header {
  text-align: center;
  margin-bottom: 48px;
}

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

.tool-item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 168, 130, 0.35);
  border-radius: 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.tool-item:not(.tool-item-soon):hover {
  border-color: #ff8c61;
  transform: translateY(-4px);
}

.tool-item-soon {
  opacity: 0.5;
}

.tool-item-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.tool-item-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff8f0;
  margin-bottom: 8px;
}

.tool-item-desc {
  font-size: 14px;
  color: rgba(255, 248, 240, 0.75);
  line-height: 1.7;
  margin-bottom: 20px;
}

.tool-item-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #ff8c61;
  color: #1a1a2e;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 140, 97, 0.6);
  color: #ff8c61;
}

.btn-secondary:hover {
  background: rgba(255, 140, 97, 0.15);
}

.tools-back {
  text-align: center;
  margin-top: 48px;
}

.tools-back a {
  color: #ff8c61;
  text-decoration: none;
  font-size: 14px;
}

.tools-back a:hover { text-decoration: underline; }

/* JSON 工具品牌顶栏 */
.hs-tool-bar {
  height: 44px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.hs-tool-bar a {
  color: #ff8c61;
  text-decoration: none;
}

.hs-tool-bar a:hover { text-decoration: underline; }

.hs-tool-bar .hs-title {
  color: #fff8f0;
  font-weight: 500;
  flex: 1;
}

.hs-tool-bar .hs-download {
  padding: 4px 14px;
  background: rgba(255, 140, 97, 0.2);
  border-radius: 14px;
  color: #ff8c61 !important;
}

.hs-tool-bar .hs-download:hover {
  background: rgba(255, 140, 97, 0.35);
  text-decoration: none !important;
}

body.has-hs-bar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.has-hs-bar .hs-tool-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.has-hs-bar .hs-tool-app .toolbar {
  flex-shrink: 0;
}

body.has-hs-bar .hs-tool-app .workspace {
  flex: 1;
  min-height: 0;
}
