/* =================================================================
   如意精选 · RUYI SELECTED FUND
   品牌色板：象牙白 #F8F3EA · 亚麻灰 #D9D0C4 · 赤陶红棕 #A44F3F
            正文岩灰 #3F4141 · 点缀深可可 #5A443B
   规范：浅底用岩灰字 / 深底用象牙白字 / 识别色仅作强调与点缀
   ================================================================= */

:root {
  --ivory:      #F8F3EA;
  --ivory-deep: #F1E9DA;
  --linen:      #D9D0C4;
  --terra:      #A44F3F;
  --terra-dk:   #8C4133;
  --rock:       #3F4141;
  --cocoa:      #5A443B;
  --cocoa-dk:   #4A372F;

  --line:       rgba(63, 65, 65, 0.14);
  --line-soft:  rgba(63, 65, 65, 0.08);

  --serif-cn:   "Noto Serif SC", "Songti SC", serif;
  --serif-en:   "Cormorant Garamond", "Noto Serif SC", serif;
  --display:    "Cinzel", "Cormorant Garamond", serif;
  --sans:       "Inter", "Noto Serif SC", system-ui, sans-serif;

  --maxw: 1180px;
  --gut: clamp(22px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif-cn);
  font-weight: 400;
  color: var(--rock);
  background: var(--ivory);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(164, 79, 63, 0.18); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.d-md { display: none; }
@media (min-width: 720px) { .d-md { display: inline; } }

/* =================================================================
   品牌锁定标志 (R | 如意精选)
   ================================================================= */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark {
  font-family: var(--serif-en);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  color: var(--terra);
  letter-spacing: -0.02em;
}
.brand__rule { width: 1px; height: 34px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__cn {
  font-family: var(--serif-cn);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.34em;
  color: var(--rock);
  text-indent: 0.34em;
}
.brand__en {
  font-family: var(--display);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.42em;
  color: var(--cocoa);
  text-indent: 0.42em;
}

/* =================================================================
   导航
   ================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gut);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .5s var(--ease);
}
.nav.scrolled {
  background: rgba(248, 243, 234, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.scrolled .nav__inner { padding-block: 12px; }

.nav__links { display: flex; gap: 40px; }
.nav__links a {
  font-family: var(--serif-cn);
  font-size: 15px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--rock); position: relative; padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--terra); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--terra); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--rock); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =================================================================
   通用文字组件
   ================================================================= */
.eyebrow {
  font-family: var(--display);
  font-weight: 500; font-size: 13px; letter-spacing: 0.5em;
  color: var(--terra); text-indent: 0.5em; margin-bottom: 30px;
}
.eyebrow--light { color: var(--terra); }

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 86px); }
.section__label {
  font-family: var(--display); font-weight: 500;
  font-size: 12px; letter-spacing: 0.34em; color: var(--cocoa);
  margin-bottom: 24px; display: flex; align-items: center;
}
.section__label span { color: var(--terra); }
.section__label--light { color: var(--linen); }
.section__label--light span { color: var(--terra); }

.section__title {
  font-family: var(--serif-cn); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.28;
  letter-spacing: 0.04em; color: var(--rock);
}
.section__title--light { color: var(--ivory); }
.section__sub {
  margin-top: 22px; font-size: clamp(15px, 1.5vw, 17px);
  color: var(--cocoa); font-weight: 300; letter-spacing: 0.04em;
  font-family: var(--serif-en); font-style: italic;
}

