/* ==================================================================
 * ixili.top —— 工具箱首页样式
 * 与 /kt/ 共用同一套设计变量，保持全站观感统一
 * ================================================================== */

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --line: #e8e9f0;
  --text: #1c1d27;
  --text-2: #6b6f80;
  --text-3: #9aa0b4;
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-soft: #f3eefe;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 45, .04), 0 8px 24px -12px rgba(20, 20, 45, .12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

/* ---------------- 首页胶囊壳 ----------------
   2026-10-23 起取代原 .hero：首页只放一个胶囊框（站名），
   所有功能放子目录（/vote/、/kt/…），访客走子目录直链进入。
   详见 index.html 顶部注释。 */
.shell {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0 56px;
}

.pill {
  margin: 0;
  padding: 17px 44px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 3px;
  color: var(--text);
  white-space: nowrap;
}

/* 胶囊框下方的工具入口行：只放链接名，不写介绍文字。
   备案要求首页有实际内容入口，措辞则保持极简。 */
.tools {
  margin: 26px 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tools a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: color .15s, border-color .15s;
}
.tools a:hover {
  color: var(--text);
  border-color: var(--brand);
}

/* ══════════════════════════════════════════════════════════════
   以下「功能卡片 / 数据时间条 / 催更新」三块样式目前**未使用**，
   是 2026-10-23 首页改「胶囊壳」前的旧版样式，先留着备用。
   将来若在首页放功能卡片，取消 index.html 里对应注释即可直接用。
   ══════════════════════════════════════════════════════════════ */

/* ---------------- 功能卡片区 ---------------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 13px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .6px;
  color: var(--text-3);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 13px;
}

.card-link {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .18s, border-color .18s;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: #ddd3f8;
  box-shadow: 0 2px 4px rgba(20, 20, 45, .04), 0 14px 30px -14px rgba(124, 58, 237, .35);
}

.card-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

.card-body { min-width: 0; flex: 1; }

.card-body b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .2px;
}

.card-body em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.card-arrow {
  flex: none;
  align-self: center;
  color: var(--text-3);
  font-size: 18px;
}

/* ---------------- 数据更新时间说明条 ---------------- */
.datastamp {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid #e2d6fb;
}
.datastamp-ico { flex: none; color: var(--brand); font-size: 15px; line-height: 1.5; }
.datastamp-body { min-width: 0; }
.datastamp-body b { display: block; font-size: 13px; font-weight: 650; color: #5b21b6; }
.datastamp-body em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.6;
  color: #7c6ba8;
}

/* ---------------- 催更新（展示邮箱 + 一键复制） ---------------- */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-text { min-width: 0; flex: 1; }
.contact-text b { display: block; font-size: 14px; font-weight: 650; }
.contact-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.contact-btn {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px -12px rgba(124, 58, 237, .9);
  transition: transform .12s, filter .16s;
}
.contact-btn:hover { filter: brightness(1.06); }
.contact-btn:active { transform: scale(.98); }
.contact-btn span { font-size: 13.5px; font-weight: 650; letter-spacing: .2px; word-break: break-all; }
.contact-btn small { font-size: 10.5px; color: rgba(255, 255, 255, .82); }
.contact-btn.done { background: linear-gradient(135deg, #16a34a, #22c55e); }
.contact-btn.fail { background: linear-gradient(135deg, #d97706, #f59e0b); }

.hidden { display: none !important; }

/* ---- 占位卡（敬请期待） ---- */
.card-link.soon {
  background: #fbfbfd;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.card-link.soon .card-ico {
  background: #f0f1f6;
  color: #b6bac9;
}

.card-link.soon .card-body b { color: var(--text-2); }
.card-link.soon .card-body em { color: var(--text-3); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer .fineprint {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.6;
}

/* 备案号：依工信部要求必须展示，但不做成醒目的超链接，只作一行浅灰小字 */
.site-footer .icp-text {
  margin: 6px 0 0;
  font-size: 11px;
  color: #b6bac9;
  letter-spacing: .2px;
}

/* 备案号必须是指向工信部的链接（2026-10-27 备案通过后补） */
.site-footer .icp-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #ccd0dc;
  padding-bottom: 1px;
}
.site-footer .icp-text a:hover {
  color: var(--text-2);
  border-bottom-color: var(--text-2);
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding: 0 14px 28px; }
  .shell { min-height: 52vh; padding: 24px 0 44px; }
  .pill { padding: 14px 30px; font-size: 20px; letter-spacing: 2.4px; }
  .cards { grid-template-columns: 1fr; gap: 11px; }
  .section-label { margin: 22px 0 11px; }

  .datastamp { padding: 10px 12px; gap: 9px; margin-top: 22px; }
  .datastamp-body b { font-size: 12.5px; }
  .datastamp-body em { font-size: 11px; }

  .contact { flex-direction: column; align-items: stretch; gap: 11px; padding: 14px 15px; }
  .contact-btn { width: 100%; }
}
