/* 极简现代风格，参考simonlin.design */
:root {
    --black-core: black;
    --black-800-4b4b4b: #4b4b4b;
    --white: white;
    --black-400-ececec: #ececec;
    --brown: #784d1f;
    --black-300-f2f2f2: #f2f2f2;
    --brown-tint: #efe1d2;
    --primary-core-27ae60: #27ae60;
    --black-100: #f6f6f6;
    --black-600-909090: #909090;
    --primary-dark: #158343;
    --purple--accent: #7f63cd;
    --black-500-ccc: #ccc;
    --purple-a11y: #3c1a9d;
    --purple-light: #f0edf9;
    --brown-light: #f5f3e9;
    --black-700-6f6f6f: #6f6f6f;
    --black-10-2: #f9f9f9;
    --primary-light: #f3fcf7;
    --yellow-tint: #fffcf2;
    --yellow-core: #f2c94c;
    --primary-tint: #f3fcf7;
    --black-900: #2d2d2d;
    --black-200: #f6f6f6;
}

html, body {
    margin: 0;
    padding: 0;
}


body,
.btn-nav,
.nav-menu,
.logo,
.card,
.section-title,
.btn,
.site-footer,
.footer-icon,
.site-header,
.site-main,
.breadcrumb,
.badge,
.pagination,
.alert,
.loading,
.skill-card,
.service-card,
.timeline,
.timeline-content,
.progress,
.form-control {
    font-family: 'IBM Plex Sans', sans-serif !important;
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 0 0;
    margin-bottom: 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    box-shadow: none;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    justify-content: center;
}

.site-header>.container {
    max-width: 1720px;
    width: 100%;
    padding: 8px 64px;
}

.site-footer>.container {
    padding-left: 64px;
    padding-right: 64px;
}

/* Case detail页面的胶囊导航栏 */
body:has(.case-hero) .site-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 0 0 0;
}

body:has(.case-hero) .site-header>.container {
    width: 85%;
    max-width: 1720px;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    justify-content: space-between;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: none;
    transition: box-shadow 0.2s;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px 16px;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.btn-nav {
    color: var(--black-600-909090);
    border-radius: 100px;
    align-items: center;
    margin-left: 2px;
    margin-right: 2px;
    padding: 10px 16px;
    font-family: IBM Plex Sans, sans-serif;
    font-weight: 600;
    line-height: 140%;
    text-decoration: none;
    transition: all .2s;
    display: flex;
}

.btn-nav:hover,
.btn-nav:focus {
    background: #f3f3f3;
    color: var(--primary);
}

.btn-nav.active,
.btn-nav.active:hover,
.btn-nav.active:focus {
    background: #111;
    color: #fff;
}

.site-main {
    min-height: 60vh;
    padding: 140px 0 32px 0;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.case-study-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border: 1.5px solid #d4d4d8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.case-study-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.06);
    text-decoration: none;
}
.case-study-btn svg {
    transition: transform 0.2s ease;
}
.case-study-btn:hover svg {
    transform: translateX(2px);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

/* .btn:hover {
    background: #005bb5;
    box-shadow: 0 4px 16px rgba(0,122,255,0.12);
} */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0 40px 0;
    margin-top: 48px;
    color: var(--secondary);
    font-size: 1rem;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-icon {
    display: inline-block;
    color: var(--secondary);
    margin-left: 18px;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
}

.footer-icon:hover {
    color: var(--accent);
    transform: translateY(-2px) scale(1.1);
}

.logo-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: var(--white);
    flex-shrink: 0;
}

.logo-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transform: scale(1.15);
    transform-origin: center 20%;
}

