/* =========================================================
   WHOIS · RDAP — 界面样式
   ========================================================= */

:root {
    --bg: #06090f;
    --bg-soft: #0a0f1c;
    --text: #eef2ff;
    --text-dim: #c3cbe0;
    --muted: #8b95ad;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --card: rgba(255, 255, 255, 0.042);
    --card-strong: rgba(255, 255, 255, 0.07);
    --accent: #7c6cff;
    --accent-2: #2ee6ff;
    --accent-soft: rgba(124, 108, 255, 0.16);
    --ok: #34d399;
    --warn: #fbbf24;
    --danger: #fb7185;
    --info: #60a5fa;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
    --radius: 22px;
    --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f4f6fd;
    --bg-soft: #ffffff;
    --text: #0d1224;
    --text-dim: #2b3450;
    --muted: #5d6883;
    --line: rgba(16, 24, 48, 0.09);
    --line-strong: rgba(16, 24, 48, 0.18);
    --card: rgba(255, 255, 255, 0.82);
    --card-strong: #ffffff;
    --accent-soft: rgba(124, 108, 255, 0.12);
    --shadow: 0 24px 50px -30px rgba(30, 40, 80, 0.35);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: rgba(124, 108, 255, 0.35);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 背景 ---------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgba(124, 108, 255, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 10%, rgba(46, 230, 255, 0.10), transparent 60%),
        var(--bg);
}

.blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 22s ease-in-out infinite alternate;
}

.blob-a {
    width: 520px;
    height: 520px;
    top: -160px;
    left: 12%;
    background: radial-gradient(circle, rgba(124, 108, 255, 0.65), transparent 68%);
}

.blob-b {
    width: 420px;
    height: 420px;
    top: 18%;
    right: -80px;
    background: radial-gradient(circle, rgba(46, 230, 255, 0.4), transparent 70%);
    animation-delay: -7s;
}

.blob-c {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 108, 180, 0.28), transparent 70%);
    animation-delay: -13s;
}

[data-theme="light"] .blob {
    opacity: 0.32;
    filter: blur(110px);
}

