/* 私域团购页面样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.private-group-buying-page {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 40px;
    padding: 0 100px;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* AI搜索样式统一由 main.css 提供 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-join-community {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-join-community:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* 私域团购英雄区域 */
.private-domain-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* 社群网络可视化 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-network {
    position: relative;
    width: 400px;
    height: 400px;
}

.network-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.center-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.center-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.network-members {
    position: relative;
    width: 100%;
    height: 100%;
}

.member-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 0 0;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
}

.member-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.node-1 { 
    animation: circularRotation 15s linear infinite;
    transform: translate(-25px, -25px) rotate(0deg) translateX(150px) rotate(0deg);
}
.node-2 { 
    animation: circularRotation 15s linear infinite;
    animation-delay: -2.5s;
    transform: translate(-25px, -25px) rotate(60deg) translateX(150px) rotate(-60deg);
}
.node-3 { 
    animation: circularRotation 15s linear infinite;
    animation-delay: -5s;
    transform: translate(-25px, -25px) rotate(120deg) translateX(150px) rotate(-120deg);
}
.node-4 { 
    animation: circularRotation 15s linear infinite;
    animation-delay: -7.5s;
    transform: translate(-25px, -25px) rotate(180deg) translateX(150px) rotate(-180deg);
}
.node-5 { 
    animation: circularRotation 15s linear infinite;
    animation-delay: -10s;
    transform: translate(-25px, -25px) rotate(240deg) translateX(150px) rotate(-240deg);
}
.node-6 { 
    animation: circularRotation 15s linear infinite;
    animation-delay: -12.5s;
    transform: translate(-25px, -25px) rotate(300deg) translateX(150px) rotate(-300deg);
}