.logo {
    margin-left: 0;
    display: inline-block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.site-header.shadow .logo {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Case detail页面logo始终可见 */
body:has(.case-hero) .logo {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.site-header.shadow {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

body:has(.case-hero) .site-header.shadow {
    box-shadow: none;
}

body:has(.case-hero) .site-header.shadow>.container {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.logo.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lang-switch {
    position: fixed;
    right: 40px;
    bottom: 40px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 9999;
}

.lang-btn {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
    background: #111;
    color: #fff;
}

.section-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px 0 24px 0;
}

.section-title-divider span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 32px;
    white-space: nowrap;
}

html[lang="en"] .section-title-divider span {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

html[lang="en"] [data-i18n="home.caseStudy"] {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.section-title-divider:before,
.section-title-divider:after {
    content: '';
    flex: 0;
    height: 1px;
    background: #e0e0e0;
    border-radius: 2px;
    min-width: 120px;
}

.project1-hover-group {
    position: relative;
    height: 550px;
    margin-bottom: 48px !important;
    overflow: hidden;
    border-radius: 8px;
}

.project1-card {
    position: absolute;
    top: 40px;
    right: 24px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 48px 28px 48px 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

.project1-card>div {
    margin-bottom: 28px !important;
}

.project1-hover-group:hover .project1-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.project1-badge {
    display: inline-block;
    background: #f5f3e9;
    color: #222;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 10px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.project1-img-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 2;
}

.project1-hover-group:hover .project1-img-overlay {
    opacity: 1;
}

.project1-img {
    position: relative;
    z-index: 1;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

@media (max-width: 900px) {
    .container {
        padding: 8px 24px;
    }

    .nav-menu {
        gap: 18px;
    }

    .site-main {
        padding: 32px 0 24px 0;
    }

    .card {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .nav-flex,
    .footer-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
    }

    .site-header {
        padding: 18px 0 0 0;
    }

    .site-main {
        padding: 18px 0 12px 0;
    }

    .card {
        padding: 10px;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Case detail页面在小屏幕上保持胶囊形状 */
    body:has(.case-hero) .nav-flex {
        flex-direction: row;
    }

    body:has(.case-hero) .nav-menu {
        flex-direction: row;
        width: auto;
        margin-top: 0;
        gap: 0;
    }

    body:has(.case-hero) .site-header {
        padding: 12px 10px 0 10px;
    }

    body:has(.case-hero) .btn-nav {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    body:has(.case-hero) .logo {
        font-size: 0.9rem;
    }

    body:has(.case-hero) .logo-avatar {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }
}



/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--black-900, #2d2d2d);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Case Study Redesign Layout */

/* ========== Hero Background Section ========== */
body:has(.case-hero) {
    overflow-x: hidden;
}

.site-main:has(.case-hero) {
    max-width: 100%;
    padding: 0;
}

.case-hero {
    position: relative;
    width: 100vw;
    height: 600px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: 30% 120px;
    background-repeat: no-repeat;
    margin-top: -140px;
    padding-top: 140px;
}


/* ========== Project Overview Card ========== */
.case-overview-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -130px;
    z-index: 10;
}

.case-overview-card {
    position: relative;
    width: 80%;
    max-width: 1400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 32px 40px;
}

/* ========== Project Overview Section ========== */
.project-overview-section {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.project-overview-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.project-overview-title::before,
.project-overview-title::after {
    content: '';
    flex: 0 0 80px;
    height: 1px;
    background: #ddd;
}

.project-overview-title span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    padding: 0 24px;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-overview-item {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px;
    background: #fff;
}

.project-overview-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.project-overview-item h4 span {
    color: #999;
    margin-right: 8px;
}

.project-overview-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

@media (max-width: 600px) {
    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-overview-item {
        padding: 20px;
    }
}

.case-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.case-overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tag {
    display: inline-block;
    background: #f5f3e9;
    color: #222;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
}

.case-overview-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.case-overview-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin: 16px 0 24px 0;
    line-height: 1.4;
}

.case-overview-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.case-meta-item {
    text-align: left;
}

.case-meta-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 600;
}

.case-meta-item p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.case-study-container {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Back to Home Link */
.case-back-link {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-180px);
    display: inline-flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 51;
    transition: color 0.3s ease;
}

.case-back-link svg {
    margin-right: 6px;
}

.case-back-link:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* Sidebar Navigation */
.case-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: fit-content;
    padding: 0;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-sidebar.visible {
    opacity: 1;
}

.case-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: none;
}

.case-nav li {
    margin-bottom: 4px;
}

.case-nav a {
    display: flex;
    align-items: center;
    padding: 6px 0;
    color: rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border-left: none;
    margin-left: 0;
}

.case-nav a::before {
    content: '—';
    margin-right: 10px;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.case-nav a:hover,
.case-nav a.active {
    color: #0066a3;
    font-weight: 600;
}

.case-nav a:hover::before,
.case-nav a.active::before {
    color: #0066a3;
}

/* Main Content Area */
.case-content {
    min-width: 0;
    /* Prevents overflow issues */
}

/* Project Overview Card (Header) */
.project-overview-card {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.meta-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.meta-item p {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Content Sections */
.cs-section {
    margin-bottom: 100px;
    scroll-margin-top: 120px;
    /* For smooth scrolling anchor offset */
}

.cs-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.cs-section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
    margin-top: 32px;
}

.cs-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b4b4b;
    margin-bottom: 24px;
}

/* Case Study Image Styles */
.cs-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 24px auto 0;
    display: block;
}

/* Image with Text Layout - Left text, Right image */
.image-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
    align-items: center;
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 8px;
}

.image-text-content {
    padding-right: 20px;
}

.image-text-content-decorated {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: 8px solid #0066a3;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.image-text-content-decorated:hover {
    border-left-color: #008ed6;
    padding-left: 32px;
}

.image-text-content-decorated:hover .image-text-subtitle {
    color: #008ed6;
    letter-spacing: 1px;
}

.image-text-content-decorated-right {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-right: 8px solid #0066a3;
    text-align: right;
    transition: border-color 0.3s ease, padding-right 0.3s ease;
}

.image-text-content-decorated-right:hover {
    border-right-color: #008ed6;
    padding-right: 32px;
}

.image-text-content-decorated-right:hover .image-text-subtitle {
    color: #008ed6;
    letter-spacing: 1px;
}

.image-text-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0066a3;
    margin: 0 0 20px 0;
    line-height: 1.3;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.image-text-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.image-text-image {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-text-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .image-text-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-text-content {
        padding-right: 0;
    }
}

/* Full Width Image - breaks out of container */
.full-width-image {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 60px;
    margin-bottom: 60px;
    display: block;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%);
}

/* Design Direction Grid Styles */
.design-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px 0 60px 0;
}

.design-direction-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: none;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.design-direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066a3 0%, #008ed6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 102, 163, 0.15);
}

.design-direction-card:hover::before {
    opacity: 1;
}

.design-direction-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0066a3 0%, #008ed6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 102, 163, 0.25);
    transition: all 0.3s ease;
}

.design-direction-card:hover .design-direction-icon {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 6px 24px rgba(0, 142, 214, 0.35);
}

.design-direction-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
    stroke: none;
}

