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

:root {
    /* 主色调 - 更专业的深色系 */
    --primary-color: #1a1a2e;
    --primary-dark: #0f0f1e;
    --primary-light: #2a2a3e;
    --secondary-color: #0f3460;
    --secondary-light: #1a4a7a;
    --accent-color: #e94560;
    --accent-light: #ff6b7d;
    --accent-dark: #c7364d;
    
    /* 渐变色 - 更柔和的渐变 */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    
    /* 文本颜色 - 更好的对比度 */
    --text-color: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    
    /* 背景色 - 更柔和的背景 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-light: #f1f5f9;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --bg-overlay: rgba(255, 255, 255, 0.95);
    
    /* 边框和分割线 */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);
    --border-gradient: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    
    /* 阴影系统 - 更精细的层次 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 10px 30px rgba(102, 126, 234, 0.2);
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 间距系统 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* 旧变量兼容 */
    --white: var(--bg-primary);
    --text-color-old: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

.logo h1 {
    font-size: 1.9rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    transition: var(--transition);
}

.logo:hover h1 {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    font-weight: 400;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::before {
    width: 100%;
}

.lang-switcher {
    margin-left: 1rem;
}

.lang-btn {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lang-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lang-btn:active {
    transform: translateY(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Hero 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    overflow: hidden;
    isolation: isolate;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1.5px;
    animation: fadeInUp 1s ease 0.2s both;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* 通用区块样式 */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.underline {
    width: 120px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.underline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.6), 0 0 30px rgba(233, 69, 96, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* 关于我们 */
.about {
    background: var(--bg-gradient);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.05;
    transition: var(--transition);
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-colored);
    border-color: rgba(102, 126, 234, 0.25);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 产品展示 */
.products {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    cursor: pointer;
    will-change: transform;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover::after {
    width: 300px;
    height: 300px;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-image {
    height: 300px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card:nth-child(1) .product-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-card:nth-child(2) .product-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-card:nth-child(4) .product-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.product-card:nth-child(5) .product-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-card:nth-child(6) .product-image {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.product-card:nth-child(7) .product-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.product-card:nth-child(8) .product-image {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.product-card:nth-child(9) .product-image {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* 产品图片淡化背景层 */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* 产品图片旋转光效 */
.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.product-placeholder {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.product-card:hover .product-img {
    transform: scale(1.15);
    filter: brightness(1.05);
}

.product-info {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    transition: padding var(--transition-fast);
}

.product-card:hover .product-info {
    padding: 2.5rem 2rem 2.8rem;
}

.product-info h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color var(--transition-fast);
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.product-card:hover .product-info h3::after {
    width: 100%;
}

.product-info p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.product-card:hover .product-info p {
    color: var(--text-color);
}

/* 产品详情按钮 */
.product-view-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.product-card:hover .product-view-btn {
    opacity: 0.8;
    transform: scale(1) translateY(0);
}

.product-view-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.product-view-btn:active {
    transform: scale(0.95);
}

/* 产品模态框 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.product-modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.product-modal.active .product-modal-content {
    transform: scale(1) translateY(0);
}

.product-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.product-modal-close:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(90deg);
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 1.5rem;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.product-modal-gallery .product-modal-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background: var(--bg-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.product-modal-gallery .product-modal-image:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
    filter: brightness(1.02);
}

@media (max-width: 768px) {
    .product-modal-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(160px, 1fr));
    }
}

.product-modal-info {
    padding: 3rem;
}

.product-modal-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-modal-info p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.product-modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-modal-feature {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid transparent;
    border-image: var(--gradient-1);
    border-image-slice: 1;
    transition: var(--transition);
}

.product-modal-feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.product-modal-feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-modal-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* 图片懒加载占位符 */
.product-img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-img.loaded {
    opacity: 1;
}

/* 服务优势 */
.services {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-item {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    will-change: transform;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.service-item:hover::before {
    opacity: 0.03;
}

.service-item.active {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-item:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.3));
}

.service-number {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.12;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-item:hover .service-number {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.15);
}

.service-item h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: var(--secondary-color);
}

.service-description {
    color: var(--text-light);
    position: relative;
    z-index: 2;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-item:hover .service-description {
    color: var(--text-color);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.service-item.active .service-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-details ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.service-details li {
    color: var(--text-light);
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item.active .service-details li {
    border-left-color: rgba(102, 126, 234, 0.2);
    padding-left: 2rem;
    color: var(--text-color);
}

.service-item.active .service-details li::before {
    opacity: 1;
}

.service-item.active .service-details li:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.service-toggle-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.service-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    z-index: -1;
}

.service-toggle-btn:hover::before {
    left: 0;
}

.service-toggle-btn:hover {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-toggle-btn:active {
    transform: translateY(0);
}

.toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.8rem;
}

.service-item.active .toggle-icon {
    transform: rotate(180deg);
}

.service-item.active .service-toggle-btn {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

/* 服务卡片加载动画 */
@keyframes serviceCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-item {
    animation: serviceCardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.service-item:nth-child(1) {
    animation-delay: 0.1s;
}

.service-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item:nth-child(3) {
    animation-delay: 0.3s;
}

.service-item:nth-child(4) {
    animation-delay: 0.4s;
}

.service-item:nth-child(5) {
    animation-delay: 0.5s;
}

.service-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* 服务详情列表项动画 */
@keyframes serviceDetailSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-item.active .service-details li {
    animation: serviceDetailSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.service-item.active .service-details li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-item.active .service-details li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item.active .service-details li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-item.active .service-details li:nth-child(4) {
    animation-delay: 0.4s;
}

/* 服务图标脉冲动画 */
@keyframes serviceIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.service-item:hover .service-icon {
    animation: serviceIconPulse 2s ease-in-out infinite;
}

/* 服务卡片背景光效 */
.service-item::before {
    background: radial-gradient(circle at center, var(--gradient-1) 0%, transparent 70%);
}

.service-item:hover::before {
    opacity: 0.05;
    animation: pulse 3s ease-in-out infinite;
}

/* 工厂展示 */
.factory {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.factory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 60%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.factory-content {
    position: relative;
    z-index: 1;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.factory-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    cursor: pointer;
    will-change: transform;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.factory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.factory-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.factory-card:hover::after {
    width: 300px;
    height: 300px;
}

.factory-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.factory-card:hover::before {
    opacity: 0.05;
}

.factory-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 400px;
    max-height: 500px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移除背景渐变，让图片更清晰显示 */

/* 移除白色覆盖层，让图片更清晰 */

/* 移除旋转光效，让图片更清晰 */

.factory-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(1);
    display: block;
    background: var(--bg-light);
}

.factory-card:hover .factory-img {
    transform: scale(1.05);
    filter: brightness(1.02);
}

/* 已移除覆盖层和图标样式 */

.factory-card-info {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    transition: padding var(--transition-fast);
}

.factory-card:hover .factory-card-info {
    padding: 2.5rem 2rem 2.8rem;
}

.factory-card-info h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color var(--transition-fast);
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.factory-card-info h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.factory-card:hover .factory-card-info h3::after {
    width: 100%;
}

.factory-card-info p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.factory-card:hover .factory-card-info p {
    color: var(--text-color);
}

/* 联系我们 */
.contact {
    background: var(--white);
    position: relative;
}

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

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

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-item:hover {
    transform: translateX(10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-text p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--secondary-color);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

/* 全局视觉增强 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 确保动画元素初始状态正确 */
.feature-card:not(.animated),
.product-card:not(.animated),
.service-item:not(.service-animated),
.info-item:not(.animated),
.factory-card:not(.animated) {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* 防止滚动时的布局偏移 */
body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 确保固定定位元素不会导致错位 */
.navbar {
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.scroll-to-top {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 优化产品卡片在滚动时的表现 */
.product-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 防止快速滚动时的闪烁 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-color);
}

/* 平滑滚动增强 */
html {
    scroll-padding-top: 80px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-colored);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top svg {
    transition: var(--transition);
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

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

    .about-features,
    .products-grid,
    .services-content,
    .factory-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item {
        padding: 2.5rem 1.5rem;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-number {
        font-size: 5rem;
    }
    
    .service-icon-wrapper {
        height: 80px;
    }
    
    .service-details {
        max-height: 400px;
    }
    
    .service-item.active .service-details {
        max-height: 500px;
    }

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

    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .product-modal {
        padding: 1rem;
    }
    
    .product-modal-content {
        max-height: 95vh;
    }
    
    .product-modal-image {
        height: 250px;
    }
    
    .product-modal-info {
        padding: 2rem 1.5rem;
    }
    
    .product-modal-info h2 {
        font-size: 1.6rem;
    }
    
    .product-modal-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-view-btn {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .feature-card,
    .product-card,
    .service-item,
    .factory-card {
        padding: 1.5rem;
    }
    
    .factory-card-image {
        aspect-ratio: 3 / 2;
        min-height: 280px;
        max-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .factory-img {
        min-height: 280px;
        max-height: 350px;
        width: 100%;
        height: 100%;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-number {
        font-size: 4rem;
    }
    
    .service-icon-wrapper {
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
        margin: 1rem 0 0.8rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-toggle-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .service-details li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }
    
    .service-item.active .service-details li {
        padding-left: 1.5rem;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-modal-image {
        height: 200px;
    }
    
    .product-modal-info {
        padding: 1.5rem;
    }
    
    .product-modal-info h2 {
        font-size: 1.4rem;
    }
    
    .product-modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
}
