/* ===========================================================
   The story of Sonita and Light
   warm, quiet, a little handmade
   =========================================================== */

@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/great-vibes.woff2') format('woff2');
}
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ma-shan-zheng.woff2') format('woff2');
}

:root {
  --cream: #FBF3E9;
  --cream-2: #F6E8D8;
  --paper: #FFFCF7;
  --ink: #33241C;
  --ink-2: #5D473A;
  --muted: #8F7767;
  --line: #EADBC9;
  --line-2: #F1E5D7;
  --terra: #C9603C;
  --terra-deep: #A84A2C;
  --amber: #E0A140;
  --rose: #C4564F;
  --night: #1C0F0B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
           "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: rgba(201, 96, 60, .18); }

:focus-visible {
  outline: 2px solid rgba(201, 96, 60, .55);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .chip:focus-visible, .nav__links a:focus-visible { border-radius: 999px; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #DCC6AF;
  border-radius: 99px;
  border: 3px solid var(--cream);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============================= nav ============================= */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(1120px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 245, .82);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 14px 34px -22px rgba(58, 30, 14, .55), 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #E8A250, #C9603C 72%);
  color: #FFF8F0;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 6px 14px -8px rgba(168, 74, 44, .9);
}
.brand__mark span { opacity: .7; margin: 0 .5px; font-size: 9px; }

.brand__name {
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .03em;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.nav__links a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover { background: rgba(201, 96, 60, .08); color: var(--terra-deep); }
.nav__links a.is-active { color: var(--ink); background: rgba(201, 96, 60, .10); }

.nav__links .nav__cta {
  margin-left: 4px;
  background: var(--ink);
  color: #FFF7EE;
  padding: 9px 18px;
}
.nav__links .nav__cta:hover { background: #4A3529; color: #FFF7EE; }
.nav__links .nav__cta.is-active { background: var(--terra); color: #FFF7EE; }

/* 首页顶部的深色玻璃导航 */
body.is-home.is-top .nav {
  background: rgba(22, 7, 19, .58);
  border-color: rgba(255, 214, 206, .16);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 235, 226, .08) inset;
}
body.is-home.is-top .brand__name { color: rgba(255, 234, 228, .82); }
body.is-home.is-top .brand__mark {
  background: linear-gradient(140deg, #F0B07C, #C9603C 72%);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .9);
}
body.is-home.is-top .nav__links a { color: rgba(255, 234, 228, .76); }
body.is-home.is-top .nav__links a:hover { background: rgba(255, 220, 210, .10); color: #FFEFE7; }
body.is-home.is-top .nav__links a.is-active { background: rgba(255, 220, 210, .14); color: #FFF6EF; }
body.is-home.is-top .nav__links .nav__cta { background: #F7E6D7; color: #6B3524; }
body.is-home.is-top .nav__links .nav__cta:hover { background: #FFF6EC; color: #5A2C1E; }

/* ============================= buttons ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn--light {
  background: #FFF4E7;
  color: #6B3524;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7);
}
.btn--light:hover { background: #FFFDF9; transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(255, 236, 221, .34);
  color: #FFF0E3;
}
.btn--ghost:hover { background: rgba(255, 236, 221, .10); border-color: rgba(255, 236, 221, .55); }

.btn--primary {
  background: linear-gradient(135deg, #D97347, #BD5539);
  color: #FFF8F2;
  box-shadow: 0 18px 34px -22px rgba(168, 74, 44, .95);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -22px rgba(168, 74, 44, .95); }

.btn--quiet {
  border-color: var(--line);
  color: var(--ink-2);
  background: transparent;
}
.btn--quiet:hover { background: #FFF7EE; border-color: #E0C9B2; }

.btn--danger {
  background: #B8483B;
  color: #FFF7F2;
}
.btn--danger:hover { background: #A33D31; }

.btn--sm { padding: 9px 18px; font-size: 13px; }

.link-btn {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .04em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: var(--terra-deep); border-bottom-color: rgba(201, 96, 60, .4); }
.link-btn--danger:hover { color: #B8483B; border-bottom-color: rgba(184, 72, 59, .35); }

/* ============================= hero ============================= */

.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  /* 原站 kaixuan.pw 的夜色蔷薇底 */
  background: radial-gradient(circle at 50% 46%, #2a0a1c 0%, #150511 42%, #070208 100%);
  isolation: isolate;
}

#heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* 标题身后的玫红光晕 */
.hero__halo {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(1060px, 108vw);
  height: min(720px, 76vh);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(226, 62, 112, .22) 0%,
                    rgba(150, 24, 74, .12) 42%, rgba(10, 3, 8, 0) 72%);
  filter: blur(16px);
  z-index: 2;
  pointer-events: none;
}

/* 纸面颗粒 */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* 细金边框 + 四角 */
.hero__frame {
  --c: rgba(255, 196, 186, .38);
  position: absolute;
  inset: 26px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / 32px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 32px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 32px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 32px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 32px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 32px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 32px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 32px no-repeat;
}

/* 两侧竖排小字 */
.hero__side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: rgba(255, 214, 216, .30);
  pointer-events: none;
}
.hero__side--l { left: 46px; }
.hero__side--r { right: 46px; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(7, 2, 8, 0) 30%,
                    rgba(11, 3, 9, .46) 70%, rgba(7, 2, 8, .94) 100%),
    linear-gradient(180deg, rgba(7, 2, 8, .72) 0%, rgba(7, 2, 8, .06) 20%,
                    rgba(10, 3, 9, 0) 58%, rgba(7, 2, 8, .88) 100%);
}

.hero__inner {
  position: relative;
  z-index: 6;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 104px 24px 118px;
}

.hero__inner::before {
  content: '';
  position: absolute;
  width: min(880px, 96%);
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(9, 2, 7, .58) 0%, rgba(9, 2, 7, .30) 48%, rgba(9, 2, 7, 0) 74%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: rgba(255, 208, 212, .66);
  margin-bottom: 30px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: clamp(26px, 5vw, 54px);
  height: 1px;
  flex: 0 0 auto;
}
.hero__eyebrow::before { background: linear-gradient(90deg, rgba(255, 200, 190, 0), rgba(255, 190, 180, .55)); }
.hero__eyebrow::after { background: linear-gradient(90deg, rgba(255, 190, 180, .55), rgba(255, 200, 190, 0)); }

.hero__title { color: #FFF9F2; }

.hero__t1 {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: .2em;
  text-indent: .2em;
  color: rgba(255, 222, 224, .74);
  margin-bottom: 12px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .4);
}

.hero__t2 {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(33px, 5.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -.02em;
  background: linear-gradient(176deg, #FFF9F2 10%, #FFE3D2 52%, #F7AEB8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 10px 46px rgba(226, 62, 112, .30));
}
.hero__t2 i { font-style: italic; }

/* 分隔装饰 */
.hero__orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.hero__orn i {
  display: block;
  width: clamp(38px, 7vw, 74px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 200, 190, 0), rgba(255, 190, 180, .46));
}
.hero__orn i:last-child { background: linear-gradient(90deg, rgba(255, 190, 180, .46), rgba(255, 200, 190, 0)); }
.hero__orn b { font-size: 9px; font-weight: 400; color: rgba(255, 176, 186, .9); }

.hero__sig {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  color: #FFD8CE;
  animation: beat 2.8s ease-in-out infinite;
}
.sig-en {
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 176, 186, .5), 0 0 48px rgba(226, 62, 112, .42);
}
.sig-sep { font-size: 12px; opacity: .45; }
.sig-cn {
  font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'Kaiti SC', serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .16em;
  text-indent: .16em;
  text-shadow: 0 0 14px rgba(255, 190, 180, .48), 0 0 42px rgba(226, 62, 112, .34);
}

.hero__sub {
  margin-top: 26px;
  max-width: 500px;
  font-size: 14.5px;
  line-height: 2;
  color: rgba(255, 232, 230, .74);
  letter-spacing: .02em;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__mascots {
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.mascot {
  position: absolute;
  bottom: 0;
  opacity: .97;
  animation: float 9s ease-in-out infinite;
}
.mascot::after {
  content: '';
  position: absolute;
  inset: 12% -14% -26% -14%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 172, 120, .20), rgba(226, 62, 112, 0) 68%);
  filter: blur(20px);
}
.mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, .55));
}
.mascot--l { left: max(6px, 2.6vw); width: clamp(148px, 16vw, 244px); }
.mascot--r { right: max(22px, 5vw); bottom: 0; width: clamp(110px, 11.5vw, 180px); animation-delay: -3.6s; }
.mascot--l img {
  -webkit-mask-image: linear-gradient(180deg, #000 93%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 93%, rgba(0, 0, 0, 0) 100%);
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, .55)) brightness(.97) saturate(.96);
}
.mascot--r img {
  -webkit-mask-image: linear-gradient(180deg, #000 92%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 92%, rgba(0, 0, 0, 0) 100%);
}

/* ============================= ribbon ============================= */

.ribbon {
  overflow: hidden;
  padding: 17px 0 15px;
  background: linear-gradient(180deg, #FBF3E9, #F7EBDB);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ribbon__track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.ribbon span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(93, 71, 58, .42);
  padding-right: 34px;
}
.ribbon span:nth-child(even) { color: rgba(201, 96, 60, .5); font-style: normal; padding-right: 34px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(255, 226, 208, .5);
  text-transform: uppercase;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, rgba(255, 226, 208, .5), transparent);
  animation: drop 2.4s ease-in-out infinite;
}

/* ============================= sections ============================= */

.section { padding: 104px 0; }

.section--intro { position: relative; overflow: hidden; }
.intro__mark {
  position: absolute;
  right: -6%;
  top: -16%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(260px, 40vw, 540px);
  line-height: .82;
  color: rgba(88, 48, 24, .045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section--intro > .wrap { position: relative; z-index: 1; }
.section--tight { padding-top: 0; }

.kicker {
  font-size: 10.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 20px;
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.24;
  letter-spacing: -.015em;
  color: var(--ink);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .01em;
}

.lede {
  margin-top: 22px;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
}
.lede strong { font-weight: 500; color: var(--ink); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 64px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--terra);
}
.stat span {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.textlink {
  font-size: 13px;
  color: var(--terra-deep);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: opacity .2s;
}
.textlink:hover { opacity: .7; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ============================= cards ============================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #E2CAB3;
  box-shadow: 0 28px 50px -34px rgba(88, 48, 24, .55);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.card__lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(201, 96, 60, .1);
  color: var(--terra-deep);
  font-size: 10.5px;
  letter-spacing: .06em;
}
.card__lock svg { width: 11px; height: 11px; }

.card__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__text {
  margin-top: 9px;
  font-size: 13.8px;
  line-height: 1.95;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.card__foot span { display: inline-flex; align-items: center; gap: 5px; }
.card__foot svg { width: 13px; height: 13px; opacity: .75; }

.card__go {
  font-style: normal;
  font-size: 14px;
  color: #BCA493;
  transition: transform .35s var(--ease), color .35s;
}
.card:hover .card__go { transform: translateX(4px); color: var(--terra); }

.card--locked { background: linear-gradient(160deg, #FFFCF7 30%, #FFF6EC 100%); }
.card--locked::after {
  content: '';
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 161, 64, .18), rgba(224, 161, 64, 0) 68%);
  pointer-events: none;
}
.card--locked .card__text { color: var(--muted); }

/* ============================= features ============================= */

.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feat {
  position: relative;
  padding: 34px 32px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.feat__mascot {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 82px;
  opacity: .92;
  transform: rotate(-4deg);
}
.feat__mascot img { width: 100%; height: auto; display: block; }
.feat__mascot img[src*="durian"] {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.feat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  position: relative;
  padding-right: 74px;
}
.feat p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 340px;
}

/* ============================= page ============================= */

.app { min-height: 60vh; }

.page { padding: 148px 0 96px; }
.page--narrow .wrap { width: min(800px, calc(100% - 48px)); }

.page__head { margin-bottom: 40px; }
.page__head .lede { margin-top: 16px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: #DCC2A9; background: #FFF8F0; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #FFF7EE; }

.search {
  width: 230px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFDF9;
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus {
  outline: none;
  border-color: #D9AE8C;
  box-shadow: 0 0 0 4px rgba(217, 174, 140, .16);
}

/* ============================= empty ============================= */

.empty {
  text-align: center;
  padding: 70px 24px 80px;
  border: 1px dashed #E4D0BA;
  border-radius: 24px;
  background: rgba(255, 252, 247, .6);
}
.empty__mascots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 18px;
}
.empty__mascots img { width: 82px; height: auto; object-fit: contain; }
.empty__mascots img:last-child { width: 70px; }
.empty__mascots img[src*="durian"] {
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
}
.empty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}
.empty p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.empty .btn { margin-top: 24px; }

/* ============================= editor ============================= */

.editor {
  margin-top: 34px;
  padding: 38px 36px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -70px rgba(88, 48, 24, .85);
}

.field { margin-bottom: 22px; }
.field > label,
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.input,
.textarea,
select.input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #FFFDFA;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.input::placeholder, .textarea::placeholder { color: #BBA595; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: #D9AE8C;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 174, 140, .15);
}

.textarea {
  min-height: 260px;
  resize: vertical;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  padding: 20px 20px;
}

.field__hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: #A38C7B;
  line-height: 1.8;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 20px;
  border: 1.5px dashed #E3CBB4;
  border-radius: var(--r-md);
  background: #FFFBF5;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.drop:hover, .drop.is-over {
  border-color: var(--terra);
  background: #FFF5EA;
}
.drop.is-over { transform: scale(1.008); }
.drop b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.drop span { font-size: 11.5px; color: var(--muted); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 16, 10, .66);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.thumb button:hover { background: rgba(168, 60, 40, .9); }

.lockbox {
  margin: 6px 0 26px;
  padding: 22px 22px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #FFF8F0;
}
.lockbox__note {
  margin: 0 0 16px;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--ink);
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #E4CFBB;
  border: 1px solid #DEC6B0;
  transition: background .3s var(--ease), border-color .3s;
  flex: 0 0 auto;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(90, 50, 26, .28);
  transition: transform .3s var(--ease);
}
.switch input:checked + .switch__track { background: linear-gradient(135deg, #D97347, #BD5539); border-color: #BD5539; }
.switch input:checked + .switch__track::after { transform: translateX(19px); }
.switch__label { font-size: 14px; letter-spacing: .02em; }

.lockpanel { padding-bottom: 18px; }
.lockpanel .field__hint { margin-top: 12px; }
.lockpanel[hidden] { display: none; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.form-actions .cancel { font-size: 13px; color: var(--muted); text-decoration: none; }
.form-actions .cancel:hover { color: var(--terra-deep); }

/* ============================= entry ============================= */

.entry { width: min(780px, calc(100% - 48px)); margin-inline: auto; padding: 148px 0 96px; }

.entry__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color .2s;
}
.entry__back:hover { color: var(--terra-deep); }

.entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 16px;
}
.entry__meta i { width: 3px; height: 3px; border-radius: 50%; background: #C9B29E; }

.entry__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--ink);
}

.entry__body { margin-top: 34px; }
.entry__body p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 2.1;
  color: #4A362A;
  margin-bottom: 1.15em;
}
.entry__body p:last-child { margin-bottom: 0; }

.entry__pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 34px;
}
.entry__pics img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  background: var(--cream-2);
  transition: transform .4s var(--ease), filter .4s;
}
.entry__pics img:hover { transform: scale(1.015); filter: brightness(1.03); }