.design-direction-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0066a3;
    margin: 0 0 20px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.design-direction-card:hover .design-direction-title {
    color: #004d7a;
}

.design-direction-content {
    margin-top: 16px;
}

.design-direction-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0066a3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 16px 0 8px 0;
    opacity: 0.8;
}

.design-direction-label:first-child {
    margin-top: 0;
}

.design-direction-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 10px 0;
}

.design-direction-keywords {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #0066a3;
    margin: 0 8px 8px 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    background: rgba(0, 102, 163, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 163, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
}

.design-direction-card:hover .design-direction-keywords {
    background: rgba(0, 142, 214, 0.15);
    border-color: rgba(0, 142, 214, 0.3);
}

@media (max-width: 900px) {
    .design-direction-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .design-direction-card {
        padding: 28px 24px;
    }

    .design-direction-icon {
        width: 64px;
        height: 64px;
    }

    .design-direction-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* User Group List Styles */
.user-group-list {
    margin-top: 24px;
}

.user-group-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.user-group-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #0066a3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.user-group-content {
    flex: 1;
}

.user-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px 0;
}

.user-group-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Design Goal Grid Styles */
.design-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.design-goal-card {
    background: transparent;
    border: none;
    border-left: 6px solid #0066a3;
    border-radius: 0;
    padding: 20px 24px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.design-goal-card:hover {
    transform: translateX(4px);
    border-left-color: #008ed6;
    padding-left: 28px;
}

.design-goal-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 60px;
    height: 60px;
    color: rgba(0, 102, 163, 0.15);
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}

