/* 基础样式 · 移动优先 · 兼容 Android 5 / iOS 10 以上绝大多数手机浏览器 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.6; color: #1F1B16; background: #EDE7DC;
}
img { display: block; max-width: 100%; border: 0; }
a { color: #C8102E; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul, ol, p, h1, h2, h3, h4 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.hide { display: none !important; }
.clearfix:after { content: ""; display: block; clear: both; }

/* ---------- 通用色板：湘味红 × 暗金 × 墨 ---------- */
.c-red { color: #C8102E; }
.c-gold { color: #A98416; }
.c-muted { color: #8B8175; }
.price { color: #C8102E; font-weight: 700; }
.price small { font-size: 12px; font-weight: 400; margin-right: 1px; }

/* ---------- 按钮 ---------- */
.btn {
  display: block; width: 100%; min-height: 46px; line-height: 46px;
  text-align: center; border-radius: 10px; font-size: 16px; font-weight: 600;
  background: #C8102E; color: #fff; letter-spacing: 1px;
}
.btn:active { background: #A80D26; }
.btn.ghost { background: #fff; color: #C8102E; border: 1px solid #E4C7CC; }
.btn.gray { background: #F1EDE5; color: #6B6157; }
.btn.gold { background: #B08D22; color: #fff; }
.btn.confirm { background: #1B7A3D; }
.btn.confirm:active { background: #14612F; }
.btn.small { display: inline-block; width: auto; min-height: 34px; line-height: 34px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #6B6157; margin-bottom: 6px; font-weight: 600; }
.field .ipt, .field textarea, .field select {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  background: #fff; border: 1px solid #E2DACD; border-radius: 9px;
  font-size: 15px; outline: none; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.field .ipt:focus, .field textarea:focus, .field select:focus { border-color: #C8102E; }
.field .tip { font-size: 12px; color: #9A8F82; margin-top: 5px; line-height: 1.5; }
.field .err { font-size: 12px; color: #C8102E; margin-top: 5px; }

/* ---------- 卡片 / 区块 ---------- */
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.sec-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.sec-title .bar { display: inline-block; width: 4px; height: 16px; background: #C8102E; border-radius: 2px; vertical-align: -2px; margin-right: 8px; }
.divider { height: 1px; background: #EFE9DF; margin: 12px 0; }

/* ---------- 提示 ---------- */
#toast {
  position: fixed; left: 50%; top: 42%; z-index: 9999;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  max-width: 78%; padding: 11px 18px; border-radius: 9px;
  background: rgba(31, 27, 22, .92); color: #fff; font-size: 14px;
  line-height: 1.5; text-align: center; display: none;
}
.empty { text-align: center; padding: 46px 20px; color: #9A8F82; }
.empty .ico { font-size: 40px; display: block; margin-bottom: 10px; opacity: .55; }
.empty p { font-size: 14px; margin-bottom: 14px; }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 500;
  background: rgba(20, 16, 12, .5); display: none;
}
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 501;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  width: 88%; max-width: 420px; max-height: 82%; overflow: auto;
  background: #fff; border-radius: 14px; padding: 20px; display: none;
}
.modal h3 { font-size: 17px; margin-bottom: 12px; }
.modal .close { position: absolute; right: 14px; top: 12px; font-size: 22px; color: #9A8F82; line-height: 1; }

/* ---------- 加载 ---------- */
#loading { text-align: center; padding: 60px 20px; color: #9A8F82; font-size: 14px; }
#loading .spin {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 3px solid #E6DDCE; border-top-color: #C8102E; border-radius: 50%;
  -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite;
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用小组件 ---------- */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; line-height: 18px; background: #F6EFE3; color: #8C6B1F; margin-right: 6px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11px; line-height: 18px; background: #FBE9EC; color: #C8102E; }
.badge.ok { background: #E7F5EC; color: #1E7A45; }
.badge.gray { background: #F0ECE4; color: #8B8175; }
.row { display: block; overflow: hidden; }
.row .l { float: left; }
.row .r { float: right; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
