/* 全局样式优化 */
body {
    padding-bottom: 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

/* 顶部导航美化 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Banner轮播优化 */
.carousel-item img {
    height: 220px;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

.carousel {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

/* 公告栏美化 */
.announcement-bar {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.4);
    min-height: 55px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* 修复marquee文字垂直居中 */
.announcement-bar marquee {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    margin: 0;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

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

/* 容器美化 */
.container {
    background: transparent;
    border-radius: 20px 20px 0 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 1rem !important;
}

/* 标题样式增强 */
.section-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 20px !important;
    position: relative;
    padding-left: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 产品展示网格布局 */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.product-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

/* 产品图片容器优化 */
.product-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(1deg);
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 公司信息卡片美化 */
.company-info-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.company-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}

.company-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.company-info-card .card-body {
    padding: 25px;
}

.company-info-card .card-title {
    color: #333;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-info-card .card-text {
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 8px 0;
}

.company-info-card .card-text i {
    color: #667eea;
    margin-right: 12px;
    width: 20px;
    font-size: 1.1rem;
}

/* 证件展示美化 */
.certificate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 15px 0;
}

.certificate-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.certificate-image-container {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.certificate-overlay i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.certificate-title {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
}

/* 底部导航美化 */
.bottom-nav {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.bottom-nav .nav-item.active {
    color: #667eea;
}

.bottom-nav .nav-item:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .certificate-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .container {
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    
    .certificate-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-info {
        padding: 15px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card, .company-info-card, .certificate-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }

/* ========== 首页美化样式 - 不包含底部导航 ========== */

/* 全局背景美化 */
body.home-page {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* 顶部导航美化 */
.home-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.home-navbar .navbar-brand {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Banner轮播美化 */
.home-carousel {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.home-carousel .carousel-item img {
    height: 220px;
    border-radius: 0 0 20px 20px;
}

/* 公告栏美化 */
.home-announcement {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 15px;
    min-height: 55px;
}

.home-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

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

/* 主容器美化 */
.home-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 标题美化 */
.home-section-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    padding-left: 20px;
}

.home-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 产品卡片美化 */
.home-product-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.home-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.home-product-card:hover::before {
    opacity: 1;
}

.home-product-card .product-image {
    transition: transform 0.4s ease;
}

.home-product-card:hover .product-image {
    transform: scale(1.08);
}

.home-product-card .product-info {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
}

/* 公司信息卡片美化 */
.home-company-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.home-company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}

.home-company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.home-company-card .card-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.home-company-card .card-text i {
    color: #667eea;
    margin-right: 12px;
    width: 20px;
}

/* 证件展示美化 */
.home-certificate-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.home-certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.home-certificate-card .certificate-image {
    transition: transform 0.3s ease;
}

.home-certificate-card:hover .certificate-image {
    transform: scale(1.1);
}

.home-certificate-card .certificate-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.home-certificate-card .certificate-title {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    font-weight: 600;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-product-card, .home-company-card, .home-certificate-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .home-container {
        border-radius: 15px 15px 0 0;
    }
    
    .home-section-title {
        font-size: 1.2rem;
        padding-left: 15px;
    }
}

/* 设备卡片顶部背景 */
.device-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.device-card-header h6 {
    margin-bottom: 0;
    color: #495057;
}

.device-card-header .badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 登录页面样式 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.register-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 动态背景粒子效果 */
.login-page::before,
.register-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #06b6d4, #764ba2);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.login-card-body {
    padding: 3.5rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.input-group {
    position: relative;
}

.form-control {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    border-color: #06b6d4;
    box-shadow: 
        0 0 0 0.25rem rgba(6, 182, 212, 0.25),
        0 8px 25px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    color: white;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #667eea, #06b6d4);
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.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.6s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #4f46e5, #667eea);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.alert {
    border-radius: 16px;
    border: none;
    padding: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border-left: 4px solid #ef4444;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border-left: 4px solid #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-page,
    .register-page {
        padding: 1rem;
    }
    
    .login-card-body {
        padding: 2.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}

/* 补库存按钮统一样式 */
/* 修复弹窗中下拉选择框的文字颜色 */
.modal-body .form-control,
.modal-body .form-select {
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid;
}

.modal-body .form-control option,
.modal-body .form-select option {
    color: #333 !important;
    background-color: #fff !important;
}

/* 统一补库存按钮样式 */
.restock-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 120px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.restock-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 弹窗内按钮样式 - 宽度与内容一致 */
.restock-btn-modal {
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 100% !important; /* 改为100%宽度，与弹窗内容一致 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.restock-btn-modal:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 确保按钮颜色保持原有的动态效果 */
.restock-btn.btn-primary,
.restock-btn-modal.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
}

.restock-btn.btn-danger,
.restock-btn-modal.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
}

.restock-btn.btn-primary:hover,
.restock-btn-modal.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
}

.restock-btn.btn-danger:hover,
.restock-btn-modal.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a) !important;
}
/* 登录注册按钮美化样式 */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 15px rgba(118, 75, 162, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 按钮光效动画 */
.btn-login::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;
    z-index: 1;
}

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

/* 悬停效果 */
.btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.5),
        0 8px 25px rgba(118, 75, 162, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #4f46e5 0%, #667eea 50%, #764ba2 100%);
}

/* 点击效果 */
.btn-login:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

/* 按钮内图标样式 */
.btn-login i {
    position: relative;
    z-index: 2;
    margin-right: 8px;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* 按钮文字样式 */
.btn-login {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 加载状态样式 */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

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

/* 响应式优化 */
@media (max-width: 480px) {
    .btn-login {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        border-radius: 14px;
    }
}

/* 注册链接美化 */
.register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.register-link a i {
    margin-right: 8px;
    font-size: 1.1rem;
}