/* app/static/wap.css */
/* 泡椒池塘 - 复古 WAP 风格样式（模拟 2012 年手机上网） */

html, body {
  padding: 0;
  margin: 0;
  background: #f5f5f5;
  color: #111;
  font-family: SimSun, "宋体", serif;
  font-size: 14px;
  line-height: 1.5;
}

html {
  -webkit-text-size-adjust: 100%; /* iOS Safari：禁止自动放大字体导致布局抖动 */
}

a:link {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover, a:active {
  color: #000099;
}

a {
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* iOS 点击链接不闪大块底色 */
}

/* iOS Safari 有时会给可点击元素套用默认灰底/圆角外观，这里做最小清理 */
a, a:link, a:visited, a:hover, a:active,
input[type="submit"], button {
  -webkit-appearance: none;
  appearance: none;
}

a:active, a:focus {
  background: transparent;
  outline: none;
}

.wrap {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 8px;
}

.panel {
  background: #ffffff;
  border: 1px solid #666;
  padding: 6px;
  margin-bottom: 6px;
}

.header h1 {
  font-size: 16px;
  margin: 0;
  padding: 0;
}

.subline {
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.breadcrumb {
  font-size: 12px;
  color: #333;
}

.notice {
  background: #ffffcc;
  border: 1px solid #999;
  padding: 6px;
  margin-bottom: 6px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #666;
  background: #fff;
}

.list li {
  padding: 6px;
  border-top: 1px dotted #aaa;
}

.list li:first-child {
  border-top: none;
}

.meta {
  color: #666;
  font-size: 12px;
  -webkit-text-size-adjust: 100%;
}

/* 朴素表单（老式 WAP 网站的味道） */
label {
  display: block;
  margin: 6px 0 2px;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #666;
  padding: 4px;
  border-radius: 0;
  background: #fff;
  font-family: SimSun, "宋体", serif;
  font-size: 16px;
  line-height: 1.4;
}

textarea {
  min-height: 80px;
}

button,
input[type="submit"] {
  border: 1px solid #666;
  background: #eee;
  padding: 4px 8px;
  border-radius: 0;
  font-family: SimSun, "宋体", serif;
  font-size: 16px;
}

.footer {
  color: #666;
  font-size: 12px;
}

/* 账本（存折风） */
table.ledger {
  border-collapse: collapse;
  background: #fff;
}

table.ledger th {
  background: #eee;
  font-weight: bold;
}

table.ledger th,
table.ledger td {
  border: 1px solid #666;
}

.pos {
  color: #008000; /* 绿色 */
  font-weight: bold;
}

.neg {
  color: #cc0000; /* 红色 */
  font-weight: bold;
}

/* 引用块：[quote]...[/quote] */
.quote {
  background: #f0f0f0;
  border-left: 3px solid #999;
  padding: 6px;
  margin-top: 6px;
  color: #333;
}

/* 搜索高亮 */
mark {
  background: #ffeb3b;
  color: #111;
  padding: 0 2px;
}

/* 纸牌（德州扑克）：实体牌小方框 */
.card {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 1px 3px;
  margin-right: 2px;
  border: 1px solid #333;
  background: #fff;
  color: #111;
  font-family: SimSun, "宋体", serif;
  font-size: 14px;
  line-height: 1.2;
}

.card-red {
  color: #c00;
}
