* {
    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;
    -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;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.header-text .subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    min-width: 60px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-value.stat-low {
    color: #86efac;
}

.stat-value.stat-normal {
    color: #fcd34d;
}

.stat-value.stat-high {
    color: #fca5a5;
}

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: 0;
    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;
    overflow: hidden;
}

.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: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #86868b;
    border-radius: 50%;
    background: #e8e8ed;
    pointer-events: none;
    z-index: 1;
}

.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-content {
    padding: 14px 16px 14px 48px;
}

.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-header {
    margin-bottom: 12px;
}

.company-main {
    padding-left: 0;
}

.company-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

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

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

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

.company-price {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.company-code {
    color: #86868b;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
}

.company-industry {
    color: #86868b;
}

.company-cap {
    color: #86868b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.company-shares {
    color: #86868b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
}

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

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 4px;
    margin-bottom: 10px;
}

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

.metric-label {
    font-size: 11px;
    color: #86868b;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

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

.metric-value .unit {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    margin-left: 1px;
}

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

.metric-bar {
    height: 3px;
    background: #f0f0f2;
    border-radius: 2px;
    margin-top: 4px;
    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; }

.price-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    margin-bottom: 10px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.info-label {
    color: #86868b;
    font-size: 12px;
    white-space: nowrap;
}

.info-value {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
}

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

.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; }

.price-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f2;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
}

.total-shares {
    font-size: 13px;
    color: #86868b;
    font-variant-numeric: tabular-nums;
}

.market-cap {
    font-size: 13px;
    color: #86868b;
    font-variant-numeric: tabular-nums;
}

.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;
}

.disclaimer {
    margin-top: 0px;
    padding: 20px 0 0 0;
    text-align: center;
    border-top: 1px solid #e5e5e7;
}

.disclaimer p {
    font-size: 11px;
    color: #86868b;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.page-footer {
    margin-top: 48px;
    padding: 0;
    background: transparent;
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: #86868b;
    margin-top: 2px;
}

.disclaimer-box p {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

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

/* 移动设备 */
@media (max-width: 767px) {
    body {
        padding: 16px 12px 32px;
        background: #f5f5f7;
    }

    .report {
        padding: 0;
        max-width: 100%;
    }

    .page-header {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header-left {
        width: 100%;
        gap: 12px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-icon svg {
        width: 24px;
        height: 24px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text .subtitle {
        font-size: 11px;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .stat-item {
        min-width: auto;
        flex: 1;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    header {
        margin-bottom: 16px;
        padding: 0 4px;
    }

    h1 {
        font-size: 20px;
        font-weight: 600;
    }

    .subtitle {
        font-size: 11px;
        margin-top: 6px;
    }

    .companies {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .category-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .company {
        border-radius: 10px;
        overflow: hidden;
    }

    .company-rank {
        left: 12px;
        top: 12px;
        width: 24px;
        height: 24px;
        font-size: 13px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .company-content {
        padding: 12px 12px 12px 44px;
    }

    .company-header {
        margin-bottom: 10px;
    }

    .company-name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .company-score {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 3px;
    }

    .company-meta {
        font-size: 11px;
        gap: 6px;
        line-height: 1.5;
        flex-wrap: wrap;
    }

    .company-cap,
    .company-shares {
        display: inline;
        color: #86868b;
    }

    .status-badge {
        font-size: 11px;
        padding: 3px 7px;
        border-radius: 10px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0;
        margin-bottom: 12px;
    }

    .metric-label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .metric-value {
        font-size: 22px;
        font-weight: 600;
    }

    .metric-value.na {
        font-size: 14px;
    }

    .metric-value .unit {
        font-size: 12px;
    }

    .metric-bar {
        height: 3px;
        margin-top: 5px;
    }

    .price-info {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 20px;
        padding: 10px 0;
        margin-bottom: 10px;
        border-top: 1px solid #f5f5f7;
    }

    .info-item {
        gap: 4px;
    }

    .info-label {
        font-size: 11px;
        color: #86868b;
    }

    .info-value {
        font-size: 14px;
        font-weight: 600;
    }

    .price {
        font-size: 16px;
    }

    .total-shares,
    .market-cap {
        font-size: 11px;
    }

    .reason {
        font-size: 12px;
        line-height: 1.5;
        padding-top: 4px;
        color: #6e6e73;
    }

    .disclaimer {
        margin-top: 32px;
        padding: 16px 0;
    }

    .disclaimer p {
        font-size: 10px;
        padding: 0 8px;
        line-height: 1.6;
    }

    .page-footer {
        margin-top: 32px;
    }

    .disclaimer-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 14px 16px;
        margin: 0 12px;
    }

    .disclaimer-icon {
        margin-top: 0;
    }

    .disclaimer-box p {
        font-size: 11px;
        text-align: center;
    }
}

/* 小屏移动设备 */
@media (max-width: 375px) {
    body {
        padding: 12px 8px 24px;
    }

    header {
        margin-bottom: 12px;
    }

    h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 10px;
    }

    .page-header {
        padding: 16px;
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .header-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-stats {
        gap: 8px;
    }

    .stat-value {
        font-size: 16px;
    }

    .companies {
        gap: 8px;
    }

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

    .category-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .company {
        border-radius: 8px;
    }

    .company-rank {
        left: 10px;
        top: 10px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .company-content {
        padding: 10px 10px 10px 40px;
    }

    .company-header {
        margin-bottom: 8px;
    }

    .company-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .company-score {
        font-size: 9px;
        padding: 1px 4px;
    }

    .company-meta {
        font-size: 10px;
        gap: 4px;
        line-height: 1.4;
    }

    .metrics {
        gap: 16px;
        margin-bottom: 10px;
    }

    .metric-value {
        font-size: 20px;
    }

    .metric-value .unit {
        font-size: 11px;
    }

    .price-info {
        gap: 10px 16px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 13px;
    }

    .reason {
        font-size: 11px;
        line-height: 1.45;
    }

    .disclaimer-box {
        padding: 12px 14px;
        margin: 0 8px;
    }

    .disclaimer-box p {
        font-size: 10px;
    }

    .disclaimer p {
        font-size: 9px;
        padding: 0 4px;
    }
}

/* 超小屏设备 */
@media (max-width: 320px) {
    body {
        padding: 8px 6px 20px;
    }

    h1 {
        font-size: 17px;
    }

    .company-content {
        padding: 8px 8px 8px 36px;
    }

    .company-name {
        font-size: 14px;
    }

    .metric-value {
        font-size: 18px;
    }

    .price-info {
        gap: 8px 12px;
    }

    .info-value {
        font-size: 12px;
    }

    .reason {
        font-size: 10px;
    }
}

/* 小屏移动设备 */
@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; }
}
