/* =============================================
   湖银农业 - 购物商城样式
   ============================================= */

:root {
    --shopping-primary: #3a9ad9;
    --shopping-primary-dark: #075b9e;
    --shopping-teal: #0d9488;
    --shopping-success: #4CAF50;
    --shopping-warning: #ff9800;
    --shopping-danger: #f44336;
    --shopping-text-dark: #1a365d;
    --shopping-text-light: #718096;
    --shopping-bg-light: #f0f9ff;
    --shopping-bg-white: #ffffff;
    --shopping-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shopping-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 购物页面使用纯色背景，无图片背景 */

/* 购物页面导航栏（覆盖主样式） */
body.shopping-page .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: var(--shopping-shadow);
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.shopping-page .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

body.shopping-page .nav-actions .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

body.shopping-page .cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: var(--shopping-primary);
    transition: transform 0.3s;
}

body.shopping-page .cart-icon:hover {
    transform: scale(1.1);
}

body.shopping-page .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--shopping-danger) 0%, #ff6b6b 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: cartPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

body.shopping-page .user-actions {
    display: flex;
    gap: 15px;
}

body.shopping-page .btn {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

body.shopping-page .btn-outline {
    background: transparent;
    border: 2px solid var(--shopping-primary);
    color: var(--shopping-primary);
}

body.shopping-page .btn-outline:hover {
    background: var(--shopping-primary);
    color: white;
}

body.shopping-page .btn-primary,
body.shopping-page a.btn-primary {
    background: linear-gradient(135deg, var(--shopping-primary) 0%, var(--shopping-primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(58, 154, 217, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.shopping-page .btn-primary::before,
body.shopping-page a.btn-primary::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;
}

body.shopping-page .btn-primary:hover::before,
body.shopping-page a.btn-primary:hover::before {
    left: 100%;
}

body.shopping-page .btn-primary:hover,
body.shopping-page a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 154, 217, 0.4);
    color: white;
    text-decoration: none;
}

/* 英雄区域 - 仅作用于购物页面 */
body.shopping-page .hero-section {
    padding: 120px 5% 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(58, 154, 217, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* 为固定导航栏留出空间 */
}

body.shopping-page .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 154, 217, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

body.shopping-page .hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--shopping-primary) 0%, var(--shopping-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--shopping-text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* 分类导航 - 仅作用于购物页面 */
body.shopping-page .categories-section {
    padding: 60px 5%;
    background: rgba(255, 255, 255, 0.8);
}

body.shopping-page .section-title {
    text-align: center;
    margin-bottom: 40px;
}

body.shopping-page .section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--shopping-text-dark);
}

body.shopping-page .section-title p {
    font-size: 18px;
    color: var(--shopping-text-light);
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.shopping-page .category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 154, 217, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

body.shopping-page .category-card:hover::before {
    opacity: 1;
}

body.shopping-page .category-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body.shopping-page .category-card.active {
    border: 2px solid var(--shopping-primary);
    box-shadow: 0 0 20px rgba(58, 154, 217, 0.3);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.4s;
    display: inline-block;
}

body.shopping-page .category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

body.shopping-page .category-card.fruit .category-icon {
    color: #ff9800;
}

body.shopping-page .category-card.vegetable .category-icon {
    color: #4CAF50;
}

body.shopping-page .category-card.grain .category-icon {
    color: #8B4513;
}

body.shopping-page .category-card.special .category-icon {
    color: #e91e63;
}

body.shopping-page .category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--shopping-text-dark);
}

body.shopping-page .category-card p {
    font-size: 14px;
    color: var(--shopping-text-light);
}

/* 商品展示 - 仅作用于购物页面 */
body.shopping-page .products-section {
    padding: 80px 5%;
    background: var(--shopping-bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

body.shopping-page .product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInScale 0.6s ease forwards;
    opacity: 0;
}

body.shopping-page .product-card:nth-child(1) { animation-delay: 0.1s; }
body.shopping-page .product-card:nth-child(2) { animation-delay: 0.2s; }
body.shopping-page .product-card:nth-child(3) { animation-delay: 0.3s; }
body.shopping-page .product-card:nth-child(4) { animation-delay: 0.4s; }
body.shopping-page .product-card:nth-child(5) { animation-delay: 0.5s; }
body.shopping-page .product-card:nth-child(6) { animation-delay: 0.6s; }

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

body.shopping-page .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--shopping-primary), var(--shopping-teal));
    transform: scaleX(0);
    transition: transform 0.4s;
    z-index: 1;
}

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

body.shopping-page .product-card:hover::before {
    transform: scaleX(1);
}

body.shopping-page .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

