/*
 * 侵权必究 | 扒代码必究
 * Copyright © 2024-2026 易暗科技. All Rights Reserved.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f5f5f5 100%, #f5f5f5 100%, #f5f5f5 100%);
    min-height: 100vh;
    color: #1a1a2e;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    background: #ffffff;
    padding: 40px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
}

.hero-badge {
    display: inline-block;
    background: #f0f9ff;
    color: #0ea5e9;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid #bae6fd;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #0f172a;
}

.hero h1 .brand {
    color: #15c1ce;
}

.hero p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
}

.search-section {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-badge {
    background: #f0f9ff;
    color: #0ea5e9;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid #bae6fd;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #0ea5e9;
    background: #ffffff;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0ea5e9;
    color: #ffffff;
    border: 2px solid #0ea5e9;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
}

.search-btn:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
}

.search-btn .loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quick-tld {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tld-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tld-btn:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.tld-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.quick-tld {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tld-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tld-btn:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.tld-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.result-section {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    display: none;
}

.result-section.visible {
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.result-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 20px;
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 18px;
    border: 1px solid #bae6fd;
}

.result-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.result-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.result-card-value.empty {
    color: #94a3b8;
    font-weight: 500;
}

.technical-section {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    display: none;
}

.technical-section.visible {
    display: block;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.technical-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 20px;
}

.technical-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.technical-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 18px;
    border: 1px solid #bae6fd;
}

.technical-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.technical-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.server-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.server-info-item:last-child {
    border-bottom: none;
}

.server-info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.server-info-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.other-result-section {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    display: none;
}

.other-result-section.visible {
    display: block;
}

.other-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.other-result-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 20px;
}

.other-result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.other-result-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 18px;
    border: 1px solid #bae6fd;
}

.other-result-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.other-result-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.domain-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.domain-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}

.domain-status-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0f172a;
}

.domain-status-desc {
    color: #64748b;
    font-size: 12px;
}

.domain-status-copy {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.domain-status-copy:hover {
    color: #0ea5e9;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
}

.status-badge.available {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.status-badge.registered {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.status-badge.error {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.raw-data-section {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    display: none;
}

.raw-data-section.visible {
    display: block;
}

.raw-data-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 500px;
    overflow-y: auto;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    padding: 16px 20px;
    margin-top: 20px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

.error-message.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.loading-state.visible {
    display: block;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 15px;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

.footer {
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: #15c1ce;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        padding: 28px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}