/* ══════════════════════════════════════════
   衣舍 · 设计基座（前台 / 后台共用）
   ══════════════════════════════════════════ */

:root {
  /* 底色与墨色 */
  --bg:        #fbf9f7;
  --surface:   #ffffff;
  --surface-2: #f5f0eb;
  --ink:       #1d1a18;
  --ink-2:     #4a423d;
  --muted:     #8b817a;
  --line:      #e9e2db;
  --line-2:    #f0eae4;

  /* 品牌色 */
  --accent:      #b1543d;   /* 陶土红 —— 标题点缀、价格 */
  --accent-soft: #f7e9e4;
  --wechat:      #07c160;   /* 微信绿 */
  --wechat-dark: #06a552;
  --wego:        #2b2b2b;   /* 微购相册卡片 */

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(29, 26, 24, .05), 0 4px 12px rgba(29, 26, 24, .04);
  --sh-2: 0 2px 6px rgba(29, 26, 24, .07), 0 12px 32px rgba(29, 26, 24, .08);
  --sh-3: 0 20px 60px rgba(29, 26, 24, .16);

  /* 圆角 */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-pill: 999px;

  /* 版心 */
  --wrap: 1080px;
  --pad: 20px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
}

@media (min-width: 720px) {
  :root { --pad: 32px; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--accent); }

/* ─── 通用容器 ─── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ─── 按钮 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.975); }

.btn-wechat {
  background: linear-gradient(180deg, #16cd6f, var(--wechat-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(7, 193, 96, .28);
}
.btn-wechat:hover { box-shadow: 0 8px 24px rgba(7, 193, 96, .36); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ─── 徽标 / 标签 ─── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ─── 卡片 ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
}

/* ─── 表单 ─── */
.field { display: block; margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 11px 13px;
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(177, 84, 61, .1);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.65; }

/* ─── 工具类 ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
