/* ============================================
   售卡商城管理系统 - 前台商城样式（Layui 响应式）
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f6f7f8; color: #333; }

/* 顶部导航 */
.mall-header { background: #001529; padding: 0 4%; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.mall-header .logo { color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; }
.mall-header .logo b { color: #009688; }
.mall-header nav a { color: #b3c0d1; text-decoration: none; margin-left: 22px; font-size: 14px; }
.mall-header nav a:hover { color: #fff; }

/* 横幅 */
.mall-banner { background: linear-gradient(120deg, #003d40, #009688); color: #fff; padding: 40px 4%; text-align: center; }
.mall-banner h1 { font-size: 26px; margin-bottom: 10px; }
.mall-banner p { opacity: .85; font-size: 14px; }
.mall-banner .mall-notice { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.15); padding: 6px 18px; border-radius: 20px; font-size: 13px; }

.container { max-width: 1080px; margin: 24px auto; padding: 0 4%; }

/* 软件信息区 */
.soft-card { background: #fff; border-radius: 8px; padding: 24px; display: flex; gap: 20px; align-items: center; box-shadow: 0 1px 4px rgba(0,21,41,.08); margin-bottom: 20px; flex-wrap: wrap; }
.soft-card .logo-img { width: 80px; height: 80px; border-radius: 12px; background: #e8f7f2; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #009688; flex-shrink: 0; }
.soft-card .info { flex: 1; min-width: 220px; }
.soft-card .info h2 { font-size: 20px; }
.soft-card .info .desc { color: #888; font-size: 13px; margin-top: 8px; line-height: 1.7; }
.soft-card .info .ver { display: inline-block; margin-top: 10px; background: #e6f2ff; color: #1E9FFF; font-size: 12px; padding: 2px 10px; border-radius: 12px; }

/* 套餐卡片 */
.section-title { font-size: 17px; font-weight: 600; margin: 26px 0 14px; padding-left: 12px; border-left: 4px solid #009688; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pack-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,21,41,.08); padding: 22px; text-align: center; transition: all .2s; border: 2px solid transparent; }
.pack-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,150,136,.15); }
.pack-card.hot { border-color: #009688; }
.pack-card .p-name { font-size: 16px; font-weight: 600; }
.pack-card .p-price { color: #f5222d; font-size: 26px; font-weight: 700; margin: 12px 0 4px; }
.pack-card .p-price small { font-size: 13px; color: #999; font-weight: normal; }
.pack-card .p-days { color: #999; font-size: 13px; }
.pack-card .p-benefit { color: #666; font-size: 12px; margin: 12px 0 16px; min-height: 34px; line-height: 1.7; }
.pack-card .layui-btn { width: 100%; }

/* 兑换区 */
.redeem-box { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,21,41,.08); margin-top: 20px; }
.redeem-box .layui-form-item { margin-bottom: 14px; }
.redeem-hint { font-size: 12px; color: #999; margin-top: 8px; }

/* 教程 & 须知 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-box { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,21,41,.08); }
.info-box h3 { font-size: 15px; margin-bottom: 10px; color: #333; }
.info-box ol, .info-box ul { padding-left: 20px; color: #666; font-size: 13px; line-height: 2; }

/* 页脚 */
.mall-footer { background: #001529; color: #8b98a5; text-align: center; padding: 22px 4%; font-size: 13px; margin-top: 40px; line-height: 2; }

/* 前台登录/注册/会员中心 */
.auth-wrap { min-height: 100vh; background: linear-gradient(135deg, #001529, #009688); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { width: 400px; background: #fff; border-radius: 10px; padding: 36px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.auth-box h1 { font-size: 20px; text-align: center; color: #001529; }
.auth-box .sub { text-align: center; color: #999; font-size: 13px; margin: 6px 0 22px; }
.tabs { display: flex; margin-bottom: 18px; border-bottom: 1px solid #eee; }
.tabs a { flex: 1; text-align: center; padding: 10px 0; color: #666; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { color: #009688; border-bottom-color: #009688; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.auth-foot a { color: #009688; text-decoration: none; }

/* 会员中心 */
.mc-top { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,21,41,.08); display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.mc-top .avatar { width: 60px; height: 60px; border-radius: 50%; background: #009688; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mc-top .u-name { font-size: 18px; font-weight: 600; }
.mc-top .u-sub { color: #999; font-size: 13px; margin-top: 4px; }

/* 空状态 */
.empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .mall-header nav a { margin-left: 12px; font-size: 13px; }
  .mall-banner h1 { font-size: 20px; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .soft-card .logo-img { width: 60px; height: 60px; font-size: 26px; }
}
@media (max-width: 480px) {
  .pack-grid { grid-template-columns: 1fr; }
  .mall-header .logo { font-size: 15px; }
}
