/* ==========================================================================
   ji 官网主题 · 设计令牌 / 基础排版 / 按钮
   —— 主色沿用吉云蓝（#2563eb），以「浅蓝渐变 + 玻璃拟态 + 大圆角」为视觉语言
   ========================================================================== */
:root {
  /* 品牌色阶 */
  --brand-50: #eef5ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;

  /* 中性色 */
  --ink-900: #0b1226;
  --ink-700: #1a2342;
  --ink-500: #3a4b7a;
  --ink-300: #8a94ad;
  --line: #e6ecf8;
  --line-strong: #d5e0f6;

  /* 点缀 */
  --brand-indigo: #6366f1;
  --brand-cyan: #22d3ee;
  --accent-grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #06b6d4 100%);
  --brand-grad: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);

  /* 阴影 */
  --card-shadow: 0 10px 30px rgba(37, 99, 235, .10), 0 2px 8px rgba(16, 24, 40, .05);
  --card-shadow-hover: 0 18px 46px rgba(37, 99, 235, .18), 0 4px 12px rgba(16, 24, 40, .07);
  --nav-shadow: 0 6px 24px rgba(37, 99, 235, .10);

  /* 圆角 */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* 版心 */
  --maxw: 1200px;
}

/* ---------------- 标题 ---------------- */
h1 { font-size: 44px; line-height: 1.25; }
h2 { font-size: 32px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.35; }
h4 { font-size: 20px; line-height: 1.4; }
h5 { font-size: 17px; line-height: 1.5; }

@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
}

/* ---------------- 链接 ---------------- */
a { color: inherit; }
a:hover { color: var(--brand-600); }

.link-hover { cursor: pointer; transition: color .18s ease; }
.link-hover:hover { color: var(--brand-600) !important; }

.title-desc {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
}

.muted { color: var(--ink-500); font-size: 15px; line-height: 1.7; }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar-thumb {
  background-color: rgba(37, 99, 235, .22);
  border: 1px solid #fff;
  border-radius: 10px;
}
::-webkit-scrollbar { width: 6px; height: 6px; }

.animated { animation-duration: .5s !important; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .34);
}

.btn-line {
  color: var(--brand-600);
  background: #fff;
  border-color: var(--line-strong);
}
.btn-line:hover {
  color: var(--brand-600);
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .24); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* 兼容官方 default 主题的按钮命名 */
.btn2 { padding: 0 32px; }
.btn-normal { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.btn-normal:hover { color: #fff; background: var(--brand-500); }
.btn-normal-light { color: var(--ink-700); background: #fff; border-color: var(--line-strong); }
.btn-normal-light:hover { color: var(--brand-600); border-color: var(--brand-500); }
.btn-dark { color: #fff; background: var(--ink-900); }
.btn-orgin { color: #fff; background: var(--brand-600); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 表单 ---------------- */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-700);
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { height: auto; padding: 12px 14px; resize: none; line-height: 1.7; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input::placeholder,
textarea::placeholder { color: var(--ink-300); }
