/* ===== 模板SaaS平台 前台样式（简约商务 · 深海蓝） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f6f7f9; color: #222; font-size: 14px; line-height: 1.6; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: #1A365D; text-decoration: none; }
a:hover { opacity: .85; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-size: 18px; font-weight: 700; color: #1A365D; }
.nav { display: flex; gap: 18px; flex: 1; }
.nav a { color: #555; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a.on { color: #1A365D; font-weight: 600; border-bottom-color: #1A365D; }
.user { display: flex; align-items: center; gap: 10px; }

/* 按钮 */
.btn { display: inline-block; padding: 8px 18px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; font-size: 14px; text-align: center; }
.btn-primary { background: #1A365D; color: #fff; }
.btn-primary:hover { background: #24497c; }
.btn-outline { background: #fff; color: #1A365D; border-color: #1A365D; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 4px 12px; font-size: 13px; }

/* 首屏 */
.hero { background: linear-gradient(135deg, #1A365D 0%, #24497c 100%); color: #fff; text-align: center; padding: 56px 16px 44px; border-radius: 0 0 10px 10px; }
.hero h1 { font-size: 30px; margin-bottom: 10px; }
.hero p { color: #c9d6ea; margin-bottom: 24px; }
.search { display: flex; justify-content: center; gap: 8px; }
.search input { width: 420px; max-width: 80%; padding: 10px 14px; border-radius: 4px; border: none; }

/* 筛选 */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.filter a { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid #e5e7eb; color: #555; }
.filter a.on { background: #1A365D; color: #fff; border-color: #1A365D; }

/* 模板卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 16px rgba(26,54,93,.12); }
.card-preview { background: #f2f4f7; padding: 14px; border-bottom: 1px solid #e5e7eb; }
.card-body { padding: 12px 14px; }
.card-body h3 { font-size: 15px; margin-bottom: 6px; }
.card-meta { display: flex; gap: 10px; color: #888; font-size: 12px; align-items: center; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef1f5; color: #666; font-size: 11px; }
.tag-official { background: #1A365D; color: #fff; }
.price-card { text-align: center; padding: 24px 16px; }
.price { font-size: 28px; color: #1A365D; font-weight: 700; margin: 12px 0; }

/* 详情页 */
.detail { display: flex; gap: 24px; margin: 24px 0; }
.detail-preview { flex: 1.2; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 22px; margin-bottom: 10px; }
.buy-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; margin-top: 18px; }
.buy-box p { margin-bottom: 12px; color: #555; }

/* 表单 */
.form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; max-width: 680px; margin: 24px auto; }
.form-card h2, .form-card h3 { margin-bottom: 14px; }
.frow { margin-bottom: 14px; }
.frow label { display: block; margin-bottom: 6px; color: #555; }
.frow input, .frow select, .frow textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; }
.frow textarea { font-family: inherit; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }

/* 表格 */
.table { width: 100%; background: #fff; border-collapse: collapse; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; margin: 16px 0; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.table th { background: #f8f9fb; color: #555; font-weight: 600; }
.table code { background: #f2f4f7; padding: 2px 6px; border-radius: 3px; }

/* 状态 */
.member-status { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 20px; margin: 18px 0; }
.ok { color: #1a7a3d; font-weight: 600; }
.no { color: #b3403a; font-weight: 600; }
.empty { background: #fff; border: 1px dashed #d1d5db; border-radius: 8px; padding: 48px; text-align: center; color: #888; }

/* 分页/标签页 */
.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.pager a { min-width: 34px; padding: 6px 10px; text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; }
.pager a.on { background: #1A365D; color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin: 18px 0; }
.tabs a { padding: 8px 16px; color: #555; border-bottom: 2px solid transparent; }
.tabs a.on { color: #1A365D; font-weight: 600; border-bottom-color: #1A365D; }
.muted { color: #888; font-size: 12px; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid #e5e7eb; margin-top: 40px; padding: 20px 0; text-align: center; color: #999; font-size: 12px; }

/* 移动端 */
@media (max-width: 768px) {
  .detail { flex-direction: column; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .nav { width: 100%; overflow-x: auto; }
}
