/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* 首页英雄区 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 服务卡片 */
.service-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}
.icon-web  { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-mini { background: linear-gradient(135deg, #f093fb, #f5576c); }
.icon-app  { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-oth  { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* 步骤进度条 */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.step-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}
.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}
.step-item.active .step-circle {
    background: #667eea;
    color: #fff;
}
.step-item.done .step-circle {
    background: #28a745;
    color: #fff;
}
.step-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
}
.step-item.active .step-label,
.step-item.done .step-label {
    color: #333;
    font-weight: 600;
}

/* 案例卡片 */
.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 24px;
    cursor: pointer;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.case-card .card-body {
    padding: 18px;
}
.case-card .badge {
    font-size: 0.75rem;
}

/* 案例内容富文本 */
.case-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.case-content table {
    width: 100%;
    border-collapse: collapse;
}
.case-content td, .case-content th {
    border: 1px solid #ddd;
    padding: 8px;
}

/* 模态框案例详情 */
.case-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 30px 0;
    margin-top: 60px;
}

/* 后台管理样式 */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #2c3e50;
}
.admin-sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    border-radius: 0;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #34495e;
    color: #fff;
}
.admin-content {
    background: #f5f7fa;
    min-height: calc(100vh - 56px);
}

/* 状态标签 */
.status-pending    { background: #ffc107; color: #333; }
.status-contacted  { background: #17a2b8; color: #fff; }
.status-processing { background: #007bff; color: #fff; }
.status-completed  { background: #28a745; color: #fff; }

/* 响应式微调 */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p  { font-size: 1rem; }
    .step-label { font-size: 0.7rem; }
    .step-circle { width: 32px; height: 32px; font-size: 0.8rem; }
    .step-progress::before { top: 15px; }
    .case-card img { height: 160px; }
}
