/* 协腾精密 MES 主题核心样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', '思源黑体', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #1A2A3A;
    line-height: 1.5;
}

:root {
    --deep-blue: #0A1C2A;
    --industrial-blue: #1A2A3A;
    --xieteng-orange: #F15A24;
    --xieteng-gold: #F5B81B;
    --gray-bg: #F8FAFC;
    --border-light: #E9EDF2;
    --text-dark: #1E2F3E;
    --text-muted: #546E7A;
    --success: #2E7D32;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* 顶部栏 */
.top-bar {
    background: var(--deep-blue);
    color: #B0C4DE;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 导航 */
.main-nav {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--industrial-blue);
}

.logo span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--xieteng-orange);
    display: block;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--industrial-blue);
    transition: 0.2s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--xieteng-orange);
}

.btn-sm {
    background: var(--xieteng-orange);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 32px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-sm:hover {
    background: #c54214;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--xieteng-orange);
    color: var(--xieteng-orange);
    padding: 8px 20px;
    border-radius: 32px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--industrial-blue);
}

.section-sub {
    color: var(--text-muted);
    border-left: 4px solid var(--xieteng-orange);
    padding-left: 16px;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.device-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-light);
    transition: 0.25s;
    overflow: hidden;
}

.device-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}

.card-img {
    background: #F0F4F9;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-content {
    padding: 20px;
}

.badge {
    background: var(--industrial-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

/* MES专用样式 */
.mes-dashboard {
    background: linear-gradient(135deg, #F9FCFE 0%, #FFFFFF 100%);
    border-radius: 36px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid #EFF3F8;
    margin-bottom: 48px;
}

.kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 32px;
}

.kpi-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid var(--border-light);
}

.progress-bar {
    background: #E2E8F0;
    border-radius: 24px;
    height: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    background: var(--xieteng-orange);
    height: 100%;
    width: 0%;
    border-radius: 24px;
}

.order-track-panel {
    background: white;
    border-radius: 28px;
    padding: 28px;
    margin-top: 28px;
    border: 1px solid var(--border-light);
}

.step-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 28px 0;
    gap: 12px;
}

.step-node {
    flex: 1;
    text-align: center;
    border-top: 3px solid #CFDFE9;
    padding-top: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.2s;
}

.step-node.active {
    border-top-color: var(--xieteng-orange);
    color: var(--industrial-blue);
    font-weight: 700;
}

.step-node.done {
    border-top-color: var(--success);
    color: var(--success);
}

.btn-mes {
    background: var(--xieteng-orange);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

footer {
    background: var(--deep-blue);
    color: #A0B8CC;
    padding: 48px 0 24px;
    margin-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 40px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1F3A4B;
    font-size: 0.8rem;
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }
}