/* 微信域名检测工具专用样式 */

/* 选项卡容器 */
.tab-container {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 选项卡按钮 */
.tab-buttons {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.tab-btn.active {
    color: #1a73e8;
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a73e8;
}

/* 选项卡内容 */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* 生成按钮 */
.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d5cb6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 次要按钮 */
.btn-secondary {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

/* 检测结果区域 */
.check-result {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

/* 结果卡片 */
.result-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #1a73e8;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-domain {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    word-break: break-all;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.result-value {
    font-size: 14px;
    color: #333;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.status-normal {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.status-blocked {
    background: #ffebee;
    color: #c62828;
}

.status-error {
    background: #f5f5f5;
    color: #757575;
}

/* 屏蔽类型标签 */
.block-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

/* 详细信息 */
.result-detail {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 历史记录项 */
.history-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.history-domain {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex: 1;
    word-break: break-all;
}

.history-status {
    margin-left: 15px;
}

.history-time {
    color: #999;
    font-size: 12px;
    margin-left: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 0 0 50%;
        font-size: 14px;
        padding: 12px 10px;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-label,
    .result-value {
        width: 100%;
    }

    .status-badge {
        width: 100%;
    }
}

/* 申诉指南样式 */
#guide h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #1a73e8;
    font-size: 18px;
}

#guide h3:first-child {
    margin-top: 0;
}

#guide ul,
#guide ol {
    padding-left: 25px;
    line-height: 1.8;
}

#guide li {
    margin-bottom: 10px;
}

#guide a {
    color: #1a73e8;
    text-decoration: none;
    word-break: break-all;
}

#guide a:hover {
    text-decoration: underline;
}

/* 图标间距 */
.info-card h3 i,
#guide h3 i {
    margin-right: 8px;
}
