/* qsmreid.com — MT5 介绍页（流体布局 + 渐变特效） */

:root {
  --lp-max: 76rem;
  --lp-text: #0f172a;
  --lp-body: #475569;
  --lp-muted: #64748b;
  --lp-blue: #2563eb;
  --lp-cyan: #06b6d4;
  --lp-violet: #7c3aed;
  --lp-footer: #050a14;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.page-landing {
  margin: 0;
  background: #f0f6ff;
  color: var(--lp-body);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-landing a { color: var(--lp-blue); text-decoration: none; }
.page-landing a:hover { color: #1d4ed8; }

.lp-wrap {
  width: min(100% - 2.5rem, var(--lp-max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* 全局背景光晕 */
.lp-glow-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lp-glow-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: lp-drift 16s ease-in-out infinite alternate;
}

.lp-glow-bg span:nth-child(1) {
  width: 42vw; height: 42vw; top: -8%; left: -6%;
  background: rgba(37, 99, 235, 0.28);
}

.lp-glow-bg span:nth-child(2) {
  width: 36vw; height: 36vw; top: 38%; right: -10%;
  background: rgba(6, 182, 212, 0.22);
  animation-delay: -5s;
}

.lp-glow-bg span:nth-child(3) {
  width: 30vw; height: 30vw; bottom: -6%; left: 28%;
  background: rgba(124, 58, 237, 0.18);
  animation-delay: -9s;
}

@keyframes lp-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -4%) scale(1.08); }
}

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.6rem 0;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--lp-text);
  text-decoration: none !important;
}

.lp-brand__logo { width: 36px; height: 36px; border-radius: 10px; }

.lp-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.lp-brand__title { font-size: 0.98rem; font-weight: 800; }
.lp-brand__sub { font-size: 0.76rem; color: var(--lp-muted); }

.lp-nav { display: none; gap: 0.1rem; font-size: 0.88rem; font-weight: 500; }

.lp-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--lp-body);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.lp-nav a:hover {
  color: var(--lp-blue);
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.lp-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.lp-btn:hover { transform: translateY(-2px); }

.lp-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 55%, #7c3aed 100%);
  background-size: 200% auto;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
  animation: lp-btn-shine 5s linear infinite;
}

.lp-btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.45);
}

@keyframes lp-btn-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.lp-btn--glass {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.lp-btn--glass:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lp-btn--text {
  color: #bfdbfe !important;
  background: transparent;
  padding-inline: 0.25rem;
  box-shadow: none;
}

.lp-btn--text:hover { transform: none; text-decoration: underline !important; }

.lp-menu-btn {
  display: inline-flex;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  border: none; border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--lp-text);
  cursor: pointer;
}

.lp-mobile-nav { display: none; padding: 0.5rem 0 1rem; }
.lp-mobile-nav.is-open { display: grid; gap: 0.2rem; }
.lp-mobile-nav a {
  padding: 0.55rem 0.5rem;
  color: var(--lp-body);
  text-decoration: none;
  border-radius: 8px;
}
.lp-mobile-nav a:hover { background: rgba(37, 99, 235, 0.08); }

@media (min-width: 1024px) {
  .lp-nav { display: flex; }
  .lp-menu-btn { display: none; }
}

/* Hero */
.lp-hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  color: #e8f2ff;
  overflow: hidden;
}

.lp-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #07111f 0%, #0c1e3d 38%, #123d6b 68%, #1e3a8a 100%);
}

.lp-hero__mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(37, 99, 235, 0.55), transparent 68%),
    radial-gradient(ellipse 55% 45% at 82% 18%, rgba(6, 182, 212, 0.4), transparent 65%),
    radial-gradient(ellipse 50% 40% at 55% 88%, rgba(124, 58, 237, 0.32), transparent 70%);
  animation: lp-aurora 12s ease-in-out infinite alternate;
}

.lp-hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 15%, transparent 100%);
}

@keyframes lp-aurora {
  0% { transform: scale(1) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.05) translate(2%, -2%); opacity: 0.92; }
}

.lp-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
}

.lp-eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.25);
}

.lp-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.lp-title-glow {
  background: linear-gradient(120deg, #fff 0%, #bae6fd 35%, #67e8f9 65%, #c4b5fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-title-flow 7s linear infinite;
}

@keyframes lp-title-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.lp-hero__lead {
  margin: 0 0 1.2rem;
  max-width: 36rem;
  font-size: 1.06rem;
  color: #cbd5e1;
}

.lp-note {
  margin: 0 0 1.8rem;
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 34rem;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
}

.lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: #94a3b8;
}

.lp-tags li::before { content: "· "; color: #475569; }
.lp-tags li:first-child::before { content: none; }

.lp-visual-glow {
  margin: 0;
  position: relative;
}

.lp-visual-glow::before {
  content: "";
  position: absolute;
  inset: 8% 5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 68%);
  filter: blur(28px);
  animation: lp-pulse-glow 4s ease-in-out infinite;
}

@keyframes lp-pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.lp-visual-glow picture,
.lp-visual-glow img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

/* Sections */
.lp-section {
  position: relative;
  padding: 5.5rem 0;
}

.lp-section h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.lp-section__sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--lp-muted);
  max-width: 40rem;
}

.lp-section__sub--center { margin-inline: auto; text-align: center; }

.lp-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .lp-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.lp-prose p { margin: 0 0 1.1rem; }
.lp-prose p:last-child { margin-bottom: 0; }