.entry__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================= gate ============================= */

.gate-wrap { padding: 196px 0 110px; }

.gate {
  position: relative;
  width: min(480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 34px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 50px 90px -70px rgba(88, 48, 24, .95);
  text-align: center;
}

.gate__mascot {
  position: absolute;
  top: -104px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  filter: drop-shadow(0 10px 18px rgba(88, 48, 24, .14));
}
.gate__mascot img { width: 100%; height: auto; display: block; }

.gate__eyebrow {
  font-size: 10px;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.gate h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}
.gate__meta { margin-top: 10px; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }

.gate__question {
  margin: 26px 0 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #FFF6EB;
  border: 1px solid #F0DEC9;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  text-align: left;
}
.gate__question span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--terra);
  margin-bottom: 6px;
}

.gate form { text-align: left; }
.gate .field { margin-bottom: 14px; }
.gateError {
  min-height: 20px;
  margin-top: 4px;
  font-size: 12.5px;
  color: #BC4A3C;
  text-align: center;
}
.gate__foot {
  margin-top: 18px;
  font-size: 11px;
  color: #A7917F;
  line-height: 1.8;
}

/* 登录页 */
body.is-guest .nav__links,
body.is-guest .foot__tools { display: none; }
body.is-guest .foot { margin-top: 0; }

