:root {
    --primary: #003366;
    --accent: #FF6600;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text-main); line-height: 1.6; background: var(--bg-light); }

/* --- 统一头部 --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 15px; transition: 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); font-weight: bold; }
.mobile-btn { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* --- 案例页 Banner --- */
.page-banner {
    padding: 140px 20px 60px;
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&q=80') center/cover;
    color: #fff; text-align: center;
}
.page-banner h1 { font-size: 36px; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* --- 案例主体 --- */
.case-section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}
.case-item {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: 0.3s;
    display: flex; flex-direction: column; border: 1px solid #eee;
}
.case-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.case-img { height: 240px; position: relative; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-tag {
    position: absolute; top: 15px; left: 15px;
    background: var(--accent); color: #fff;
    padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: bold;
}

.case-info { padding: 25px; flex-grow: 1; }
.case-info h3 { font-size: 20px; color: var(--primary); margin-bottom: 12px; }
.case-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
.case-meta span { margin-right: 15px; }

.case-detail { font-size: 14px; color: #475569; margin-bottom: 20px; line-height: 1.6; }
.case-detail strong { color: var(--primary); display: block; margin-bottom: 5px; }

.btn-case {
    display: inline-block; padding: 8px 0; color: var(--primary);
    text-decoration: none; font-weight: bold; font-size: 14px; transition: 0.3s;
}
.btn-case:hover { color: var(--accent); }
.btn-case i { margin-left: 5px; font-size: 12px; }

/* --- 分页插件样式 --- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-link { 
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd; background: #fff; text-decoration: none; color: var(--text-main); border-radius: 4px;
}
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- 统一底部 --- */
footer { background: #0f172a; color: #94a3b8; padding: 80px 20px 30px; margin-top: 80px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 25px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #334155; font-size: 13px; }

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 65px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 15px 0; }
    .mobile-btn { display: block; }
    .case-grid { grid-template-columns: 1fr; }
}