/* 基础设置 */
:root {
    --gold: #fba414;
    /* 核心黄色 */
    --dark-bg: #333333;
    --light-bg: #f4f4f4;
    --text-main: #333;
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang TC", "Heiti TC", sans-serif;
    color: var(--text-main);
}

/* ================= 响应式适配 ================= */
/* pc */
@media (min-width: 1025px) {

    /* Hero */
    .hero-banner {
        height: 384px;
        background: url('/images/project/banner.png') center/cover;
        display: flex;
        align-items: center;
        color: white;
        position: relative;
        z-index: 8;
    }

    .hero-content {
        position: absolute;
        z-index: 9;
        left: 40px;
        max-width: 1216px;
    }

    .hero-mask {
        width: 100%;
        height: 384px;
        position: absolute;
        background: rgba(0, 0, 0, 0.3);
        z-index: 8;
    }

    .hero-content h2 {
        font-size: 32px;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Main Layout */
    .main-container {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .breadcrumb-title {
        margin-bottom: 40px;
    }

    .breadcrumb-title .prefix {
        font-size: 12px;
        letter-spacing: 2px;
        color: #141414;
        display: block;
        margin-bottom: 5px;
        position: relative;
        padding-left: 85px;
    }

    .breadcrumb-title .prefix::before {
        content: "";
        background: url('/images/line-1-29.svg');
        width: 67px;
        height: 0.5px;
        display: inline-block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(50%);
    }

    .breadcrumb-title h1 {
        font-size: 28px;
        font-weight: bold;
    }

    .layout-body {
        display: flex;
        gap: 20px;
    }

    /* Sidebar */
    .sidebar {
        width: 220px;
        flex-shrink: 0;
    }

    .filter-group {
        margin-bottom: 30px;
    }

    .filter-group h4 {
        font-size: 15px;
        margin-bottom: 15px;
        color: #000;
    }

    .tags-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        padding: 4px 14px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
        color: var(--text-muted);
    }

    .tag.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* Case Grid */
    .content-grid {
        flex: 1;
    }

    .case-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .case-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        width: 285px;
        height: 360px;
        box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);

    }

    .card-img {
        height: 238px;
        overflow: hidden;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-info {
        padding: 16px;
        position: relative;
    }

    .card-info h3 {
        font-size: 20px;
        color: #141414;
        line-height: 30px;
        font-weight: 600;
    }

    .card-info p {
        font-size: 14px;
        color: #666666;
        letter-spacing: 1%;
        margin-bottom: 0;
    }

    .view-btn {
        display: block;
        text-align: right;
        color: var(--gold);
        font-size: 14px;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 50px;
        gap: 10px;
    }

    .page-num {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        cursor: pointer;
    }

    .page-num.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* CTA */
    .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 335px;
        background: #EDEDED;
        text-align: center;
    }

    .cta-section h2 {
        margin-bottom: 0;
        font-weight: 600;
        font-size: 30px;
        line-height: 40px;
        letter-spacing: 1.5px;
        text-align: center;
        vertical-align: middle;
        color: #141414;
    }

    .cta-section p {
        color: #434343;
        margin: 30px 0 50px 0;
        font-size: 18px;
    }

    .cta-btn {
        background: var(--gold);
        color: white;
        border: none;
        width: 188px;
        height: 48px;
        line-height: 48px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        letter-spacing: 5px;
    }
    .cta-btn:hover {
        box-shadow: 1px 3px 3px 1px #cccccc;
        background: #f9a203;
        color: #FFFFFF;
        transform: translate(-1px, -1px);
    }
    .cta-btn a{
        display: block;
        width: 100%;
        height: 100%;
        font-size: 20px;
        font-weight: 500;

    }
}
/* 平板适配 (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero */
    .hero-banner {
        height: 320px;
        background: url('/images/project/banner.png') center/cover;
        display: flex;
        align-items: center;
        color: white;
        position: relative;
        z-index: 8;
    }

    .hero-content {
        position: absolute;
        z-index: 9;
        left: 40px;
    }

    .hero-mask {
        width: 100%;
        height: 320px;
        position: absolute;
        background: rgba(0, 0, 0, 0.3);
        z-index: 8;
    }

    .hero-content h2 {
        font-size: 32px;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Main Layout */
    .main-container {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .breadcrumb-title {
        margin-bottom: 40px;
    }

    .breadcrumb-title .prefix {
        font-size: 12px;
        letter-spacing: 2px;
        color: #141414;
        display: block;
        margin-bottom: 5px;
        position: relative;
        padding-left: 85px;
    }

    .breadcrumb-title .prefix::before {
        content: "";
        background: url('/images/line-1-29.svg');
        width: 67px;
        height: 0.5px;
        display: inline-block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(50%);
    }

    .breadcrumb-title h1 {
        font-size: 28px;
        font-weight: bold;
    }

    .layout-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Sidebar */
    .sidebar {
        flex-shrink: 0;
    }

    .filter-group {
        margin-bottom: 30px;
    }

    .filter-group h4 {
        font-size: 15px;
        margin-bottom: 15px;
        color: #000;
    }

    .tags-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        padding: 4px 14px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
        color: var(--text-muted);
    }

    .tag.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* Case Grid */
    .content-grid {
        flex: 1;
    }

    .case-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .case-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        height: 410px;
        box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);

    }

    .card-img {
        height: 286px;
        overflow: hidden;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-info {
        padding: 16px;
        position: relative;
    }

    .card-info h3 {
        font-size: 20px;
        color: #141414;
        line-height: 30px;
        font-weight: 600;
    }

    .card-info p {
        font-size: 14px;
        color: #666666;
        letter-spacing: 1%;
        margin-bottom: 0;
    }

    .view-btn {
        display: block;
        text-align: right;
        color: var(--gold);
        font-size: 14px;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 50px;
        gap: 10px;
    }

    .page-num {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        cursor: pointer;
    }

    .page-num.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* CTA */
    .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 335px;
        background: #EDEDED;
        text-align: center;
    }

    .cta-section h2 {
        margin-bottom: 0;
        font-weight: 600;
        font-size: 30px;
        line-height: 40px;
        letter-spacing: 1.5px;
        text-align: center;
        vertical-align: middle;
        color: #141414;
    }

    .cta-section p {
        color: #434343;
        margin: 30px 0 50px 0;
        font-size: 18px;
    }

    .cta-btn {
        background: var(--gold);
        color: white;
        border: none;
        padding: 12px 50px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        letter-spacing: 6px;
    }
}
/* Mobile */
@media (max-width: 768px) {

    /* Hero */
    .hero-banner {
        height: 384px;
        background: url('/images/project/banner.png') center/cover;
        display: flex;
        align-items: center;
        color: white;
        position: relative;
        z-index: 8;
    }

    .hero-content {
        position: absolute;
        z-index: 9;
        left: 40px;
    }

    .hero-mask {
        width: 100%;
        height: 384px;
        position: absolute;
        background: rgba(0, 0, 0, 0.3);
        z-index: 8;
    }

    .hero-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
        font-weight: 400;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-content p {
        font-family: Inter;
        font-weight: 300;
        font-style: Light;
        font-size: 14px;
        line-height: 28px;
        letter-spacing: 3%;
        vertical-align: middle;
        text-align: center;
    }

    /* Main Layout */
    .main-container {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .breadcrumb-title {
        margin-bottom: 40px;
    }

    .breadcrumb-title .prefix {
        font-size: 12px;
        letter-spacing: 2px;
        color: #141414;
        display: block;
        margin-bottom: 5px;
        position: relative;
        padding-left: 85px;
    }

    .breadcrumb-title .prefix::before {
        content: "";
        background: url('/images/line-1-29.svg');
        width: 67px;
        height: 0.5px;
        display: inline-block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(50%);
    }

    .breadcrumb-title h1 {
        font-size: 28px;
        font-weight: bold;
    }

    .layout-body {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* Sidebar */
    .sidebar {
        flex-shrink: 0;
    }

    .filter-group {
        margin-bottom: 30px;
    }

    .filter-group h4 {
        font-size: 15px;
        margin-bottom: 15px;
        color: #000;
    }

    .tags-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        padding: 4px 14px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
        color: var(--text-muted);
    }

    .tag.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* Case Grid */
    .content-grid {
        flex: 1;
    }

    .case-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .case-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
        height: 404px;
        box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);

    }

    .card-img {
        height: 286px;
        overflow: hidden;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-info {
        padding: 16px;
        position: relative;
    }

    .card-info h3 {
        font-size: 20px;
        color: #141414;
        line-height: 30px;
        font-weight: 600;
    }

    .card-info p {
        font-size: 14px;
        color: #666666;
        letter-spacing: 1%;
        margin-bottom: 0;
    }

    .view-btn {
        display: block;
        text-align: right;
        color: var(--gold);
        font-size: 14px;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 50px;
        gap: 10px;
    }

    .page-num {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        cursor: pointer;
    }

    .page-num.active {
        background: var(--gold);
        border-color: var(--gold);
        color: white;
    }

    /* CTA */
    .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 335px;
        background: #EDEDED;
        text-align: center;
    }

    .cta-section h2 {
        margin-bottom: 0;
        font-weight: 600;
        font-size: 30px;
        line-height: 40px;
        letter-spacing: 1.5px;
        text-align: center;
        vertical-align: middle;
        color: #141414;
    }

    .cta-section p {
        color: #434343;
        margin: 30px 30px 50px 30px;
        font-size: 18px;
    }

    .cta-btn {
        background: var(--gold);
        color: white;
        border: none;
        padding: 12px 50px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        letter-spacing: 6px;
    }
}

/* 加载中状态 */
.content-grid {
    position: relative;
    min-height: 400px;
    transition: opacity 0.3s;
}

.is-loading .case-grid {
    opacity: 0.3;
    pointer-events: none;
}

.loading-overlay {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 4px;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 100px 0;
    color: #999;
}

/* 卡片内的小标签 (可选) */
.tags-preview {
    margin-top: 5px;
}

.tags-preview span {
    font-size: 10px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 2px;
    color: #666;
}