/* =================================================================
   按钮
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif-cn); font-size: 15px; font-weight: 500;
  letter-spacing: 0.18em; padding: 15px 34px; border-radius: 2px;
  transition: all .4s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--terra); color: var(--ivory); }
.btn--primary:hover { background: var(--terra-dk); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(164,79,63,.6); }
.btn--ghost { color: var(--rock); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--terra); color: var(--terra); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 96px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(217,208,196,0.35), transparent 60%),
    var(--ivory);
}
.hero__contours {
  position: absolute; top: -8%; right: -12%;
  width: min(72vw, 820px); height: auto; opacity: 0.16;
  pointer-events: none;
}
.hero__watermark {
  position: absolute; right: clamp(-40px, -2vw, 0px); bottom: -10%;
  font-family: var(--serif-en); font-weight: 600;
  font-size: clamp(280px, 46vw, 720px); line-height: 0.8;
  color: var(--terra); opacity: 0.05; pointer-events: none; user-select: none;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding-inline: var(--gut); }
.hero__title {
  font-family: var(--serif-cn); font-weight: 500;
  font-size: clamp(64px, 14vw, 168px); line-height: 1; letter-spacing: 0.06em;
  color: var(--rock);
}
.hero__title span { color: var(--terra); }
.hero__rule { display: block; width: 64px; height: 2px; background: var(--terra); margin: clamp(28px,4vw,44px) 0; }
.hero__lede {
  font-size: clamp(17px, 2.1vw, 23px); font-weight: 300;
  line-height: 2; letter-spacing: 0.05em; color: var(--cocoa); max-width: 30em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(38px, 5vw, 56px); }

.hero__scroll {
  position: absolute; left: var(--gut); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.34em; color: var(--cocoa);
}
.hero__scroll-line { display: block; width: 56px; height: 1px; background: var(--cocoa); transform-origin: left; animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleX(.4); opacity:.4 } 50% { transform: scaleX(1); opacity:1 } }

/* 印章 */
.seal {
  position: absolute; right: clamp(24px, 6vw, 96px); bottom: clamp(60px, 12vw, 130px); z-index: 2;
  width: clamp(64px, 8vw, 92px); aspect-ratio: 1;
  background: var(--terra); border-radius: 8px;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -20px rgba(164,79,63,.7);
  transform: rotate(-3deg); transition: transform .6s var(--ease);
}
.seal:hover { transform: rotate(0deg) scale(1.04); }
.seal span {
  font-family: var(--serif-cn); font-weight: 500; color: var(--ivory);
  font-size: clamp(20px, 2.4vw, 27px); line-height: 1.05; text-align: center; letter-spacing: .04em;
}

/* =================================================================
   理念 PHILOSOPHY
   ================================================================= */
.philosophy { background: var(--ivory); }
.section__head .section__title { max-width: 14em; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillar { position: relative; padding-top: 40px; border-top: 1px solid var(--line); }
.pillar__no {
  position: absolute; top: 30px; right: 0;
  font-family: var(--serif-cn); font-size: 40px; font-weight: 300;
  color: var(--terra); opacity: 0.22; line-height: 1;
}
.pillar__cn { font-family: var(--serif-cn); font-weight: 600; font-size: clamp(23px, 2.6vw, 29px); letter-spacing: 0.12em; color: var(--rock); }
.pillar__en { font-family: var(--display); font-size: 12px; letter-spacing: 0.34em; color: var(--terra); margin: 10px 0 22px; }
.pillar__body { font-size: 15.5px; font-weight: 300; line-height: 2; color: var(--cocoa); letter-spacing: 0.02em; }

.pullquote {
  margin-top: clamp(64px, 9vw, 110px); padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; font-family: var(--serif-cn); font-weight: 300;
  font-size: clamp(20px, 3vw, 34px); line-height: 1.9; letter-spacing: 0.06em; color: var(--rock);
  position: relative;
}
.pullquote::before {
  content: "“"; position: absolute; top: -.1em; left: 50%; transform: translateX(-50%);
  font-family: var(--serif-en); font-size: 90px; color: var(--terra); opacity: .18; line-height: 1;
}

/* =================================================================
   投资组合 PORTFOLIO
   ================================================================= */
.portfolio { background: var(--ivory-deep); }
.portfolio__intro { font-family: var(--serif-cn); font-style: normal; font-weight: 300; line-height: 2; color: var(--cocoa); max-width: 44em; }
.portfolio__intro strong { color: var(--terra); font-weight: 600; }

.group { margin-top: clamp(46px, 6vw, 72px); }
.group:first-of-type { margin-top: clamp(20px, 3vw, 30px); }
.group__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.group__title { font-family: var(--serif-cn); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: 0.2em; color: var(--rock); }
.group__en { font-family: var(--display); font-size: 12px; letter-spacing: 0.34em; color: var(--terra); }
.group__line { flex: 1; height: 1px; background: var(--line); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.card {
  position: relative; background: var(--ivory); border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 38px); border-radius: 3px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--terra); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(63,65,65,.4); border-color: transparent; }
