/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 字体加载完成后的样式 */
body.font-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Adjust scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* 页面内容上边距，避免被固定导航栏遮挡 */
main, .main-content, .page-content {
    margin-top: 100px; /* 为固定导航栏留出空间 */
}

/* Hero区域特殊处理 - 添加适当的上边距 */
.hero, .products-hero, .faq-hero, .about-hero, .test-hero {
    margin-top: 80px; /* 为固定导航栏留出适当空间 */
}

/* 移动端滚动偏移优化 */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 120px; /* 移动端增加滚动偏移 */
    }
    
    main, .main-content, .page-content {
        margin-top: 120px; /* 移动端增加上边距 */
    }
    
    /* 移动端特定页面内容间距 */
    .filters-section, .faq-content, .mission-vision {
        margin-top: 120px !important;
    }
    
    /* 移动端Hero区域间距调整 */
    .hero, .products-hero, .faq-hero, .about-hero, .test-hero {
        margin-top: 100px !important; /* 移动端Hero区域间距 */
    }
    
    /* 移动端导航栏高度调整 */
    .navbar {
        padding: 0.8rem 0; /* 减少移动端导航栏内边距 */
    }
    
    .logo-image {
        height: 60px; /* 移动端减小logo高度 */
    }
}

@media (max-width: 480px) {
    section[id] {
        scroll-margin-top: 130px; /* 小屏幕进一步增加滚动偏移 */
    }
    
    main, .main-content, .page-content {
        margin-top: 130px; /* 小屏幕进一步增加上边距 */
    }
    
    /* 小屏幕特定页面内容间距 */
    .filters-section, .faq-content, .mission-vision {
        margin-top: 130px !important;
    }
    
    /* 小屏幕Hero区域间距调整 */
    .hero, .products-hero, .faq-hero, .about-hero, .test-hero {
        margin-top: 110px !important; /* 小屏幕Hero区域间距 */
    }
    
    /* 小屏幕导航栏高度调整 */
    .navbar {
        padding: 0.6rem 0; /* 进一步减少小屏幕导航栏内边距 */
    }
    
    .logo-image {
        height: 50px; /* 小屏幕进一步减小logo高度 */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #333, #666);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    display: block; /* 移除默认的inline特性造成的底部空白 */
    height: 80px;
    width: auto;
    max-width: 320px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    vertical-align: top; /* 确保图片顶部对齐 */
    transition: all 0.3s ease;
}

.nav-logo a:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 0.2rem;
}

.nav-menu a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu a:hover::after {
    width: 80%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0.3rem 1.5rem;
    margin: 0.2rem 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.dropdown-menu a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    pointer-events: auto; /* 确保内容可以点击 */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 1;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    transition: background-image 0.3s ease, opacity 0.5s ease, visibility 0.1s ease;
    pointer-events: none; /* 防止背景图片阻挡点击 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none; /* 防止遮罩层阻挡点击 */
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    line-height: 0; /* 移除行高造成的空白 */
}

