/* ==================== Base Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    width: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", sans-serif;
    background-color: #f6f6f6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    max-width: 100%;
}

@media (max-width: 768px) {
    html { overflow-x: hidden; }
    body {
        min-width: 320px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    body * { max-width: 100vw; }
}

@media (min-width: 769px) {
    body {
        min-width: 1200px;
        overflow-x: scroll;
    }
}

/* ==================== Hero Base ==================== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.7) 0%, rgba(26, 58, 92, 0.5) 50%, rgba(13, 33, 55, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    z-index: 10;
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* ==================== Case Page - Hero ==================== */
.case-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
}

.case-hero .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.case-hero .hero-overlay {
    background: none;
}

.case-hero .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 50px;
}

.case-hero .hero-title {
    text-shadow: none;
}

.case-hero .hero-desc {
    font-size: 20px;
    line-height: 1.8;
    max-width: 690px;
}

/* ==================== Container ==================== */
.case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ==================== Stats Section ==================== */
.case-stats-section {
    background: #fff;
    padding: 60px 0;
}

.case-stats-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.case-stats-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 48px;
}

.case-stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.case-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.case-stat-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.case-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #aa2331;
    line-height: 1.2;
}

.stat-suffix {
    font-size: 20px;
}

.case-stat-suffix {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
}

.case-stat-label {
    font-size: 16px;
    margin-top: 5px;
    line-height: 1.4;
}

/* ==================== Cases List Section ==================== */
.case-list-section {
    padding: 60px 0 60px;
}

.case-section-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 48px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.case-card-img {
    height: 200px;
    overflow: hidden;
}

.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-card-img img {
    transform: scale(1.05);
}

.case-card-content {
    padding: 24px;
}

.case-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-card-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* ==================== Responsive - Tablet (768px) ==================== */
@media (max-width: 768px) {
    .case-hero {
        height: 350px;
    }

    .case-hero .hero-content {
        padding: 40px 20px 0;
    }

    .case-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .case-hero .hero-desc {
        font-size: 14px;
    }

    .case-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Stats section */
    .case-stats-section {
        padding: 30px 0;
    }

    .case-stats-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .case-stats-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .case-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 20px 0;
        gap: 16px;
    }

    .case-stat-item {
        display: grid;
        grid-template-columns: 44px auto;
        align-items: center;
        gap: 12px;
        justify-items: start;
    }

    .case-stat-icon {
        width: 44px;
        height: 44px;
    }

    .case-stat-number {
        font-size: 26px;
    }

    .case-stat-label {
        font-size: 13px;
    }

    /* Cases section */
    .case-list-section {
        padding: 30px 0 30px;
    }

    .case-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .case-card-img {
        height: 160px;
    }

    .case-card-content {
        padding: 16px;
    }

    .case-card-title {
        font-size: 15px;
    }

    .case-card-desc {
        font-size: 14px;
    }

}

/* ==================== Responsive - Mobile (480px) ==================== */
@media (max-width: 480px) {
    .case-hero {
        height: 350px;
    }

    .case-hero .hero-content {
        padding: 40px 20px 0;
    }

    .case-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .case-hero .hero-desc {
        font-size: 14px;
    }

    .case-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .case-stats-section {
        padding: 30px 0;
    }

    .case-stats-title {
        font-size: 18px;
    }

    .case-stats-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .case-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 16px 0;
        gap: 12px;
    }

    .case-stat-item {
        display: grid;
        grid-template-columns: 44px auto;
        align-items: center;
        gap: 10px;
        justify-items: start;
    }

    .case-list-section {
        padding: 30px 0 30px;
    }

    .case-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-card-img {
        height: 180px;
    }

    .case-card-content {
        padding: 16px;
    }

    .case-card-title {
        font-size: 15px;
    }

    .case-card-desc {
        font-size: 14px;
    }


