/* 登录注册页面样式补充 */
.banma-login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* 添加背景图案效果 */
.banma-login-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.3;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banma-login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banma-login-box {
    background: #ffffff; /* 改为纯白色背景 */
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.banma-login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.banma-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.banma-logo {
    width: 120px;
    margin-bottom: 20px;
}

.banma-login-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.banma-login-header p {
    color: #666;
    font-size: 14px;
}

.banma-form-group {
    position: relative;
    margin-bottom: 25px;
}

.banma-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.banma-icon {
    position: absolute;
    left: 15px;
    top: 40px;
    color: #aaa;
    transition: all 0.3s;
}
.banma-icon-check {
    position: absolute;
    left: 55px;
    top: 17px;
    color: #aaa;
    transition: all 0.3s;
}

.banma-input {
    width: 90%;
    padding: 12px 0 12px 35px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.banma-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.banma-input-focus .banma-icon {
    color: #667eea;
}

.banma-captcha-group {
    display: flex;
    align-items: flex-end;
}

.banma-captcha-group .banma-input {
    flex: 1;
    margin-right: 10px;
}

.banma-btn-captcha {
    height: 45px;
    padding: 0 15px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.banma-btn-captcha:hover {
    background: #e0e0e0;
}

.banma-btn-captcha:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.banma-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.banma-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.banma-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.banma-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
}

.banma-checkbox:hover input ~ .banma-checkmark {
    background-color: #f0f0f0;
}

.banma-checkbox input:checked ~ .banma-checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.banma-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.banma-checkbox input:checked ~ .banma-checkmark:after {
    display: block;
}

.banma-checkbox .banma-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.banma-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.banma-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.banma-btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.banma-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.banma-btn-wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.banma-social-login {
    margin-top: 30px;
    text-align: center;
}

.banma-divider {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: #999;
    font-size: 14px;
}

.banma-divider:before,
.banma-divider:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #e0e0e0;
}

.banma-divider:before {
    left: 0;
}

.banma-divider:after {
    right: 0;
}

.banma-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.banma-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.banma-wechat {
    background: #09BB07;
}

.banma-qq {
    background: #12B7F5;
}

.banma-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.banma-register-link {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.banma-password-tip {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .banma-login-box {
        padding: 30px 20px;
        width: 100%;
    }
    
    .banma-form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 购物车悬浮组件样式 */
.cart-dropdown-container {
    position: relative;
}

.cart-trigger {
    padding: 15px 20px !important;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-trigger:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff !important;
}

.cart-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cart-dropdown-container:hover .cart-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.cart-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.cart-dropdown-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.local-cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.local-cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 12px;
    color: #666;
}

.cart-item-quantity {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.cart-dropdown-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-summary {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.cart-actions .btn {
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: #999;
}