* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; background: #f5f7fa; }
a { color: #333; text-decoration: none; }
a:hover { color: #0c9ad8; text-decoration: underline; }
ul, li { list-style: none; }
.wrap { width: 998px; margin: 0 auto; }
.topbar { background: #f0f4f8; border-bottom: 1px solid #e3e8ef; height: 32px; line-height: 32px; font-size: 12px; color: #888; }
.topbar .wrap { display: flex; justify-content: space-between; }
.site-header { background: #fff; border-bottom: 2px solid #0c9ad8; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; border-radius: 8px; background: #0c9ad8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.logo-text strong { display: block; font-size: 20px; color: #0c9ad8; letter-spacing: 1px; }
.logo-text span { display: block; font-size: 11px; color: #999; }
.header-search { display: flex; }
.header-search input { width: 260px; height: 34px; padding: 0 12px; border: 1px solid #d5dee8; border-right: none; border-radius: 4px 0 0 4px; font-size: 13px; outline: none; }
.header-search input:focus { border-color: #0c9ad8; }
.header-search button { height: 34px; padding: 0 20px; border: none; background: #0c9ad8; color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px; }
.header-search button:hover { background: #0a86bd; }
.nav { background: #0c9ad8; }
.nav ul { display: flex; }
.nav li { flex: 1; text-align: center; }
.nav a { display: block; color: #fff; padding: 11px 0; font-size: 13px; }
.nav a:hover, .nav a.active { background: #0a86bd; text-decoration: none; }
main { padding: 14px 0; min-height: 500px; }
.tool-card { background: #fff; border: 1px solid #0c9ad8; margin-bottom: 14px; }
.tool-title { background: #0c9ad8; color: #fff; padding: 7px 14px; display: flex; align-items: baseline; gap: 10px; }
.tool-title h2 { font-size: 15px; font-weight: 600; }
.tool-title .desc { font-size: 12px; opacity: .9; }
.tool-title .red { color: #fff3a0; font-weight: 600; }
.tool-body { padding: 18px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row label { min-width: 72px; color: #555; font-size: 13px; }
.input, .select { height: 34px; padding: 0 10px; border: 1px solid #d5dee8; border-radius: 4px; font-size: 13px; outline: none; background: #fff; color: #333; }
.input:focus, .select:focus { border-color: #0c9ad8; }
.input.small { width: 140px; }
.input { width: 220px; }
.btn { height: 34px; padding: 0 22px; border: 1px solid #0c9ad8; background: #0c9ad8; color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn:hover { background: #0a86bd; border-color: #0a86bd; }
.btn:disabled { background: #b8d9ea; border-color: #b8d9ea; cursor: not-allowed; }
.btn.ghost { background: #fff; color: #0c9ad8; }
.btn.ghost:hover { background: #eaf6fc; }
.hint { color: #999; font-size: 12px; }
.suffix-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px 8px; margin: 10px 0 14px; }
.suffix-item { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.suffix-item input { accent-color: #0c9ad8; }
.results { margin-top: 14px; display: none; }
.results.show { display: block; }
.result-head { padding: 8px 12px; background: #f0f8fd; border-left: 3px solid #0c9ad8; font-size: 13px; color: #555; margin-bottom: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.result-item { border: 1px solid #e3e8ef; border-radius: 4px; padding: 10px 12px; background: #fff; font-size: 13px; }
.result-item .name { font-weight: 600; word-break: break-all; }
.result-item .state { margin-top: 4px; font-size: 12px; }
.state.free { color: #1a9e60; }
.state.taken { color: #d9534f; }
.state.unknown { color: #999; }
.result-item .meta { margin-top: 4px; font-size: 11px; color: #aaa; line-height: 1.5; }
.detail-box { border: 1px solid #e3e8ef; border-radius: 4px; padding: 16px; background: #fff; display: none; }
.detail-box.show { display: block; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th, .detail-table td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.detail-table th { width: 120px; color: #888; font-weight: 400; background: #fafbfc; }
.sub-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sub-tag { background: #eef6fc; color: #0c6fa8; padding: 3px 9px; border-radius: 3px; font-size: 12px; }
.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.panel { background: #fff; border: 1px solid #e3e8ef; }
.panel-title { padding: 9px 14px; border-bottom: 1px solid #eef1f5; font-size: 14px; font-weight: 600; color: #0c9ad8; background: #fafbfc; }
.article-list li { padding: 11px 14px; border-bottom: 1px solid #f0f2f5; }
.article-list li:last-child { border-bottom: none; }
.article-list h3 { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.article-list p { font-size: 12px; color: #999; line-height: 1.6; }
.article-list .meta { font-size: 11px; color: #bbb; margin-top: 4px; }
.article-list .meta span { margin-right: 12px; }
.side-panel { margin-bottom: 14px; }
.rank-list li { padding: 8px 14px; border-bottom: 1px solid #f0f2f5; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.rank-list li:last-child { border-bottom: none; }
.rank-num { width: 18px; height: 18px; border-radius: 3px; background: #eef1f5; color: #888; font-size: 11px; text-align: center; line-height: 18px; flex: 0 0 auto; }
.rank-list li:nth-child(1) .rank-num { background: #d9534f; color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: #f0ad4e; color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #5bc0de; color: #fff; }
.rank-list a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { background: #fff; border: 1px solid #e3e8ef; margin: 14px 0; }
.links .body { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.site-footer { background: #2c3e50; color: #b8c4d0; padding: 22px 0; font-size: 12px; text-align: center; }
.site-footer a { color: #b8c4d0; margin: 0 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { margin-top: 10px; color: #8290a0; }
.ad-slot { margin: 14px 0; text-align: center; }
.ad-slot:empty { display: none; }
.ad-inner { position: relative; display: inline-block; max-width: 100%; padding: 20px 12px 10px; background: #fff; border: 1px dashed #e0e6ee; border-radius: 3px; }
.ad-label { position: absolute; top: 2px; right: 8px; font-size: 11px; line-height: 16px; color: #bcc5cf; background: #fff; padding: 0 4px; }
.ad-body { display: flex; align-items: center; justify-content: center; min-height: 50px; }
.ad-body img { max-width: 100%; height: auto; display: block; }
.ad-text { max-width: 620px; text-align: left; }
.ad-text a { color: #0c9ad8; font-size: 14px; font-weight: 600; }
.ad-text .desc { color: #888; font-size: 12px; margin-top: 2px; }
.ad-slot[data-ad-slot="header_banner"] .ad-inner, .ad-slot[data-ad-slot="footer_banner"] .ad-inner { display: block; border-left: none; border-right: none; }
.ad-slot[data-ad-slot="sidebar_top"] .ad-inner, .ad-slot[data-ad-slot="sidebar_bottom"] .ad-inner { display: block; width: 100%; }
.ad-slot[data-ad-slot="content_inline"] { margin: 0; padding: 10px 14px; }
.ad-slot[data-ad-slot="content_inline"] .ad-inner { display: block; width: 100%; border: none; border-bottom: 1px dashed #e0e6ee; border-radius: 0; }
.article-list li.ad-slot { text-align: center; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 20px; border-radius: 4px; font-size: 13px; z-index: 999; display: none; }
.toast.show { display: block; }
@media (max-width: 1024px) {
  .wrap { width: 96%; }
  .nav ul { flex-wrap: wrap; }
  .nav li { flex: 0 0 20%; }
  .content-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .suffix-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; gap: 12px; }
  .header-search { width: 100%; }
  .header-search input { flex: 1; width: auto; }
  .nav li { flex: 0 0 33.33%; }
  .result-grid { grid-template-columns: 1fr; }
  .suffix-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row label { min-width: 100%; }
}
