/* =========================================================
   MIYAN BEAUTY INC. — styles.css
   Palette taken from the brand key art: olive field, warm
   nude accent, paper off-white.
   ========================================================= */

:root {
  /* colour */
  --olive-900: #2B2C24;
  --olive-700: #4A4B3E;
  --olive-500: #6B6C5B;   /* brand field */
  --olive-300: #9A9B88;
  --paper:     #EDEBE3;
  --paper-2:   #E3E0D5;
  --white:     #FFFFFF;
  --nude:      #C9A98F;
  --ink:       #1C1D17;
  --ink-soft:  #55564B;

  /* type */
  --display: "Cormorant Garamond", "Songti SC", "SimSun", Georgia, serif;
  --body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* rhythm */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 10vw, 150px);

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1.1em; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- a11y ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-size: 14px; letter-spacing: .06em;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--nude);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec-y); }
.section--light { background: var(--paper); color: var(--ink); }
.section--pale  { background: var(--paper-2); color: var(--ink); }
.section--olive { background: var(--olive-500); color: var(--paper); }

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.grid-two__side { position: sticky; top: 92px; }

@media (max-width: 860px) {
  .grid-two { grid-template-columns: 1fr; gap: 20px; }
  .grid-two__side { position: static; }
}

/* ---------- type roles ---------- */
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--light { color: rgba(237, 235, 227, .68); }

.h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--ink);
}
.h2--light { color: var(--paper); }

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.4em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 235, 227, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(28, 29, 23, .10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1.2vw, 14px);
  white-space: nowrap;
}

.wordmark__mark {
  height: clamp(26px, 3.2vw, 34px);
  width: auto;
  flex: none;
}

.wordmark__text {
  font-family: var(--display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  padding-left: .06em;   /* 补偿字距造成的右侧空白 */
}

@media (max-width: 400px) {
  .wordmark__text { letter-spacing: .2em; font-size: 13px; }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav__list a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav__list a:hover { color: var(--ink); border-bottom-color: var(--nude); }

.nav__lang a {
  color: var(--ink);
  border: 1px solid rgba(28, 29, 23, .22);
  border-radius: 999px;
  padding: 4px 12px;
}
.nav__lang a:hover { border-color: var(--ink); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__toggle-bar {
  width: 22px; height: 1px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

@media (max-width: 780px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(28, 29, 23, .12);
    padding: 6px var(--gut) 20px;
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; }
  .nav__list a {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(28, 29, 23, .08);
  }
  .nav__lang a {
    border: 0;
    border-radius: 0;
    padding: 13px 0;
  }
}

/* =========================================================
   KEY ART
   The brand image already carries its own typography, so no
   HTML text is layered on top of it. The image is shown whole
   (never cropped), and the copy sits in a bar directly below.
   ========================================================= */
.keyart { background: var(--olive-500); }

.keyart__img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--olive-500);
}

.keyart__bar {
  background: var(--olive-900);
  color: var(--paper);
  padding-block: clamp(22px, 3.2vw, 36px);
}

.keyart__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
}

.keyart__copy { flex: 1 1 340px; min-width: 0; }

.keyart__lede {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.25;
  letter-spacing: .005em;
  color: var(--paper);
}

.keyart__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .keyart__bar-inner { flex-direction: column; align-items: flex-start; }
  .keyart__actions { width: 100%; }
  .keyart__actions .btn { flex: 1 1 auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .28s var(--ease),
              color .28s var(--ease),
              border-color .28s var(--ease);
}

.btn--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--solid:hover { background: var(--nude); border-color: var(--nude); color: var(--olive-900); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(237, 235, 227, .6);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(237, 235, 227, .1); }

/* ---------- fact list ---------- */
.factlist {
  margin-top: 34px;
  border-top: 1px solid rgba(28, 29, 23, .16);
}
.factlist li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(28, 29, 23, .10);
}
.factlist__k {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
.factlist__v { color: var(--ink); }

@media (max-width: 560px) {
  .factlist li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- diptych (signature element) ---------- */
.diptych__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 6vw, 76px);
  margin-top: clamp(36px, 5vw, 64px);
}

.diptych__spine {
  background: linear-gradient(
    to bottom,
    rgba(237, 235, 227, 0) 0%,
    rgba(201, 169, 143, .85) 18%,
    rgba(201, 169, 143, .85) 82%,
    rgba(237, 235, 227, 0) 100%
  );
}

.diptych__label {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}

.diptych__sub {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--nude);
}

.diptych__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(237, 235, 227, .2);
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(237, 235, 227, .95);
}
.diptych__list li:last-child { border-bottom: 0; }

@media (max-width: 780px) {
  .diptych__grid { grid-template-columns: 1fr; gap: 40px; }
  .diptych__spine {
    height: 1px;
    background: linear-gradient(
      to right,
      rgba(237, 235, 227, 0) 0%,
      rgba(201, 169, 143, .85) 20%,
      rgba(201, 169, 143, .85) 80%,
      rgba(237, 235, 227, 0) 100%
    );
  }
}

