:root {
  --brand: #2f6bff;
  --brand-dark: #1d4fd8;
  --accent: #ff7101;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* 顶部 */
.header {
  background: linear-gradient(135deg, #2f6bff, #1d4fd8);
  color: #fff;
  padding: 0 20px;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo { font-size: 20px; font-weight: 700; }
.logo a { color: #fff; }
.header-nav a {
  color: rgba(255,255,255,.9);
  margin-left: 18px;
  font-size: 14px;
}
.header-nav a:hover { color: #fff; }

/* 搜索横幅 */
.hero {
  background: linear-gradient(135deg, #2f6bff, #1d4fd8);
  color: #fff;
  padding: 30px 20px 44px;
}
.hero-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.hero p { font-size: 14px; opacity: .9; margin-bottom: 18px; }
.search-box {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 15px;
}
.search-box select {
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  border-left: 1px solid #eef0f3;
}
.search-box button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
}

/* 容器 */
.container { max-width: 1080px; margin: -22px auto 0; padding: 0 20px 40px; }

/* SEO 快捷卡片 */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.seo-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.seo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.seo-card .ico { font-size: 28px; }
.seo-card .tt { font-weight: 600; margin-top: 6px; }
.seo-card .ds { font-size: 12px; color: var(--gray-light); margin-top: 2px; }

/* 工具分区 */
.section { margin-bottom: 26px; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--brand);
  border-radius: 2px;
  margin-right: 10px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tool-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-size: 14px;
}
.tool-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.tool-item .ico { font-size: 22px; }
.tool-item .tt { margin-top: 6px; color: #374151; }

/* 友情链接 */
.friend-links { margin-bottom: 20px; }
.friend-links .links { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-links a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #4b5563;
}
.friend-links a:hover { border-color: var(--brand); color: var(--brand); }

/* 工具页 */
.tool-wrap { max-width: 900px; margin: 24px auto; padding: 0 20px 40px; }
.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.tool-card h2 { font-size: 20px; margin-bottom: 4px; }
.tool-card .tool-desc { color: var(--gray); font-size: 13px; margin-bottom: 18px; }
.form-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  flex: 1;
  min-width: 120px;
}
.form-row textarea { width: 100%; min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); }
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn.accent { background: var(--accent); }
.btn.block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.result {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 40px;
}
.result .kv { display: flex; padding: 6px 0; border-bottom: 1px dashed #eee; }
.result .kv:last-child { border-bottom: none; }
.result .k { width: 110px; color: var(--gray); flex-shrink: 0; }
.result .v { flex: 1; word-break: break-all; }

/* 表格 */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
table.data th { background: #f9fafb; }

/* 日历 */
.cal-bar { align-items: center; margin-bottom: 12px; }
.cal-title { font-size: 16px; line-height: 32px; flex: none; margin: 0 4px; font-weight: 700; }
table.data.cal-table { text-align: center; }
table.data.cal-table th, table.data.cal-table td { text-align: center; padding: 10px 4px; width: 14.28%; }
table.data.cal-table .cal-day { font-variant-numeric: tabular-nums; }
table.data.cal-table .cal-today { background: var(--brand); color: #fff; font-weight: 700; border-radius: 6px; }

/* 网站综合查询 */
.sq-history { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sq-history-label { color: var(--gray); font-size: 13px; }
.sq-chip { background: #eef2ff; color: var(--brand); border: 1px solid transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.sq-chip:hover { border-color: var(--brand); }
.sq-sec { margin-bottom: 18px; }
.sq-sec h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--brand); }
.sq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-chips .sq-chip { cursor: default; }
.sq-note { color: #9ca3af; font-size: 12px; margin-top: 6px; }

/* 免费SEO查询 */
.seoq-head { background: linear-gradient(135deg, #2f6bff, #1d4fd8); color: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.seoq-head .seoq-domain { font-size: 22px; font-weight: 700; }
.seoq-head .seoq-title { font-size: 14px; opacity: .92; margin-top: 2px; }
.seoq-head .seoq-ip { font-size: 13px; opacity: .85; margin-top: 8px; }
.seoq-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.seoq-card { background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; }
.seoq-card .lbl { font-size: 12px; color: var(--gray); }
.seoq-card .val { font-size: 18px; font-weight: 700; color: var(--brand); margin-top: 4px; word-break: break-all; }
@media (max-width: 760px) { .seoq-grid { grid-template-columns: repeat(2, 1fr); } }

/* 权重查询卡片 */
.wq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wq-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.wq-name { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.wq-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.wq-row + .wq-row { border-top: 1px dashed #eee; }
.wq-img { width: 40px; height: 16px; object-fit: contain; flex-shrink: 0; }
.wq-noimg { width: 40px; flex-shrink: 0; }
.wq-info { flex: 1; }
.wq-weight { font-size: 14px; }
.wq-weight b { color: var(--brand); }
.wq-ip { font-size: 12px; color: var(--gray); }
.wq-raw { font-size: 12px; color: var(--gray); word-break: break-all; }
.wq-link { display: block; }
.wq-link .wq-card { transition: border-color .15s, box-shadow .15s; }
.wq-link:hover .wq-card { border-color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
@media (max-width: 760px) { .wq-grid { grid-template-columns: 1fr; } }

/* 分页 */
.sq-total { color: #9ca3af; font-size: 12px; margin-top: 8px; }
.pager { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pg-btn { border: 1px solid var(--border); background: #fff; color: #4b5563; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.pg-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pg-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-info { color: #9ca3af; font-size: 12px; margin-left: 4px; }

/* 世界时钟卡片 */
.clock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clock-item { background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
.clock-item .city { font-weight: 600; }
.clock-item .time { font-size: 26px; font-weight: 700; margin-top: 4px; color: var(--brand); }
.clock-item .date { font-size: 12px; color: var(--gray-light); }

/* 计算器按键 */
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-keys button { padding: 14px; font-size: 18px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; }
.calc-keys button.op { background: #eef2ff; color: var(--brand); }
.calc-keys button.eq { background: var(--brand); color: #fff; }
.calc-screen { font-size: 26px; text-align: right; padding: 14px; background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; min-height: 52px; }

/* 图床预览 */
.preview-img { max-width: 100%; border-radius: 8px; margin-top: 10px; display: none; }
.upload-link { margin-top: 10px; display: block; color: var(--brand); word-break: break-all; }

/* 底部 */
.footer {
  text-align: center;
  color: var(--gray-light);
  font-size: 13px;
  padding: 24px 20px 40px;
}
.footer a { color: var(--gray-light); }

/* 响应式 */
@media (max-width: 760px) {
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .clock-grid { grid-template-columns: 1fr; }
}