body.shopping-page .badge-new {
    background: linear-gradient(135deg, var(--shopping-primary) 0%, #5ab3f5 100%);
    color: white;
}

body.shopping-page .badge-sale {
    background: linear-gradient(135deg, var(--shopping-danger) 0%, #ff6b6b 100%);
    color: white;
}

body.shopping-page .badge-ai {
    background: linear-gradient(135deg, var(--shopping-teal) 0%, #14b8a6 100%);
    color: white;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

body.shopping-page .product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 不同商品使用不同渐变背景 */
body.shopping-page .product-card:nth-child(1) .product-image {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

body.shopping-page .product-card:nth-child(2) .product-image {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

body.shopping-page .product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

body.shopping-page .product-card:nth-child(4) .product-image {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

body.shopping-page .product-card:nth-child(5) .product-image {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

body.shopping-page .product-card:nth-child(6) .product-image {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
}

body.shopping-page .product-info {
    padding: 20px;
}

body.shopping-page .product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--shopping-text-dark);
}

body.shopping-page .product-description {
    font-size: 14px;
    color: var(--shopping-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

body.shopping-page .product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(58, 154, 217, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: 8px;
}

body.shopping-page .current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--shopping-primary);
    position: relative;
}

body.shopping-page .current-price::before {
    content: '¥';
    font-size: 16px;
    margin-right: 2px;
}

body.shopping-page .original-price {
    font-size: 16px;
    color: var(--shopping-text-light);
    text-decoration: line-through;
}

body.shopping-page .product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.shopping-page .add-to-cart {
    background: var(--shopping-primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

body.shopping-page .add-to-cart:hover {
    background: var(--shopping-primary-dark);
}

body.shopping-page .add-to-cart.added {
    background: var(--shopping-success);
}

body.shopping-page .ai-analysis {
    color: var(--shopping-teal);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* AI推荐专区 - 参照 index.html 的湖银团队观点设计 */
body.shopping-page .ai-team-section {
    position: relative;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    margin-top: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 50%, #ddeef5 100%);
    overflow: hidden;
    min-height: 500px;
}

body.shopping-page .ai-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body.shopping-page .ai-team-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

body.shopping-page .ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    z-index: 10;
}

body.shopping-page .ai-team-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

body.shopping-page .ai-team-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2e7d32, #4caf50, transparent);
    border-radius: 3px;
}

body.shopping-page .ai-recommendation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(58, 154, 217, 0.1);
    position: relative;
    overflow: hidden;
}

body.shopping-page .ai-recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

body.shopping-page .ai-icon {
    font-size: 60px;
    color: var(--shopping-teal);
    flex-shrink: 0;
}

body.shopping-page .ai-content {
    flex: 1;
}

body.shopping-page .ai-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--shopping-text-dark);
}

body.shopping-page .ai-content p {
    font-size: 16px;
    color: var(--shopping-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

body.shopping-page .reset-btn {
    display: block;
    margin: 40px auto 0;
    padding: 15px 40px;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    text-decoration: none;
    text-align: center;
    width: fit-content;
}

body.shopping-page .reset-btn:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

body.shopping-page .reset-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.7s;
}

body.shopping-page .reset-btn:hover, 
body.shopping-page .reset-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6);
}

body.shopping-page .reset-btn:hover::before, 
body.shopping-page .reset-btn:focus::before {
    left: 100%;
}

/* 购物页面页脚 */
body.shopping-page footer {
    background: var(--shopping-text-dark);
    color: white;
    padding: 60px 5% 30px;
}

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

body.shopping-page .footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--shopping-primary);
}

body.shopping-page .footer-links {
    list-style: none;
}

body.shopping-page .footer-links li {
    margin-bottom: 10px;
}

body.shopping-page .footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

body.shopping-page .footer-links a:hover {
    color: var(--shopping-primary);
}

body.shopping-page .contact-info {
    list-style: none;
}

body.shopping-page .contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.shopping-page .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body.shopping-page .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 5%;
    }
    
    body.shopping-page .nav-menu {
        display: none;
    }
    
    body.shopping-page .mobile-menu-toggle {
        display: flex;
    }
    
    body.shopping-page .mobile-menu.active {
        display: block;
    }
    
    body.shopping-page .nav-actions {
        gap: 10px;
    }
    
    body.shopping-page .user-actions {
        gap: 10px;
    }
    
    body.shopping-page .btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* AI推荐区域移动端样式 */
    body.shopping-page .ai-team-section {
        padding: 2rem 1rem;
        min-height: 400px;
    }
    
    body.shopping-page .ai-team-wrapper {
        padding: 20px;
    }
    
    body.shopping-page .ai-team-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    body.shopping-page .ai-recommendation-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    body.shopping-page .ai-icon {
        font-size: 40px;
    }
    
    body.shopping-page .ai-content h3 {
        font-size: 20px;
    }
    
    body.shopping-page .ai-content p {
        font-size: 14px;
    }
    
    body.shopping-page .reset-btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    body.shopping-page .hero-title {
        font-size: 32px;
    }
    
    body.shopping-page .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
    
    body.shopping-page .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    body.shopping-page .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    body.shopping-page .categories {
        gap: 15px;
    }
    
    body.shopping-page .category-card {
        width: calc(50% - 10px);
        padding: 20px 15px;
    }
    
    body.shopping-page .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    body.shopping-page .ai-recommendation {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    body.shopping-page .ai-icon {
        font-size: 40px;
    }
}