.design-goal-card:hover .design-goal-icon {
    color: rgba(0, 142, 214, 0.25);
}

.design-goal-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066a3;
    margin: 0 0 16px 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.design-goal-card:hover .design-goal-card-title {
    color: #008ed6;
}

.design-goal-card-content {
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.design-goal-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 16px 0 8px 0;
}

.design-goal-card-label:first-child {
    margin-top: 0;
}

.design-goal-card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 8px 0;
}

@media (max-width: 768px) {
    .design-goal-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .design-goal-card {
        padding: 16px 20px;
    }

    .design-goal-icon {
        width: 50px;
        height: 50px;
    }
}

/* Outcome Stats */
.outcome-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.outcome-stat-card {
    background: #f8f9fa;
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.outcome-stat-card:hover {
    background: #fff;
    border-color: #0066a3;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 163, 0.1);
}

.outcome-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0066a3;
    margin-bottom: 12px;
    line-height: 1;
}

.outcome-stat-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .outcome-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .outcome-stat-card {
        padding: 32px 20px;
    }

    .outcome-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .outcome-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .outcome-stat-number {
        font-size: 2.2rem;
    }
}

/* More Projects Section */
.more-projects-section {
    margin-top: 100px;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    overflow: hidden;
}

.project-card-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #3a3a3a;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
    will-change: width;
}

.project-cards-side {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
    transform: translateX(100%);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.project-cards-side[style*="opacity: 1"] {
    pointer-events: auto;
}

.project-hero-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #3a3a3a;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card-small {
    height: 50%;
}

.project-hero-card:hover {
    transform: scale(1.02);
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
}

.project-hero-card:hover .project-hero-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.project-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

.project-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.project-card-small .project-hero-title {
    font-size: 1.6rem;
}

.project-card-small .project-hero-tags {
    margin-bottom: 20px;
}

.project-card-small .project-hero-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
}

.project-hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.project-hero-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-hero-card:hover .project-hero-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.project-hero-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.project-hero-card:hover .project-hero-link {
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .more-projects-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .project-card-main {
        width: 100%;
        height: 500px;
    }

    .project-cards-side {
        width: 100%;
        transform: translateY(100%);
    }

    .project-card-small {
        height: 400px;
    }

    .project-hero-title {
        font-size: 1.8rem;
    }

    .project-card-small .project-hero-title {
        font-size: 1.4rem;
    }

    .project-hero-content {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .project-card-main {
        height: 450px;
    }

    .project-card-small {
        height: 350px;
    }

    .project-hero-title {
        font-size: 1.4rem;
    }

    .project-card-small .project-hero-title {
        font-size: 1.2rem;
    }

    .project-hero-tags {
        gap: 8px;
    }

    .project-hero-tag {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .case-sidebar,
    .case-back-link {
        display: none;
    }
}

@media (max-width: 900px) {
    .project-overview-card {
        padding: 24px;
    }

    .case-hero {
        height: 500px;
        padding-bottom: 0;
    }

    .case-overview-wrapper {
        margin-top: -100px;
    }

    .case-overview-card {
        width: 85%;
        max-width: 85%;
        padding: 24px;
    }

    .case-overview-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .case-overview-title {
        font-size: 1.4rem;
    }

    body:has(.case-hero) .site-header>.container {
        width: 85%;
        max-width: 85%;
    }
}

@media (max-width: 600px) {
    .case-hero {
        height: 300px;
    }

    .case-overview-header {
        flex-direction: column;
        gap: 12px;
    }

    .case-overview-meta {
        grid-template-columns: 1fr 1fr;
    }
}
/* ========== Page Loading Overlay ========== */
#page-loader {
    position: fixed;
    top: -70px;
    bottom: -70px;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

#page-loader.loader-out {
    display: none;
}

.loader-row {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.loader-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: loader-scroll var(--spd, 10s) var(--del, 0s) linear infinite;
}

.loader-track span {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Mango Grotesque', 'MangoGrotesque', 'Bebas Neue', Impact, sans-serif;
    font-size: min(14vh, 140px);
    font-weight: 700;
    color: #1c1c1c;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-right: 0.2em;
    user-select: none;
    line-height: 1;
    transform: scaleY(1.4);
    transform-origin: center center;
}

@keyframes loader-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* Loader expansion overlay */
#loader-expand {
    position: fixed;
    background: #fff;
    z-index: 100001;
    display: none;
    pointer-events: none;
}

