/*
 * 申天模型 - 生产看板 (排版修正版 v7.0)
 * 特点：字号统一、对齐严格、颜色规范
 */

:root {
    --st-bg: #f5f7fa;
    --st-card: #ffffff;
    --st-text-main: #1d1d1f; /* 苹果黑 */
    --st-text-sub: #6e6e73;  /* 苹果灰 */
    --st-border: #e5e5ea;
    --st-blue: #0071e3;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
}

.st-manufacturing-page {
    background-color: var(--st-bg);
    color: var(--st-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    margin: 0;
}

.st-main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* 标题区 */
.st-hero-section { text-align: center; margin-bottom: 50px; }
.st-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; color: var(--st-text-main); }
.st-subtitle { font-size: 1rem; color: var(--st-text-sub); }

/* 统计卡片 - 保持简洁 */
.st-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.st-stat-card {
    background: var(--st-card);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--st-border);
}

.icon-box {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: #f5f5f7; color: var(--st-text-main);
}

.info span { font-size: 1.8rem; font-weight: 700; line-height: 1; display: block; }
.info label { font-size: 0.8rem; color: var(--st-text-sub); margin-top: 4px; display: block; }

/* 搜索框 */
.st-search-wrapper { display: flex; justify-content: center; margin-bottom: 30px; }
.st-search-box {
    background: #fff;
    width: 100%; max-width: 480px;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--st-border);
    box-shadow: var(--shadow-sm);
}
.st-search-box i { color: var(--st-text-sub); }
.st-search-box input {
    border: none; background: transparent; width: 100%; outline: none;
    font-size: 0.95rem; color: var(--st-text-main);
}

/* 列表表头 - 严格对齐 */
.st-table-header {
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1.5fr; /* 定义列宽 */
    padding: 0 24px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--st-text-sub);
    border-bottom: 1px solid var(--st-border);
    margin-bottom: 10px;
}

.st-project-list { display: flex; flex-direction: column; gap: 8px; }

/* 列表行 - 核心修正 */
.project-row {
    background: var(--st-card);
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1.5fr; /* 必须与表头一致 */
    align-items: center; /* 垂直居中 */
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;

    /* 统一行高和字体 */
    font-size: 1rem;
    line-height: 1.5;
}

/* 1. 排序号 */
.col-sort {
    font-family: "SF Mono", monospace;
    font-size: 0.9rem;
    color: var(--st-text-sub);
    opacity: 0.7;
}

/* 2. 模型名称 - 加粗深色 */
.col-model {
    font-weight: 600;
    color: var(--st-text-main);
    padding-right: 15px;
}

/* 3. 客户名 - 标准色 */
.col-user {
    color: var(--st-text-sub);
    font-weight: 400;
}

/* 4. 状态栏 */
.col-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* 进度条 */
.progress-bg {
    width: 100%;
    height: 6px;
    background: #f2f2f7;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* 搜索高亮样式 */
.project-row.highlight-row {
    background: #f0f8ff;
    border-color: var(--st-blue);
    position: relative;
    z-index: 2;
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15);
}

.match-user {
    color: var(--st-blue);
    font-weight: 700;
}

/* 响应式 */
@media (max-width: 768px) {
    .st-stat-grid { grid-template-columns: 1fr; }
    .st-table-header { display: none; }

    .project-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .col-sort { display: none; }
    .col-model { font-size: 1.1rem; }
}