.gate--login { padding-top: 58px; }
.gate--login h1 {
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.4;
}
.gate--login .gate__meta {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--muted);
}
.gate--login .btn {
  margin-top: 28px;
  padding: 15px 24px;
  font-size: 14.5px;
}
.gate--login .gateError:empty { display: none; }
.gate--login .gateError { margin-top: 14px; line-height: 1.7; }

.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.boot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  opacity: .3;
  animation: bootPulse 1.15s ease-in-out infinite;
}
.boot__dot:nth-child(2) { animation-delay: .16s; }
.boot__dot:nth-child(3) { animation-delay: .32s; }
@keyframes bootPulse {
  0%, 100% { opacity: .22; transform: scale(.8); }
  50% { opacity: .95; transform: scale(1); }
}

.thumb__wait {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: #B39A88;
  background: #F4EADC;
  border-radius: 12px;
}

/* ============================= footer ============================= */

.foot {
  margin-top: 40px;
  padding: 64px 0 34px;
  background: linear-gradient(180deg, #F8ECDD, #F3E3D1);
  border-top: 1px solid #EDDBC8;
}
.foot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(200, 170, 140, .35);
}
.foot__title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--ink);
}
.foot__sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.foot__tools { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot__mark {
  margin-top: 34px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  color: #BBA28C;
}

/* ============================= toast ============================= */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(51, 36, 28, .94);
  color: #FFF7EE;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .5);
  animation: toastIn .35s var(--ease) forwards;
  backdrop-filter: blur(10px);
}
.toast--warn { background: rgba(150, 66, 40, .95); }
.toast--ok { background: rgba(96, 92, 46, .95); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(6px) scale(.98); }
}

