* {
    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, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1rem;
}

.main > div {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 检测结果 */
.detect-result .loading {
    text-align: center;
    padding: 2rem;
    color: #888;
    animation: pulse 1.5s infinite;
}

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

.result {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.result.user {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.result.crawler {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.3);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.result .icon {
    font-size: 1.5rem;
}

.result .label {
    font-weight: 600;
    font-size: 1.1rem;
}

.result.user .label { color: #00ff88; }
.result.crawler .label { color: #ff5252; }

.result .score {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.result .reasons {
    font-size: 0.9rem;
    color: #bbb;
    margin-top: 0.5rem;
}

.result .meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
}

.error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.error .message {
    color: #ff5252;
}

/* 内容卡片 */
.content-card {
    min-height: 120px;
}

.content-card p {
    margin-bottom: 1rem;
}

.secret-info {
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 3px solid #00d9ff;
}

.secret-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #00d9ff;
}

.secret-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.secret-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
}

.content-card .blocked {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 12px;
}

.content-card .blocked .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.content-card .blocked .reasons {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #ff5252;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-table td {
    padding: 0.6rem 0;
}

.info-table .label {
    color: #888;
    width: 100px;
    font-size: 0.85rem;
}

.info-table .value {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #ccc;
    word-break: break-all;
}

/* 测试按钮 */
.test-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.test-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.test-panel p {
    font-size: 0.9rem;
    color: #888;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: #555;
    font-size: 0.85rem;
}

.footer a {
    color: #00d9ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .test-buttons {
        flex-direction: column;
    }

    .test-buttons button {
        width: 100%;
    }
}
