﻿@charset "utf-8";

/* ============================================================
   客户案例 - 深炭灰 + 暖金 高端 Portfolio 风格
   ============================================================ */

/* ---------- 页面容器 ---------- */
.case-section {
    padding: 2rem 2rem 4rem;
    background: #fff;
}
.case-container {
    width: 86%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ---------- 面包屑 ---------- */
.case-breadcrumb {
    font-size: .82rem;
    color: #8a8a9a;
    padding: .4rem 0 1rem;
    letter-spacing: .02em;
}
.case-breadcrumb a {
    color: #555;
    text-decoration: none;
}
.case-breadcrumb a:hover {
    color: #c9a84c;
}
.case-breadcrumb span {
    color: #c9a84c;
}

/* ---------- Hero ---------- */
.case-hero {
    text-align: center;
    padding: 1.2rem 1rem 2rem;
}
.case-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2a2a3a, #3d3d52);
    color: #c9a84c;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    padding: 6px 22px;
    border-radius: 20px;
    margin-bottom: .6rem;
    border: 1px solid rgba(201, 168, 76, .25);
}
.case-hero h1 {
    font-size: 2.4rem;
    color: #1a1a2e;
    margin-bottom: .5rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.case-hero .case-hero-sub {
    color: #6a6a7e;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.case-hero-count {
    margin-top: .8rem;
    font-size: .88rem;
    color: #8a8a9a;
}

/* ---------- 案例网格 ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin: 1.5rem 0 2.5rem;
}
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #eee;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    display: block;
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.case-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 434 / 339;
    background: #f4f4f6;
}
.case-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.case-card:hover .case-card-img-wrap img {
    transform: scale(1.06);
}
.case-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.7) 0%, rgba(26,26,46,0) 60%);
    opacity: 0;
    transition: opacity .35s;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}
.case-card:hover .case-card-overlay {
    opacity: 1;
}
.case-card-overlay span {
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid rgba(201,168,76,.6);
    padding: 5px 14px;
    border-radius: 18px;
}
.case-card-body {
    padding: 1rem 1.1rem 1.1rem;
}
.case-card-title {
    font-size: .95rem;
    color: #1a1a2e;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 分页 ---------- */
.case-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2rem 0 1rem;
    font-size: .9rem;
}
.case-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e6;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s;
    font-size: .88rem;
}
.case-page-btn:hover {
    background: #f4f4f8;
    border-color: #c9a84c;
    color: #1a1a2e;
}
.case-page-btn.active {
    background: #2a2a3a;
    color: #c9a84c;
    border-color: #2a2a3a;
    font-weight: 700;
}
.case-page-disabled {
    color: #c0c0cc;
    pointer-events: none;
}
.case-page-info {
    color: #8a8a9a;
    font-size: .82rem;
    margin-left: .6rem;
}
.case-page-select {
    height: 38px;
    padding: 0 8px;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    font-size: .85rem;
    color: #555;
    background: #fff;
    cursor: pointer;
    margin-left: 4px;
}

/* ========== 内容页 (myhui1=222) ========== */
.case-detail-header {
    padding: 1.5rem 0 1rem;
    text-align: center;
}
.case-detail-header h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.4;
}
.case-detail-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #e0c878);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}
.case-detail-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    line-height: 1.8;
    color: #3a3a4e;
    font-size: .95rem;
}
.case-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    margin: .8rem auto;
    display: block;
}
.case-detail-back {
    text-align: center;
    margin: 2rem 0 1rem;
}
.case-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2a2a3a;
    color: #c9a84c;
    font-weight: 600;
    font-size: .92rem;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
    letter-spacing: .03em;
    transition: all .25s;
}
.case-detail-back a:hover {
    background: #1a1a2e;
    gap: 10px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .case-section {
        padding: 1.2rem 1rem 3rem;
        padding-top: calc(48px + 1.2rem);
    }
    .case-container {
        width: 92%;
    }
    .case-hero {
        padding: .6rem .5rem 1rem;
    }
    .case-hero h1 {
        font-size: 1.6rem;
    }
    .case-hero .case-hero-sub {
        font-size: .88rem;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .9rem;
    }
    .case-card-body {
        padding: .7rem .8rem .8rem;
    }
    .case-card-title {
        font-size: .82rem;
    }
    .case-detail-header h1 {
        font-size: 1.35rem;
    }
    .case-detail-content {
        padding: .5rem 0 1.5rem;
    }
}
@media (max-width: 480px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-pagination {
        gap: 3px;
    }
    .case-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: .78rem;
        padding: 0 6px;
    }
}

/* ========== 移动端顶部导航 (与其他页面统一) ========== */
.m-top { display:none; }
@media screen and (max-width: 768px) {
    .m-top { display:block; }
    body { overflow-x: clip; overflow-x: hidden\9; }
    html { overflow-x: clip; overflow-x: hidden\9; }
}

.m-top-bar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    bottom: auto;
    width: 100%;
    z-index: 9999;
    background: #1a1a2e;
    box-shadow: 0 1px 6px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}
.m-top-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}
.m-top-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 6px;
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #c9a84c;
    padding: 3px 8px;
    letter-spacing: 0;
}
.m-top-logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c9a84c, #e0c878);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.m-menu-check { display: none; }
.m-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.m-menu-btn span,
.m-menu-btn span::before,
.m-menu-btn span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: #c9a84c;
    border-radius: 2px;
    transition: all .25s ease;
}
.m-menu-btn span { position: relative; }
.m-menu-btn span::before,
.m-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}
.m-menu-btn span::before { top: -7px; }
.m-menu-btn span::after  { top: 7px; }

.m-menu-check:checked ~ .m-menu-btn span { background: transparent; }
.m-menu-check:checked ~ .m-menu-btn span::before {
    top: 0; transform: rotate(45deg);
}
.m-menu-check:checked ~ .m-menu-btn span::after {
    top: 0; transform: rotate(-45deg);
}

.m-menu-drop {
    position: fixed;
    top: 48px;
    left: 0; right: 0;
    background: rgba(26,26,46,.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.m-menu-check:checked ~ .m-menu-drop {
    max-height: 420px;
    padding: 8px 0;
}
.m-menu-drop a {
    display: block;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: .03em;
    padding: 19px 28px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .2s, padding-left .2s;
}
.m-menu-drop a:last-child { border-bottom: none; }
.m-menu-drop a:hover { background: rgba(201,168,76,.08); }
.m-menu-drop a:active,
.m-menu-drop a:focus { background: rgba(201,168,76,.12); padding-left: 34px; }

.m-top-placeholder { display: none; }
@media screen and (max-width: 768px) {
    .m-top-placeholder { display: block; height: 48px; }
}

.xidinggepc { display:block; }
.xidinggeyidong { display:none; }
@media screen and (max-width: 768px) {
    .xidinggepc { display:none; }
    .xidinggeyidong { display:block; }
}
