/* --- 核心变量与基础定义 --- */
:root {
    --brand-orange: #ff9800;
    --brand-green: #4caf50;
    --brand-blue: #2196f3;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-body: #f4f7fa;
    --card-bg: #ffffff;
    --border-soft: #edf2f7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
}
a { text-decoration: none; transition: var(--transition); color: var(--brand-green); }

/* 固定页头 */
.head-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}

/* 主容器 */
.container {
    max-width: 1200px; /* PC端宽屏显示 */
    margin: 0 auto;
    padding: 20px 50px 20px 20px;
    padding-top: 80px; /* 为固定头部留出空间 */
}

/* --- 顶部 Header --- */
.page-header { margin-bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.page-header h1 { font-size: 30px; font-weight: 800; color: var(--text-dark); }
.page-header p { color: var(--text-muted); font-size: 14px; }

/* --- 通用卡片与版块标题 --- */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}
.section-header { margin-bottom: 20px; }
.section-title { font-size: 18px; font-weight: 800; border-left: 4px solid var(--brand-orange); padding-left: 12px; line-height: 1; margin-bottom: 6px; }
.section-desc { font-size: 13px; color: var(--text-muted); padding-left: 16px; font-weight: 400; }

/* --- 数据表格样式 (悬停变绿) --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border-soft); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--border-soft); }
.data-table tr:hover { background: #fafffb; cursor: pointer; }
.data-table tr:hover td { color: var(--brand-green); }
.val-bold { font-weight: 800; color: var(--brand-green); font-size: 15px; }

/* 表格响应式处理 */
.report-table {
    display: table;
    width: 100%;
}

/* 隐藏列的类 */
.hide-on-mobile {
    display: table-cell;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    /* 主容器 */
    .container {
        padding: 160px 10px 10px 10px; /* 为固定头部留出空间 */
    }
    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    /* 隐藏发动机型号和众测里程列 */
    .hide-on-mobile {
        display: none;
    }

    /* 调整表格布局 */
    .report-table {
        table-layout: fixed;
    }

    .report-table th:nth-child(4),
    .report-table td:nth-child(4),
    .report-table th:nth-child(7),
    .report-table td:nth-child(7) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    /* 主容器 */
    .container {
        padding: 160px 10px 10px 10px; /* 为固定头部留出空间 */
    }
    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    /* 进一步隐藏更多列以节省空间 */
    .report-table th:nth-child(3),
    .report-table td:nth-child(3) {
        display: none;
    }
}

/* --- 三大图表指标 --- */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 25px; 
    justify-content: center; /* 居中对齐，避免右侧多余间距 */
    max-width: 100%; /* 限制最大宽度 */
}
.stat-card { 
    background: white; 
    border-radius: 16px; 
    padding: 20px; 
    text-align: center; 
    border: 1px solid var(--border-soft); 
    transition: var(--transition);
    height: 392px; /* 固定高度避免布局变化 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.chart-visual { height: 130px; display: flex; align-items: center; justify-content: center; margin: 10px 0; }
.big-num { font-size: 36px; font-weight: 900; color: var(--brand-green); letter-spacing: -1px; }
.big-num span { font-size: 14px; font-weight: normal; margin-left: 4px; }

/* 响应式图表容器 */
.container_chexi_medium_chart {
    width: 100%;
    min-width: 280px;
    height: 350px;
    margin: 0 auto;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .container_chexi_medium_chart {
        min-width: auto;
        height: 300px;
        margin: 0 10px;
    }

    .chart-visual {
        height: 100px;
    }

    .big-num {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .container_chexi_medium_chart {
        height: 250px;
        margin: 0 5px;
        min-height: 200px;
    }

    .big-num {
        font-size: 24px;
    }
}


/* --- 2. 核心 50/50 均分网格 --- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }

/* 相关车型标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a {
    font-size: 13px; color: var(--brand-blue); background: #f0f7ff;
    padding: 8px 18px; border-radius: 25px; border: 1px solid transparent;
}
.tag-cloud a:hover { background: var(--brand-green); color: white; border-color: var(--brand-green); transform: scale(1.05); }

/* --- 3. 瀑布流车主评价 --- */
.comments-masonry {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}
.comment-card {
    break-inside: avoid;
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border-soft);
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    transition: var(--transition);
}
.comment-card:hover {
    border-color: var(--brand-green);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.cmt-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.cmt-user { font-weight: bold; color: var(--text-dark); }
.cmt-content { font-size: 14px; font-weight: 500; color: #334155; line-height: 1.6; }
.cmt-car-tag {
    font-size: 11px; color: var(--text-muted); margin-top: 15px; padding-top: 10px;
    border-top: 1px solid #eef2f7; font-weight: 600;
}
.container_chexi_medium_chart {
    min-height: 300px;
    max-height: 400px;
    margin: 20px auto;
}

/* --- 底部响应式 --- */
@media (max-width: 1024px) {
    .comments-masonry { column-count: 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .split-grid, .stats-grid { grid-template-columns: 1fr; }
    .comments-masonry { column-count: 1; }
    .page-header h1 { font-size: 24px; }
}

footer { text-align: center; padding: 40px 20px; color: #cbd5e1; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }