/* HERO */
.cases-hero {
        position: relative;
        padding-top: 88px;
        height: 560px;
        background: #fff;
        overflow: hidden;
}

.cases-grid {
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 4px;
}

.cases-grid-item {
        position: relative;
        overflow: hidden;
}

.cases-grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
}

.cases-grid-item:hover img {
        transform: scale(1.06);
}

.content-section {
        padding: 60px 0;
        background: var(--bg-gray);
}

/* CONTENT */
.placeholder {
        text-align: center;
        padding: 80px 0;
        color: #999;
}

.placeholder svg {
        width: 64px;
        height: 64px;
        stroke: #ccc;
        margin-bottom: 16px;
}

.placeholder h3 {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
}

/* 面包屑导航 */
.cases-breadcrumb-bar {
        background: #fff;
}

.cases-breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 0;
        font-size: 13px;
        color: var(--text-muted);
}

.cases-breadcrumb a {
        color: var(--text-muted);
        transition: color 0.2s ease;
}

.cases-breadcrumb a:hover {
        color: var(--primary);
}

.cases-breadcrumb-sep {
        color: #c3cad4;
}

/* SCREEN 2 - 参考案例 */
.cases-screen2 {
        background: #fff;
}

.cases-screen2>.container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
}

.cases-gallery-header {
        text-align: center;
        margin-bottom: 48px;
}

.cases-gallery-header h3 {
        font-size: 32px;
        font-weight: 400;
        color: var(--dark);
        margin-bottom: 12px;
}

.cases-gallery-header .header-line {
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        margin: 0 auto 12px;
}

.cases-gallery-header p {
        font-size: 13px;
        color: var(--text-muted);
}

/* 案例卡片 */
.case-card-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
}

.case-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.case-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(13, 110, 253, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.case-card-imgwrap {
        display: block;
        position: relative;
        aspect-ratio: 16/10;
        overflow: hidden;
        background: var(--bg-gray);
}

.case-card-imgwrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
}

.case-card:hover .case-card-imgwrap img {
        transform: scale(1.05);
}

.case-card-imgwrap .img-placeholder {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.15);
        letter-spacing: 1px;
}

.case-card-body {
        padding: 24px 24px 28px;
        display: flex;
        flex-direction: column;
        flex: 1;
}

.case-card-tag {
        display: inline-block;
        align-self: flex-start;
        font-size: 12px;
        color: var(--primary);
        background: rgba(13, 110, 253, 0.08);
        padding: 4px 12px;
        border-radius: 4px;
        margin-bottom: 12px;
        letter-spacing: 1px;
}

.case-card-title {
        font-size: 17px;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 8px;
        line-height: 1.4;
}

.case-card-desc {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.7;
        margin-bottom: 20px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.case-card-btn {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        font-size: 13px;
        font-weight: 500;
        color: var(--primary);
        border: 1px solid var(--primary);
        padding: 8px 22px;
        border-radius: 6px;
        transition: all 0.25s ease;
}

.case-card-btn:hover {
        background: var(--primary);
        color: #fff;
}

/* SCREEN 3 - 全部案例 */
.cases-screen3 {
        padding: 60px 0;
        background: var(--bg-gray);
}

.cases-screen3-header {
        text-align: center;
        margin-bottom: 32px;
}

.cases-screen3-header h2 {
        font-size: 24px;
        font-weight: 400;
        color: var(--dark);
        margin-bottom: 10px;
}

.cases-screen3-header .header-line {
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        margin: 0 auto 16px;
}

.cases-filter-bar {
        display: flex;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border);
        margin-bottom: 32px;
}

.cases-filter-btn {
        flex: 1;
        padding: 14px 0;
        font-size: 14px;
        border: none;
        border-right: 1px solid var(--border);
        background: #fff;
        color: var(--text);
        cursor: pointer;
        transition: all 0.25s;
        text-align: center;
}

.cases-filter-btn:last-child {
        border-right: none;
}

.cases-filter-btn:hover {
        background: var(--primary-light);
        color: var(--primary);
}

