:root {
    --primary-color: #16a085;
    --primary-dark: #1abc9c;
    --secondary-color: #ecf0f1;
    --accent-color: #27ae60;
    --dark-color: #2c3e50;
    --light-bg: #f9fbfc;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --purple-color: #9b59b6;
    --blue-color: #3498db;
    --orange-color: #e67e22;
}
* { box-sizing: border-box; }
body {
    background: var(--light-bg);
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 页面淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-fade-in { animation: fadeInUp 0.6s ease-out; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* 导航栏 */
.navbar-custom {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    padding: 0 24px;
    height: 64px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}
.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}
.nav-links {
    display: flex;
    gap: 8px;
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    transition: all 0.25s;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.nav-link.active {
    color: white !important;
    background: rgba(22,160,133,0.35);
}
.nav-link i { font-size: 1.1rem; }

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, #1abc9c 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    color: white;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}
.hero-stats {
    display: flex;
    gap: 30px;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
}
.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* 主容器 */
.main-container {
    margin-top: 64px;
    padding: 28px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片通用 */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: white;
    transition: all 0.3s;
}
.card-custom:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 统计卡片 */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .stat-row { grid-template-columns: 1fr; }
}
.stat-card {
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.stat-card:hover::before {
    height: 6px;
}
.stat-card .stat-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.08;
}
.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 8px 0 4px;
    position: relative;
}
.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    position: relative;
}
.stat-trend {
    font-size: 0.8rem;
    margin-top: 8px;
}
.stat-trend.up { color: var(--success-color); }
.stat-trend.down { color: var(--danger-color); }

/* 快捷入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark-color);
}
.quick-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}
.quick-action-text h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}
.quick-action-text span {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* 模块卡片网格 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .module-grid { grid-template-columns: 1fr; }
}
.module-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}
.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(22, 160, 133, 0.15);
}
.module-card .card-body {
    padding: 28px 24px;
    text-align: center;
}
.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(22,160,133,0.12), rgba(39,174,96,0.12));
    color: var(--primary-color);
    transition: all 0.3s;
}
.module-card:hover .module-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}
.module-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
}
.module-card p {
    color: #95a5a6;
    font-size: 0.88rem;
    margin: 0;
}

/* 流程卡片 */
.process-flow {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}
.process-step {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    position: relative;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -18px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.process-step:last-child::after {
    display: none;
}
.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 4px 15px rgba(22,160,133,0.3);
}
.process-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}
.process-time {
    font-size: 0.75rem;
    color: #95a5a6;
}

/* 生产线状态 */
.production-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(22,160,133,0.08), rgba(39,174,96,0.08));
    border-radius: 10px;
    margin-bottom: 16px;
}
.production-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}
.production-dot.warning { background: var(--warning-color); }
.production-dot.error { background: var(--danger-color); }
.production-name {
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}
.production-status {
    font-size: 0.85rem;
    color: var(--success-color);
}
.production-status.warning { color: var(--warning-color); }
.production-status.error { color: var(--danger-color); }

/* 标题 */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    width: 5px;
    height: 26px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}
.section-title .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* 表格 */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}
.table {
    margin-bottom: 0;
}
.table thead th {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    padding: 16px;
}
.table tbody td {
    padding: 16px;
    vertical-align: middle;
    color: #2c3e50;
}
.table tbody tr {
    transition: background 0.2s;
}
.table tbody tr:hover {
    background: #f8fafa;
}
.table-hover tbody tr:hover {
    background: rgba(22,160,133,0.05) !important;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-badge.success {
    background: rgba(39,174,96,0.1);
    color: var(--success-color);
}
.status-badge.warning {
    background: rgba(243,156,18,0.1);
    color: var(--warning-color);
}
.status-badge.danger {
    background: rgba(231,76,60,0.1);
    color: var(--danger-color);
}
.status-badge.info {
    background: rgba(52,152,219,0.1);
    color: var(--blue-color);
}

/* 表单 */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #dde4e6;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22,160,133,0.12);
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,160,133,0.3);
}
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    border-radius: 10px;
}
.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}
.btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
    border-radius: 10px;
}
.btn-outline-danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* 效率条 */
.efficiency-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}
.efficiency-label {
    width: 90px;
    font-size: 0.92rem;
    color: #5d6d7e;
    font-weight: 500;
}
.efficiency-bar {
    flex: 1;
    height: 28px;
    background: #f0f2f5;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.efficiency-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 0.78rem;
    color: white;
    font-weight: 600;
}

/* 甘特图 */
.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.gantt-label {
    width: 110px;
    font-size: 0.88rem;
    color: #5d6d7e;
    font-weight: 500;
}
.gantt-bar-container {
    flex: 1;
    height: 32px;
    background: #f5f7fa;
    border-radius: 8px;
    position: relative;
}
.gantt-bar {
    position: absolute;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
}
.gantt-duration {
    width: 50px;
    text-align: right;
    font-size: 0.88rem;
    color: #7f8c8d;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 320px;
}

/* 设备卡片 */
.equipment-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.equipment-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(22,160,133,0.1);
}
.equipment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.equipment-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}
.equipment-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}
.equipment-info span {
    font-size: 0.8rem;
    color: #95a5a6;
}
.equipment-stats {
    display: flex;
    gap: 16px;
}
.equipment-stat {
    text-align: center;
    flex: 1;
}
.equipment-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}
.equipment-stat-label {
    font-size: 0.75rem;
    color: #95a5a6;
}

/* 环形进度 */
.circle-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.circle-progress svg {
    transform: rotate(-90deg);
}
.circle-progress circle {
    fill: none;
    stroke-width: 8;
}
.circle-progress .bg {
    stroke: #f0f2f5;
}
.circle-progress .progress {
    stroke: var(--primary-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.circle-progress .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.circle-progress .value-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}
.circle-progress .value-label {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* 实时时钟 */
.live-clock {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-clock i {
    animation: pulse 1.5s infinite;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .main-container { padding: 16px; }
    .hero-banner { padding: 24px; }
    .hero-stats { display: none; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 20px;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}
.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 16px;
}
.empty-state h5 {
    color: var(--dark-color);
    margin-bottom: 8px;
}
.empty-state p {
    color: #95a5a6;
    margin: 0;
}

/* 厂区图片画廊 */
.gallery-section {
    margin-top: 24px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s;
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 12px 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h6 {
    margin: 0;
    font-size: 0.9rem;
}
.gallery-overlay span {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 领导风采 */
.leader-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.06);
}
.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.leader-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}
.leader-info {
    padding: 16px;
}
.leader-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
    font-size: 1rem;
}
.leader-position {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.leader-intro {
    color: #7f8c8d;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* 设备展示卡片 */
.equipment-showcase {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.equipment-showcase img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.equipment-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(22,160,133,0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.equipment-desc {
    padding: 16px;
}
.equipment-desc h6 {
    margin: 0 0 8px;
    color: var(--dark-color);
}
.equipment-desc p {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(22,160,133,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
