/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* 自定义CSS变量 */
:root {
    --primary-purple: #8b5cf6;
    --secondary-purple: #6366f1;
    --primary-color: #8b5cf6;
    --dark-bg: #0f0f23;
    --card-bg: rgba(26, 26, 46, 0.8);
    --bg-glass: rgba(26, 26, 46, 0.8);
    --border-color: rgba(139, 92, 246, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #6366f1);
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    --shadow-primary: 0 20px 40px rgba(139, 92, 246, 0.15);
    --shadow-hover: 0 25px 50px rgba(139, 92, 246, 0.25);
    --shadow-card: 0 25px 50px rgba(139, 92, 246, 0.25);
    
    /* 间距变量 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* 字体大小变量 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    
    /* 圆角变量 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* 过渡变量 */
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体变量 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 页面整体背景 */
body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* 产品页面专用样式 */

/* 筛选导航 */
.product-filter {
    padding: 120px 0 60px 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.product-filter .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

/* 平铺筛选按钮样式 */
.filter-sections {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 4px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-purple);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    width: 320px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    padding: 10px 18px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 18px 0 0 18px;
    color: var(--text-primary);
    font-size: 14px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 6px 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-btn {
    padding: 10px 18px;
    background: var(--gradient-primary);
    border: 1px solid var(--primary-purple);
    border-radius: 0 18px 18px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

/* 产品列表 */
.products-section {
    padding: 80px 0;
    background: transparent;
}

.products-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-color);
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.product-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 24px;
    color: #06B6D4;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}



.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-category {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: 0;
    list-style: none;
}

.product-features li {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-weight: 500;
    transition: all var(--transition-normal);
    margin: 0;
    position: static;
}

.product-features li:hover {
    background: rgba(6, 182, 212, 0.25);
    transform: translateY(-1px);
}

.product-features li::before {
    display: none;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    margin-top: auto;
    gap: 12px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-purple);
}

.product-price:empty {
    display: none;
}

.product-action .btn-outline {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 10px 24px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    background: transparent;
    position: relative;
    cursor: pointer;
    width: 120px;
    min-width: 120px;
}



.product-action .btn-outline:hover {
    color: white;
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.product-action .btn-outline .link-arrow {
    transition: transform var(--transition-normal);
}

.product-action .btn-outline:hover .link-arrow {
    transform: translateX(3px);
}

/* 产品优势 */
.product-advantages {
    padding: 100px 0;
    background: transparent;
}

.product-advantages .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.advantage-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-12px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.advantage-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary.large,
.btn-outline.large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary.large {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary.large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline.large {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline.large:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* 产品筛选动画 */
.product-card.fade-out {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-normal);
}

.product-card.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all var(--transition-normal);
}

/* 桌面端响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        min-height: 360px;
    }
}

/* 加载动画 */
@keyframes productCardLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.loading {
    animation: productCardLoad 0.6s ease forwards;
}

/* 筛选过渡效果 */
.products-grid.filtering .product-card {
    transition: all 0.3s ease;
}

.products-grid.filtering .product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* 搜索结果提示 */
.search-results {
    text-align: center;
    padding: 48px 0;
    color: var(--text-secondary);
}

.no-results {
    text-align: center;
    color: var(--text-primary);
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.no-results p {
    opacity: 0.8;
    font-size: 16px;
}