.cases-filter-btn.active {
        background: var(--primary);
        color: #fff;
}

.cases-screen3-layout {
        display: block;
}

.cases-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
}

.cases-list-item {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 20px;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
}

.cases-list-item:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cases-list-img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
}

.cases-list-body {
        padding: 20px 20px 20px 0;
        display: flex;
        flex-direction: column;
}

.cases-list-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 8px;
}

.cases-list-desc {
        font-size: 13px;
        color: var(--text-light);
        line-height: 1.7;
        margin-bottom: 12px;
        flex: 1;
}

.cases-list-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: var(--text-muted);
}

@media (max-width: 900px) {
        .cases-hero {
                height: auto;
                padding-top: 88px;
        }

        .cases-grid {
                position: static;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: repeat(3, 180px);
        }

        .nav-menu {
                display: none;
        }

        .nav-contact {
                display: none;
        }

        .mobile-menu-btn {
                display: flex;
        }

        .navbar .container {
                display: flex;
                justify-content: space-between;
                grid-template-columns: none;
        }

        .footer-top {
                flex-direction: column;
                gap: 28px;
        }

        .footer-links {
                flex-wrap: wrap;
                gap: 28px;
        }

        .cases-screen2 {
                padding: 48px 0;
        }

        .cases-gallery-header {
                margin-bottom: 32px;
        }

        .case-card-grid {
                grid-template-columns: 1fr;
                gap: 24px;
        }

        .cases-list-item {
                grid-template-columns: 1fr;
        }

        .cases-list-img {
                height: 200px;
        }

        .cases-list-body {
                padding: 16px;
        }

        .cta-card {
                grid-template-columns: 1fr;
                padding: 0;
                gap: 0;
        }

        .cta-left {
                padding: 32px 28px;
        }

        .cta-right {
                order: -1;
        }
}

/* CTA BANNER */
.cta-section {
        padding: 60px 0;
        background: var(--bg-gray);
}

.cta-card {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 0;
        align-items: stretch;
        background: linear-gradient(135deg, #3a7bd5 0%, #5b9eed 45%, #7eb8f4 100%);
        border: none;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(58, 123, 213, 0.25);
        position: relative;
        overflow: hidden;
}

.cta-card::before {
        content: "";
        position: absolute;
        top: -60px;
        left: -60px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
}

.cta-left {
        max-width: 560px;
        padding: 48px 56px;
        position: relative;
        z-index: 1;
}

.cta-heading {
        font-size: 28px;
        font-weight: 600;
        color: #fff;
        line-height: 1.35;
        margin-bottom: 14px;
        letter-spacing: -0.5px;
}

.cta-subtitle {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.7;
        margin-bottom: 28px;
}

.cta-btns {
        display: flex;
        gap: 14px;
        margin-bottom: 32px;
        flex-wrap: wrap;
}

.cta-btns .btn-accent {
        background: #e8593a;
        box-shadow: 0 4px 16px rgba(232, 89, 58, 0.35);
}

.cta-btns .btn-accent:hover {
        background: #d04a2e;
}

.cta-btns .btn-outline {
        padding: 13px 30px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        background: transparent;
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.cta-btns .btn-outline:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: #fff;
        color: #fff;
}

.cta-features {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
}

.cta-feature {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
}

.cta-feature .check {
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
}

.cta-feature .check svg {
        width: 11px;
        height: 11px;
}

.cta-feature .check svg path {
        stroke: #fff;
}

.cta-right {
        position: relative;
        z-index: 1;
        overflow: hidden;
        border-radius: 0;
        min-height: 100%;
}

.cta-image {
        width: 100%;
        object-fit: cover;
        display: block;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.7) 45%, black 60%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.7) 45%, black 60%);
        filter: hue-rotate(-15deg) saturate(0.85) brightness(1.05);
}

/* ==================== 项目参考详情页 ==================== */
/* 栏目Banner（全宽hero：背景图+遮罩+毛玻璃卡片，避开88px固定导航） */
.case-banner {
        position: relative;
        margin-top: 88px;
        padding: 96px 24px;
        overflow: hidden;
        background: #1a1f2e;
}

