/* ============================================
   WHOIS 页面样式
   ============================================ */
.whois-page-main {
    width: 1350px;
    margin: 18px auto 0;
}

.whois-page-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Section */
.whois-hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 12px;
    padding: 48px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(82, 163, 32, 0.25);
}

.whois-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.whois-hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* Search Section */
.whois-search-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.whois-search-card {
    max-width: 800px;
    margin: 0 auto;
}

.whois-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.whois-search-input {
    flex: 1;
}

.whois-search-input .el-input__wrapper {
    padding: 12px 16px;
    font-size: 16px;
}

.whois-search-btn {
    min-width: 120px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
}

.whois-search-tips {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.whois-search-tips i {
    color: var(--primary-green);
    margin-right: 8px;
}

/* Result Section */
.whois-result-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Loading State */
.whois-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.whois-loading p {
    margin-top: 16px;
    font-size: 16px;
}

/* Error State */
.whois-error {
    text-align: center;
    padding: 60px 20px;
}

.whois-error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #856404;
}

.whois-error h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 12px;
}

.whois-error p {
    color: #666;
    margin: 0 0 24px;
    font-size: 16px;
}

/* Result Card */
.whois-result-card {
    max-width: 1000px;
    margin: 0 auto;
}

.whois-result-header {
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}

.whois-domain-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.whois-domain-name {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    margin: 0;
}

/* Available Section */
.whois-available-section {
    text-align: center;
    padding: 60px 20px;
}

.whois-available-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: #fff;
}

.whois-available-section h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin: 0 0 12px;
}

.whois-available-section p {
    color: #666;
    margin: 0 0 24px;
    font-size: 16px;
}

/* Info Section */
.whois-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whois-info-group {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
}

.whois-info-title {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whois-info-title i {
    color: var(--primary-green);
}

.whois-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.whois-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.whois-info-item label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.whois-info-item span {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.whois-info-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.whois-info-item a:hover {
    text-decoration: underline;
}

/* Status List */
.whois-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.whois-status-tag {
    font-size: 13px;
}

/* Nameserver List */
.whois-nameserver-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whois-nameserver-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.whois-nameserver-item i {
    color: var(--primary-green);
}

/* Raw Data */
.whois-raw-toggle {
    margin-bottom: 12px;
}

/* DNSSEC Status */
.whois-dnssec-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whois-dnssec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.whois-dnssec-item.signed {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.whois-dnssec-item.unsigned {
    border-color: #e0e0e0;
    background: #f8f9fa;
}

.whois-dnssec-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.whois-dnssec-item.signed .whois-dnssec-icon {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(82, 163, 32, 0.3);
}

.whois-dnssec-item.unsigned .whois-dnssec-icon {
    background: #e0e0e0;
    color: #666;
}

.whois-dnssec-content {
    flex: 1;
    min-width: 0;
}

.whois-dnssec-label {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.whois-dnssec-item.signed .whois-dnssec-label {
    color: var(--primary-green);
}

.whois-dnssec-item.unsigned .whois-dnssec-label {
    color: #666;
}

.whois-dnssec-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.whois-dnssec-badge {
    flex-shrink: 0;
}

.whois-dnssec-badge .el-tag {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    height: auto;
}

.whois-raw-data {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
}

.whois-raw-data pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Info Cards Section */
.whois-info-section-bottom {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.whois-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.whois-info-card {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}

.whois-info-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
}

.whois-info-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin: 0 0 12px;
}

.whois-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for WHOIS */
@media (max-width: 1024px) {
    .whois-page-main {
        width: 100%;
        padding: 0 15px;
    }

    .whois-hero-title {
        font-size: 32px;
    }

    .whois-hero-subtitle {
        font-size: 16px;
    }

    .whois-info-grid {
        grid-template-columns: 1fr;
    }

    .whois-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .whois-hero-section {
        padding: 32px 20px;
    }

    .whois-hero-title {
        font-size: 28px;
    }

    .whois-search-form {
        flex-direction: column;
    }

    .whois-search-btn {
        width: 100%;
    }

    .whois-domain-name {
        font-size: 24px;
    }

    .whois-info-group {
        padding: 16px;
    }

    .whois-dnssec-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .whois-dnssec-content {
        width: 100%;
    }
}