/* ============================= modal ============================= */

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 15, 11, .5);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease forwards;
}
.modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 30px 24px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 60px 100px -60px rgba(0, 0, 0, .8);
  animation: popIn .32s var(--ease) forwards;
}
.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}
.modal__text { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ============================= lightbox ============================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(16, 9, 7, .92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  animation: fadeIn .25s ease forwards;
}
.lightbox[hidden] { display: none; }
.lb__img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  object-fit: contain;
}
.lb__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #FFF3E7;
  font-size: 24px;
  line-height: 1;
  background: rgba(255, 240, 226, .1);
  transition: background .2s;
}
.lb__close:hover { background: rgba(255, 240, 226, .2); }
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #FFF3E7;
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 240, 226, .1);
  transition: background .2s;
}
.lb__nav:hover { background: rgba(255, 240, 226, .2); }
.lb__nav--prev { left: 18px; }
.lb__nav--next { right: 18px; }
.lb__nav[disabled] { opacity: .2; cursor: default; }
.lb__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: rgba(255, 240, 226, .55);
}

/* ============================= motion ============================= */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  13% { transform: scale(1.05); }
  26% { transform: scale(1); }
  39% { transform: scale(1.03); }
  52% { transform: scale(1); }
}
@keyframes drop {
  0% { transform: scaleY(.3); transform-origin: top; opacity: 0; }
  40% { opacity: .8; transform: scaleY(1); }
  100% { transform: scaleY(.4); transform-origin: bottom; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: riseIn .6s var(--ease) both; }

/* ============================= responsive ============================= */

@media (max-width: 900px) {
  .brand__name { display: none; }
  .section { padding: 78px 0; }
  .feats { grid-template-columns: 1fr; }
  .page, .entry { padding-top: 126px; }
  .gate-wrap { padding-top: 176px; }
  .editor { padding: 28px 22px 22px; }
  .hero__inner { padding: 96px 22px 104px; }
  .mascot--l { width: 142px; }
  .mascot--r { width: 104px; }
  .hero__frame { inset: 16px; }
  .hero__side { display: none; }
}

@media (max-width: 640px) {
  .nav { top: 10px; padding: 8px 10px 8px 12px; }
  .nav__links a { padding: 7px 12px; font-size: 13px; }
  .nav__links .nav__cta { padding: 8px 15px; }
  .hero { min-height: 600px; }
  .hero__actions .btn { padding: 12px 22px; }
  .hero__sub { font-size: 13.5px; max-width: 300px; }
  .hero__sig { margin-top: 20px; gap: 9px; }
  .hero__t1 { letter-spacing: .16em; text-indent: .16em; }
  .hero__eyebrow { font-size: 9px; letter-spacing: .3em; gap: 10px; }
  .hero__inner { padding: 92px 20px 132px; }
  .hero__frame { inset: 10px; }
  .hero__frame { --c: rgba(255, 196, 186, .30); inset: 10px; }
  .hero__scroll { bottom: 18px; }
  .mascot--l { width: 116px; left: 2px; }
  .mascot--r { width: 84px; right: 8px; bottom: 8px; }
  .ribbon { padding: 13px 0 11px; }
  .ribbon span { font-size: 10.5px; letter-spacing: .26em; padding-right: 24px; }
  .stats { gap: 16px 40px; }
  .stat b { font-size: 27px; }
  .grid { grid-template-columns: 1fr; }
  .page, .entry { padding-top: 116px; }
  .gate-wrap { padding-top: 158px; }
  .gate__mascot { width: 76px; top: -88px; }
  .editor { padding: 24px 18px 18px; border-radius: 20px; }
  .textarea { min-height: 220px; font-size: 16px; }
  .entry__body p { font-size: 16.5px; }
  .entry__actions { gap: 12px; }
  .gate { padding: 52px 22px 26px; border-radius: 24px; }
  .foot { padding: 48px 0 28px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { text-align: center; }
  .toolbar { align-items: stretch; }
  .search { width: 100%; }
  .feat { padding: 24px 20px 22px; }
  .feat__mascot {
    position: static;
    width: 54px;
    margin-bottom: 10px;
    transform: rotate(-3deg);
  }
  .feat h3 { padding-right: 0; font-size: 20px; }
  .feat p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