.case-banner-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 1;
}

.case-banner-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2;
}

.case-banner-card {
        position: relative;
        z-index: 3;
        max-width: 560px;
        margin: 0 auto;
        padding: 40px 56px;
        text-align: center;
        background: rgba(255, 255, 255, 0.72);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
}

.case-banner-badge {
        display: inline-block;
        font-size: 11px;
        letter-spacing: 4px;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 14px;
        padding: 5px 14px;
        border: 1px solid rgba(13, 110, 253, 0.3);
        border-radius: 20px;
}

.case-banner-title {
        color: #000;
        font-size: 36px;
        font-weight: 600;
        letter-spacing: 6px;
        margin-bottom: 12px;
}

.case-banner-line {
        width: 56px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        margin: 0 auto 18px;
}

.case-banner-sub {
        color: #4b5563;
        font-size: 14px;
        line-height: 1.8;
        margin: 0;
}

.case-detail-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
}

/* 头部 */
.case-detail-hero {
        padding: 0;
        margin-bottom: 32px;
        background: transparent;
}

.case-detail-breadcrumb {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 20px;
}

.case-detail-breadcrumb a {
        color: var(--text-muted);
        transition: color 0.2s ease;
}

.case-detail-breadcrumb a:hover {
        color: var(--primary);
}

.case-detail-sep {
        margin: 0 8px;
        color: #c3cad4;
}

.case-detail-title {
        font-size: 30px;
        font-weight: 600;
        color: var(--dark);
        line-height: 1.4;
        margin-bottom: 16px;
}

.case-detail-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: var(--text-muted);
}

.case-detail-meta-divider {
        color: #d5dbe3;
}

.case-detail-intro {
        margin-top: 18px;
        max-width: 860px;
        font-size: 15px;
        color: #55606e;
        line-height: 1.8;
}

/* 主体（顶部留白已由Banner承接） */
.case-detail-main {
        padding: 40px 0 72px;
        background: #fff;
}

/* 图集 */
.case-detail-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
}

.case-detail-gallery:empty {
        display: none;
}

.case-detail-photo {
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
        background: var(--bg-gray);
        aspect-ratio: 4 / 3;
}

.case-detail-photo:only-child {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
}

.case-detail-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
}

.case-detail-photo:hover img {
        transform: scale(1.03);
}

/* 项目介绍 */
.case-detail-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 40px;
        margin-bottom: 40px;
}

.case-detail-subtitle {
        position: relative;
        font-size: 20px;
        font-weight: 600;
        color: var(--dark);
        padding-left: 14px;
        margin-bottom: 20px;
}

.case-detail-subtitle::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background: var(--primary);
        border-radius: 2px;
}

.case-detail-body {
        font-size: 15px;
        color: #444;
        line-height: 1.9;
}

.case-detail-body p {
        margin-bottom: 16px;
}

.case-detail-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
}

/* 上一篇 / 下一篇 */
.case-detail-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 40px;
}

.case-detail-nav-item {
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 18px 24px;
        background: #fff;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-detail-nav-item:hover {
        border-color: var(--primary);
        box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
}

.case-detail-nav-label {
        display: block;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 6px;
}

.case-detail-nav-title {
        font-size: 14px;
        font-weight: 500;
        color: var(--dark);
}

.case-detail-nav-title a {
        color: var(--dark);
        transition: color 0.2s ease;
}

.case-detail-nav-title a:hover {
        color: var(--primary);
}

.case-detail-nav-next {
        text-align: right;
}

/* 评论 */
.case-detail-main .comment-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 32px 40px;
}

.case-detail-main .comment-box h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 16px;
}

.case-detail-main .more-comment {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 18px;
}

.case-detail-main .comment-item {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        align-items: flex-start;
}

.case-detail-main .comment-item .avatar img {
        border-radius: 50%;
        display: block;
}

.case-detail-main .comment-bd {
        flex: 1;
        min-width: 240px;
}

