/* 舟山妙音 · 网页端共用样式（与小程序方案 A「朱砂金莲」同一套亮色色板） */
:root {
  --paper: #F8F2E7; --paper2: #F0E6D4; --card: #FFFDF8; --line: #EADFCC; --line2: #F2EADB;
  --ink: #2A221B; --ink2: #75665A; --ink3: #A89A8B;
  --red: #BD432D; --red2: #D85E42; --red-soft: #FBE5DC;
  --gold: #C49245; --gold2: #E6C584; --gold-soft: #F8ECCF;
  --jade: #3E8676; --jade2: #66AB9A; --jade-soft: #E2F2EC;
  --blue: #3F6FB0; --blue-soft: #E4EDF8;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --r: 14px; --shadow: 0 10px 30px -18px rgba(120, 70, 30, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink3); }
.ink2 { color: var(--ink2); }
.red { color: var(--red); }
.jade { color: var(--jade); }
.gold { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }

/* 印章 */
.seal { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #FFF3E6; font-family: var(--serif); font-weight: 900; border-radius: 8px; line-height: 1.05; text-align: center; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(180deg, #D3593F, #B23D28); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold2); background: #fff; }
.btn.gold { background: linear-gradient(180deg, #E0B25F, #C08A3A); }
.btn.jade { background: linear-gradient(180deg, #4E9C8A, #3A7D6E); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-size: inherit; }
.link + .link { margin-left: 12px; }
.link.gray { color: var(--ink2); }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line2); font-weight: 700; }
.card-h .t { font-family: var(--serif); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card-h .t::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--red); }

/* 标签 */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; background: var(--paper2); color: var(--ink2); white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.gold { background: var(--gold-soft); color: #9A6B22; }
.chip.jade { background: var(--jade-soft); color: var(--jade); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.gray { background: #EFEAE2; color: var(--ink3); }
.chip + .chip { margin-left: 4px; }

/* 表单 */
.field { display: block; }
.field > .label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.field > .label .req { color: var(--red); margin-left: 2px; }
.field > .hint { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 146, 69, .15); }
.input.sm, .select.sm { height: 32px; font-size: 13px; border-radius: 8px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #DDD3C4; border-radius: 12px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--jade); }
.switch input:checked + span::before { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* 图片上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.uploader .thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper) center / contain no-repeat; }
.uploader .thumb .x { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 12px; line-height: 20px; padding: 0; }
.uploader .add { width: 84px; height: 84px; border-radius: 10px; border: 1px dashed var(--gold2); background: var(--gold-soft); color: #9A6B22; display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; font-size: 12px; }
.uploader .add b { font-size: 24px; line-height: 1; font-weight: 300; }

/* 列表行编辑 */
.rows .r { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.rows .r > * { flex: 1; min-width: 0; }
.rows .r > .del { flex: none; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; color: var(--ink2); font-size: 13px; background: #FBF6EC; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.table tr:hover td { background: #FFFAF1; }
.table .empty { text-align: center; color: var(--ink3); padding: 40px 0; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 16px; color: var(--ink2); font-size: 13px; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(42, 34, 27, .42); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 18px; width: 560px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px -30px rgba(60, 30, 10, .5); animation: pop .18s; }
.modal.wide { width: 860px; }
.modal-h { padding: 18px 22px 12px; font-family: var(--serif); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.modal-h .close { border: 0; background: none; font-size: 22px; color: var(--ink3); cursor: pointer; line-height: 1; }
.modal-b { padding: 6px 22px 18px; overflow-y: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line2); display: flex; justify-content: flex-end; gap: 10px; }
.drawer-mask { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: var(--paper); width: 720px; max-width: 100%; height: 100%; overflow-y: auto; animation: slide .2s; box-shadow: -20px 0 60px -30px rgba(60, 30, 10, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: rgba(42, 34, 27, .92); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 99; font-size: 14px; animation: fade .2s; max-width: 90vw; }
.toast.ok { background: rgba(62, 134, 118, .95); }

/* 描述列表 */
.desc { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.desc dt { color: var(--ink3); }
.desc dd { margin: 0; word-break: break-all; }

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline .it { position: relative; padding-bottom: 14px; }
.timeline .it::before { content: ''; position: absolute; left: -17px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--gold); }
.timeline .it.red::before { border-color: var(--red); }
.timeline .tm { font-size: 12px; color: var(--ink3); }

.empty-box { text-align: center; color: var(--ink3); padding: 36px 0; }
.empty-box .ic { font-family: var(--serif); font-size: 30px; color: var(--gold2); }

.lotus-bg { background-image: radial-gradient(circle at 92% -10%, rgba(230, 197, 132, .35), transparent 40%), radial-gradient(circle at -10% 110%, rgba(189, 67, 45, .08), transparent 40%); }

/* ICP 备案号（管局要求网站底部悬挂并链接工信部） */
footer.icp { text-align: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.5; }
footer.icp a { color: #9a8f86; text-decoration: none; }
footer.icp a:hover { text-decoration: underline; }
