/* ============================================================
   站长工具页通用「建站历史风」样式（Hero 查询区 + 左右两栏 + 示例弹层）
   从 wayback 页抽取的通用部分，供 baidu-index / ranking / xiongzhang /
   tuoci / baidu-image 五个工具页共用。引用顺序：放在各页自身 CSS 之后。
   ============================================ */

@keyframes tjz-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tjz-spin { to { transform: rotate(360deg); } }

.jz-page { max-width: 1380px; margin: 0 auto; padding: 26px 16px 48px; }

/* ===== Hero 查询区 ===== */
.jz-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 44px 48px 40px; margin-bottom: 22px;
  background: linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
  border: 1px solid rgba(255,107,26,.2);
  animation: tjz-fade-up .35s ease-out;
}
.jz-hero::before {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,107,26,.12);
}
.jz-hero::after {
  content: ""; position: absolute; right: 130px; bottom: -120px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,145,77,.1);
}
.jz-hero-inner { position: relative; z-index: 1; }
.jz-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--or-d);
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,107,26,.3);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.jz-hero-badge svg { width: 13px; height: 13px; }
.jz-title { font-size: 27px; font-weight: 900; color: var(--ink); letter-spacing: -.4px; margin: 0 0 10px; }
.jz-sub { font-size: 13.5px; color: var(--ink-3); line-height: 1.9; margin: 0; max-width: 780px; }
.jz-sub-link { color: var(--or-d); font-weight: 600; text-decoration: none; }
.jz-sub-link:hover { text-decoration: underline; }

.jz-box {
  background: var(--card); border-radius: 16px; padding: 16px;
  box-shadow: 0 12px 34px rgba(255,107,26,.13), 0 2px 8px rgba(26,15,10,.04);
  margin-top: 20px; border: 1px solid rgba(255,255,255,.6);
}

/* ===== 主体布局：
   第1行  查询框（左） + 工具介绍/相关工具（右，悬浮）
   第2行  结果示例（左，紧凑） 侧栏继续延伸
   第3行  进度/查询结果（横跨全宽） ===== */
