/* ==========================================================================
   base.css —— 公共基础样式（复刻自 链动小铺，品牌已替换为 卡密小铺）
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #165dff;
  --brand-strong: #0e42d2;
  --brand-light: #e8f3ff;

  /* 中性色（对齐 Arco Design 灰阶） */
  --gray-10: #1d2129;
  --gray-8: #4e5969;
  --gray-7: #4e5969;
  --gray-6: #86909c;
  --gray-5: #a9aeb8;
  --gray-4: #c9cdd4;
  --gray-3: #e5e6eb;
  --gray-2: #f2f3f5;
  --gray-1: #f7f8fa;

  /* 功能色 */
  --orange: #ff7d00;
  --orange-bg: #ffefdf;
  --blue-bg: #f0f7ff;
  --blue-fg: #2275ff;

  /* 线条 */
  --line: #f1f4fb;
  --line-soft: #f2f3f5;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;

  --shadow-card: 0 1px 2px rgba(29, 33, 41, 0.03);
  --shadow-panel: 0 6px 32px rgba(29, 33, 41, 0.06);
  --shadow-float: 0 8px 24px rgba(29, 33, 41, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* 与原站 shop 模板完全一致的字体栈 */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "noto sans", "Microsoft YaHei", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-10);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 单行省略 */
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 通用滚动条（贴近 Windows Chrome 观感） */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d7dae0;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #c2c6cd;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