.card:hover::after { transform: scaleY(1); }
.card__mono {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--terra); color: var(--terra);
  font-family: var(--serif-cn); font-weight: 500; font-size: 22px; margin-bottom: 26px;
  transition: background .45s var(--ease), color .45s var(--ease);
}
.card:hover .card__mono { background: var(--terra); color: var(--ivory); }
.card__cn { font-family: var(--serif-cn); font-weight: 600; font-size: clamp(19px, 2vw, 23px); letter-spacing: 0.06em; color: var(--rock); }
.card__en { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.24em; color: var(--terra); margin: 8px 0 18px; text-transform: uppercase; }
.card__desc { font-size: 14.5px; font-weight: 300; line-height: 1.95; color: var(--cocoa); letter-spacing: 0.02em; }

/* =================================================================
   关于 ABOUT（深可可底 · 象牙白字）
   ================================================================= */
.about { background: var(--cocoa); color: var(--ivory); overflow: hidden; padding-bottom: clamp(140px, 18vw, 240px); }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__lede { font-family: var(--serif-cn); font-weight: 300; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.8; letter-spacing: 0.04em; color: var(--ivory); margin: 30px 0 28px; }
.about__body { font-size: 15.5px; font-weight: 300; line-height: 2.1; color: rgba(248,243,234,0.74); letter-spacing: 0.03em; margin-bottom: 18px; max-width: 36em; }

.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(248,243,234,0.14); border: 1px solid rgba(248,243,234,0.14); }
.stat { background: var(--cocoa); padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px); }
.stat__num { display: block; font-family: var(--serif-en); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1; color: var(--ivory); }
.stat__label { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: 0.12em; color: rgba(248,243,234,0.6); font-weight: 300; }

.about__mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 16vw, 220px); }

/* =================================================================
   联系 CONTACT
   ================================================================= */
.contact { background: var(--ivory); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .section__label { justify-content: center; }
.contact .section__sub { max-width: 32em; }
.contact__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: 18px; margin-top: clamp(44px, 6vw, 66px); width: 100%; max-width: 880px; }
.contact__card {
  border: 1px solid var(--line); border-radius: 3px; padding: 34px 24px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
a.contact__card:hover { border-color: var(--terra); transform: translateY(-4px); background: #fff; }
.contact__k { font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; color: var(--terra); }
.contact__v { font-family: var(--serif-cn); font-size: clamp(16px, 1.8vw, 19px); color: var(--rock); letter-spacing: 0.04em; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--cocoa-dk); color: var(--ivory); padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(248,243,234,0.12); }
.footer .brand__mark { color: var(--ivory); }
.footer .brand__rule { background: rgba(248,243,234,0.22); }
.footer .brand__cn { color: var(--ivory); }
.footer .brand__en { color: rgba(248,243,234,0.6); }
.footer__links { display: flex; gap: 34px; }
.footer__links a { font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.14em; color: rgba(248,243,234,0.78); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--terra); }
.footer__legal { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal p { font-size: 12.5px; color: rgba(248,243,234,0.45); letter-spacing: 0.04em; font-weight: 300; }

/* =================================================================
   滚动入场动画
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .card { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.group.in .card { opacity: 1; transform: none; }
.group.in .card:nth-child(2) { transition-delay: .1s; }
.group.in .card:nth-child(3) { transition-delay: .2s; }
.pillars .pillar:nth-child(2) { transition-delay: .12s; }
.pillars .pillar:nth-child(3) { transition-delay: .24s; }

/* =================================================================
   响应式
   ================================================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding-block: 34px; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open { background: var(--ivory); box-shadow: 0 1px 0 var(--line-soft); }
  .nav.menu-open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ivory);
    padding: 10px var(--gut) 28px; box-shadow: 0 24px 30px -24px rgba(63,65,65,.4);
  }
  .nav.menu-open .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); letter-spacing: 0.2em; }

  .cards { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .brand__en { font-size: 7.5px; letter-spacing: 0.34em; }
  .hero__scroll { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .cards .card { opacity: 1 !important; transform: none !important; }
}
