/* 伊丽颜官网 · 简洁浅色品牌风
   纯静态，无外部依赖 */

:root {
  --bg: #fbfaf8;
  --bg-tint: #f5f1ec;
  --ink: #1b1b1d;
  --ink-soft: #3c3d40;
  --muted: #74716d;
  --line: #e7e1da;
  --accent: #9c4b5b;
  --accent-deep: #7e3846;
  --accent-soft: #f2e6e7;
  --white: #fff;
  --radius: 14px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ───────── 顶栏 ───────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(251, 250, 248, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
}
.brand__mark--sm { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 17px; letter-spacing: .18em; font-weight: 600; }
.brand__text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.nav__cta):hover { color: var(--accent); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px !important;
  font-size: 13.5px !important;
  color: var(--ink) !important;
  transition: border-color .2s, background .2s;
  font-variant-numeric: tabular-nums;
}
.nav__cta:hover { border-color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ───────── 首屏 ───────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: 150px 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 46% at 78% 18%, rgba(156, 75, 91, .13) 0%, rgba(156, 75, 91, 0) 68%),
    radial-gradient(44% 40% at 8% 76%, rgba(184, 148, 110, .13) 0%, rgba(184, 148, 110, 0) 70%),
    linear-gradient(180deg, #fdfcfa 0%, var(--bg) 62%, var(--bg-tint) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 27, 29, .05) .6px, transparent .6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}
.hero__inner { max-width: 940px; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .38em;
  color: var(--accent);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.6vw, 76px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: .02em;
  color: var(--ink);
}
.hero__title .accent { color: var(--accent); }
.hero__sub {
  margin-top: 30px;
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--muted);
  line-height: 1.95;
  max-width: 40em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: .08em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(156, 75, 91, .65);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(156, 75, 91, .7);
}
.btn--ghost { border: 1px solid #cfc6be; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero__meta dt {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__meta dd {
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ───────── 通用区块 ───────── */
.section { padding: clamp(76px, 11vw, 132px) 0; }
.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section__head { max-width: 720px; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--accent);
  margin-bottom: 18px;
}
.label::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .6;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .02em;
}
.section__desc {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 34em;
}

/* 关于 */
.about { display: block; }
.about__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .8fr);
  gap: clamp(32px, 6vw, 80px);
  margin-top: clamp(36px, 5vw, 56px);
  align-items: start;
}
.about__text p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2.05;
  text-align: justify;
}
.about__text p + p { margin-top: 20px; }
.about__stats {
  display: grid;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 34px);
}
.about__stats li { display: flex; flex-direction: column; gap: 2px; }
.about__stats strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}
.about__stats span { font-size: 13px; color: var(--muted); letter-spacing: .06em; }

/* 业务卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(36px, 5vw, 54px);
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.2vw, 28px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #d9c9cb;
  box-shadow: 0 20px 40px -26px rgba(58, 30, 35, .38);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.85; }

/* 联系 */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: clamp(32px, 6vw, 80px);
  margin-top: clamp(36px, 5vw, 54px);
  align-items: start;
}
.contact__list { display: grid; gap: 0; }
.contact__list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact__list li:first-child { border-top: 1px solid var(--line); }
.contact__k { font-size: 12.5px; letter-spacing: .18em; color: var(--muted); }
.contact__v { font-size: 16px; color: var(--ink); letter-spacing: .02em; }
a.contact__v { transition: color .2s; }
a.contact__v:hover { color: var(--accent); }

.qr { text-align: center; }
.qr__box {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 172px;
  height: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}
.qr__box svg { width: 108px; height: 108px; }
.qr p { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ───────── 页脚 ───────── */
.footer {
  border-top: 1px solid var(--line);
  background: #f7f4f0;
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__meta a { transition: color .2s; }
.footer__meta a:hover { color: var(--accent); }

/* ───────── 进场动画 ───────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }

/* ───────── 响应式 ───────── */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__body { grid-template-columns: 1fr; }
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .header__inner { height: 66px; }
  .brand__mark { width: 34px; height: 34px; font-size: 18px; }
  .brand__text strong { font-size: 15.5px; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -28px rgba(0, 0, 0, .45);
    padding: 6px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; border-radius: 10px; }

  .hero { min-height: auto; padding-top: 120px; }
  .eyebrow { font-size: 10px; letter-spacing: .24em; line-height: 1.9; }
  .hero__title { font-size: clamp(31px, 8.6vw, 38px); line-height: 1.34; }
  .pc-only { display: none; }
  .hero__sub { font-size: 14.5px; }
  .hero__meta { gap: 22px 32px; padding-top: 22px; }
  .hero__meta > div { flex: 1 1 30%; }
  .hero__meta dd { font-size: 14px; }

  .btn { flex: 1 1 auto; padding: 13px 22px; }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px 24px; }

  .contact__grid { grid-template-columns: 1fr; }
  .qr { justify-self: start; text-align: left; }
  .qr__box { width: 148px; height: 148px; }
  .qr__box svg { width: 92px; height: 92px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

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