/* =========================================================
   quickql-new | base.css
   基础层：设计变量、重置、排版、链接、按钮、间距工具、动画
   参数继承自原站源码，命名与组织为全新实现
   注意：原站 style.css 末尾粘贴的 Tailwind preflight 片段
   在浏览器中全局生效（覆盖同名基础规则），以下基础层
   按"原站浏览器最终生效效果"等价实现。
   ========================================================= */

:root {
  --qq-violet:        #8f1bdc;
  --qq-violet-2:      #a60dcf;
  --qq-violet-soft:   #835ef8;
  --qq-pink:          #f9218d;
  --qq-pink-deep:     #da1276;
  --qq-magenta:       #d852e8;
  --qq-ink:           #2b044d;
  --qq-ink-2:         #23182c;
  --qq-ink-3:         #36324a;
  --qq-nav-ink:       #450b78;
  --qq-body:          #707b8e;
  --qq-line-soft:     #f0e9ff;
  --qq-surface-soft:  #fbf9ff;
  --qq-sky:           #f4feff;
  --qq-blue:          #4a6cf7;
  --qq-green:         #4cd964;
  --qq-gold:          #ffc107;
  --qq-style2-purple: #5b39c9;
  --qq-style2-pink:   #f77ade;
  --qq-style2-cyan:   #53e1ff;
}

/* ---------- 重置（preflight 生效后的等价实现） ---------- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
::after, ::before { --tw-content: ''; }
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  line-height: inherit;
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  font-style: normal;
}
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre { margin: 0; }
menu, ol, ul { list-style: none; margin: 0; padding: 0; }
li { list-style: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito", sans-serif;
  color: var(--qq-ink);
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  text-transform: normal;
}
p {
  font-family: "Poppins", sans-serif;
  color: var(--qq-body);
  font-size: 16px;
  line-height: 30px;
  margin-bottom: 0px;
  font-weight: normal;
}
b, strong { font-weight: bolder; }
small { font-size: 80%; }
code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }

/* ---------- 链接 ---------- */
/* 原站生效顺序：style.css 基类先于 preflight，最终 a 颜色/装饰为 inherit */
a { color: inherit; text-decoration: inherit; }
a:focus, .qq-btn:focus { text-decoration: none; outline: none; }
a:focus, a:hover { text-decoration: none; }
a:hover { color: #fff; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }

/* ---------- 表单与交互基础 ---------- */
button:focus, input:focus, textarea:focus, select:focus { outline: none !important; }
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button, select { text-transform: none; }
button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
[role=button], button { cursor: pointer; }
:disabled { cursor: default; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
textarea { resize: vertical; }
[hidden] { display: none; }

/* ---------- 媒体 ---------- */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}
img, video { max-width: 100%; height: auto; }

/* ---------- 按钮 ---------- */
.qq-btn {
  background: var(--qq-pink);
  -moz-user-select: none;
  text-transform: capitalize;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 0;
  margin-bottom: 0;
  padding: 30px 44px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.4s linear;
  position: relative;
  z-index: 1;
  border: 0;
  overflow: hidden;
  margin: 0;
  vertical-align: middle;
}
.qq-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--qq-pink-deep);
  z-index: 1;
  border-radius: 5px;
  transition: transform 0.5s;
  transition-timing-function: cubic-bezier(0.5, 1.6, 0.4, 0.7);
  transform-origin: 0 0;
  transform: scaleX(0);
}
.qq-btn:hover::before {
  transform: scaleX(1);
  color: #fff !important;
  z-index: -1;
}
.qq-btn--pill { padding: 30px 43px; border-radius: 30px; }
.qq-btn--pill::before { border-radius: 30px; }

/* 盒式描边按钮（侧边栏提交钮） */
.qq-btn--boxed {
  background: #fff;
  color: var(--qq-violet) !important;
  display: inline-block;
  padding: 18px 44px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: 0;
  border: 1px solid var(--qq-violet);
  letter-spacing: 3px;
  text-align: center;
  color: var(--qq-violet);
  text-transform: uppercase;
  cursor: pointer;
}
.qq-btn--boxed:hover { background: var(--qq-violet); color: #fff !important; border: 1px solid var(--qq-violet); }
.qq-btn--boxed:focus { outline: none; }

/* Bootstrap .btn 元素在原站被主题按钮样式覆盖（如 FAQ 手风琴按钮） */
.btn {
  background: var(--qq-pink);
  -moz-user-select: none;
  text-transform: capitalize;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 0;
  margin-bottom: 0;
  padding: 30px 44px;
  border-radius: 5px;
  transition: color 0.4s linear;
  position: relative;
  z-index: 1;
  border: 0;
  overflow: hidden;
  margin: 0;
  vertical-align: middle;
}
.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--qq-pink-deep);
  z-index: 1;
  border-radius: 5px;
  transition: transform 0.5s;
  transition-timing-function: cubic-bezier(0.5, 1.6, 0.4, 0.7);
  transform-origin: 0 0;
  transform: scaleX(0);
}
.btn:hover::before {
  transform: scaleX(1);
  color: #fff !important;
  z-index: -1;
}

/* ---------- 动画 ---------- */
@keyframes qq-pulse {
  to { box-shadow: 0 0 0 45px rgba(187, 22, 206, 0); }
}
@keyframes qq-heartbeat {
  to { transform: scale(1.7); }
}

/* ---------- 间距工具（原站自定义间距类的全新等价实现） ---------- */
.qq-mb-30  { margin-bottom: 30px; }
.qq-mb-40  { margin-bottom: 40px; }
.qq-mb-50  { margin-bottom: 50px; }
.qq-mb-60  { margin-bottom: 60px; }
.qq-mb-70  { margin-bottom: 70px; }
.qq-mb-80  { margin-bottom: 80px; }
.qq-mb-100 { margin-bottom: 100px; }
.qq-mt-30  { margin-top: 30px; }
.qq-mt-50  { margin-top: 50px; }
.qq-pt-50  { padding-top: 50px; }
.qq-pt-80  { padding-top: 80px; }
.qq-pt-120 { padding-top: 120px; margin-bottom: 60px; }
.qq-pt-250 { padding-top: 250px; }
.qq-pt-100 { padding-top: 100px; }
.qq-pb-100 { padding-bottom: 100px; }
.qq-pb-120 { padding-bottom: 120px; }
.qq-pt-5   { padding-top: 5px; }

/* ---------- 板块内距（原 section-padding* 的全新实现） ---------- */
.qq-block--services { padding-top: 300px; padding-bottom: 150px; }
.qq-block--gallery { padding-top: 0px; padding-bottom: 200px; }
.qq-block--features { padding-top: 200px; padding-bottom: 110px; }
.qq-block--listing { padding-top: 0; padding-bottom: 120px; }
.qq-block--reviews { padding-top: 100px; padding-bottom: 0px; }
.qq-block--inner  { padding-top: 450px; }
.qq-block--pagehead { padding-top: 270px; }

/* ---------- 主题背景 ---------- */
.qq-bg-sky   { background: var(--qq-sky); }
.qq-bg-light { background: #f8f9fa; }
