/* CandyCake 主题全局变量与基础样式 */
:root {
  --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);
}

/* 基础排版 */
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;
}

.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-footer { padding: 24px 0; }
.cc-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  backdrop-filter: saturate(180%) blur(14px);
  display: flex; align-items:center; justify-content:space-between;
}
.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;
}


