/* 毛玻璃效果样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52, #ff9f43, #feca57);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 毛玻璃卡片效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: -1;
    border-radius: 20px;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 1);
}

.form-hint {
    margin-top: 8px;
    padding: 10px 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.form-hint i {
    margin-right: 8px;
    color: #ffc107;
}

/* 按钮样式 */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-secondary:hover {
    background: #ff6b6b;
    color: white;
}

/* 验证码容器 */
.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image img {
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.refresh-captcha {
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: #ff6b6b;
    color: white;
    transform: rotate(90deg);
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.待审核 {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.审核通过待发货 {
    background: rgba(25, 135, 84, 0.2);
    color: #0a3622;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.审核不通过,
.审核不通过待修改 {
    background: rgba(220, 53, 69, 0.2);
    color: #58151c;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.已发货 {
    background: rgba(13, 110, 253, 0.2);
    color: #052c65;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

/* 模态框 */
/* ========== 修复弹窗定位问题 ========== */
/* 删除原来的 .modal 和 .modal-content 样式，替换为以下： */

.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    overflow: hidden;
}

/* 弹窗显示状态 */
.modal.show {
    display: flex !important;
}

.modal-content {
    position: relative; /* 改为相对定位 */
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    margin: 0; /* 清除边距 */
    transform: none; /* 清除原来的变换 */
    top: auto; /* 清除原来的定位 */
    left: auto; /* 清除原来的定位 */
}

/* 大尺寸弹窗 */
.modal-lg .modal-content {
    max-width: 800px;
}

/* 修改动画以适应新的定位方式 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修改关闭按钮位置 */
.close-modal {
    position: relative; /* 改为相对定位 */
    right: 0; /* 清除原来的定位 */
    top: 0; /* 清除原来的定位 */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    transform: none; /* 清除原来的放大效果 */
}



/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-label {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* 节日装饰元素 */
.festive-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.decoration-1 {
    top: 10%;
    left: 5%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, transparent 70%);
}

.decoration-2 {
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle at 70% 70%, #feca57, transparent 70%);
    animation-delay: -3s;
}

/* 标题样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-size: 1.5rem;
}

/* 警告消息 */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    animation: slideDown 0.5s ease;
}

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

.alert-success {
    background: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #0a3622;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #58151c;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}