/* app.metatraderi4.com.cn — pill-tab switcher + rounded stack cards */

:root {
  --lilac: #efeaf8;
  --indigo: #3d348b;
  --ink: #241e4f;
  --soft: #5a537a;
  --paper: #ffffff;
  --edge: #d9d1ee;
  --mist: #f6f3fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: #efeaf8;
  background-image:
    radial-gradient(640px 280px at 50% -40px, rgba(61, 52, 139, 0.12), transparent 72%),
    radial-gradient(280px 200px at 92% 18%, rgba(61, 52, 139, 0.06), transparent 70%);
  line-height: 1.8;
}

a {
  color: #3d348b;
}

img,
svg {
  display: block;
}

.shell {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 52px;
}

.appbar {
  display: flex;
  justify-content: center;
  margin: 6px 0 22px;
}

.appbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(61, 52, 139, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #3d348b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #3d348b;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
}

.chip:hover {
  background: #efeaf8;
}

.chip.is-active {
  background: #3d348b;
  color: #fff;
}

.stack {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin: 0 0 16px;
  border: 1px solid rgba(61, 52, 139, 0.06);
  box-shadow: 0 12px 32px rgba(61, 52, 139, 0.05);
}

.stack h1,
.stack h2,
.stack h3 {
  margin: 0 0 12px;
  line-height: 1.35;
  font-weight: 700;
}

.stack h1 {
  font-size: 1.72rem;
}

.stack h2 {
  font-size: 1.28rem;
}

.grid-2 h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.stack p {
  margin: 0 0 12px;
  color: var(--ink);
}

.stack p:last-child,
.stack ul:last-child {
  margin-bottom: 0;
}

.lead {
  color: var(--soft);
}

.note {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--mist);
  color: var(--soft);
  font-size: 0.95rem;
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 4px;
}

.tile-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f4fc 0%, #efeaf8 100%);
  border: 1px solid var(--edge);
}

.tile-dl:hover {
  border-color: #3d348b;
}

.tile-dl strong {
  font-size: 1.05rem;
}

.tile-dl span {
  color: var(--soft);
  font-size: 0.92rem;
}

.tile-dl svg {
  width: 28px;
  height: 28px;
}

.indigo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: 999px;
  background: #3d348b;
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.indigo-btn:hover {
  filter: brightness(1.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-2 .stack {
  margin: 0;
}

.pair p {
  margin-bottom: 10px;
}

.pair p:last-child {
  margin-bottom: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mist);
}

.date-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #3d348b;
  border: 1px solid var(--edge);
  font-size: 12px;
  font-weight: 700;
}

.news-item p {
  margin: 0;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--mist);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--soft);
}

.site-foot {
  margin-top: 8px;
  padding: 22px 24px 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.site-foot p {
  margin: 0 0 10px;
}

@media (max-width: 680px) {
  .appbar-inner {
    border-radius: 28px;
    width: 100%;
  }

  .stack h1 {
    font-size: 1.38rem;
  }

  .tile-row,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
