/* ============================================
   Premium Unicorn Theme - Modern & Elegant Design
   ============================================ */

/* ============================================
   1. 全局样式和变量
   ============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. 背景和整体页面样式
   ============================================ */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   3. 导航栏 - 玻璃态效果
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: none !important;
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: none !important;
}

/* 移除导航品牌悬浮动画 */
.navbar-brand:hover {
    /* transform: translateY(-2px); */
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: none !important;
    padding: 0.5rem 1rem !important;
    color: #333 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: none !important;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* 移除导航链接悬浮动画 */
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: #667eea !important;
    /* 导航链接悬停效果 */
}

/* 搜索框样式 */
.form-control {
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1.2rem;
    transition: none !important;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: white;
}

/* ============================================
   4. 公告区域
   ============================================ */
.notice .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.notice .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

/* 公告卡片：完全禁用所有动画 */
.notice .card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.notice .card::before {
    transition: none !important;
    opacity: 0 !important;
}

.notice .card:hover {
    transform: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    opacity: 1 !important;
}

/* 公告内部元素禁用动画 */
.notice .card-body {
    transition: none !important;
}

.notice .card-body * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.jumbotron {
    background: transparent !important;
}

.jumbotron h4 {
    color: #333;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.jumbotron h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* ============================================
   5. 分类区域
   ============================================ */
.category {
    padding: 60px 0;
}

.category h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 4px;
    position: relative;
}

.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.lead {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* ============================================
   6. 分类按钮
   ============================================ */
.category-menus {
    margin-top: 40px;
}

.category-menus .nav-item {
    margin: 8px;
}

.category-menus .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: none !important;
    position: relative;
    overflow: hidden;
}

.category-menus .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: none !important;
}

/* 移除分类菜单按钮悬浮动画 */
.category-menus .btn:hover::before {
    width: 300px;
    height: 300px;
}

.category-menus .btn-outline-secondary {
    color: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
}

/* 移除分类菜单按钮悬浮动画 */
.category-menus .btn-outline-secondary:hover,
.category-menus .btn-outline-secondary.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    /* transform: translateY(-3px); */
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================
   7. 商品卡片 - 重点优化
   ============================================ */
.goods {
    padding: 40px 0 80px;
}

.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: none !important;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
}

/* 商品卡片悬停效果 */
.goods .col .card {
    transition: all 0.3s ease !important;
}

.goods .col .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: none !important;
    z-index: 0;
}

/* 移除卡片悬浮动画 */
.card:hover {
    /* transform: translateY(-10px) scale(1.02); */
    /* box-shadow: var(--card-hover-shadow); */
}

.card:hover::before {
    /* opacity: 1; */
}

/* 商品详情页图片 */
.good-card .card-img-top {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* 商品列表页图片 */
.goods .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: none !important;
    position: relative;
    z-index: 1;
}

/* 图片容器 - 防止溢出 */
.card {
    overflow: hidden;
}

/* 徽章样式 */
.badge {
    padding: 8px 15px;
    border-radius: 0 0 15px 0;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.badge.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

/* 卡片内容 */
.card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ============================================
   8. 按钮样式
   ============================================ */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: none !important;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: none !important;
}

/* 移除按钮悬浮波纹效果 */
.btn:hover::after {
    /* width: 300px; */
    /* height: 300px; */
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

/* 移除主要按钮悬浮动画 */
.btn-primary:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4); */
}

/* 订单详情页下单按钮 - 突出显示 */
#submit.btn-outline-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#submit.btn-outline-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-outline-success {
    color: #11998e;
    border: 2px solid #11998e;
    background: rgba(17, 153, 142, 0.05);
}

/* 移除成功按钮悬浮动画 */
.btn-outline-success:hover {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: transparent;
    color: white;
    /* transform: translateY(-2px); */
}

.btn-outline-success {
    transition: all 0.3s ease;
}

.btn-outline-warning {
    color: #f5576c;
    border: 2px solid #f5576c;
    background: rgba(245, 87, 108, 0.05);
}

/* 移除警告按钮悬浮动画 */
.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
    color: white;
    /* transform: translateY(-2px); */
}

.btn-outline-warning {
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--dark-gradient);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 移除次要按钮悬浮动画 */
.btn-secondary:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); */
}

/* ============================================
   9. 页脚样式
   ============================================ */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 0 20px;
    margin-top: 60px;
}

/* ============================================
   10. 动画效果 - 已禁用
   ============================================ */
/* 所有动画已移除 */

/* ============================================
   11. 响应式优化
   ============================================ */
@media (max-width: 768px) {
    .category h3 {
        font-size: 2rem;
    }

    .card-img-top {
        height: 180px;
    }

    .category-menus .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .category {
        padding: 40px 0;
    }

    .goods {
        padding: 30px 0 60px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 150px;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
}

/* ============================================
   12. 加载动画
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: none !important;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   13. 滚动条美化
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================
   14. 文字渐变效果
   ============================================ */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   15. 图标样式增强
   ============================================ */
.ali-icon {
    display: inline-block;
    transition: none !important;
}

/* 移除按钮图标悬浮动画 */
.btn:hover .ali-icon {
    /* transform: scale(1.2); */
}

/* ============================================
   16. 库存显示优化
   ============================================ */
.text-muted {
    color: #999 !important;
    font-size: 0.9rem;
}

/* ============================================
   17. 卡片内按钮组优化
   ============================================ */
.card-body .btn-sm {
    font-size: 0.85rem;
    padding: 6px 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ============================================
   18. Hover 效果增强 - 已禁用
   ============================================ */
/* 移除卡片链接悬浮动画 */
.card-body a:hover {
    /* transform: translateX(5px); */
}

/* ============================================
   19. 价格显示优化
   ============================================ */
.btn-outline-success strong {
    font-size: 1.1rem;
}
