/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 120px;
    max-height: 120px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #303133;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #909399;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.login-tab.active {
    color: #409eff;
    border-bottom-color: #409eff;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* 主页面样式 */
.container {
    display: none;
    min-height: 100vh;
}

.container.active {
    display: flex;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background-color: #2c3e50;
    color: #fff;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #34495e;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #3d566e;
}

.logo img {
    max-height: 40px;
    margin-right: 10px;
}

.menu {
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    color: #bdc3c7;
    font-size: 14px;
}

.menu-item:hover,
.menu-item.active {
    background-color: #34495e;
    color: #fff;
}

.menu-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

/* 主内容区 */
.main {
    flex: 1;
    padding: 20px;
}

.header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 20px;
    color: #303133;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: #606266;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 16px;
    color: #303133;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #606266;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #409eff;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.btn-primary {
    background-color: #409eff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #66b1ff;
}

.btn-default {
    background-color: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
}

.btn-default:hover {
    border-color: #409eff;
    color: #409eff;
}

.btn-danger {
    background-color: #f56c6c;
    color: #fff;
}

.btn-success {
    background-color: #67c23a;
    color: #fff;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    margin-right: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

th {
    background-color: #f5f7fa;
    color: #909399;
    font-weight: 500;
}

td {
    color: #606266;
}

/* 价格和状态 */
.price {
    color: #f56c6c;
    font-weight: bold;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-active {
    background-color: #e1f3d8;
    color: #67c23a;
}

.status-inactive {
    background-color: #fde2e2;
    color: #f56c6c;
}

/* 工具类 */
.hidden {
    display: none;
}

.error-msg {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 5px;
}

/* 首页布局 */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.home-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-title {
    color: #909399;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    color: #303133;
    font-size: 28px;
    font-weight: bold;
}

.stat-change {
    color: #67c23a;
    font-size: 12px;
    margin-top: 5px;
}

/* 进度环 */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.progress-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    position: relative;
}

.progress-ring circle {
    fill: none;
    stroke-width: 10;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring .bg {
    stroke: #f0f0f0;
}

.progress-ring .progress {
    stroke-linecap: round;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #303133;
}

.progress-label {
    color: #606266;
    font-size: 14px;
}

/* 常用操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-action {
    background: #fff;
    padding: 30px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.quick-action-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-icon.green {
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.quick-action-icon.orange {
    background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%);
}

.quick-action-name {
    color: #606266;
    font-size: 14px;
}

/* 待处理事务 */
.pending-card {
    background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
}

.pending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.pending-item {
    text-align: center;
}

.pending-item-value {
    font-size: 24px;
    font-weight: bold;
}

.pending-item-label {
    font-size: 12px;
    margin-top: 5px;
}

.pending-progress {
    margin-top: 10px;
}

.pending-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.pending-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    width: 60%;
}

/* 商品概况 */
.product-overview {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.product-item {
    text-align: center;
}

.product-item-value {
    font-size: 24px;
    font-weight: bold;
}

.product-item-label {
    font-size: 12px;
    margin-top: 5px;
}

.product-progress {
    margin-top: 10px;
}

.product-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.product-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    width: 80%;
}

/* 整体趋势 */
.trend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trend-card {
    padding: 25px;
    border-radius: 8px;
    color: #fff;
}

.trend-card.blue {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
}

.trend-card.pink {
    background: linear-gradient(135deg, #ff6b81 0%, #ff8598 100%);
}

.trend-card.gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.trend-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.trend-item {
    text-align: center;
}

.trend-item-value {
    font-size: 28px;
    font-weight: bold;
}

.trend-item-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.trend-item-change {
    font-size: 12px;
    opacity: 0.9;
}

/* 图表占位 */
.chart-placeholder {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-title {
    color: #303133;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #409eff;
}

/* 搜索和筛选 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

/* 订单统计 */
.order-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.order-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.order-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.order-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #eab308 0%, #facc15 100%);
}

.order-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.order-stat-card:nth-child(5) {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.order-stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.order-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 订单标签页 */
.order-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: #f5f7fa;
    padding: 5px;
    border-radius: 6px;
}

.order-tab {
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #606266;
}

.order-tab:hover {
    background: #fff;
}

.order-tab.active {
    background: #409eff;
    color: #fff;
}

/* 订单筛选区域 */
.order-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.order-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-filter-item label {
    color: #606266;
    white-space: nowrap;
}

.order-filter-item input,
.order-filter-item select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.order-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

/* 订单列表 */
.order-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f5f7fa;
    border-radius: 4px;
}

.order-list-header span {
    color: #606266;
    font-size: 14px;
}

/* 订单卡片 */
.order-card {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 15px;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 12px;
}

.order-card-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.order-card-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #606266;
    font-size: 14px;
}

