/* ===== Y.GD 公共样式 (实时查询 index.html 与静态收录页共用) ===== */

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; background:#eef1f5; color:#333; min-height:100vh; display:flex; flex-direction:column; }
a { color:#008000; text-decoration:none; }
a:hover { color:#0000FF; }

/* ===== 头部 ===== */
.header { background:#fff; border-bottom:1px solid #e6e9ee; padding:8px 0; box-shadow:0 1px 6px rgba(0,0,0,.04); }
.header-inner { max-width:1120px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:16px; }
.header-inner img.logo { width:48px; height:48px; border:0; }
.header-brand { font-size:26px; font-weight:bold; color:#008000; letter-spacing:1px; }
.header-sub { font-size:13px; color:#888; margin-top:2px; }

/* ===== 主体 ===== */
.main { flex:1; max-width:1120px; margin:0 auto; padding:28px 20px 20px; width:100%; }

/* 结果页标题行 (静态收录页用) */
.ttl { font-size:24px; color:#008000; font-weight:bold; margin-bottom:4px; }
.head-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:4px; }
.head-row .cta-btn { margin-top:0; padding:8px 18px; font-size:13px; }
.sub { font-size:13px; color:#888; margin-bottom:18px; }

/* 查询栏 (实时页用) */
.search-bar { background:#fff; border:1px solid #e6e9ee; border-radius:14px; padding:28px; box-shadow:0 4px 16px rgba(0,0,0,.06); text-align:center; }
.search-bar .big-title { font-size:23px; color:#008000; font-weight:bold; margin-bottom:5px; }
.search-bar .big-sub { font-size:13px; color:#999; margin-bottom:20px; }
.qbox { display:flex; gap:10px; max-width:680px; margin:0 auto; }
.qbox input { flex:1; padding:14px 18px; font-size:16px; border:2px solid #d6dbe0; border-radius:10px; outline:none; transition:.2s; }
.qbox input:focus { border-color:#008000; }
.qbox button { padding:13px 30px; font-size:16px; background:#008000; color:#fff; border:0; border-radius:8px; cursor:pointer; font-weight:bold; }
.qbox button:hover { background:#006a00; }
.qbox button:disabled { background:#aaa; cursor:wait; }
#err_box { color:#d33; font-size:14px; margin-top:12px; min-height:18px; }

/* 结果区 */
#result { margin-top:22px; }

/* 注册状态条 (实时页 .reg-status / 静态页 .reg-status) */
.reg-status { padding:14px 22px; border-radius:12px; font-size:17px; font-weight:bold; margin-bottom:18px; display:flex; align-items:center; gap:8px; }
.reg-status.reg { background:linear-gradient(90deg,#e6f4e6,#eef8ee); color:#166b16; border:1px solid #bfe6bf; }
.reg-status.unreg { background:linear-gradient(90deg,#fdecea,#fdf1f0); color:#b02020; border:1px solid #f3c4c4; }

/* 热门查询 */
.hot-panel { background:#fff; border:1px solid #e6e9ee; border-radius:14px; padding:16px 20px; box-shadow:0 3px 12px rgba(0,0,0,.05); margin:30px 0 8px; }
.hot-panel .hot-title { font-size:14px; color:#008000; font-weight:bold; margin-bottom:10px; }
.hot-list { display:flex; flex-wrap:wrap; gap:8px; }
.hot-item { display:inline-block; background:#f2f7f2; border:1px solid #d5e6d5; color:#2d7a2d; padding:5px 13px; border-radius:20px; font-size:13px; cursor:pointer; transition:.15s; }
.hot-item:hover { background:#e2efe2; border-color:#9ccb9c; transform:translateY(-1px); }

/* ===== 卡片网格 (等高 + hover) ===== */
.grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:stretch; }
.card { background:#fff; border:1px solid #e4e8ee; border-radius:14px; padding:20px 22px; box-shadow:0 4px 14px rgba(0,0,0,.06); transition:box-shadow .2s, transform .15s; display:flex; flex-direction:column; }
.card:hover { box-shadow:0 8px 24px rgba(0,0,0,.10); transform:translateY(-1px); }
.card h3 { font-size:15px; color:#008000; font-weight:bold; margin-bottom:12px; padding-bottom:10px; border-bottom:2px solid #eaf2ea; display:flex; align-items:center; gap:6px; }
.card .row { display:flex; justify-content:space-between; align-items:baseline; padding:7px 0; font-size:14px; border-bottom:1px dashed #f0f0f0; }
.card .row:last-child { border-bottom:0; }
.card .row .k { color:#777; flex-shrink:0; margin-right:14px; }
.card .row .v { text-align:right; color:#2a2a2a; word-break:break-all; }

.tag { display:inline-block; background:#eef4ee; color:#2d7a2d; padding:1px 8px; border-radius:4px; font-size:12px; margin:2px 3px 2px 0; }
.iptag { display:inline-block; background:#eef1f8; color:#1f4e9c; padding:2px 9px; border-radius:5px; font-size:12.5px; margin:3px 5px 3px 0; border:1px solid #d7e0f0; cursor:default; font-family:Consolas,Menlo,monospace; }

.badge-na { color:#adadad; font-size:12px; }
.badge-good { color:#166b16; font-weight:bold; }
.badge-bad { color:#b02020; font-weight:bold; }

.dns-hr { border:none; border-top:1px solid #e8e8e8; margin:8px 0; }
.rowth { font-weight:bold; color:#333; padding:4px 0; font-size:12px; color:#008000; }
.hist-item { display:inline-block; background:#eef4ee; color:#2d7a2d; padding:3px 10px; border-radius:4px; font-size:12px; margin:3px 5px 0 0; cursor:pointer; }
.hist-item:hover { background:#dceaea; }
.hist-clear { margin-top:8px; }
.hist-clear a { font-size:12px; color:#999; }
.hist-empty { color:#bbb; font-size:12px; padding:8px 0; }
.whois-raw { margin-top:10px; }
.whois-raw summary { cursor:pointer; color:#666; font-size:13px; user-select:none; }
.whois-raw pre { background:#f8f9fa; border:1px solid #e2e6ea; border-radius:6px; padding:10px; font-size:11px; overflow:auto; margin-top:8px; max-height:220px; white-space:pre-wrap; word-break:break-all; }

/* ===== 底部调用文字 (静态页) ===== */
.cta { margin-top:24px; text-align:center; font-size:13px; color:#888; }
.cta a { color:#008000; }
.cta-btn { display:inline-block; margin-top:14px; background:#008000; color:#fff!important; padding:10px 26px; border-radius:8px; font-size:14px; font-weight:bold; text-decoration:none; box-shadow:0 3px 10px rgba(0,128,0,.25); transition:.15s; }
.cta-btn:hover { background:#006a00; transform:translateY(-1px); box-shadow:0 5px 14px rgba(0,128,0,.3); }

@media(max-width:720px){ .grid{ grid-template-columns:1fr; } .qbox{ flex-direction:column; } }

/* ===== 页脚 ===== */
.footer { background:#fff; border-top:1px solid #e2e6ea; padding:22px 0; text-align:center; }
.footer-inner { max-width:980px; margin:0 auto; padding:0 16px; font-size:13px; color:#777; }
.footer a { color:#008000; }

/* 2026-09-07 h1 语义化: 重置浏览器默认外边距, 保持原 .ttl/.big-title 视觉 */
h1.ttl, h1.big-title { margin-top: 0; }
