/* WordPress 安全研究工具样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1d2e 0%, #252a41 100%);
    color: #e5e7eb;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(37, 42, 65, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.header h1 {
    font-size: 32px;
    color: #4ade80;
    margin-bottom: 10px;
}

.subtitle {
    color: #9ca3af;
    font-size: 14px;
}

.section {
    background: #252a41;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.section-title {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #374151;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #1a1d2e;
    color: #4ade80;
    border: 1px solid #374151;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    color: #e5e7eb;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-group label:hover {
    background: rgba(74, 222, 128, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* 按钮样式 */
button {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Consolas', monospace;
}

.btn-primary {
    background: #4ade80;
    color: #1a1d2e;
}

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 222, 128, 0.3);
}

.btn-danger {
    background: #ff6b6b;
    color: #fff;
}

.btn-danger:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: #6366f1;
    color: #fff;
}

.btn-secondary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.btn-test {
    background: #8b5cf6;
    color: #fff;
    margin-top: 10px;
}

.btn-test:hover {
    background: #7c3aed;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: #1a1d2e;
    color: #9ca3af;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 14px;
}

.tab.active {
    background: #4ade80;
    color: #1a1d2e;
    border-color: #4ade80;
}

.tab:hover:not(.active) {
    background: #2d3250;
    color: #e5e7eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 结果显示 */
.result-box {
    background: #1a1d2e;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.result-box pre {
    color: #4ade80;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 信息框 */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #fca5a5;
}

.info-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid #6366f1;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #a5b4fc;
}

.success-box {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #86efac;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #1a1d2e;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #4ade80;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(74, 222, 128, 0.2);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #4ade80;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 13px;
}

/* 滚动条样式 */
.result-box::-webkit-scrollbar {
    width: 8px;
}

.result-box::-webkit-scrollbar-track {
    background: #1a1d2e;
}

.result-box::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 4px;
}

.result-box::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    border-top-color: #4ade80;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
    }
}
