* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: rgba(0, 0, 0, 0.88);
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M20,0 L20,40 M0,20 L40,20" stroke="rgba(59,130,246,0.07)" stroke-width="0.5"/><circle cx="20" cy="20" r="1" fill="rgba(16,185,129,0.10)"/><rect x="18" y="18" width="4" height="4" fill="none" stroke="rgba(139,92,246,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tech)"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}
@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}
.navbar {
    
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #fff;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 64px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-logo img {
    height: 42px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.navbar-logo:hover img {
    transform: scale(1.05);
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.navbar-menu > .menu-item {
    position: relative;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.navbar-menu > .menu-item:hover {
    color: #00ffff;
}
.main-content {
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 48px 48px 48px;
}

#content{
    background-image: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M20,0 L20,40 M0,20 L40,20" stroke="rgba(59,130,246,0.07)" stroke-width="0.5"/><circle cx="20" cy="20" r="1" fill="rgba(16,185,129,0.10)"/><rect x="18" y="18" width="4" height="4" fill="none" stroke="rgba(139,92,246,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tech)"/></svg>');

}

/* 案例展示区域 */
.cases-section {
    margin-bottom: 48px;
}
.cases-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cases-subtitle {
    font-size: 18px;
    color: #64748b;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.6;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
    justify-content: center;
    align-items: start;
    transition: all 0.4s ease;
    position: relative;
}

.case-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 8px 32px rgba(59,130,246,0.06);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(18px);
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 450px;
}

/* 添加点击展开效果 */
.case-card.expanded {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0,0,0,0.15), 0 16px 48px rgba(59,130,246,0.12);
    z-index: 10;
    margin-top: 0;
    transition: all 0.3s ease;
    min-height: 700px;
}

/* 当有卡片展开时，隐藏其他卡片 */
.case-card.expanded ~ .case-card {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.case-card.expanded::before {
    opacity: 1;
}


.case-image {
    height: 140px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: inherit;
}
.case-card.expanded .case-image img {
    object-fit: contain;
    background: #f8fafc;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    padding: 20px;
}

.case-card.expanded .case-image .public-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.case-card.expanded .case-image .detail-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.case-card.expanded .case-image img {
    transform: none;
}

.case-image .public-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.case-image .detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-content {
    padding: 32px;
    min-width: 280px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
    justify-content: space-between;
}
.case-card.expanded .case-content {
    padding: 8px 48px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    transition: all 0.3s ease;
    justify-content: flex-start;
}

.case-card.expanded .case-image {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 400px;
    min-height: 400px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.case-card.expanded .case-header {
    order: 1;
    margin-bottom: 4px;
    height: auto;
    min-height: auto;
}

.case-card.expanded .case-brief {
    order: 2;
    margin-bottom: 0;
}

.case-card.expanded .case-section {
    order: 3;
    margin-bottom: 8px;
}

/* 小卡片不显示项目背景和技术方案 */
.case-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 展开卡片显示项目背景和技术方案 */
.case-card.expanded .case-section {
    opacity: 1;
    max-height: 500px;
    overflow: visible;
    width: 100%;
}

/* 小卡片显示case-features */
.case-features {
    opacity: 1;
    max-height: 300px;
    overflow: visible;
    transition: all 0.3s ease;
    margin-top: auto;
    flex-grow: 1;
}

/* 展开卡片不显示case-features */
.case-card.expanded .case-features {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.case-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 8px;
}

.case-feature-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-feature-text {
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}

.case-header {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    height: 50px;
    min-height: 50px;
}

.case-section h4 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.case-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.case-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    text-align: left;
    width: 100%;
}

.case-brief {
    opacity: 1;
    transition: all 0.3s ease;
    max-height: 80px;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    margin-bottom: 16px;
}
.case-card.expanded .case-brief {
    opacity: 0;
    transform: translateY(-5px);
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    min-height: 0;
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    margin-right: 16px;
}
.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(100, 116, 139, 0.4);
    background: linear-gradient(135deg, #475569, #334155);
}
.back-button::before {
    content: '←';
    margin-right: 8px;
    font-size: 18px;
}

/* 返回当前页按钮 */
.reset-button {
    display: none;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 当有卡片展开时显示返回当前页按钮 */
.reset-button.show {
    display: inline-flex;
}
.reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}
.reset-button::before {
    content: '↺';
    margin-right: 8px;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto 48px auto;
    }
    .case-card.expanded {
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        transform: translateY(-8px) scale(1.02);
        margin-top: 0;
    }
}
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .case-card.expanded {
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        transform: translateY(-8px) scale(1.02);
        margin-top: 0;
    }
    .case-content {
        padding: 24px;
    }
    .case-title {
        font-size: 20px;
    }
}
@media (max-width: 768px) {
    .case-content {
        padding: 24px;
    }
    .case-title {
        font-size: 20px;
    }
}