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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2d3748;
}

.header-info {
    display: flex;
    /* gap: 30px; */
    flex-wrap: wrap;
    font-size: 14px;
    color: #718096;
}

.header-info strong {
    color: #2d3748;
}

/* 风险评级卡片 */
.risk-overview {
    margin-bottom: 20px;
}

.risk-level-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.risk-level-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2d3748;
}

.risk-level-display {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.risk-level {
    font-size: 72px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.risk-level.level-A {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.3);
}

.risk-level.level-B {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.risk-level.level-C {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.risk-level.level-D {
    background: linear-gradient(135deg, #fa709a 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.risk-level.level-E {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.risk-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-label {
    font-size: 14px;
    color: #718096;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #2d3748;
}

/* 风险标签网格 */
.tags-overview {
    margin-bottom: 20px;
}

.tags-overview h2 {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2d3748;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.tag-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tag-name {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 500;
}

.tag-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.success {
    background: #48bb78;
}

.status-indicator.warning {
    background: #ed8936;
}

.status-indicator.danger {
    background: #f56565;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.tag-score {
    font-size: 24px;
    font-weight: bold;
    color: #4299e1;
}

.tag-extra {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
}

/* 风险提示区域 */
.risks-section {
    margin-bottom: 20px;
}

.risks-section h2 {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2d3748;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.risks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ed8936;
}

.risk-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.risk-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.risk-tag {
    background: #fed7d7;
    color: #c53030;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* 详细数据区域 */
.details-section {
    margin-bottom: 20px;
}

.details-section h2 {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2d3748;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.detail-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.detail-card-badge {
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.detail-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.field-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.field-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .risk-level {
        font-size: 48px;
        padding: 15px 25px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-level-display {
        gap: 20px;
    }
}