/* 自定义动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 服装电商主题色 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #26a69a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

/* 产品卡片样式 */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-card img {
    transition: transform 0.3s ease;
}

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

/* 价格标签样式 */
.price {
    color: var(--primary-color);
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9em;
}

/* 折扣标签样式 */
.discount-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 分类标签样式 */
.category-tag {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

/* 移动端菜单动画 */
#mobile-menu {
    transition: all 0.3s ease;
}

/* 下拉菜单样式 */
.dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.dropdown-menu a {
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 20px;
}

/* 搜索框样式 */
.search-input {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 购物车图标样式 */
.cart-icon {
    position: relative;
    transition: all 0.3s ease;
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

/* 服装特色区块样式 */
.feature-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

/* 时尚趋势区块样式 */
.trend-section {
    background-color: var(--light-color);
    padding: 60px 0;
}

/* 客户评价样式 */
.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-link {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 响应式字体大小 */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* 图片加载动画 */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: imgLoading 1.5s infinite;
}

@keyframes imgLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 自定义工具类 */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* 自定义分隔线 */
.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 24px 0;
}

/* 自定义列表样式 */
.list-fashion {
    list-style: none;
    padding: 0;
}

.list-fashion li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.list-fashion li::before {
    content: '👗';
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* 自定义引用样式 */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    font-size: 1.1em;
}

/* 自定义标签样式 */
.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.tag-fashion {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tag-fashion:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 自定义进度条样式 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 自定义悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 自定义过渡效果 */
.transition-custom {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 自定义焦点样式 */
.focus-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
}

/* 自定义选择文本样式 */
::selection {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--dark-color);
}

::-moz-selection {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--dark-color);
}

/* 自定义打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    main {
        width: 100%;
        max-width: 100%;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* 服装卡片悬停效果 */
.fashion-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.fashion-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

.fashion-card:hover .fashion-card-overlay {
    opacity: 1;
}

.fashion-card-buttons {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
}

.fashion-card:hover .fashion-card-buttons {
    transform: translateY(0);
    opacity: 1;
}