 /* 域名查询工具样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(/images/bg.png);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 外层容器 - 渐变背景 */
#background {
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#1C6783), to(#2C738A));
    background: -webkit-linear-gradient(top, #2C738A, #298AB2);
    background: -moz-linear-gradient(top, #2C738A, #298AB2);
    background: -ms-linear-gradient(top, #2C738A, #298AB2);
    background: -o-linear-gradient(top, #2C738A, #298AB2);
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    height: 100%;
}

/* 内层容器 - 背景图片 */
#inner {
    padding: 60px 20px 60px 20px;
    background-image: url(/images/globe.svg);
    background-repeat: no-repeat;
    background-position: 110% -5px;
    background-size: 368px;
    height: 100%;
}

/* 搜索框容器 */
.search {
    -webkit-animation: fadeInUp 1s;
    animation: fadeInUp 1s;
    margin: 0 auto;
    padding: 8px;
    background-color: #fff;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    max-width: 600px;
    display: flex;
    align-items: center;
}

/* 输入框 */
.search>input {
    flex: 1;
    color: #32778d;
    padding: 8px 10px;
    border: 2px solid #b6b6b6;
    border-color: #298AB2 transparent #298AB2 #298AB2;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    outline: none;
    font-size: 16px;
    min-width: 0;
}

/* 按钮 */
.search>button {
    width: 88px;
    color: #fff;
    background: #298AB2;
    border: 2px solid #298AB2;
    padding: 8px;
    border-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    text-shadow: #000 1px 1px 1px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}



.search>button:hover {
    background: #2C738A;
}

/* 结果显示区域 */
#result {
    display: none;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.result-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #2b7893;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.result-title i {
    margin-right: 8px;
    color: #298AB2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* 域名信息分组样式 */
.info-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.info-section-header {
    background: linear-gradient(135deg, #298AB2 0%, #2b7893 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section-header i {
    font-size: 18px;
}

.info-section-content {
    padding: 0;
}

.info-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

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

.info-item:hover {
    background-color: #f8f9fa;
}

.info-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    min-width: 120px;
    flex-shrink: 0;
}

.info-label i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.info-value {
    color: #212529;
    font-size: 14px;
    word-break: break-all;
    text-align: right;
    font-weight: 500;
}

/* 不同类型的信息项样式 */
.info-item-primary .info-label i {
    color: #0d6efd;
}

.info-item-status .info-label i {
    color: #198754;
}

.info-item-date .info-label i {
    color: #6f42c1;
}

.info-item-date-warning .info-label i {
    color: #fd7e14;
}

.info-item-info .info-label i {
    color: #0dcaf0;
}

.info-item-success .info-label i {
    color: #198754;
}

.info-item-warning .info-label i {
    color: #ffc107;
}

.info-item-danger .info-label i {
    color: #dc3545;
}

.info-item-technical .info-label i {
    color: #6c757d;
}

.info-item-contact .info-label i {
    color: #e83e8c;
}

/* 剩余天数的特殊样式 */
.info-item-success .info-value {
    color: #198754;
    font-weight: 600;
}

.info-item-warning .info-value {
    color: #fd7e14;
    font-weight: 600;
}

.info-item-danger .info-value {
    color: #dc3545;
    font-weight: 600;
}

/* 域名状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px 5px 3px 0;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.status-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.status-tag:hover::before {
    left: 100%;
}

/* 默认状态标签 */
.status-tag-default {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border-color: #5a6268;
}

/* 成功状态标签 (ok, active) */
.status-tag-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #20c997;
}

/* 警告状态标签 (lock, prohibit) */
.status-tag-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    border-color: #fd7e14;
}

/* 危险状态标签 (delete, suspend) */
.status-tag-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
    border-color: #e83e8c;
}

/* 状态值容器特殊样式 */
.info-item-status .info-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-value {
        text-align: left;
        width: 100%;
    }
    
    .info-section-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    /* 移动端状态标签调整 */
    .info-item-status .info-value {
        justify-content: flex-start;
        text-align: left;
    }
    
    .status-tag {
        margin: 2px 6px 2px 0;
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* 价格信息样式 */
#priceInfo {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #18bc9c;
    margin-bottom: 15px;
}

#priceInfo span {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}

#priceInfo i {
    margin-right: 5px;
}

#priceInfo b {
    color: #e74c3c;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: #298AB2;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* 错误信息样式 */
.error-message {
    background: #ffeaea;
    color: #e74c3c;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 15px;
}

/* 未注册提示样式 */
.unregistered-notice {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #155724;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.unregistered-notice i {
    color: #28a745;
    font-size: 16px;
}

.unregistered-notice span {
    font-size: 14px;
}



/* 速率限制错误样式 */
.rate-limit-error {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 0.5s ease-out;
}

.rate-limit-error i {
    font-size: 24px;
    color: #fff;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.rate-limit-message {
    color: #fff;
    flex: 1;
}

.rate-limit-message strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.rate-limit-message small {
    display: block;
    opacity: 0.9;
    margin: 2px 0;
    font-size: 13px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 动画效果 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(200px);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 查询方法标识 */
.query-method {
    display: inline-block;
    padding: 4px 8px;
    background: #18bc9c;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* 响应式设计 */
@media only screen and (max-width: 640px) {
    #inner {
        padding: 30px 10px;
    }
    
    .search>input {
        width: 70%;
    }
    
    .search>button {
        width: 30%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    #priceInfo span {
        display: block;
        margin-bottom: 10px;
    }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 成功状态样式 */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
}

/* 警告状态样式 */
.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
}

/* 页脚样式 */
.footer {
    margin-top: 30px;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e9ecef;
    text-align: center;
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.footer a {
    color: #298AB2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #1C6783;
    text-decoration: underline;
}

.footer i {
    color: #298AB2;
    margin: 0 5px;
}