:root {
    --primary: #0f3460;
    --accent: #2563eb;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #2c3e50;
    --text-light: #5f6b7a;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
    --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
.nav {
    background: var(--primary);
    color: white;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav .logo-img {
    height: 45px;
    width: auto;
    display: block;
}
.nav .home-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}
.nav .home-link:hover { color: white; opacity: 1; }
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.main { padding: 50px 0; }
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    margin-bottom: 28px;
}
.title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
}
.search-input:focus {
    border-color: var(--accent);
    background: white;
}
.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: white;
}
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary);
}
.ip-display {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 1.35rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    word-break: break-all;
}
.copy-ip-btn {
    background: none;
    border: 1px solid #dc2626;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.9rem;
    padding: 6px 12px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff5f5;
}
.copy-ip-btn:hover {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}
.info-grid { display: grid; gap: 4px; }
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
.info-value { font-weight: 600; font-size: 1rem; text-align: right; }
.info-value small { font-weight: 400; color: var(--text-light); }
.link-more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 500;
    color: var(--accent);
    font-size: 0.95rem;
}
.link-more:hover { opacity: 0.7; }
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.grid-item { padding: 8px 0; font-size: 0.95rem; word-break: break-all; }
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 22px 0;
    font-size: 0.9rem;
    margin-top: 60px;
}
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}
.ad-container {
    width: 100%;
    max-width: 728px;
    margin: 16px auto;
    text-align: center;
    overflow: hidden;
}
@media (max-width:640px) {
    .ad-container { max-width: 100%; }
    .title { font-size: 1.6rem; }
    .card { padding: 24px 18px; }
    .search-form { flex-direction: column; }
    .btn { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .info-value { text-align: left; }
    .ip-display { font-size: 1.1rem; flex-direction: column; align-items: flex-start; gap: 10px; }
    .copy-ip-btn { margin-left: 0; }
}