/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 34px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.btn--primary {
  color: #fff;
  background: var(--red);
}

.btn--primary:hover {
  background: #c62f3b;
}

.btn--grad {
  color: #fff;
  background: var(--red-grad);
}

.btn--grad:hover {
  box-shadow: 0 8px 22px rgb(166 32 56 / .38);
  transform: translateY(-1px);
}

.btn--ghost-light {
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / .75);
  background: rgb(255 255 255 / .04);
}

.btn--ghost-light:hover {
  background: rgb(255 255 255 / .12);
  border-color: #fff;
}

.btn--ghost {
  color: var(--red);
  border: 1.5px solid var(--red);
  background: #fff;
}

.btn--ghost:hover {
  background: var(--pink-bg);
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #ede4e7;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 60px;
}

.header__brand {
  display: flex;
  align-items: center;
  flex: none;
  width: 396px;
}

.header__logo {
  width: auto;
  height: 40px;
}

.header__nav {
  display: flex;
  gap: 34px;
  flex: 1;
}

.header__link {
  position: relative;
  font-size: 14px;
  line-height: var(--header-h);
  color: #505457;
  transition: color .2s;
}

.header__link:hover {
  color: var(--text);
}

.header__link.is-active {
  color: var(--red);
}

.header__aside {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__lang {
  font-size: 14px;
  color: #9da0a5;
  white-space: nowrap;
}

.header__lang a {
  transition: color .2s;
}

.header__lang a:hover,
.header__lang a.is-active {
  color: var(--text);
}

.header__cta {
  width: 100px;
  height: 40px;
  padding: 0;
  font-size: 15px;
}

.header__toggle,
.mnav {
  display: none;
}

/* ---------- page banner ---------- */
.banner {
  height: 208px;
  padding-top: 64px;
  background: var(--pink-bg);
}

.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.32em;
  color: var(--red-text);
  text-transform: uppercase;
}

.banner__title {
  margin-top: 26px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- section ---------- */
.section {
  padding: 90px 0;
}

.section--pink {
  background: var(--pink-bg);
}

.section__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.eyebrow + .section__title {
  margin-top: 22px;
}

.subhead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.link-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--red-text);
}

.link-more:hover {
  text-decoration: underline;
}

.link-more.is-soon {
  color: var(--text-3);
  text-decoration: none;
}

/* ---------- architecture diagram ---------- */
.arch {
  display: grid;
  grid-template-columns: 1fr 136px 136px;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
}

.arch__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch__layer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 24px;
  background: #f9f9fa;
  border: 1px solid #e8e8ea;
  border-radius: 10px;
}

.arch__layer--core {
  padding: 18px 24px;
  background: #fff;
  border-color: #c9545f;
}

.arch__head {
  flex: none;
  width: 190px;
}

.arch__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.arch__layer--core .arch__name {
  color: var(--red-text);
}

.arch__en {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8b8e;
}

.arch__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--red-text);
  background: #fcf1f2;
  border-radius: 4px;
  white-space: nowrap;
}

.arch__cells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.arch__cell {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4b4b4f;
  white-space: nowrap;
}

.arch__groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.arch__group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arch__label {
  flex: none;
  width: 92px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-text);
}

.arch__layer--core .arch__cell {
  background: #fcf1f2;
  border-color: #f6dde0;
  color: #8f2a34;
}

.arch__cell--more {
  flex: none;
  color: #b0b0b5;
  background: transparent;
  border-style: dashed;
}

.arch__layer--core .arch__cell--more {
  color: #d48a92;
  background: transparent;
  border-color: #efc7cc;
}

.arch__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 10px;
}

.arch__side .arch__head {
  width: auto;
}

.arch__side .arch__en {
  color: var(--text-3);
}

.arch__side .arch__badge {
  white-space: normal;
  color: var(--red-text);
  background: rgb(218 58 70 / .08);
}

.arch__side .arch__cells {
  flex-direction: column;
  gap: 10px;
}

.arch__side .arch__cell {
  flex: 1 1 0;
  height: auto;
  min-height: 40px;
  padding: 8px 12px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  background: #fff;
  border-color: var(--tint-line);
  color: var(--text-2);
}

/* ---------- forms ---------- */
/* 防机器人字段：人看不见，机器人会填 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field {
  width: 100%;
  height: 48px;
  padding: 0 17px;
  font-size: 14px;
  color: var(--text);
  background: var(--field);
  border: 1px solid #e3e3e6;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, background-color .2s;
}

.field::placeholder {
  color: var(--text-4);
}

.field:focus {
  background: #fff;
  border-color: var(--red);
}

.field.field.is-invalid {
  border-color: var(--red);
  background: #f7f7f8;
}

textarea.field {
  height: 96px;
  padding-top: 12px;
  resize: none;
}

.select {
  position: relative;
}

.select .field {
  padding-right: 40px;
  text-overflow: ellipsis;
  appearance: none;
  color: var(--text-4);
  cursor: pointer;
}

.select .field.has-value {
  color: var(--text);
}

.select svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: #666;
  pointer-events: none;
}

.form-actions {
  position: relative;
}

.form-tip {
  position: absolute;
  top: 50%;
  left: 0;
  right: 150px;
  transform: translateY(-50%);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-3);
}

.form-tip.is-error {
  color: var(--red);
}

.form-tip.is-ok {
  color: #2b9a5a;
}

/* ---------- footer ---------- */
.footer {
  background: var(--pink-bg);
  border-top: 1px solid var(--tint-line);
  color: #75767b;
}

.footer__inner {
  padding: 0 60px;
}

.footer__top {
  display: flex;
  height: 224px;
  padding-top: 58px;
  border-bottom: 1px solid #efe4e6;
}

.footer__brand {
  width: 493px;
}

.footer__logo {
  display: flex;
}

.footer__logo img {
  width: auto;
  height: 36px;
}

.footer__slogan {
  margin-top: 25px;
  font-size: 13.4px;
  line-height: 1;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 18.6px;
  width: 274px;
  padding-top: 4.5px;
  font-size: 13.4px;
  line-height: 1;
  color: #75767b;
}

.footer__col:last-child {
  width: auto;
}

.footer__col a:hover {
  color: var(--red);
}

.footer__title {
  margin-bottom: 1.5px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 89px;
  padding-top: 15px;
  font-size: 12.5px;
  color: #9a9a9e;
}

.footer__legal {
  display: flex;
  gap: 13px;
}

.footer__legal a:hover {
  color: var(--red);
}