.case-detail-main .comment-textarea textarea {
        width: 100%;
        min-height: 100px;
        box-sizing: border-box;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px 16px;
        font-size: 14px;
        font-family: inherit;
        color: var(--text);
        resize: vertical;
        outline: none;
        transition: border-color 0.2s ease;
}

.case-detail-main .comment-textarea textarea:focus {
        border-color: var(--primary);
}

.case-detail-main .comment-vcode {
        margin-top: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
}

.case-detail-main .inp_small {
        width: 120px;
        height: 34px;
        line-height: 34px;
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 0 12px;
        font-size: 14px;
        outline: none;
}

.case-detail-main .comment-ft {
        width: 100%;
        margin-top: 18px;
        text-align: right;
}

.case-detail-main .btn_blue {
        background: var(--primary);
        color: #fff;
        border: none;
        padding: 12px 32px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.25s ease;
}

.case-detail-main .btn_blue:hover {
        background: #0b5ed7;
}

.case-detail-main .login-tip {
        margin-top: 14px;
        font-size: 13px;
        color: var(--text-muted);
}

.case-detail-main .login-tip a {
        color: var(--primary);
}

/* 详情页移动端适配 */
@media (max-width: 900px) {
        .case-detail-hero {
                padding: 100px 0 28px;
        }

        .case-detail-title {
                font-size: 22px;
        }

        .case-detail-intro {
                font-size: 14px;
        }

        .case-detail-main {
                padding: 28px 0 48px;
        }

        .case-detail-gallery {
                grid-template-columns: 1fr;
                gap: 14px;
                margin-bottom: 28px;
        }

        .case-detail-photo,
        .case-detail-photo:only-child {
                aspect-ratio: 4 / 3;
        }

        .case-detail-card {
                padding: 24px;
                margin-bottom: 28px;
        }

        .case-detail-nav {
                grid-template-columns: 1fr;
                gap: 12px;
                margin-bottom: 28px;
        }

        .case-detail-nav-next {
                text-align: left;
        }

        .case-detail-main .comment-box {
                padding: 24px;
        }

        .case-detail-main .comment-ft {
                text-align: left;
        }
}

/* ==================== 案例详情：两栏布局 + 相关案例推荐 ==================== */
.case-detail-layout {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 40px;
        align-items: start;
}

.case-detail-content {
        min-width: 0;
}

/* 左侧：相关案例推荐 */
.case-side {
        position: sticky;
        top: 108px;
}

.case-side-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
}

.case-side-title {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        background: var(--primary);
        text-align: center;
        padding: 14px 12px;
        letter-spacing: 1px;
}

.case-side-list {
        padding: 6px 0;
}

.case-side-list li+li {
        border-top: 1px dashed var(--border);
}

.case-side-list a {
        display: block;
        padding: 12px 16px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--text);
        transition: color 0.2s ease, background 0.2s ease;
}

.case-side-list a::before {
        content: "·";
        color: var(--primary);
        font-weight: 700;
        margin-right: 6px;
}

.case-side-list a:hover {
        color: var(--primary);
        background: var(--bg-gray);
}

.case-side-more {
        display: block;
        text-align: center;
        font-size: 13px;
        color: var(--text-muted);
        padding: 12px;
        border-top: 1px solid var(--border);
        transition: color 0.2s ease;
}

.case-side-more:hover {
        color: var(--primary);
}

/* 案例详情页 - 移动端（两栏转单栏） */
@media (max-width: 900px) {
        .case-banner {
                padding: 56px 16px;
        }

        .case-banner-card {
                padding: 28px 24px;
        }

        .case-banner-title {
                font-size: 26px;
                letter-spacing: 4px;
        }

        .case-detail-main {
                padding: 28px 0 48px;
        }

        .case-detail-hero {
                padding: 0;
                margin-bottom: 24px;
        }

        .case-detail-layout {
                grid-template-columns: 1fr;
                gap: 28px;
        }

        .case-detail-content {
                order: 1;
        }

        .case-side {
                position: static;
                order: 2;
        }

        .case-side-list a {
                padding: 14px 16px;
        }
}