.lp-highlight {
  margin-top: 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #2563eb, #06b6d4, #7c3aed) 1;
  font-size: 1rem;
  color: var(--lp-text);
}

/* 功能：两行流式文字，无卡片 */
.lp-flow-block {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

.lp-flow-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--lp-text);
}

.lp-flow-line li {
  position: relative;
  background: linear-gradient(135deg, #1e40af, #2563eb, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-flow-line li + li::before {
  content: "｜";
  position: absolute;
  left: -0.95rem;
  color: #cbd5e1;
  font-weight: 400;
  background: none;
  -webkit-background-clip: unset;
}

.lp-flow-desc {
  display: grid;
  gap: 0.85rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.92rem;
  color: var(--lp-muted);
}

@media (min-width: 720px) {
  .lp-flow-desc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lp-flow-desc li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--lp-text);
  font-size: 0.98rem;
}

/* 三端：大色块，非卡片 */
.lp-deck {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .lp-deck { grid-template-columns: repeat(3, 1fr); gap: 0; }
}

.lp-deck__item {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.lp-deck__item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}

.lp-deck__item:hover {
  transform: translateY(-6px) scale(1.01);
  filter: brightness(1.05);
  z-index: 2;
}

.lp-deck__item--desk {
  background: linear-gradient(155deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  border-radius: 24px 24px 24px 24px;
}

.lp-deck__item--mobile {
  background: linear-gradient(155deg, #0e7490 0%, #0891b2 45%, #06b6d4 100%);
}

.lp-deck__item--web {
  background: linear-gradient(155deg, #5b21b6 0%, #7c3aed 45%, #8b5cf6 100%);
  border-radius: 24px 24px 24px 24px;
}

@media (min-width: 900px) {
  .lp-deck__item--desk { border-radius: 24px 0 0 24px; }
  .lp-deck__item--web { border-radius: 0 24px 24px 0; }
}

.lp-deck__item h3 {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.lp-deck__item p {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.lp-deck__tags {
  position: relative;
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.lp-deck__item .lp-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: none;
}

.lp-deck__item .lp-btn:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* 官方区 */
.lp-official-zone {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(124, 58, 237, 0.1) 100%);
}

.lp-official-zone p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.lp-link-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.lp-link-flow a {
  color: var(--lp-body);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lp-link-flow a:hover {
  color: var(--lp-blue);
  border-bottom-color: rgba(37, 99, 235, 0.4);
  text-decoration: none;
}

.lp-hint { font-size: 0.84rem; color: var(--lp-muted); }

/* 教程 */
.lp-tutorial-zone {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .lp-tutorial-zone { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

.lp-tutorial-hero {
  padding: 2.25rem 0;
}

.lp-tutorial-meta {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--lp-muted);
}

.lp-tutorial-aside p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--lp-body);
}

.lp-tutorial-aside .lp-more-links {
  margin-bottom: 0.75rem;
}

.lp-tutorial-aside .lp-btn--text {
  color: var(--lp-blue) !important;
  padding-left: 0;
}

.lp-tutorial-hero h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(120deg, #1e3a8a, #2563eb, #0891b2);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-btn-shine 8s linear infinite;
}

.lp-tutorial-hero p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--lp-body);
}

.lp-more-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-more-links li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.lp-more-links li:last-child { border-bottom: none; }

.lp-more-links h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-more-links h4 a { color: inherit; text-decoration: none; }
.lp-more-links h4 a:hover { color: var(--lp-blue); }

.lp-more-links p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lp-muted);
}

.lp-section__title--center { text-align: center; }

.lp-visual-glow--narrow { max-width: 56rem; margin-inline: auto; margin-bottom: 2.5rem; }
.lp-visual-glow--compact { max-width: 48rem; margin: 2rem auto 0; }

/* FAQ */
.lp-faq-clean {
  display: grid;
  gap: 0.75rem;
  max-width: 56rem;
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 900px) {
  .lp-faq-clean--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }
}

.lp-faq-clean details {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lp-faq-clean details[open] {
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.lp-faq-clean summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--lp-text);
  list-style: none;
  line-height: 1.45;
}

.lp-faq-clean summary::-webkit-details-marker { display: none; }

.lp-faq-clean details p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--lp-body);
  line-height: 1.7;
}

#faq.lp-section {
  padding-bottom: 4rem;
}

/* Footer */
.lp-footer {
  position: relative;
  background: var(--lp-footer);
  color: #94a3b8;
  padding: 3.5rem 0 2.5rem;
}

.lp-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2563eb, #06b6d4, #7c3aed, transparent);
}

.lp-footer a { color: #cbd5e1; }
.lp-footer a:hover { color: #fff; }

.lp-footer__disclaimer {
  margin: 0 0 1.5rem;
  max-width: 50rem;
  font-size: 0.88rem;
  line-height: 1.85;
}

.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.lp-footer__copy { margin: 0; font-size: 0.82rem; color: #64748b; }

/* Reveal */
.lp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-reveal.is-visible { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--lp-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-glow-bg span,
  .lp-hero__mesh::before,
  .lp-title-glow,
  .lp-btn--primary,
  .lp-tutorial-hero h3,
  .lp-visual-glow::before { animation: none; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-deck__item:hover { transform: none; }
}

/* 教程/文章页共用页眉 */
.page-article .lp-header a,
.page-article .lp-mobile-nav a {
  text-decoration: none;
}

.page-article .lp-btn--primary {
  color: #fff !important;
}
