/* 极氪品牌基础令牌 —— 全站共用 */
:root {
  --zk-orange: #FF5841;
  --zk-red: #EA512A;
  --zk-orange-deep: #F76400;
  --zk-moon: #FFFBF3;
  --zk-paper: #FFF4E2;
  --zk-chestnut-light: #D9C5B7;
  --zk-chestnut-mid: #B9A6A0;
  --zk-chestnut: #69514B;
  --zk-white: #FFFFFF;
  --zk-gray: #DDDDDD;
  --zk-gray-mid: #9DA2A5;
  --zk-charcoal: #232323;
  --zk-black: #000000;
  --zk-violet: #31041B;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(105, 81, 75, .07);
  --shadow-md: 0 10px 30px rgba(105, 81, 75, .12);
  --shadow-lg: 0 24px 60px rgba(49, 4, 27, .18);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性要能压过组件的 display 声明 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--zk-charcoal);
  -webkit-font-smoothing: antialiased;
}

body { background: var(--zk-moon); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--zk-charcoal); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.zk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: var(--zk-violet);
  color: #fff;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.zk-btn:active { transform: scale(.97); }
.zk-btn[disabled] { opacity: .45; cursor: not-allowed; }
.zk-btn.ghost { background: transparent; color: var(--zk-chestnut); border: 1px solid var(--zk-gray); }

.zk-card {
  background: var(--zk-white);
  border: 1px solid rgba(217, 197, 183, .5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.zk-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: 78vw;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(35, 35, 35, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 999;
  backdrop-filter: blur(6px);
}
.zk-toast.show { opacity: 1; transform: translate(-50%, 0); }

.zk-spin {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zk-spin .7s linear infinite;
}
@keyframes zk-spin { to { transform: rotate(360deg); } }

/* 通用弹层 */
.zk-modal {
  position: fixed; inset: 0; z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zk-modal.show { display: flex; }
.zk-modal__bg {
  position: absolute; inset: 0;
  background: rgba(22, 4, 16, .62);
  backdrop-filter: blur(5px);
  animation: zk-fade .24s ease;
}
@keyframes zk-fade { from { opacity: 0; } }

.zk-sheet {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 84vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--zk-moon);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: zk-pop .32s cubic-bezier(.22, 1.2, .36, 1);
}
@keyframes zk-pop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}