.jz-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.jz-main > .jz-hero { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.jz-main > .jz-side {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.jz-main > .jz-left { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.jz-fullrow {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
}

/* ===== 示例面板瘦身：单行长条，点击放大 ===== */
.jz-example-panel { padding: 10px 16px; }
.jz-example-panel .jz-panel-head { margin-bottom: 8px; padding-bottom: 8px; }
.jz-example-panel .jz-panel-head > span:first-of-type { font-size: 14px; }
.jz-example-panel .jz-panel-sub { display: none; }
.jz-example-panel .jz-example-table { margin-top: 0; }
/* 紧凑长条：不显示表头，只一行数据 */
.jz-example-compact thead { display: none; }
.jz-example-compact td { font-size: 11.5px; padding: 7px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-example-compact .jz-example-domc b { font-size: 13px; }

/* 变体布局：示例放左栏（相关工具左边），侧栏跨两行，底部齐平 */
.jz-main-stack > .jz-side { grid-column: 2; grid-row: 1 / span 2; }
.jz-main-stack > .jz-left {
  grid-column: 1; grid-row: 2;
  align-self: stretch;
}
.jz-main-stack > .jz-left > .jz-example-panel { flex: 1; }

/* 拓词示例长条：直接用真实结果的胶囊样式（像真实界面截图的一角），单行超宽裁切 */
.jz-example-panel .kw-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; white-space: nowrap; overflow: hidden;
}
.jz-example-panel .kw-strip .kw-chip { flex-shrink: 0; }
.jz-example-panel .kw-strip .kw-chip.more { color: var(--ink-3); }

.jz-panel {
  background: var(--card); border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.jz-panel-head {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line);
}
.jz-panel-head > span:first-of-type { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.jz-panel-icon {
  width: 19px; height: 19px; color: var(--or-d); flex-shrink: 0;
  background: var(--surf-2); padding: 5px; border-radius: 9px; box-sizing: content-box;
  border: 1px solid rgba(255,107,26,.1);
}
.jz-panel-sub { font-size: 12px; color: var(--ink-3); margin-left: 2px; }

/* ===== 侧栏：工具介绍 + 相关工具 ===== */
.jz-intro-body p { font-size: 13px; color: var(--ink-2); line-height: 2; margin: 0 0 9px; }
.jz-intro-body p:last-child { margin-bottom: 0; }
.jz-intro-body strong { color: var(--ink); font-weight: 700; }
.jz-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.jz-tool-grid a {
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; padding: 10px 8px; border-radius: 9px;
  background: var(--cream); border: 1px solid var(--line); transition: all .15s;
  text-align: center;
}
.jz-tool-grid a:hover { color: var(--or-d); border-color: rgba(255,107,26,.45); background: #fff; transform: translateY(-1px); }

/* ===== 查询结果示例（点击放大） ===== */
.jz-example { margin-top: 14px; text-align: center; }
.jz-example-table { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: zoom-in; text-align: left; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.jz-example-table:hover, .jz-example-table:focus-visible { border-color: rgba(255,107,26,.45); box-shadow: 0 4px 16px rgba(26,15,10,.08); outline: none; }
.jz-example-panel .jz-example-table { margin-top: 12px; }
.jz-example-full.jz-example-compact { min-width: 0; }
.jz-example-compact th { font-size: 10.5px; padding: 6px 2px; }
.jz-example-compact td { font-size: 10.5px; padding: 6px 2px; }
.jz-example-compact .jz-example-domc b { font-size: 12px; }
.jz-example-compact .jz-example-domc i { font-size: 10px; }
.jz-example-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #dcfce7; color: #16a34a; white-space: nowrap; }
.jz-example-badge.warn { background: #fee2e2; color: #dc2626; }
.jz-example-badge.gray { background: #f1f5f9; color: #64748b; }
.jz-example-badge.blue { background: #dbeafe; color: #2563eb; }
.jz-example-cap { display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

/* ===== 示例放大弹层 ===== */
.jz-example-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(15,10,8,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.jz-example-modal.show { display: flex; }
.jz-example-modal-box { background: #fff; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.35); width: 100%; max-width: 1280px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.jz-example-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.jz-example-modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.jz-example-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: #f3f4f6; color: #6b7280; font-size: 18px; line-height: 1; cursor: pointer; }
.jz-example-close:hover { background: #e5e7eb; color: #111827; }
.jz-example-modal-body { overflow: auto; padding: 14px 18px 20px; }
.jz-example-full { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.jz-example-full th { background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.jz-example-full td { font-size: 12px; color: var(--ink-2); padding: 10px 8px; border-bottom: 1px solid var(--line-2, var(--line)); text-align: center; vertical-align: middle; }
.jz-example-full tr:last-child td { border-bottom: none; }
.jz-example-full .jz-example-domc { text-align: left; }
.jz-example-full .jz-example-domc b { display: block; color: var(--or-d); font-size: 13px; }
.jz-example-full .jz-example-domc i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 熊掌号检测：12 列宽表，恢复原有 1700px 大屏宽度 ===== */
.jz-page.tjz-xiongzhang { max-width: 1700px; }

/* ===== 各工具 Hero 背景图案（底色统一为暖橙渐变，用图案区分工具） ===== */
/* 基础渐变（与建站历史一致） */
.tjz-baidu .jz-hero, .tjz-ranking .jz-hero, .tjz-xiongzhang .jz-hero, .tjz-tuoci .jz-hero, .tjz-image .jz-hero {
  background-color: #ffeadb;
  background-image: linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
  background-repeat: no-repeat;
}

/* 百度收录查询：圆点阵 */
.tjz-baidu .jz-hero {
  background-image:
    radial-gradient(rgba(255,107,26,.10) 1.6px, transparent 1.6px),
    linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
  background-size: 26px 26px, auto;
}

/* 首页排名查询：斜条纹 */
.tjz-ranking .jz-hero {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,107,26,.06) 0 12px, transparent 12px 26px),
    linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
}

/* 熊掌号检测：十字网格 */
.tjz-xiongzhang .jz-hero {
  background-image:
    linear-gradient(rgba(255,107,26,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,.06) 1px, transparent 1px),
    linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

/* 关键词拓词：同心圆环 */
.tjz-tuoci .jz-hero {
  background-image:
    repeating-radial-gradient(circle at 18% 30%, rgba(255,107,26,.05) 0 2px, transparent 2px 34px),
    linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
}

/* 百度收录出图：棋盘格 */
.tjz-image .jz-hero {
  background-image:
    conic-gradient(rgba(255,107,26,.05) 0 25%, transparent 0 50%, rgba(255,107,26,.05) 0 75%, transparent 0),
    linear-gradient(135deg, #fff6ef 0%, #ffeadb 55%, #ffdcc4 100%);
  background-size: 34px 34px, auto;
}

/* ===== 旧查询卡融入 Hero 查询盒（工具页改造） ===== */
.tools-jz .query-card { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; min-height: 0; }
.tools-jz .card-title { display: none; } /* 标题已由 Hero 的 jz-title 承担 */
.tools-jz .query-input {
  width: 100%; box-sizing: border-box; height: 240px; min-height: 150px; max-height: 460px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 15px;
  font-size: 14px; line-height: 1.9; color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background: var(--cream); transition: border-color .15s, box-shadow .15s; display: block;
}
.tools-jz .query-input:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(255,107,26,.12); background: #fff; }
.tools-jz .query-input::placeholder { color: #b6bec8; font-family: inherit; }
.tools-jz .query-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 13px; }
.tools-jz .query-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools-jz .act {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--cream); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 9px; transition: all .15s;
}
.tools-jz .act:hover { color: var(--or-d); border-color: rgba(255,107,26,.4); background: #fff; }
.tools-jz .act svg { width: 14px; height: 14px; }
.tools-jz .domain-count { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.tools-jz .query-actions-right { display: flex; align-items: center; gap: 12px; }
.tools-jz .query-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--or), #ff6b1a);
  border: none; border-radius: 10px; padding: 12px 30px;
  cursor: pointer; transition: opacity .15s, transform .1s;
  box-shadow: 0 6px 16px rgba(255,107,26,.3);
}
.tools-jz .query-btn:hover { opacity: .92; }
.tools-jz .query-btn:active { transform: translateY(1px); }
.tools-jz .query-btn:disabled { opacity: .65; cursor: not-allowed; }
.tools-jz .query-btn svg { width: 16px; height: 16px; }
/* 提取域名 = 次按钮 */
.tools-jz .extract-btn {
  background: #fff; color: var(--ink-2); border:  1px solid var(--line);
  box-shadow: none; font-size: 14px; font-weight: 600; padding: 11px 20px;
}
.tools-jz .extract-btn:hover, .tools-jz .extract-btn:focus {
  color: var(--or-d); border-color: rgba(255,107,26,.45); background: #fff; opacity: 1; box-shadow: none;
}
.tools-jz .extract-btn:active { transform: translateY(1px); }

/* tuoci：单输入行版式 */
.tools-jz .tuoci-input-row { display: flex; gap: 12px; }
.tools-jz .tuoci-input {
  flex: 1; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; color: var(--ink); outline: none; background: var(--cream);
  transition: border-color .15s, box-shadow .15s;
}
.tools-jz .tuoci-input:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255,107,26,.12); background: #fff; }
.tools-jz .tuoci-input::placeholder { color: #b6bec8; }

/* 进度/结果卡融入面板风格 */
.tools-jz .progress-card, .tools-jz .result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 20px 22px;
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .jz-main { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
  .jz-main { grid-template-columns: 1fr; }
  .jz-main > .jz-hero, .jz-main > .jz-side, .jz-main > .jz-left, .jz-fullrow {
    grid-column: auto; grid-row: auto;
  }
  .jz-main > .jz-side { position: static; filter: none; order: 3; }
}
@media (max-width: 640px) {
  .jz-hero { padding: 26px 18px 24px; }
  .jz-panel { padding: 16px 14px; }
  .tools-jz .query-footer { flex-direction: column; align-items: stretch; }
  .tools-jz .query-actions-right { justify-content: space-between; }
  .tools-jz .query-btn { flex: 1; justify-content: center; }
  .tools-jz .tuoci-input-row { flex-direction: column; }
  .jz-tool-grid { grid-template-columns: 1fr; }
}
