Files
2026-05-28 07:21:47 +00:00

519 lines
8.2 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
background:
radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32%),
linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
color: var(--text);
}
:root {
--bg: #eef4ff;
--card: #ffffff;
--text: #0f172a;
--muted: #64748b;
--primary: #4f46e5;
--primary-hover: #4338ca;
--primary-soft: #eef2ff;
--border: #dbe4f0;
--input-bg: #ffffff;
--success-bg: #dcfce7;
--success-text: #166534;
--error-bg: #fee2e2;
--error-text: #991b1b;
--warning-bg: #fff7ed;
--warning-border: #fed7aa;
--warning-text: #9a3412;
--answer-bg: #f8fafc;
}
body {
margin: 0;
background:
radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32%),
linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
color: var(--text);
}
.page {
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 980px;
margin: 0 auto;
}
.hero {
text-align: center;
margin-bottom: 32px;
}
.badge {
display: inline-block;
background: var(--primary-soft);
color: var(--primary);
padding: 8px 14px;
border-radius: 999px;
font-size: 14px;
font-weight: 700;
margin-bottom: 16px;
border: 1px solid rgba(79, 70, 229, 0.14);
}
h1 {
font-size: 42px;
margin: 0 0 12px;
letter-spacing: -0.035em;
font-weight: 800;
line-height: 1.1;
}
.subtitle {
color: var(--muted);
font-size: 17px;
margin: 0;
font-weight: 500;
line-height: 1.7;
}
.card {
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(219, 228, 240, 0.85);
border-radius: 24px;
box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
padding: 24px;
margin-bottom: 24px;
backdrop-filter: blur(10px);
}
.search-card {
position: relative;
z-index: 100;
}
.form {
display: grid;
grid-template-columns: 1fr 220px 150px;
gap: 12px;
align-items: start;
}
input {
height: 52px;
border-radius: 14px;
border: 1px solid var(--border);
background: var(--input-bg);
font-size: 16px;
padding: 0 16px;
outline: none;
width: 100%;
color: var(--text);
}
input::placeholder {
color: #94a3b8;
}
input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
button {
font-family: Arial, sans-serif;
}
#checkButton {
height: 52px;
border-radius: 14px;
border: none;
background: linear-gradient(135deg, var(--primary), #2563eb);
color: white;
cursor: pointer;
font-weight: 700;
font-size: 16px;
padding: 0 16px;
width: 100%;
box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}
#checkButton:hover {
background: linear-gradient(135deg, var(--primary-hover), #1d4ed8);
}
#checkButton:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.custom-select {
position: relative;
height: 52px;
z-index: 50;
}
.select-trigger {
width: 100%;
height: 52px;
background: var(--input-bg);
color: var(--text);
border: 1px solid var(--border);
border-radius: 14px;
padding: 0 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: flex-start;
text-align: left;
}
.select-trigger:hover {
background: #f8faff;
border-color: #b9c7f8;
}
.select-trigger span:first-child {
display: flex;
flex-direction: column;
gap: 3px;
}
.select-trigger strong {
font-size: 15px;
line-height: 1.1;
color: var(--text);
}
.select-trigger small {
font-size: 12px;
line-height: 1.2;
color: var(--muted);
}
.select-menu {
display: none;
position: absolute;
top: 60px;
left: 0;
right: 0;
z-index: 999;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 16px;
padding: 8px;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}
.custom-select.open .select-menu {
display: grid;
gap: 6px;
}
.select-option {
width: 100%;
min-height: 54px;
height: auto;
background: transparent;
color: var(--text);
border: none;
border-radius: 12px;
padding: 10px 12px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 3px;
cursor: pointer;
text-align: left;
font-weight: 400;
}
.select-option:hover {
background: #f4f7ff;
}
.select-option.active {
background: var(--primary-soft);
}
.select-option strong {
font-size: 15px;
color: var(--text);
}
.select-option small {
font-size: 12px;
color: var(--muted);
}
.select-option.active strong,
.select-option.active small {
color: var(--primary);
}
.meta {
margin-top: 16px;
color: var(--muted);
font-size: 14px;
}
.result-card {
display: none;
position: relative;
z-index: 1;
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}
.location {
font-size: 18px;
font-weight: 700;
}
.status {
padding: 7px 12px;
border-radius: 999px;
font-size: 14px;
font-weight: 700;
}
.status.success {
background: var(--success-bg);
color: var(--success-text);
}
.status.error {
background: var(--error-bg);
color: var(--error-text);
}
.answers {
display: grid;
gap: 10px;
}
.answer {
background: var(--answer-bg);
border: 1px solid var(--border);
border-radius: 14px;
padding: 14px 16px;
word-break: break-word;
}
.answer-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.answer-value {
font-family: Consolas, monospace;
word-break: break-word;
}
.copy-button {
border: 1px solid var(--border);
background: #ffffff;
color: var(--primary);
border-radius: 10px;
padding: 7px 10px;
cursor: pointer;
font-size: 13px;
font-weight: 700;
flex-shrink: 0;
}
.copy-button:hover {
background: var(--primary-soft);
}
.copy-button.copied {
background: var(--success-bg);
color: var(--success-text);
border-color: var(--success-bg);
}
.answer-warning {
margin-top: 8px;
background: var(--warning-bg);
border: 1px solid var(--warning-border);
color: var(--warning-text);
border-radius: 12px;
padding: 10px 12px;
font-size: 13px;
line-height: 1.5;
}
.empty {
color: var(--muted);
background: var(--answer-bg);
border-radius: 14px;
padding: 16px;
}
.stats {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.stat {
background: #f1f5f9;
border-radius: 12px;
padding: 10px 12px;
color: #334155;
font-size: 14px;
}
.error-box {
display: none;
background: var(--error-bg);
color: var(--error-text);
border: 1px solid #fecaca;
border-radius: 16px;
padding: 14px 16px;
margin-top: 16px;
}
@media (max-width: 720px) {
h1 {
font-size: 32px;
}
.form {
grid-template-columns: 1fr;
}
.result-header {
align-items: flex-start;
flex-direction: column;
}
.answer-main {
align-items: flex-start;
flex-direction: column;
}
.copy-button {
width: 100%;
}
}
.results-container {
display: grid;
gap: 18px;
}
.result-group-title {
color: var(--muted);
font-size: 14px;
font-weight: 700;
margin: 8px 0 -6px;
}
.dns-result-card {
position: relative;
z-index: 1;
}
.source-badge {
display: inline-block;
margin-top: 8px;
padding: 5px 9px;
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary);
font-size: 12px;
font-weight: 700;
}
.search-card {
position: relative;
z-index: 1000;
}
.results-container {
display: grid;
gap: 18px;
margin-top: 24px;
position: relative;
z-index: 1;
}
.custom-select {
position: relative;
z-index: 2000;
}
.select-menu {
z-index: 3000;
}
.result-group-title {
color: var(--muted);
font-size: 14px;
font-weight: 700;
margin: 8px 0 -6px;
}
.dns-result-card {
position: relative;
z-index: 1;
}
.source-badge {
display: inline-block;
margin-top: 8px;
padding: 5px 9px;
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary);
font-size: 12px;
font-weight: 700;
}
.info-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 16px;
}
.info-row .meta {
margin-top: 0;
}
.user-ip {
direction: ltr;
text-align: right;
font-family: Consolas, monospace;
}
@media (max-width: 720px) {
.info-row {
align-items: flex-start;
flex-direction: column; }
.user-ip {
text-align: left;
}
}