/* 域名综合检测工具专用样式 */

/* 域名输入区域 */
.domain-input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.domain-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.domain-input:focus {
    outline: none;
    border-color: #2196F3;
}

.domain-input::placeholder {
    color: #999;
}

.check-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

.check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 选项卡容器 */
.tab-container {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background-color: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

.tab-btn.active {
    color: #2196F3;
    background-color: #e3f2fd;
    border-color: #2196F3;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

/* 选项卡头部 */
.tab-header {
    margin-bottom: 20px;
}

.tab-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.tab-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 选项行 */
.options-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-group {
    flex: 1;
    min-width: 180px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #2196F3;
}

/* 操作按钮 */
.action-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 结果容器 */
.result-container {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.export-btn {
    padding: 6px 16px;
    font-size: 13px;
    color: #2196F3;
    background-color: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background-color: #2196F3;
    color: white;
}

/* DNS结果表格 */
.dns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dns-table th,
.dns-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dns-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dns-table td {
    font-size: 14px;
    color: #555;
}

.dns-table tr:hover {
    background-color: #f9f9f9;
}

.dns-table .record-value {
    font-family: 'Courier New', Consolas, monospace;
    word-break: break-all;
}

/* HTTP状态结果 */
.status-card {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.status-card.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.status-card.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.status-card h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #333;
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.status-item {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.status-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.status-value.code-200 {
    color: #4caf50;
}

.status-value.code-error {
    color: #f44336;
}

/* SSL证书信息 */
.cert-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.cert-item {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.cert-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.cert-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.cert-days-warning {
    color: #ff9800;
}

.cert-days-danger {
    color: #f44336;
}

.cert-days-safe {
    color: #4caf50;
}

/* ICP备案查询区域 */
.icp-info {
    padding: 20px;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 16px;
    background-color: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2196F3;
}

.info-box i {
    font-size: 24px;
    color: #2196F3;
    margin-top: 2px;
}

.info-box h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.icp-steps {
    margin-bottom: 20px;
}

.icp-steps h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}

.icp-steps ol {
    margin: 0;
    padding-left: 20px;
}

.icp-steps li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.icp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.icp-btn i {
    font-size: 14px;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .check-btn {
        width: 100%;
    }

    .tab-buttons {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .options-row {
        flex-direction: column;
        gap: 12px;
    }

    .option-group {
        width: 100%;
        min-width: auto;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .export-btn {
        width: 100%;
    }

    .dns-table {
        font-size: 13px;
    }

    .dns-table th,
    .dns-table td {
        padding: 8px;
    }

    .status-info {
        grid-template-columns: 1fr;
    }

    .cert-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 8px;
        font-size: 12px;
    }

    .tab-content {
        padding: 15px;
    }

    .dns-table th,
    .dns-table td {
        padding: 6px;
        font-size: 12px;
    }
}