.order-card-info-item strong {
    color: #303133;
}

.order-card-status {
    font-size: 14px;
}

.order-card-body {
    display: flex;
    gap: 20px;
}

.order-product {
    display: flex;
    gap: 15px;
    flex: 1;
}

.order-product-image {
    width: 80px;
    height: 80px;
    background: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    color: #303133;
    font-size: 15px;
    margin-bottom: 5px;
}

.order-product-meta {
    color: #909399;
    font-size: 13px;
    margin-bottom: 8px;
}

.order-product-price {
    display: flex;
    gap: 40px;
    align-items: center;
}

.order-product-price-item {
    color: #606266;
    font-size: 14px;
}

.order-product-price-item strong {
    color: #303133;
    font-size: 16px;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    color: #606266;
    font-size: 14px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    border-color: #409eff;
    color: #409eff;
}

.pagination select {
    padding: 6px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

/* 个人信息页面 */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-form {
    padding: 20px 0;
}

/* 设置标签 */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-tab {
    padding: 10px 20px;
    background: #f5f7fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #606266;
}

.settings-tab:hover {
    background: #e6e8eb;
}

.settings-tab.active {
    background: #409eff;
    color: #fff;
}

/* 用户卡片 */
.user-card {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.user-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.user-card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f5f7fa;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 5px;
}

.user-meta {
    display: flex;
    gap: 20px;
    color: #909399;
    font-size: 13px;
}

.user-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.user-status.status-active {
    background: #e1f3d8;
    color: #67c23a;
}

.user-status.status-disabled {
    background: #fde2e2;
    color: #f56c6c;
}

.user-card-body {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-detail {
    display: flex;
    gap: 30px;
    color: #606266;
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.role-select {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
}

/* 弹窗 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
}

.modal-header h3 {
    margin: 0;
    color: #303133;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #909399;
}

.modal-close:hover {
    color: #409eff;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #ebeef5;
}

/* 数据统计页面样式 */
.stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-tab {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.stats-tab:hover {
    background: #e4e7ed;
}

.stats-tab.active {
    background: #409eff;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.stats-card-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
}

.stats-card-content {
    flex: 1;
}

.stats-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 5px;
}

.stats-card-label {
    font-size: 14px;
    color: #909399;
}

.status-stats {
    padding: 20px;
}

.status-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.status-stat-item:last-child {
    margin-bottom: 0;
}

.status-stat-bar {
    flex: 1;
    height: 20px;
    border-radius: 10px;
    transition: width 0.5s;
}

.status-stat-bar.pending {
    background: #f56c6c;
}

.status-stat-bar.unshipped {
    background: #e6a23c;
}

.status-stat-bar.received {
    background: #67c23a;
}

.status-stat-bar.completed {
    background: #409eff;
}

.status-stat-bar.cancelled {
    background: #909399;
}

.status-stat-info {
    display: flex;
    justify-content: space-between;
    width: 120px;
}

.status-stat-label {
    color: #606266;
    font-size: 14px;
}

.status-stat-value {
    font-weight: bold;
    color: #303133;
}

.category-stat-card {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 15px;
}

.category-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.category-stat-name {
    font-weight: 500;
    color: #303133;
}

.category-stat-count {
    color: #409eff;
    font-size: 12px;
}

.category-stat-bar {
    height: 6px;
    background: #e4e7ed;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #409eff, #67c23a);
    border-radius: 3px;
    transition: width 0.5s;
}

.category-stat-amount {
    font-weight: bold;
    color: #e6a23c;
    font-size: 16px;
}

/* 营销管理页面样式 */
.marketing-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.marketing-tab {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.marketing-tab:hover {
    background: #e4e7ed;
}

.marketing-tab.active {
    background: #409eff;
    color: #fff;
}

/* 优惠券卡片样式 */
.coupon-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px dashed #ffccc7;
}

.coupon-left {
    width: 120px;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 6px;
    color: #fff;
}

.coupon-value {
    font-size: 28px;
    font-weight: bold;
}

.coupon-condition {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.coupon-right {
    flex: 1;
}

.coupon-name {
    font-weight: bold;
    color: #303133;
    margin-bottom: 8px;
}

.coupon-info {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #909399;
    margin-bottom: 5px;
}

.coupon-time {
    font-size: 12px;
    color: #606266;
}

.coupon-actions {
    display: flex;
    gap: 8px;
}

/* 活动卡片样式 */
.activity-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ebeef5;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-name {
    font-weight: bold;
    color: #303133;
    font-size: 16px;
}

.activity-type {
    padding: 4px 10px;
    background: #ecf5ff;
    color: #409eff;
    border-radius: 4px;
    font-size: 12px;
}

.activity-desc {
    color: #606266;
    font-size: 14px;
    margin-bottom: 10px;
}

.activity-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.activity-discount {
    font-weight: bold;
    color: #e6a23c;
    font-size: 16px;
}

.activity-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.activity-status.active {
    background: #f0f9eb;
    color: #67c23a;
}

.activity-status.inactive {
    background: #fafafa;
    color: #909399;
}

.activity-time {
    font-size: 12px;
    color: #909399;
    margin-bottom: 15px;
}

.activity-actions {
    display: flex;
    gap: 8px;
}

/* 运营管理页面样式 */
.operations-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.operations-tab {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.operations-tab:hover {
    background: #e4e7ed;
}

.operations-tab.active {
    background: #409eff;
    color: #fff;
}

/* 店铺卡片样式 */
.store-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ebeef5;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f7fa;
}

.store-name {
    font-weight: bold;
    color: #303133;
    font-size: 18px;
}

.store-actions {
    display: flex;
    gap: 8px;
}

.store-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.store-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.store-info-label {
    font-size: 12px;
    color: #909399;
}

.store-info-value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

.store-stats-row {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 6px;
}

.store-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.store-stat-item.revenue {
    min-width: 150px;
}

.store-stat-item.activity {
    flex: 1;
}

.store-stat-label {
    font-size: 12px;
    color: #909399;
}

.store-stat-value {
    font-size: 16px;
    font-weight: bold;
}

.store-stat-item.revenue .store-stat-value {
    color: #e6a23c;
}

.store-stat-item.activity .store-stat-value {
    color: #409eff;
}

.store-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-users-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.user-card {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: bold;
    color: #303133;
    font-size: 14px;
}

.user-phone {
    font-size: 12px;
    color: #909399;
}

.user-level {
    display: inline-block;
    padding: 2px 8px;
    background: #fffbe6;
    color: #e6a23c;
    border-radius: 4px;
    font-size: 11px;
    width: fit-content;
    margin-top: 4px;
}

/* ==================== 数据库查看页面样式 ==================== */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.collection-card {
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #409eff;
}

.collection-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.collection-name {
    font-size: 16px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 8px;
}

.collection-count {
    font-size: 28px;
    font-weight: bold;
    color: #409eff;
}

.collection-count-label {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}

.data-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #ebeef5;
}

.data-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    color: #606266;
    font-size: 14px;
}

.data-table tr:hover td {
    background-color: #f5f7fa;
}

.data-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-cell-full {
    max-width: none;
    white-space: pre-wrap;
    word-break: break-all;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
}

.pagination-info {
    color: #606266;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    color: #409eff;
    border-color: #409eff;
}

.pagination-btn.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.json-viewer {
    background: #f5f7fa;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.data-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

.no-data {
    text-align: center;
    padding: 60px;
    color: #909399;
    font-size: 16px;
}