/* ---------- service blocks ---------- */
.svc {
  padding: 26px 0;
  border-top: 1px solid rgba(28, 29, 23, .14);
}
.svc:last-of-type { border-bottom: 1px solid rgba(28, 29, 23, .14); }

.svc__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: .01em;
}

.svc__body { margin: 0 0 8px; max-width: 62ch; color: var(--ink-soft); }

.svc__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--olive-500);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid rgba(28, 29, 23, .14);
}
.faq:last-of-type { border-bottom: 1px solid rgba(28, 29, 23, .14); }

.faq__q {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 400;
  line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--ink);
  transform: translateY(-50%);
}
.faq__q::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 1px;
  height: 13px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: opacity .25s var(--ease);
}
.faq[open] > .faq__q::before { opacity: 0; }

.faq__a { padding: 0 0 22px; max-width: 66ch; color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* ---------- VIP ---------- */
.vip { max-width: 720px; }

.vip__lede {
  max-width: 48ch;
  color: rgba(237, 235, 227, .88);
  margin-bottom: 26px;
}

.vip__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vip__input {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid rgba(237, 235, 227, .5);
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
}
.vip__input::placeholder { color: rgba(237, 235, 227, .5); }
.vip__input:focus { border-color: var(--nude); outline: none; }

.vip__note {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(237, 235, 227, .62);
}
.vip__note a { border-bottom: 1px solid rgba(201, 169, 143, .7); }

/* ---------- contact ---------- */
.contact { font-style: normal; }

.contact__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(28, 29, 23, .10);
}
.contact__row:first-child { border-top: 1px solid rgba(28, 29, 23, .16); }

.contact__k {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
.contact__v a { border-bottom: 1px solid rgba(28, 29, 23, .3); }
.contact__v a:hover { border-color: var(--nude); }

@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--olive-900);
  color: rgba(237, 235, 227, .8);
  padding-block: clamp(40px, 6vw, 72px);
}

.site-footer__inner { text-align: center; }

.site-footer__logo {
  width: clamp(150px, 20vw, 210px);
  height: auto;
  margin: 0 auto 22px;
}

.site-footer__nap { margin: 0 0 8px; font-size: 13px; }

.site-footer__legal {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237, 235, 227, .55);
}
.site-footer__legal a { border-bottom: 1px solid rgba(237, 235, 227, .4); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Chinese page tuning ---------- */
.lang-zh { line-height: 1.9; }
.lang-zh .h2 { letter-spacing: .02em; }
.lang-zh .keyart__lede { letter-spacing: .02em; }
.lang-zh .diptych__label { letter-spacing: .18em; }
.lang-zh .svc__title { letter-spacing: .02em; }

/* =========================================================
   悬浮联系按钮 (Contact FAB)
   ========================================================= */
.cfab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
}

.cfab__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--olive-500);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(43, 44, 36, .32);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.cfab__btn:hover { background: var(--olive-700); transform: translateY(-2px); }

.cfab__icon { position: absolute; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.cfab__icon--close { opacity: 0; transform: rotate(-90deg); }
.cfab.is-open .cfab__icon--chat { opacity: 0; transform: rotate(90deg); }
.cfab.is-open .cfab__icon--close { opacity: 1; transform: rotate(0); }

.cfab__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(320px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid rgba(28, 29, 23, .12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(43, 44, 36, .28);
  padding: 14px;
  transform-origin: bottom right;
  animation: cfab-in .22s var(--ease);
}
@keyframes cfab-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.cfab__title {
  margin: 2px 6px 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
}

.cfab__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  background: none;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-family: var(--body);
  transition: background-color .18s var(--ease);
}
.cfab__item:hover { background: rgba(107, 108, 91, .1); }

.cfab__ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--olive-500);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 16px;
}

.cfab__lbl { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cfab__lbl b { font-size: 14px; font-weight: 500; color: var(--ink); }
.cfab__lbl small { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cfab__wechat {
  margin-top: 6px;
  padding: 14px 10px 12px;
  border-top: 1px solid rgba(28, 29, 23, .1);
  text-align: center;
}
.cfab__wechat img {
  width: 180px; height: 180px;
  margin: 0 auto 8px;
  border: 1px solid rgba(28, 29, 23, .1);
  border-radius: 8px;
}
.cfab__wechat-name {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cfab__copy {
  border: 1px solid var(--olive-500);
  background: transparent;
  color: var(--olive-700);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cfab__copy:hover { background: var(--olive-500); color: var(--paper); }
.cfab__copy.is-copied { background: var(--olive-700); color: var(--paper); border-color: var(--olive-700); }

@media (prefers-reduced-motion: reduce) {
  .cfab__panel { animation: none; }
  .cfab__icon { transition: none; }
}