/* Loader center overlay */
#loader-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

#loader-title {
    font-family: 'Mango Grotesque', 'MangoGrotesque', 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(72px, 10vw, 130px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
    display: block;
    transform: scaleY(1.5);
    transform-origin: left center;
}

#loader-progress-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

#loader-bar-wrap {
    flex-shrink: 0;
    height: clamp(72px, 10vw, 130px);
    background: transparent;
    overflow: hidden;
    flex-shrink: 0;
}

#loader-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

#loader-percent {
    font-family: 'Mango Grotesque', 'MangoGrotesque', 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(72px, 10vw, 130px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    min-width: 4.5ch;
}

/* ================================================
   汉堡菜单按钮（桌面端隐藏）
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px 4px;
    background: none;
    border: none;
    z-index: 10000;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   移动端适配 ≤ 768px
   ================================================ */
@media screen and (max-width: 768px) {
    /* --- 防止横向溢出 --- */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* --- 隐藏桌面端装饰背景图（手机上过大，遮挡导航） --- */
    .deco-bg {
        display: none !important;
    }

    /* --- 容器 --- */
    .container {
        max-width: 100%;
    }
    .site-main {
        padding-top: 72px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .site-header > .container {
        padding: 10px 16px;
    }
    .site-footer > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* --- 导航栏：汉堡菜单 --- */
    .site-header {
        padding: 0;
    }
    /* Case detail页面：hero 铺满顶端（底部位置不变） */
    body:has(.case-hero) .site-main {
        padding-top: 0 !important;
    }
    /* Case detail页面：移动端沿用胶囊导航栏 */
    body:has(.case-hero) .site-header {
        background: transparent !important;
        border-bottom: none !important;
        padding: 10px 0 0 0 !important;
    }
    body:has(.case-hero) .site-header > .container {
        width: 92% !important;
        max-width: 92% !important;
        border-radius: 100px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 6px 14px 6px 8px !important;
    }
    .nav-flex {
        flex-direction: row !important;
        align-items: center;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 36px !important;
        z-index: 10001;
        margin-top: 0 !important;
    }
    .nav-menu.mobile-open {
        display: flex !important;
    }
    .hamburger {
        z-index: 10002 !important;
    }
    /* 菜单打开时隐藏语言切换按钮 */
    .nav-menu.mobile-open ~ * .lang-switch,
    body.menu-open .lang-switch {
        display: none !important;
    }
    .nav-menu li {
        list-style: none;
    }
    .nav-menu li a.btn-nav {
        font-size: 22px;
        font-weight: 600;
        padding: 10px 28px;
        letter-spacing: 0.01em;
    }

    /* --- Lang Switch --- */
    .lang-switch {
        bottom: 16px;
        right: 16px;
    }

    /* --- 页脚 --- */
    .footer-two-col {
        flex-direction: column !important;
        gap: 36px !important;
    }
    .site-footer .container {
        padding-left: 20px !important;
    }
    .site-footer > .container > div:first-child {
        font-size: 22px !important;
    }

    /* --- 首页 Hero --- */
    .hero-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 18px !important;
    }
    .hero-section p {
        font-size: 1.05rem !important;
        margin-bottom: 18px !important;
    }

    /* --- 首页 Case Scroller → 相册式 peek 切换 --- */
    #caseScroller {
        height: auto !important;
        margin-top: 8px !important;
    }
    #caseSticky {
        position: relative !important;
        height: auto !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow: visible !important;
        top: auto !important;
        background: transparent !important;
        padding-bottom: 0 !important;
    }
    /* 容器：overflow visible 让四边边框完整显示，body overflow-x:hidden 防止横向滚动 */
    .cs-left-panel {
        position: relative !important;
        width: 100% !important;
        min-height: 700px !important;
        overflow: visible !important;
        display: block !important;
        flex-shrink: unset !important;
        border-radius: 0 !important;
    }
    /* 卡片：宽 75%，高度自动撑开显示完整内容，min-height 保证四张视觉一致 */
    .cs-slide {
        position: absolute !important;
        top: 4px !important;
        left: 0 !important;
        width: 75% !important;
        height: auto !important;
        min-height: 680px !important;
        will-change: transform, opacity !important;
        background: #fff !important;
        border-radius: 28px !important;
        border: 1.5px solid #e4e4e4 !important;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08) !important;
        padding: 0 20px 24px 20px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        transition: none !important;
        pointer-events: none !important;
        transform-origin: center top !important;
    }
    .cs-slide.active {
        pointer-events: auto !important;
    }
    /* 统一白色背景（覆盖 data-index 彩色底色） */
    .cs-slide[data-index="0"],
    .cs-slide[data-index="1"],
    .cs-slide[data-index="2"],
    .cs-slide[data-index="3"] {
        background: #fff !important;
        border: 1.5px solid #e4e4e4 !important;
    }
    /* 预览图：全出血，顶部无圆角（卡片 overflow:hidden 剪裁成圆角） */
    .cs-mobile-preview {
        display: block !important;
        margin: 0 -20px 16px -20px !important;
        width: calc(100% + 40px) !important;
        height: 240px !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    /* 所有预览图/视频统一顶部对齐 */
    .cs-mobile-preview img,
    .cs-mobile-preview video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
    /* 卡片内标题 */
    .cs-slide h2 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }
    /* 描述文字：完整显示，不截断 */
    .cs-slide p {
        display: block !important;
        overflow: visible !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        margin-bottom: 20px !important;
    }
    .cs-right-panel {
        display: none !important;
    }
    .cs-dots {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        justify-content: center !important;
        margin-top: 18px !important;
        margin-bottom: 8px !important;
    }

    /* --- 首页 Practice 练习区 → 单列 --- */
    .practice-grid {
        grid-template-columns: 1fr !important;
    }
    .practice-item {
        grid-column: 1 / -1 !important;
        min-height: 220px !important;
    }

    /* --- About 简介区 --- */
    .about-intro-flex {
        flex-direction: column !important;
        gap: 28px !important;
        align-items: center !important;
    }
    .about-profile-wrap {
        width: min(280px, 78vw) !important;
        height: min(280px, 78vw) !important;
    }
    .about-intro-flex h1 {
        font-size: 26px !important;
        text-align: center;
    }
    .about-intro-flex > div:last-child {
        text-align: left;
    }

    /* --- About 工具 Grid → 2列 --- */
    .about-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* --- Section 标题 --- */
    .section-title {
        font-size: 1.5rem !important;
    }
    .section-title-divider {
        font-size: 13px !important;
    }
}