[data-theme="light"] .hero h1 em {
    background: linear-gradient(100deg, #5b4bf0 5%, #0e7490 55%, #6d28d9 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .badge.accent { color: #5b4bf0; }
[data-theme="light"] .info-row a { color: #5b4bf0; }
[data-theme="light"] .ns-icon { color: #5b4bf0; }

[data-theme="light"] .backdrop {
    background:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgba(124, 108, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 10%, rgba(46, 230, 255, 0.12), transparent 60%),
        var(--bg);
}

.gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

[data-theme="light"] .gridlines {
    background-image:
        linear-gradient(to right, rgba(16, 24, 48, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 24, 48, 0.05) 1px, transparent 1px);
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* ---------- 顶栏 ---------- */

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(140deg, var(--accent), #4f46e5 55%, #1e1b4b);
    box-shadow: 0 8px 24px -8px rgba(124, 108, 255, 0.9);
}

.brand-mark svg {
    width: 19px;
    height: 19px;
}

.brand-text span {
    color: var(--accent-2);
    margin: 0 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.site-nav a {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--card-strong);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-dim);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--card-strong);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- Hero ---------- */

main {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.hero {
    text-align: center;
    padding: 64px 0 46px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6.2vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 680;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #a99bff 5%, #6ee7ff 45%, #a78bfa 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lede {
    max-width: 560px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- 搜索框 ---------- */

.search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

[data-theme="light"] .search {
    background: #fff;
    border-color: rgba(16, 24, 48, 0.12);
}

.search:focus-within {
    border-color: rgba(124, 108, 255, 0.65);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
    transform: translateY(-1px);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 8px 0 16px;
}

.search-icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.search-field input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 16px;
    letter-spacing: -0.01em;
}

.search-field input::placeholder {
    color: var(--muted);
    font-family: var(--font);
    font-size: 15px;
    letter-spacing: 0;
}

.kbd {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.search-btn {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 26px;
    height: 56px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(120deg, #8b7bff, #6d5dfc 45%, #5b4bf0);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px -12px rgba(109, 93, 252, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    overflow: hidden;
}

.search-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 36px -12px rgba(109, 93, 252, 1);
}

.search-btn:hover::after {
    transform: translateX(120%);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.search-btn.is-loading .spinner { display: block; }
.search-btn.is-loading svg { display: none; }
.search-btn.is-loading { pointer-events: none; opacity: 0.9; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-hint {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

.quick-label {
    margin-right: 2px;
    letter-spacing: 0.08em;
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.8;
}

.quick button {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12.5px;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.quick button:hover {
    border-color: rgba(124, 108, 255, 0.55);
    color: var(--text);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.history[hidden] {
    display: none;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.history-list button {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    transition: color 0.2s, border-color 0.2s;
}

.history-list button:hover {
    color: var(--text);
    border-color: rgba(124, 108, 255, 0.6);
}

.history-clear {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.7;
}

.history-clear:hover { opacity: 1; }

/* ---------- 结果区 ---------- */

.result {
    margin-top: 26px;
    animation: rise 0.5s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    position: relative;
    padding: 26px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

[data-theme="light"] .card {
    background: #fff;
    box-shadow: 0 18px 40px -32px rgba(30, 40, 80, 0.45);
}

.overview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(124, 108, 255, 0.16), rgba(46, 230, 255, 0.05) 55%, transparent),
        var(--card);
}

.overview-main {
    min-width: 0;
}

.domain-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.domain-line h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    word-break: break-all;
}

.unicode-name {
    font-size: 14px;
    color: var(--muted);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card-strong);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge.ok     { color: var(--ok);     border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.10); }
.badge.danger { color: var(--danger); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.10); }
.badge.info   { color: var(--info);   border-color: rgba(96, 165, 250, 0.32); background: rgba(96, 165, 250, 0.10); }
.badge.accent { color: #b9aeff; border-color: rgba(124, 108, 255, 0.4); background: var(--accent-soft); }

.overview-actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 8px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--text-dim);
    font-size: 13px;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.ghost-btn svg {
    width: 15px;
    height: 15px;
}

.ghost-btn:hover {
    color: var(--text);
    border-color: rgba(124, 108, 255, 0.6);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 14px 6px 22px;
    font-size: 12.5px;
    color: var(--muted);
}

.meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-strip b {
    font-weight: 500;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

.card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    opacity: 0.9;
}

.card-title .count {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--card-strong);
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0;
    color: var(--muted);
}

/* 日期 */

.date-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.date-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.date-row:last-child {
    border-bottom: 0;
}

.date-row dt {
    color: var(--muted);
    font-size: 13px;
}

.date-row dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--text);
    word-break: break-word;
}

.date-row .relative {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.age {
    margin-top: 16px;
}

.age-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 7px;
}

.age-bar {
    position: relative;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

[data-theme="light"] .age-bar {
    background: rgba(16, 24, 48, 0.08);
}

.age-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(124, 108, 255, 0.6);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 注册商 */

.registrar-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #8b7bff, #4f46e5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.registrar-name {
    min-width: 0;
}

.registrar-name strong {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.registrar-name span {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.info-row dt {
    color: var(--muted);
}

.info-row dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    word-break: break-all;
    color: var(--text-dim);
}

.info-row a {
    color: #a89dff;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.info-row a:hover {
    border-color: currentColor;
}

.copy-mini {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.info-row:hover .copy-mini,
.copy-mini:focus-visible {
    opacity: 1;
}

.copy-mini:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.copy-mini svg {
    width: 12px;
    height: 12px;
}

/* 名称服务器 */

.ns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ns-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s, background 0.2s;
}

.ns-item:hover {
    border-color: var(--line-strong);
    background: var(--card-strong);
}

.ns-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: #b3a7ff;
}

.ns-icon svg {
    width: 15px;
    height: 15px;
}

.ns-host {
    min-width: 0;
    font-family: var(--mono);
    font-size: 13px;
    word-break: break-all;
}

.ns-provider {
    margin-left: auto;
    flex: none;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

/* 域名状态 */

.status-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.status-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.status-item.ok     .status-dot { background: var(--ok);     box-shadow: 0 0 12px rgba(52, 211, 153, 0.7); }
.status-item.info   .status-dot { background: var(--info);   box-shadow: 0 0 12px rgba(96, 165, 250, 0.6); }
.status-item.warn   .status-dot { background: var(--warn);   box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.status-item.danger .status-dot { background: var(--danger); box-shadow: 0 0 12px rgba(251, 113, 133, 0.6); }

.status-body {
    min-width: 0;
}

.status-name {
    font-size: 13.5px;
    font-weight: 550;
}

.status-code {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    opacity: 0.85;
}

.status-desc {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

/* 原始数据 */

.raw-card {
    margin-top: 16px;
    padding-bottom: 10px;
}

.raw-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.raw-head .card-title {
    margin: 0;
}

.raw-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-group {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tab-group {
    background: rgba(16, 24, 48, 0.04);
}

.tab {
    padding: 5px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    transition: color 0.2s, background 0.2s;
}

.tab.is-active {
    color: var(--text);
    background: var(--card-strong);
}

.raw-pre {
    margin: 0;
    max-height: 380px;
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.32);
    color: #c9d4f0;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    tab-size: 2;
}

[data-theme="light"] .raw-pre {
    background: #0e1526;
    color: #cdd8f2;
    border-color: transparent;
}

.raw-pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.raw-pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 99px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* 未注册 */

.empty {
    text-align: center;
    padding: 46px 24px 40px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 22px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    color: var(--warn);
}

.empty-icon svg {
    width: 30px;
    height: 30px;
}

.empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.empty p {
    margin: 0 auto;
    max-width: 460px;
    color: var(--muted);
    font-size: 14px;
}

.empty .domain-name {
    font-family: var(--mono);
    color: var(--text);
}

/* 错误卡片 */

.error-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(251, 113, 133, 0.28);
    background: rgba(251, 113, 133, 0.07);
    animation: rise 0.4s ease both;
}

.error-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(251, 113, 133, 0.14);
    color: var(--danger);
}

.error-icon svg {
    width: 22px;
    height: 22px;
}

.error-card h3 {
    margin: 2px 0 4px;
    font-size: 16px;
}

.error-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* 骨架屏 */

.skeleton {
    border-radius: var(--radius);
    background: linear-gradient(100deg, var(--card) 20%, var(--card-strong) 40%, var(--card) 60%);
    background-size: 220% 100%;
    animation: shimmer 1.4s infinite linear;
    border: 1px solid var(--line);
}

.skeleton-head { height: 128px; margin-bottom: 16px; }
.skeleton-card { height: 210px; }

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@keyframes shimmer {
    from { background-position: 120% 0; }
    to   { background-position: -120% 0; }
}

/* Toast */

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 12px);
    z-index: 90;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(18, 24, 40, 0.92);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}

[data-theme="light"] .toast {
    background: rgba(23, 30, 48, 0.94);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 页脚 */

.site-footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 32px 46px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}

.site-footer p { margin: 0; }

.footer-meta {
    font-family: var(--mono);
    font-size: 11.5px;
    opacity: 0.75;
}

/* 响应式 */

@media (max-width: 960px) {
    .span-7, .span-5 { grid-column: span 12; }
    .site-header { padding: 20px 22px; }
    main { padding: 0 22px 60px; }
    .hero { padding-top: 40px; }
    .site-footer { padding: 26px 22px 40px; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .search {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
    }
    .search-field { padding: 0 10px; }
    .search-field input { height: 48px; font-size: 15px; }
    .search-btn {
        width: 100%;
        height: 50px;
        justify-content: center;
        border-radius: 14px;
    }
    .kbd { display: none; }
    .overview {
        flex-direction: column;
        padding: 22px;
    }
    .overview-actions { width: 100%; }
    .ghost-btn { flex: 1; justify-content: center; }
    .card { padding: 22px 20px; }
    .date-row { grid-template-columns: 76px minmax(0, 1fr) auto; }
    .skeleton-grid { grid-template-columns: 1fr; }
    .raw-tools { width: 100%; margin-left: 0; justify-content: space-between; }
    .info-row { grid-template-columns: 74px minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 34px; }
    .quick button[data-domain="cloudflare.com"] { display: none; }
    .history { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}