/* ==========================================
   Google Antigravity 风格设计
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

/* 全局变量 */
:root {
    /* 品牌配色 - 羽绒服主题 */
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    /* 主色调 */
    --primary-color: #1f2937;
    --secondary-color: #6b7280;
    --accent-color: var(--primary-blue);
    --bg-light: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --white: #ffffff;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* 阴影 - 更柔和自然 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* 全局重置 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 var(--spacing-lg); 
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ==========================================
   Header - Google 风格导航
   ========================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 var(--spacing-md);
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.logo img { 
    height: 40px;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { 
    display: flex; 
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition-fast);
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-links a:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.nav-links a.active::before {
    width: 80%;
}

/* ==========================================
   Banner - 粒子背景特效
   ========================================== */
.banner {
    background: url('../../image.png') center center / cover no-repeat;
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加半透明遮罩层提升文字可读性 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.banner-content { 
    position: relative; 
    z-index: 2; 
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-content h1 {
    font-size: clamp(48px, 8vw, 72px);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-content p {
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-2xl);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-cta:active {
    transform: translateY(-1px) scale(0.98);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Section 通用样式
   ========================================== */
section { 
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

section:nth-child(even) {
    background: var(--bg-gray);
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(36px, 6vw, 48px);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================
   产品网格 - Material Design 卡片
   ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 0.03;
}

.media-wrapper {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    background: var(--bg-gray);
}

.product-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-media {
    transform: scale(1.08);
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.5;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: var(--accent-color);
}

/* 证书板块样式修复 */
.cert-section {
    background: var(--white);
    padding: 60px 0;
    position: relative;
    z-index: 1;
    clear: both;
    overflow: visible;
}

/* 联系我们板块防止重叠 */
.contact-section {
    background: var(--bg-light);
    color: var(--text-dark);
    margin-top: 50px;
    position: relative;
    z-index: 2;
    clear: both;
}
.contact-section .section-title { color: var(--text-dark); }

.contact-box {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    min-width: 280px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: transparent;
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.contact-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-color);
    transition: var(--transition);
}

.contact-card:hover .contact-value {
    transform: scale(1.05);
}

.contact-value a { 
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}

.contact-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.contact-value a:hover::after { 
    width: 100%;
}

.contact-tips {
    margin-top: var(--spacing-md);
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    font-size: 14px;
    border-top: 3px solid var(--accent-color);
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* ==========================================
   滚动动画
   ========================================== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加延迟效果 */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
    .banner {
        min-height: 500px;
        padding: 80px 0;
        background-position: center center;
    }
    .banner-content h1 { 
        font-size: 40px; 
    }
    .nav-links { 
        display: none; 
    }
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; 
    }
    .media-wrapper { 
        padding-top: 100%; 
    }
    .contact-box { 
        gap: 16px; 
    }
    .contact-card { 
        width: 100%; 
    }
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .product-grid { 
        grid-template-columns: 1fr; 
    }
    .banner { 
        padding: 60px 0;
        min-height: 400px;
    }
    .banner-content h1 {
        font-size: 32px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .category-title {
        font-size: 24px;
    }
}
/* 分类区块样式 */
.category-section {
    margin-bottom: var(--spacing-2xl);
}

.category-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--accent-color);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: var(--spacing-md);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =========================================
   灯箱模态框
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    line-height: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-radius: 50%;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 视频播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-xl);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.1), var(--shadow-xl);
    }
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-2xl);
    animation: none;
}

/* 媒体容器增加点击提示 */
.media-wrapper {
    cursor: pointer;
}

.media-wrapper::after {
    content: '点击查看大图';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.media-wrapper:hover::after {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 30px;
        padding: 15px 10px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
    .play-overlay {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .banner-content h1 {
        font-size: 40px;
        line-height: 1.1;
    }
    .banner-content p {
        font-size: 17px;
    }
    .section-title {
        font-size: 32px;
    }
    .category-title {
        font-size: 26px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .contact-box {
        gap: 24px;
    }
    .contact-card {
        min-width: 100%;
        padding: 24px;
    }
    .nav-bar {
        padding: 0 20px;
    }
    .container {
        padding: 0 20px;
    }
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--google-blue) 0%, 
        var(--google-red) 33%, 
        var(--google-yellow) 66%, 
        var(--google-green) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: rgba(66, 133, 244, 0.2);
    color: var(--text-dark);
}
