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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    padding: 32px 32px 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "tnum", "ss01";
}

.report {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 64px;
}

header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 0;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.subtitle {
    font-size: 12px;
    color: #86868b;
    margin-top: 4px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.companies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-section {
    margin-bottom: 32px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e7;
    letter-spacing: -0.01em;
}

.company {
    display: block;
    position: relative;
    padding: 16px 22px 16px 48px;
    background: #ffffff;
    border: 1px solid #ebebed;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    color: inherit;
    text-decoration: none;
}

.company:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.company:active {
    transform: scale(0.98);
}

.company-rank {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #86868b;
    border-radius: 50%;
    background: #e8e8ed;
    pointer-events: none;
}

.company-rank.rank-1 {
    color: #b48803;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.company-rank.rank-2 {
    color: #757575;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.company-rank.rank-3 {
    color: #8d5422;
    background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.company.status-low {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.company.status-normal {
    background: #fff7ed;
    border-color: #fed7aa;
}

.company.status-high {
    background: #fef2f2;
    border-color: #fecaca;
}

.company-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 24px;
}

.company-id {
    min-width: 0;
}

.company-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-score {
    font-size: 11px;
    font-weight: 500;
    color: #86868b;
    padding: 2px 6px;
    background: #f5f5f7;
    border-radius: 4px;
    margin-left: 4px;
}

.company-score.score-low {
    color: #34c759;
    background: #f0fdf4;
}

.company-score.score-high {
    color: #ff3b30;
    background: #fef2f2;
}

.company-sub {
    font-size: 12px;
    color: #86868b;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.company-sub .sep {
    margin: 0 8px;
    color: #d2d2d7;
}

.company-tags {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    flex-shrink: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1d1d1f;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-low { background: #34c759; }
.dot-normal { background: #ff9500; }
.dot-high { background: #ff3b30; }

.quality {
    color: #86868b;
    font-size: 13px;
    position: relative;
    padding-left: 14px;
}

.quality::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d2d2d7;
}

.quality-good { color: #34c759; }
.quality-danger { color: #ff3b30; }
.quality-warn { color: #86868b; }
.quality-neutral { color: #86868b; }

.category {
    font-size: 11px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 3px;
}

.category-holding {
    color: #007AFF;
    background: #F0F8FF;
}

.category-observing {
    color: #FF9500;
    background: #FFF8E7;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 8px;
    margin-bottom: 8px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #1d1d1f;
}

.metric-value .unit {
    font-size: 16px;
    font-weight: 300;
    color: #86868b;
    margin-left: 2px;
    letter-spacing: 0;
}

.metric-value.na {
    font-size: 24px;
    color: #d2d2d7;
}

.metric-label {
    font-size: 12px;
    color: #86868b;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.metric-bar {
    height: 3px;
    background: #f0f0f2;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: #d2d2d7;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.metric-bar-fill.high { background: #ff3b30; }
.metric-bar-fill.low { background: #34c759; }

.reason {
    font-size: 12px;
    color: #515154;
    line-height: 1.45;
    letter-spacing: 0.005em;
    padding-bottom: 2px;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    color: #86868b;
    min-height: 300px;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 1024px) {
    .companies { grid-template-columns: repeat(2, 1fr); }
}

/* 移动设备 */
@media (max-width: 767px) {
    body { padding: 24px 16px 48px; }
    header { margin-bottom: 14px; }
    h1 { font-size: 20px; }
    .companies { grid-template-columns: 1fr; }
    .company { padding: 14px 16px 14px 52px; }
    .company-rank { left: 14px; top: 16px; width: 24px; height: 24px; font-size: 12px; }
    .company-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .company-name { font-size: 17px; }
    .metrics { grid-template-columns: 1fr; gap: 24px; padding: 0; margin-bottom: 8px; }
    .metric-value { font-size: 32px; }
    .metric-value .unit { font-size: 14px; }
}

/* 小屏移动设备 */
@media (max-width: 375px) {
    body { padding: 20px 12px 40px; }
    .company { padding: 12px 14px 12px 48px; }
    .company-rank { left: 12px; top: 14px; width: 22px; height: 22px; font-size: 11px; }
    .company-name { font-size: 16px; }
    .metric-value { font-size: 28px; }
}
