/* ============================================
   商户端全局样式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 卡片容器 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px 45px;
    width: 100%;
    max-width: 440px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* 头部 */
.card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.card .logo h2 {
    font-size: 26px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
}

.card .logo h2 span {
    color: #764ba2;
}

.card .logo p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f8f9fa;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #764ba2;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.btn:hover {
    transform: scale(0.98);
    box-shadow: 0 5px 20px rgba(118, 75, 162, 0.4);
}

.btn:active {
    transform: scale(0.95);
}

/* 底部链接 */
.footer-text {
    text-align: center;
    margin-top: 22px;
    color: #7f8c8d;
    font-size: 14px;
}

.footer-text a {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* 状态提示 */
.status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-active {
    background: #d4edda;
    color: #155724;
}
.status-paused {
    background: #f8d7da;
    color: #721c24;
}
.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Toast 提示 */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.92);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    text-align: center;
}

/* 图表网格 */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.chart-box {
    background: white;
    border-radius: 12px;
    padding: 20px 20px 10px 20px;  /* ✅ 顶部留更多空间 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #95a5a6;
    font-size: 14px;
}