.product-image img {
    display: block; /* 移除默认的inline特性造成的底部空白 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    vertical-align: top; /* 确保图片顶部对齐 */
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.homepage-product-title {
    font-size: 0.9rem !important;
    font-weight: 600;
    margin-bottom: 0 !important;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

/* 首页产品卡片图片更大 */
.product-card .product-image:has(+ .product-content .homepage-product-title) {
    height: 300px;
}

/* 首页产品卡片内容区域更紧凑 */
.product-card .product-content:has(.homepage-product-title) {
    padding: 1rem 1.5rem;
}

.product-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.product-tag:hover {
    background: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
}

.product-tags-section {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.product-actions {
    display: flex;
    justify-content: flex-end;
}

.product-features span {
    color: #3498db;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Products CTA Button */
.products-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: #3498db;
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.btn-large:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    color: white;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 通用长文本样式 - 应用于所有页面的长内容字段 */
.long-text-content {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 0; /* 移除行高造成的空白 */
}

.about-image img {
    display: block; /* 移除默认的inline特性造成的底部空白 */
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.5s ease, visibility 0.1s ease;
    vertical-align: top; /* 确保图片顶部对齐 */
}

.about-image:hover img {
    transform: scale(1.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}



/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 40px;
}

.contact-item h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

.social-link.linkedin:hover {
    color: #0077b5;
}

.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.instagram:hover {
    color: #dc2743;
}

.social-link.whatsapp:hover {
    color: #25d366;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

/* Footer Social Media */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    background: #34495e;
    color: white;
    border-radius: 50%;
}

.footer-social .social-link:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 移动端触摸优化 */
    .btn {
        min-height: 44px; /* 确保按钮足够大，便于触摸 */
        touch-action: manipulation; /* 优化触摸响应 */
    }
    
    .hero-buttons .btn {
        min-width: 120px; /* 确保按钮足够宽 */
    }
    
    /* 确保hero内容在移动端可以正常点击 */
    .hero {
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        position: relative;
        z-index: 3;
        pointer-events: auto;
    }
    
    /* 移动端导航菜单样式 */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 100px !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
        z-index: 1000 !important;
        margin: 0 !important;
        list-style: none !important;
        border-left: 1px solid rgba(52, 152, 219, 0.1) !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a:hover {
        background: #f8f9fa;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        display: none;
        width: 100%;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
        border-bottom: none;
    }
    
    /* 移动端菜单项优化 */
    .nav-menu li {
        margin: 0.5rem 0; /* 减少菜单项间距 */
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.7rem 1.5rem; /* 减少菜单项内边距 */
        font-size: 1rem; /* 减小字体大小 */
        border-bottom: 1px solid rgba(52, 152, 219, 0.1);
        border-radius: 8px;
        margin: 0.2rem 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        transform: translateX(5px);
        color: #3498db;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        display: none;
        width: 100%;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        padding: 0.4rem 2rem; /* 减少下拉菜单项内边距 */
        font-size: 0.9rem; /* 减小下拉菜单字体大小 */
        border-bottom: none;
    }
    
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .hero h2 {
        font-size: 1.5rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    

    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* 小屏幕菜单项进一步优化 */
    .nav-menu a {
        padding: 0.6rem 1.2rem; /* 进一步减少菜单项内边距 */
        font-size: 0.95rem; /* 进一步减小字体大小 */
    }
    
    .dropdown-menu a {
        padding: 0.3rem 1.8rem; /* 进一步减少下拉菜单项内边距 */
        font-size: 0.85rem; /* 进一步减小下拉菜单字体大小 */
    }
    
    .hero h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================== 案例滚动列表样式 ==================== */
.cases {
    padding: 5rem 0 5rem 0;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cases-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    padding-bottom: 100px;
}

.cases-scroll {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
    padding: 1rem 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
    background: transparent;
    box-shadow: none;
}

.cases-scroll:active {
    cursor: grabbing;
}

.case-item {
    flex: 0 0 360px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.case-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    line-height: 0; /* 移除行高造成的空白 */
}

.case-image img {
    display: block; /* 移除默认的inline特性造成的底部空白 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    vertical-align: top; /* 确保图片顶部对齐 */
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.case-content {
    padding: 2rem;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    font-size: clamp(0.6rem, 3vw, 1.2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.case-category {
    background: #f8f9fa;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.case-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.case-year {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.case-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 30px 0;
    min-height: 80px;
}

.case-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.case-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    margin: 0 6px;
}

.case-dot:hover {
    background: #95a5a6;
    transform: scale(1.3);
}

.case-dot.active {
    background: #3498db;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cases {
        padding: 3rem 0;
    }
    
    .case-item {
        flex: 0 0 300px;
    }
    
    .case-image {
        height: 200px;
    }
    
    .case-content {
        padding: 1rem;
    }
    
    .case-title {
        font-size: clamp(0.8rem, 3vw, 1.1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .case-dot {
        width: 10px;
        height: 10px;
    }
    
    .case-meta {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .case-item {
        flex: 0 0 280px;
    }
    
    .case-image {
        height: 180px;
    }
    
    .case-dot {
        width: 8px;
        height: 8px;
    }
    
    .case-meta {
        font-size: 0.65rem;
    }
} 