/* ========== CSS变量定义 ========== */
:root {
    --primary-color: #333;
    --accent-color: #ff6b35;
    --secondary-color: #ff8c42;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 隐藏滚动条样式 ========== */
/* Webkit浏览器 (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE和Edge */
body {
    -ms-overflow-style: none;
}

/* ========== 顶部导航栏样式 ========== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(252, 248, 245, 0.5) 0%, 
        rgba(249, 243, 237, 0.55) 50%, 
        rgba(252, 248, 245, 0.5) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(245, 235, 225, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(249, 243, 237, 0.1) 0%, 
        rgba(245, 235, 225, 0.05) 50%, 
        rgba(249, 243, 237, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.navbar-container {
    max-width: min(1400px, 95vw);
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
    transition: all 0.15s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    overflow: hidden;
    height: 40px;
    line-height: 40px;
}

.nav-link .nav-text-cn,
.nav-link .nav-text-en {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.15s ease;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.nav-link .nav-text-cn {
    top: 0;
    opacity: 1;
}

.nav-link .nav-text-en {
    top: 40px;
    opacity: 0;
    color: var(--accent-color);
}

.nav-link:hover .nav-text-cn {
    top: -40px;
    opacity: 0;
}

.nav-link:hover .nav-text-en {
    top: 0;
    opacity: 1;
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(252, 248, 245, 0.5) 0%, 
        rgba(249, 243, 237, 0.55) 50%, 
        rgba(252, 248, 245, 0.5) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 30px;
    border: 1px solid rgba(245, 235, 225, 0.3);
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 20px 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== 主容器 ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 8vw 60px;
}

/* ========== 页面标题区域 ========== */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ========== 案例网格布局 ========== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 案例卡片样式 ========== */
.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 280px;
    width: 100%;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.case-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 140, 66, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
    padding: 30px;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.overlay-content h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.overlay-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 20px;
}

.overlay-content .case-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========== 移动端响应式 ========== */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar-container {
        height: 70px;
        padding: 0 20px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .navbar-nav {
        display: none;
    }

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

    .mobile-menu {
        top: 70px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .main-container {
        padding: 100px 20px 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .case-card {
        height: 250px;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}