743 lines
14 KiB
CSS
743 lines
14 KiB
CSS
/* 订单管理页面样式 */
|
|
|
|
/* 管理页面头部样式 */
|
|
header {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
|
|
border-radius: 20px;
|
|
margin-bottom: 40px;
|
|
box-shadow:
|
|
0 20px 40px rgba(0, 0, 0, 0.4),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
border: 1px solid #333;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5em;
|
|
color: #ffffff;
|
|
margin-bottom: 10px;
|
|
font-weight: 700;
|
|
background: linear-gradient(45deg, #ffd700, #ffed4a);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
header p {
|
|
font-size: 1.1em;
|
|
color: #b0b0b0;
|
|
margin: 0;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* 管理员导航 - 已移除 */
|
|
|
|
/* 选项卡导航 */
|
|
.tabs-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.tabs-nav {
|
|
display: flex;
|
|
gap: 5px;
|
|
border-bottom: 2px solid #333;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 12px 25px;
|
|
background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
|
|
color: #b0b0b0;
|
|
border: none;
|
|
border-radius: 10px 10px 0 0;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
border-bottom: 3px solid transparent;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
background: linear-gradient(145deg, #3d3d3d, #4d4d4d);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
|
|
color: #ffd700;
|
|
border-bottom: 3px solid #ffd700;
|
|
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
/* 选项卡内容 */
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* 优惠码表格和订单表格共用样式 */
|
|
.coupons-section,
|
|
.orders-section {
|
|
background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
border: 1px solid #444;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.coupons-table-container,
|
|
.orders-table-container {
|
|
overflow-x: auto;
|
|
background: #0a0a0a;
|
|
border-radius: 10px;
|
|
border: 1px solid #333;
|
|
}
|
|
|
|
.coupons-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.coupons-table th {
|
|
background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
|
|
color: #ffd700;
|
|
padding: 15px 12px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
border-bottom: 2px solid #444;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.coupons-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #333;
|
|
color: #e0e0e0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.coupons-table tbody tr {
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.coupons-table tbody tr:hover {
|
|
background-color: rgba(255, 215, 0, 0.05);
|
|
}
|
|
|
|
/* 优惠码状态标签 */
|
|
.coupon-active {
|
|
background: rgba(40, 167, 69, 0.2);
|
|
color: #28a745;
|
|
border: 1px solid #28a745;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.coupon-inactive {
|
|
background: rgba(220, 53, 69, 0.2);
|
|
color: #dc3545;
|
|
border: 1px solid #dc3545;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 优惠码类型标签 */
|
|
.coupon-type {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 8px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.coupon-percentage {
|
|
background: rgba(0, 123, 255, 0.2);
|
|
color: #007bff;
|
|
border: 1px solid #007bff;
|
|
}
|
|
|
|
.coupon-fixed {
|
|
background: rgba(255, 193, 7, 0.2);
|
|
color: #ffc107;
|
|
border: 1px solid #ffc107;
|
|
}
|
|
|
|
/* 优惠码表单样式 */
|
|
.coupon-form .form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.coupon-form label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.coupon-form input,
|
|
.coupon-form select {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: #0a0a0a;
|
|
border: 2px solid #444;
|
|
border-radius: 8px;
|
|
color: #e0e0e0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.coupon-form input:focus,
|
|
.coupon-form select:focus {
|
|
outline: none;
|
|
border-color: #ffd700;
|
|
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
.form-hint {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: #888;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 复选框样式 */
|
|
.coupon-form input[type="checkbox"] {
|
|
width: auto;
|
|
margin-right: 8px;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.coupon-form label:has(input[type="checkbox"]) {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 按钮样式增强 */
|
|
.btn-toggle {
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
margin-right: 5px;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
}
|
|
|
|
.btn-enable {
|
|
background: linear-gradient(135deg, #28a745, #20c997);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-enable:hover {
|
|
background: linear-gradient(135deg, #20c997, #17a2b8);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-disable {
|
|
background: linear-gradient(135deg, #6c757d, #5a6268);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-disable:hover {
|
|
background: linear-gradient(135deg, #5a6268, #495057);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* 管理员导航 - 已移除 */
|
|
|
|
/* 统计卡片 */
|
|
.stats-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
text-align: center;
|
|
border: 1px solid #444;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: linear-gradient(90deg, #ffd700, #ffed4a);
|
|
}
|
|
|
|
.stat-card h3 {
|
|
color: #b0b0b0;
|
|
font-size: 1.1em;
|
|
margin-bottom: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat-card span {
|
|
color: #ffd700;
|
|
font-size: 2.2em;
|
|
font-weight: bold;
|
|
display: block;
|
|
text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
/* 订单表格区域 */
|
|
.orders-section {
|
|
background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
border: 1px solid #444;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #333;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
color: #ffffff;
|
|
font-size: 1.5em;
|
|
margin: 0;
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.search-box {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.search-box input {
|
|
padding: 10px 15px;
|
|
background: #0a0a0a;
|
|
border: 2px solid #444;
|
|
border-radius: 8px;
|
|
color: #e0e0e0;
|
|
width: 250px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: #ffd700;
|
|
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
.search-btn {
|
|
padding: 10px 18px;
|
|
background: linear-gradient(135deg, #ffd700, #ffed4a);
|
|
color: #000;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
.section-header select {
|
|
padding: 10px 15px;
|
|
background: #0a0a0a;
|
|
border: 2px solid #444;
|
|
border-radius: 8px;
|
|
color: #e0e0e0;
|
|
font-size: 14px;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.section-header select:focus {
|
|
outline: none;
|
|
border-color: #ffd700;
|
|
}
|
|
|
|
/* 表格容器 */
|
|
.orders-table-container {
|
|
overflow-x: auto;
|
|
background: #0a0a0a;
|
|
border-radius: 10px;
|
|
border: 1px solid #333;
|
|
}
|
|
|
|
.orders-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.orders-table th {
|
|
background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
|
|
color: #ffd700;
|
|
padding: 15px 12px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
border-bottom: 2px solid #444;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.orders-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #333;
|
|
color: #e0e0e0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.orders-table tbody tr {
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.orders-table tbody tr:hover {
|
|
background-color: rgba(255, 215, 0, 0.05);
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
color: #b0b0b0;
|
|
font-style: italic;
|
|
padding: 50px !important;
|
|
}
|
|
|
|
/* 状态标签 */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-pending {
|
|
background: rgba(255, 193, 7, 0.2);
|
|
color: #ffc107;
|
|
border: 1px solid #ffc107;
|
|
}
|
|
|
|
.status-finished {
|
|
background: rgba(40, 167, 69, 0.2);
|
|
color: #28a745;
|
|
border: 1px solid #28a745;
|
|
}
|
|
|
|
.status-shipped {
|
|
background: rgba(0, 123, 255, 0.2);
|
|
color: #007bff;
|
|
border: 1px solid #007bff;
|
|
}
|
|
|
|
.status-completed {
|
|
background: rgba(108, 117, 125, 0.2);
|
|
color: #6c757d;
|
|
border: 1px solid #6c757d;
|
|
}
|
|
|
|
.status-failed {
|
|
background: rgba(220, 53, 69, 0.2);
|
|
color: #dc3545;
|
|
border: 1px solid #dc3545;
|
|
}
|
|
|
|
/* 操作按钮 */
|
|
.action-btn {
|
|
padding: 6px 12px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
margin-right: 5px;
|
|
margin-bottom: 4px;
|
|
transition: all 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-copy {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: #fff;
|
|
border: 1px solid #3498db;
|
|
}
|
|
|
|
.btn-copy:hover {
|
|
background: linear-gradient(135deg, #2980b9, #1f639a);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
|
|
}
|
|
|
|
.btn-ship {
|
|
background: linear-gradient(135deg, #ffd700, #ffed4a);
|
|
color: #000;
|
|
border: 1px solid #ffd700;
|
|
}
|
|
|
|
.btn-ship:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
|
|
}
|
|
|
|
.btn-delete {
|
|
background: linear-gradient(135deg, #dc3545, #c82333);
|
|
color: #fff;
|
|
border: 1px solid #dc3545;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: linear-gradient(135deg, #c82333, #a71e2a);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
|
|
}
|
|
|
|
/* 订单详情模态框 */
|
|
.order-detail-content {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.detail-section {
|
|
margin-bottom: 25px;
|
|
padding: 20px;
|
|
background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
|
|
border-radius: 10px;
|
|
border: 1px solid #333;
|
|
}
|
|
|
|
.detail-section h4 {
|
|
color: #ffd700;
|
|
margin-bottom: 15px;
|
|
font-size: 1.1em;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.detail-label {
|
|
font-weight: bold;
|
|
color: #b0b0b0;
|
|
}
|
|
|
|
.detail-value {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* 发货表单 */
|
|
.shipping-form .form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.shipping-form label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.shipping-form input,
|
|
.shipping-form select,
|
|
.shipping-form textarea {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: #0a0a0a;
|
|
border: 2px solid #444;
|
|
border-radius: 8px;
|
|
color: #e0e0e0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.shipping-form input:focus,
|
|
.shipping-form select:focus,
|
|
.shipping-form textarea:focus {
|
|
outline: none;
|
|
border-color: #ffd700;
|
|
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: flex-end;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.btn-primary {
|
|
padding: 12px 25px;
|
|
background: linear-gradient(135deg, #ffd700, #ffed4a);
|
|
color: #000;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
padding: 12px 25px;
|
|
background: linear-gradient(145deg, #333, #444);
|
|
color: #e0e0e0;
|
|
border: 1px solid #555;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: linear-gradient(145deg, #444, #555);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* 复制按钮样式 */
|
|
.copy-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #ffd700;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
margin-left: 8px;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
transition: all 0.3s ease;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
opacity: 1;
|
|
background: rgba(255, 215, 0, 0.1);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* 复制成功提示 */
|
|
.copy-toast {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: linear-gradient(135deg, #00ff88, #00cc6a);
|
|
color: #000;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
z-index: 9999;
|
|
box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
header h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
header p {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.stats-section {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.section-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.header-controls {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.search-box input {
|
|
width: 180px;
|
|
}
|
|
|
|
.orders-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.orders-table th,
|
|
.orders-table td {
|
|
padding: 8px 6px;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.copy-btn {
|
|
font-size: 10px;
|
|
margin-left: 4px;
|
|
}
|
|
} |