/* --- 核心变量（与首页完全一致） --- */
:root {
    --primary: #00FFC2; 
    --bg: #0D0D0D;      
    --card-bg: #1A1A1B; 
    --text: #E0E0E0;
    --text-dim: #999;
    --border: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- 头部导航 (完全保留首页逻辑) --- */
header { padding: 15px 0; border-bottom: 1px solid #222; position: sticky; top: 0; background: rgba(13,13,13,0.9); backdrop-filter: blur(10px); z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo svg { width: 130px; height: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* --- 案例页头部标题 --- */
.page-banner { padding: 80px 0 40px; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 50px; background: linear-gradient(to bottom, #111, var(--bg)); }
.page-banner h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.page-banner p { color: var(--primary); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }

/* --- 案例过滤器 (占位) --- */
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-item { padding: 6px 18px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem; cursor: pointer; transition: 0.3s; color: var(--text-dim); }
.filter-item.active, .filter-item:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,255,194,0.05); }

/* --- 案例列表栅格 --- */
.cases-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 80px; }
.case-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: 0.4s; position: relative; }
.case-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* 案例图片区域 */
.case-thumb { width: 100%; height: 200px; background: #222; overflow: hidden; position: relative; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.5s; }
.case-card:hover .case-thumb img { opacity: 0.9; transform: scale(1.05); }

.case-category { position: absolute; top: 15px; left: 15px; background: var(--primary); color: #000; font-size: 0.7rem; font-weight: bold; padding: 2px 8px; z-index: 1; }

/* 案例内容 */
.case-detail { padding: 25px; }
.case-detail h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-detail p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; height: 45px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 20px; }

.case-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #252525; padding-top: 15px; }
.case-tags { font-size: 0.75rem; color: #555; font-family: monospace; }
.case-link { color: var(--primary); font-size: 0.85rem; font-weight: bold; }

/* --- 底部 (完全保留首页逻辑) --- */
footer { padding: 80px 0 40px; border-top: 1px solid #222; margin-top: 100px; background: #0a0a0a; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-links h5 { color: var(--primary); margin-bottom: 20px; font-size: 1rem; }
.links-wrap { display: flex; gap: 30px; }
.links-wrap a { color: var(--text-dim); font-size: 0.85rem; }
.links-wrap a:hover { color: var(--primary); }
.footer-contact h5 { color: var(--primary); margin-bottom: 20px; font-size: 1rem; }
.copyright { border-top: 1px solid #1a1a1a; text-align: center; font-size: 0.8rem; color: #555; padding-top: 30px; }

/* --- 移动端适配 (WAP) --- */
@media (max-width: 992px) {
    .cases-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .page-banner h1 { font-size: 1.8rem; }
    .cases-wrapper { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; text-align: center; }
    .links-wrap { justify-content: center; flex-wrap: wrap; }
}