/* 线框原型样式 — 无视觉稿、无示例数据依赖 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 14px/1.5 system-ui, sans-serif;
  color: #111;
  background: #e8e8e8;
}

/* 固定画板：跳转后尺寸不变 */
.proto-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  box-sizing: border-box;
}

.proto-size-label {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* 用户端 H5：390 × 844 */
.proto-mobile {
  position: relative;
  width: 390px;
  height: 844px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.proto-mobile .app-header {
  flex-shrink: 0;
}

.proto-mobile .app-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.proto-mobile--sub .app-body {
  padding-bottom: 16px;
}

.proto-mobile--has-tab .app-body {
  padding-bottom: 48px;
}

.proto-mobile .tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 390px;
  max-width: none;
  transform: none;
  flex-shrink: 0;
  z-index: 2;
}

.proto-mobile .bottom-cta {
  flex-shrink: 0;
  border-top: 1px solid #ccc;
}

.proto-mobile--has-tab.proto-mobile--has-cta .app-body {
  padding-bottom: 48px;
}

/* 管理端：1440 × 900 */
.proto-admin {
  position: relative;
  width: 1440px;
  height: 900px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #999;
  overflow: hidden;
}

.proto-admin .frame-admin {
  height: 100%;
  min-height: 0;
}

.proto-admin .main {
  min-width: 0;
  overflow: hidden;
}

.proto-admin .content {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(900px - 49px);
}

/* 入口页 */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

body.page-body {
  background: #fff;
}

a {
  color: #111;
}

a:hover {
  text-decoration: underline;
}

/* 入口 */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead,
.meta {
  color: #666;
  font-size: 13px;
}

.card {
  border: 1px dashed #999;
  padding: 16px;
  margin: 16px 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

/* 按钮 / 链接块 */
.btn,
button.btn,
a.btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #333;
  background: #fff;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.btn--block {
  display: block;
  text-align: center;
  margin: 8px 0;
}

.btn--primary {
  background: #eee;
}

.bottom-cta {
  padding: 12px 16px;
  border-top: 1px solid #ccc;
  display: flex;
  gap: 8px;
}

.bottom-cta .btn {
  flex: 1;
  text-align: center;
}

/* 用户端（画板内） */
.app-header,
.proto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ccc;
}

.app-header h1,
.proto-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.back {
  text-decoration: none;
  color: inherit;
}

.app-body,
.proto-body,
main.app-body {
  padding: 16px;
}

.app-body--no-tab {
  padding-bottom: 16px;
}

.tab-bar {
  display: flex;
  border-top: 1px solid #ccc;
  background: #fff;
}

.tab-bar a {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  text-decoration: none;
  color: #666;
  border-right: 1px solid #eee;
}

.tab-bar a:last-child {
  border-right: none;
}

.tab-bar a.active {
  font-weight: 600;
  color: #111;
  background: #f5f5f5;
}

.block {
  border: 1px dashed #999;
  padding: 12px;
  margin: 12px 0;
}

.block h2,
.block h3,
.block h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.list-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-links li {
  border-bottom: 1px solid #eee;
}

.list-links a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}

.notice {
  border: 1px dashed #999;
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 13px;
  color: #444;
  background: #fafafa;
}

.form-group {
  margin: 12px 0;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #444;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #999;
  font: inherit;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.data-table th {
  background: #f5f5f5;
}

.actions a {
  margin-right: 8px;
}

/* 管理端（画板内） */
.frame-admin-wrap {
  margin: 0;
}

.frame-admin {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 200px;
  border-right: 1px solid #ccc;
  padding: 16px 0;
  flex-shrink: 0;
}

.sidebar .brand {
  padding: 0 16px 12px;
  font-weight: 600;
  font-size: 13px;
}

.sidebar nav a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
}

.sidebar nav a.active {
  background: #eee;
  font-weight: 600;
  color: #111;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ccc;
}

.content {
  padding: 16px;
  flex: 1;
}

.breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.panel {
  border: 1px dashed #999;
  padding: 16px;
  margin-bottom: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  border: 1px dashed #999;
  padding: 12px 16px;
  min-width: 100px;
}

.stat strong {
  display: block;
  font-size: 16px;
}

.stat span {
  font-size: 12px;
  color: #666;
}

.placeholder {
  color: #888;
  font-style: italic;
}
