/* 域名WHOIS信息查询网站样式 */
/* 黑灰白主题，简约现代设计 */

* {
    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(135deg, #0a0a0a 0%, #0f1a2a 50%, #0a0a0a 100%);
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

/* 淡蓝色动态点线背景 */
/* 简化背景，去掉动态效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, rgba(74, 158, 255, 0.02) 100%);
    z-index: -1;
}

.container {
    max-width: 700px;
    margin: 20px auto;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
    color: #ffffff;
}

.header h1 a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.header h1 a:hover {
    color: #4a9eff;
    transform: scale(1.02);
}

.header h1 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4a9eff 0%, #2d5aa0 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header h1 a:hover::after {
    width: 100%;
}

.header p {
    font-size: 1em;
    opacity: 0.8;
    color: #cccccc;
}

.search-form {
    background: rgba(25, 25, 25, 0.8);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.domain-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(15, 15, 15, 0.8);
    color: #ffffff;
}

.domain-input:focus {
    border-color: #4a9eff;
    background: rgba(20, 20, 20, 0.9);
}

.domain-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-btn {
    background: linear-gradient(135deg, #5e5e5e 0%, #3e3e3e 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #6e6e6e 0%, #4e4e4e 100%);
}

.results {
    padding: 40px 20px;
    background: rgba(20, 20, 20, 0.8);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1em;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.result-card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.domain-title {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 700;
}

.domain-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-title a:hover {
    color: #4a9eff;
}

.external-link {
    font-size: 0.6em;
    color: #888888;
    transition: color 0.3s ease;
}

.domain-title a:hover .external-link {
    color: #4a9eff;
}

.query-method {
    background: linear-gradient(135deg, #4a9eff 0%, #2d5aa0 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(25, 25, 25, 0.5);
}

.info-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: translateX(5px);
}

.info-label {
    font-size: 0.8em;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.info-value {
    font-size: 0.9em;
    color: #e0e0e0;
    font-weight: 400;
    flex: 1;
    margin-left: 16px;
}

.info-value.empty {
    color: #666666;
    font-style: italic;
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.status-tag {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    padding: 4px 9px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid rgba(74, 158, 255, 0.3);
    transition: background 0.2s ease;
}

.status-tag:hover {
    background: rgba(74, 158, 255, 0.3);
}

.price-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
}



.price-value {
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6em;
    min-height: 12px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.1;
}

.price-value.premium-yes {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.price-value.premium-no {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.price-value:not(.premium-yes):not(.premium-no) {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.ns-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ns-item {
    background: rgba(40, 40, 40, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #cccccc;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.ns-item:hover {
    background: rgba(50, 50, 50, 0.9);
}

.raw-data-btn, .dns-btn {
    background: rgba(100, 100, 100, 0.8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0 10px;
    display: inline-block;
    min-width: 100px;
    height: 48px;
    line-height: 24px;
    vertical-align: top;
    box-sizing: border-box;
}

.raw-data-btn:hover, .dns-btn:hover {
    background: rgba(120, 120, 120, 0.9);
}

.button-container {
    text-align: center;
    margin: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.raw-data, .dns-data {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #cccccc;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.dns-content h3 {
    color: #4a9eff;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.1em;
}

.dns-loading {
    text-align: center;
    padding: 32px;
    color: #888888;
}

.dns-results {
    color: #cccccc;
}

.dns-section {
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
}

.dns-section h4 {
    color: #4a9eff;
    margin-bottom: 6px;
    font-size: 0.95em;
    font-weight: 600;
}

.dns-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dns-section li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.dns-section li:last-child {
    border-bottom: none;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888888;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #4a9eff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .search-form {
        padding: 30px 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .results {
        padding: 30px 20px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .info-value {
        margin-left: 0;
        width: 100%;
    }
}
