/* CandyCake 主题全局变量与基础样式 */
:root {
  /* 旧蓝色 token：保留过渡期向后兼容（step2/configureproduct/viewcart 等暂未重构页面仍依赖） */
  --cc-blue: #2563eb;
  --cc-blue-600: #1d4ed8;
  --cc-blue-700: #1e40af;
  --cc-bg: #f7fbff;
  --cc-white: #ffffff;
  --cc-text: #0f172a;
  --cc-muted: #64748b;
  --cc-border: #e2e8f0;
  --cc-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* === 糖糕云设计规范 v1（绿色品牌色）===
     新页面/重构页面统一使用 --cc-brand-* token，禁止再写裸 #229670 等值。
     @see docs/candycake-design-system.md §1 */
  --cc-brand: #229670;
  --cc-brand-strong: #167a5b;
  --cc-brand-dark: #0f5f47;
  --cc-brand-soft: #ddf5ec;
  --cc-brand-bg: #f0fbf7;
  --cc-brand-border: #a7e3cf;
  --cc-brand-rgb: 34, 150, 112;

  --cc-success: #16a34a;
  --cc-warning: #f59e0b;
  --cc-danger:  #dc2626;
  --cc-accent:  #0ea5e9;

  --cc-surface: #ffffff;
  --cc-surface-muted: #f7fbf9;

  --cc-radius-sm: 10px;
  --cc-radius:    16px;
  --cc-radius-lg: 22px;
  --cc-card-radius: 16px;

  --cc-shadow-soft:  0 10px 28px rgba(15, 95, 71, .08);
  --cc-shadow-hover: 0 16px 36px rgba(15, 95, 71, .13);
}

/* 基础排版 */
body {
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
}

/* cart2 内部 .container 收缩到 .cart2-shell 作用域：
   防止覆盖 web 头/脚的 .cc-next-nav / .cc-next-footer > .container 宽度规则。 */
.cart2-shell .container {
  max-width: 1280px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  border-color: var(--cc-blue-600);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-outline,
.btn-outline-light {
  color: var(--cc-blue);
  border: 1px solid rgba(37,99,235,.4);
  background: transparent;
  border-radius: 10px;
  transition: transform .2s ease, background .2s ease;
}
.btn-outline:hover,
.btn-outline-light:hover {
  background: rgba(37,99,235,.06);
  transform: translateY(-1px);
}

/* 卡片 */
.card, .cc-card {
  background: var(--cc-white);
  border-radius: 14px;
  box-shadow: var(--cc-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cc-card { margin-bottom: 24px; }
.card:hover, .cc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 28px 32px;
}

/* 页脚 - 购物车专用覆盖样式 */
.cc-link { color: #64748b; text-decoration: none; }
.cc-link:hover { color: #2563eb; text-decoration: underline; }

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a-fade { animation: fadeInUp .6s ease; }
.a-delay-1 { animation-delay: .1s; }
.a-delay-2 { animation-delay: .2s; }
.a-delay-3 { animation-delay: .3s; }

/* Hero */
.hero {
  padding: 72px 0 48px;
  background: radial-gradient(1200px 400px at 50% -50%, rgba(37,99,235,.15), transparent) var(--cc-bg);
}

/* 表单、小组件微调，保持与设计规范一致 */
input::placeholder, textarea::placeholder { color: #cacdd4; }
.text-muted, .color-999 { color: var(--cc-muted) !important; }
.border { border-color: var(--cc-border) !important; }

/* 提升 pre 默认可读性字号 */
pre {
  font-size: 15px;
  line-height: 1.8;
}


