/* ===== 补充样式文件 ===== */

/* 搜索建议样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-100);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    border-bottom: 1px solid rgba(216, 175, 163, 0.1);
    transition: var(--transition-fast);
}

.search-suggestion:hover {
    background: var(--primary-100);
    color: var(--primary-500);
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* 快速搜索样式 */
.quick-search {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.quick-search-item {
    padding: var(--space-xs) var(--space-sm);
    background: var(--neutral-100);
    border: 1px solid var(--primary-100);
    border-radius: 20px;
    font-size: 14px;
    color: var(--neutral-500);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-search-item:hover {
    background: var(--primary-100);
    color: var(--primary-500);
}

/* 产品特点标签 */
.product-features-list {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.product-feature-tag {
    display: inline-block;
    padding: 2px var(--space-xs);
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(253, 251, 250, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 移动端菜单激活状态 */
@media (max-width: 768px) {
    .nav-menu.active {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--neutral-0);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        animation: slideDown 0.3s ease-out forwards;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片模态框样式 */
.image-modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.image-modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
}

/* 通知消息样式 */
.notification {
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    text-align: center;
}

/* 加载状态 */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* 产品卡片悬停效果增强 */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::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;
}

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

/* 浮动卡片动画增强 */
.floating-card.animate-float {
    animation: floatEnhanced 6s ease-in-out infinite;
}

@keyframes floatEnhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg); 
    }
}

/* 未找到页面样式 */
.not-found {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.not-found-icon {
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

.not-found h2 {
    font-size: 36px;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.not-found p {
    font-size: 18px;
    color: var(--neutral-500);
    margin-bottom: var(--space-xl);
}

/* 统计数据动画 */
.stat-number {
    position: relative;
    overflow: hidden;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(216, 175, 163, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: var(--transition-normal);
}

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

/* 图片占位符优化 */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    background: var(--primary-100);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 表单焦点样式增强 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: var(--shadow-input);
}

/* 按钮点击效果 */
.btn:active {
    transform: scale(0.98);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

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

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

/* 选择文本样式 */
::selection {
    background: var(--primary-500);
    color: var(--neutral-100);
}

::-moz-selection {
    background: var(--primary-500);
    color: var(--neutral-100);
}

/* 打印样式增强 */
@media print {
    .no-print {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: var(--space-md);
    }
    
    .navbar,
    .footer {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* 深色模式支持预留 */
@media (prefers-color-scheme: dark) {
    /* 如果需要深色模式，可以在这里添加样式 */
    /* 注意：当前设计是基于浅色主题的 */
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-500: #B58D81;
        --neutral-900: #000000;
        --neutral-500: #333333;
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}