/* 积分商城自定义样式 */
body { background: #f2f2f2; font-family: "Microsoft YaHei", sans-serif; }

/* 客户端样式 */
.mall-header { background: linear-gradient(135deg, #1E9FFF, #009688); color: #fff; padding: 15px 20px; }
.mall-header .user-info { display: flex; align-items: center; justify-content: space-between; }
.mall-header .nickname { font-size: 18px; font-weight: bold; }
.mall-header .points-badge { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; font-size: 14px; }

.mall-nav { background: #fff; padding: 10px 0; border-bottom: 1px solid #e6e6e6; position: sticky; top: 0; z-index: 100; }
.mall-nav a { display: inline-block; padding: 8px 20px; color: #333; text-decoration: none; font-size: 14px; }
.mall-nav a.active, .mall-nav a:hover { color: #1E9FFF; border-bottom: 2px solid #1E9FFF; }

/* 底部悬浮导航 */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; justify-content: space-around; align-items: center; height: 55px; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); z-index: 999; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #999; font-size: 11px; flex: 1; height: 100%; transition: color 0.2s; }
.bottom-nav a .nav-icon { font-size: 22px; margin-bottom: 2px; }
.bottom-nav a.active { color: #1E9FFF; }
.bottom-nav a:active { background: #f5f5f5; }
.bottom-body { padding-bottom: 65px; }

.goods-list { padding: 15px; }
.goods-card { background: #fff; border-radius: 8px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.goods-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.goods-card img { width: 100%; height: 180px; object-fit: cover; background: #f5f5f5; }
.goods-card .info { padding: 12px; }
.goods-card .name { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-card .price { color: #FF5722; font-size: 16px; font-weight: bold; }
.goods-card .stock { color: #999; font-size: 12px; float: right; margin-top: 3px; }

.detail-wrap { background: #fff; margin: 15px; border-radius: 8px; padding: 20px; }
.detail-wrap img { width: 100%; max-height: 350px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.detail-wrap .goods-name { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.detail-wrap .goods-price { color: #FF5722; font-size: 22px; font-weight: bold; margin-bottom: 15px; }
.detail-wrap .goods-desc { color: #666; line-height: 1.8; padding: 15px 0; border-top: 1px solid #eee; }

.order-card { background: #fff; margin-bottom: 10px; padding: 15px; border-radius: 5px; }
.order-card .order-no { color: #999; font-size: 12px; }
.order-card .order-info { display: flex; align-items: center; margin-top: 10px; }
.order-card .order-info img { width: 60px; height: 60px; border-radius: 5px; object-fit: cover; margin-right: 12px; }
.order-card .order-status { float: right; font-size: 13px; }

.points-log-item { background: #fff; padding: 12px 15px; border-bottom: 1px solid #f5f5f5; display: flex; justify-content: space-between; align-items: center; }
.points-log-item .log-info { flex: 1; }
.points-log-item .log-remark { font-size: 14px; color: #333; }
.points-log-item .log-time { font-size: 12px; color: #999; margin-top: 4px; }
.points-log-item .log-points { font-size: 16px; font-weight: bold; min-width: 80px; text-align: right; }
.points-log-item .log-points.add { color: #5FB878; }
.points-log-item .log-points.minus { color: #FF5722; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1E9FFF 0%, #009688 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); width: 360px; text-align: center; }
.login-box h2 { margin-bottom: 30px; color: #333; }
.login-box .wechat-btn { width: 100%; padding: 12px; background: #07C160; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.login-box .wechat-btn:hover { background: #06ad56; }

/* 管理端样式 */
.admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 200px; background: #2F4056; padding-top: 60px; overflow-y: auto; }
.admin-sidebar .logo { position: absolute; top: 0; left: 0; right: 0; height: 60px; line-height: 60px; text-align: center; color: #fff; font-size: 18px; font-weight: bold; background: #20222A; }
.admin-sidebar a { display: block; padding: 12px 20px; color: #ccc; text-decoration: none; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #009688; color: #fff; }
.admin-main { margin-left: 200px; padding: 20px; min-height: 100vh; }
.admin-header { background: #fff; padding: 10px 20px; margin: -20px -20px 20px -220px; margin-left: 0; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.stat-card { background: #fff; padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.stat-card .stat-num { font-size: 32px; font-weight: bold; color: #1E9FFF; }
.stat-card .stat-label { font-size: 14px; color: #999; margin-top: 5px; }

.table-toolbar { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.page-info { text-align: center; padding: 15px; color: #999; font-size: 13px; }
