* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    padding: 20px;
    color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8ed;
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.fingerprint-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #fbfbfd;
    border-radius: 8px;
    border: 1px solid #e8e8ed;
}

.fingerprint-id {
    background: #2c2c2e;
    color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.1em;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    word-break: break-all;
}

.section-title {
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.info-item {
    background: #f6f6f8;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e8e8ed;
}

.info-label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.info-value {
    color: #4a5568;
    word-break: break-word;
    font-size: 0.95em;
    white-space: pre-wrap;
}

.loading {
    text-align: center;
    color: #6b7280;
    font-style: normal;
}

.canvas-container,
.audio-container {
    display: none;
}

.error-text {
    color: #b91c1c;
    font-size: 0.9em;
    margin-top: 8px;
    text-align: center;
}

.fp-mono {
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
}

.fp-more-link {
    font-size: 0.8em;
    color: #2563eb;
    cursor: pointer;
    margin-left: 8px;
}

.fp-more-link:hover {
    text-decoration: underline;
}

/* 通用弹窗 */
.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fp-modal {
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fp-modal-title {
    font-weight: 600;
    font-size: 1em;
}

.fp-modal-close {
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1.4em;
    line-height: 1;
}

.fp-modal-body {
    font-size: 0.9em;
    color: #4a5568;
    overflow: auto;
    max-height: 60vh;
}

.fp-modal-body pre {
    white-space: pre-wrap;
    word-break: break-all;
}

/* 顶部 KEY + 列表区域 */
.admin-tools {
    margin-bottom: 24px;
}

.admin-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-tools-row input,
.admin-tools-row button,
.admin-tools-row select {
    font-size: 0.9em;
}

.admin-input {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    min-width: 160px;
}

.admin-button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
}

.admin-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.admin-select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    min-width: 280px;
}

.admin-hint {
    margin-top: 4px;
    font-size: 0.8em;
    color: #6b7280;
}

/* 关联分析表格 */
.fp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.fp-table th,
.fp-table td {
    border: 1px solid #e5e7eb;
    padding: 4px 6px;
    text-align: left;
}

.fp-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.fp-table tr:hover {
    background: #eff6ff;
    cursor: pointer;
}

.fp-tag {
    display: inline-block;
    margin: 1px 2px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.75em;
}

/* 多维度标签颜色：高/中/低 */
.fp-tag-high {
    background: #fee2e2;
    color: #b91c1c;
}

.fp-tag-mid {
    background: #ffedd5;
    color: #c2410c;
}

.fp-tag-low {
    background: #dbeafe;
    color: #1d4ed8;
}

.fp-score-strong {
    font-weight: 600;
    color: #b91c1c;
}

.fp-score-medium {
    font-weight: 600;
    color: #ea580c;
}

.fp-score-weak {
    font-weight: 600;
    color: #2563eb;
}