@keyframes circularRotation {
    0% { 
        transform: translate(-25px, -25px) rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% { 
        transform: translate(-25px, -25px) rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left center;
    animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 私域社群优势板块 */
.community-benefits {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.community-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.community-benefits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.community-benefits .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.community-benefits .section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.community-benefits .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 优势网格 - 单排显示 */
.community-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    max-height: 360px;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

.community-benefits .benefits-grid.expanded {
    max-height: none;
}

/* 查看更多按钮容器 - 私域社群优势板块专用 */
.community-benefits .expand-button-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* 查看更多按钮样式 - 私域社群优势板块专用 */
.community-benefits .expand-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.community-benefits .expand-btn:hover {
    opacity: 0.8;
}

/* 查看更多按钮的箭头容器 */
.community-benefits .expand-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 24px;
    position: relative;
}

/* 箭头样式 */
.community-benefits .arrow {
    color: rgba(97, 97, 97, 0.9);
    transition: all 0.3s ease;
    position: absolute;
    width: 16px;
    height: 16px;
}

.community-benefits .arrow-1 {
    top: 2px;
    z-index: 2;
    animation: arrowBounce1 2.5s ease-in-out infinite;
}

.community-benefits .arrow-2 {
    top: 8px;
    opacity: 0.6;
    z-index: 1;
    animation: arrowBounce2 2.5s ease-in-out infinite 0.4s;
}

/* 箭头缓慢跳动动画 */
@keyframes arrowBounce1 {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
    60% {
        transform: translateY(-2px);
        opacity: 0.95;
    }
}

@keyframes arrowBounce2 {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: translateY(-3px);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-1px);
        opacity: 0.7;
    }
}

/* 按钮展开状态的箭头动画 */
.community-benefits .expand-btn.expanded .expand-arrows {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

/* 按钮文字样式 */
.community-benefits .expand-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(97, 97, 97, 0.95);
    transition: all 0.3s ease;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.benefit-card:hover::before {
    transform: translateX(100%);
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.benefit-icon {
    margin-bottom: 2rem;
    position: relative;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .icon-wrapper::before {
    transform: scale(1);
}

.benefit-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper.exclusive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.icon-wrapper.quality {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.icon-wrapper.service {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.icon-wrapper.community {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.benefit-card:hover .icon-wrapper svg {
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
    position: relative;
}

.benefit-card:hover .benefit-title {
    color: var(--primary-color);
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.benefit-card:hover .benefit-description {
    color: var(--text-primary);
}

.benefit-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.benefit-card:hover .benefit-highlight::before {
    left: 100%;
}

.benefit-card:hover .benefit-highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: scale(1.05);
}

.highlight-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.benefit-card:hover .highlight-text {
    color: var(--primary-color);
}

.highlight-value {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover .highlight-value {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 热门团购商品 */
.popular-products {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.popular-products .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-products .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品分类筛选 */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.filter-btn.active::before {
    left: 0;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 1;
    transform: scale(1);
}

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

.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.product-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-filters {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .popular-products .section-title {
        font-size: 2rem;
    }
}
.group-products {
    padding: 6rem 0;
    background: white;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* 保持4:3的宽高比 */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
    min-height: 180px; /* 最小高度确保小屏幕下的可见性 */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block; /* 消除图片底部间隙 */
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.product-badge.hot {
    background: var(--danger-color);
}

.product-badge.premium {
    background: var(--primary-color);
}

.product-badge.new {
    background: var(--success-color);
}

.product-badge.limited {
    background: var(--warning-color);
}

.product-discount {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--danger-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm);
    transition: width 1s ease-out;
}

.product-countdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.time-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.125rem;
}

.time-separator {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0.25rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-join-group {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-join-group:hover {
    background: var(--primary-dark);
}

.btn-share {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-share:hover {
    background: var(--border-color);
}

.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-load-more:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 团购流程 */
.group-process {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.group-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.group-process .container {
    position: relative;
    z-index: 1;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.decoration-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--primary-color) 33%, 
        #e2e8f0 33%, 
        #e2e8f0 66%, 
        var(--primary-color) 66%, 
        var(--primary-color) 100%
    );
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateY(-50%);
}

.process-step {
    position: relative;
    z-index: 2;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 350px;
    margin: 0 auto;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 4px rgba(255,255,255,0.9);
    position: relative;
    transition: all 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-number:hover::before {
    opacity: 0.2;
}

.step-number span {
    position: relative;
    z-index: 1;
}

.step-content {
    width: 100%;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.step-info {
    text-align: center;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.step-features {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.process-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-large::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;
}

.btn-large:hover::before {
    left: 100%;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.btn-large svg {
    transition: transform 0.3s ease;
}

.btn-large:hover svg {
    transform: translateX(4px);
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: start;
    }
    
    .timeline-line {
        display: block;
    }
}

@media (max-width: 767px) {
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }
    
    .group-process {
        padding: 4rem 0;
    }
}

/* 滚动动画 */
 .scroll-reveal {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.6s ease;
 }
 
 .scroll-reveal.revealed {
     opacity: 1;
     transform: translateY(0);
 }
 
 .scroll-reveal[data-delay="100"].revealed {
     transition-delay: 0.1s;
 }
 
 .scroll-reveal[data-delay="200"].revealed {
     transition-delay: 0.2s;
 }
 
 .scroll-reveal[data-delay="300"].revealed {
     transition-delay: 0.3s;
 }

 /* 时间线进度动画 */
 @keyframes timelineProgress {
     0% {
         background: linear-gradient(90deg, 
             #e2e8f0 0%, 
             #e2e8f0 100%
         );
     }
     100% {
         background: linear-gradient(90deg, 
             var(--primary-color) 0%, 
             var(--primary-color) 33%, 
             #e2e8f0 33%, 
             #e2e8f0 66%, 
             var(--primary-color) 66%, 
             var(--primary-color) 100%
         );
     }
 }

 /* 步骤数字脉冲动画 */
 @keyframes numberPulse {
     0%, 100% {
         transform: scale(1);
     }
     50% {
         transform: scale(1.1);
     }
 }

 .step-number.animate {
     animation: numberPulse 0.6s ease-in-out;
 }

 /* 特征标签动画 */
 @keyframes tagSlideIn {
     0% {
         opacity: 0;
         transform: translateX(-20px);
     }
     100% {
         opacity: 1;
         transform: translateX(0);
     }
 }

 .feature-tag {
     animation: tagSlideIn 0.5s ease-out;
 }

 .feature-tag:nth-child(2) {
     animation-delay: 0.1s;
 }

 /* 按钮光效动画 */
 @keyframes buttonGlow {
     0%, 100% {
         box-shadow: 0 8px 25px rgba(0,0,0,0.15);
     }
     50% {
         box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 20px rgba(99, 102, 241, 0.3);
     }
 }

 .btn-large:hover {
     animation: buttonGlow 2s ease-in-out infinite;
 }

/* 用户见证 */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-rating {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .community-benefits {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .community-benefits .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 1rem;
        max-height: 400px;
        margin-top: 30px;
    }
    
    .community-benefits .expand-button-container {
        margin-top: 30px;
    }
    
    .community-benefits .expand-text {
        font-size: 0.95rem;
    }
    
    .benefit-card {
        padding: 2.5rem 2rem;
    }
    
    .icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .icon-wrapper svg {
        width: 32px;
        height: 32px;
    }
    
    .benefit-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* 热门团购商品板块响应式 */
    .popular-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        min-height: 150px;
        aspect-ratio: 1/1; /* 移动端使用正方形比例 */
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .product-description {
        font-size: 0.8rem;
        line-height: 1.4;
        -webkit-line-clamp: 2; /* 限制为2行 */
        line-clamp: 2; /* 标准属性 */
    }
    
    .price-original {
        font-size: 0.8rem;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .community-benefits {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .benefits-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    /* 热门团购商品板块小屏幕优化 */
    .popular-products-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        min-height: 120px;
        aspect-ratio: 16/9; /* 小屏幕使用16:9比例 */
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        line-height: 1.3;
        -webkit-line-clamp: 1; /* 限制为1行 */
        line-clamp: 1; /* 标准属性 */
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        margin-bottom: 0.8rem;
    }
    
    .price-current {
        font-size: 1rem;
    }
    
    .price-original {
        font-size: 0.75rem;
    }
    
    .product-progress {
        margin-bottom: 0.8rem;
    }
    
    .product-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .icon-wrapper svg {
        width: 28px;
        height: 28px;
    }
    
    .benefit-title {
        font-size: 1.375rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .benefit-highlight {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .highlight-text {
        font-size: 0.8rem;
    }
    
    .highlight-value {
        font-size: 1.125rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .benefit-card,
    .product-card,
    .testimonial-card {
        margin: 0 1rem;
    }
    
    .community-network {
        width: 300px;
        height: 300px;
    }
/* 移动端适配 */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-logo {
        padding: 0;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .community-network {
        transform: scale(0.8);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        height: 60px;
    }

    .logo-img {
        height: 30px;
    }

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

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

    .stat-number {
        font-size: 1.5rem;
    }

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

    .community-network {
        transform: scale(0.6);
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .community-network {
        transform: scale(0.5);
    }
}

/* 产品筛选动画 */
.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.product-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-out;
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .floating-elements {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

.qrcode-modal.show {
    display: flex;
    opacity: 1;
}

.qrcode-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.qrcode-modal.show .qrcode-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.qrcode-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.qrcode-close:hover {
    color: #333;
}

.qrcode-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qrcode-header p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.qrcode-image-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.qrcode-footer p {
    margin: 20px 0 0 0;
    color: #888;
    font-size: 13px;
    font-style: italic;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qrcode-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .qrcode-header h3 {
        font-size: 20px;
    }
    
    .qrcode-image {
        width: 160px;
        height: 160px;
    }
}