/* =========================================================
   MAWANGDUI DIGITAL ARCHIVE
   FULL RESPONSIVE VERSION
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {
  --paper: #eee9dd;
  --paper-light: #f6f2e9;

  --ink: #151713;
  --gray: #55564f;

  --olive: #99936e;
  --green: #697f6c;

  --red: #8d2d22;
  --gold: #d5aa34;
  --dark: #102324;

  --line: rgba(37, 38, 31, 0.18);

  /*
    苹果官网式逻辑：
    页面背景全宽，
    真正内容最多 1280px 并居中。
  */
  --content-width: 1280px;
}



/* =========================================================
   2. RESET
========================================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  width: 100%;
  min-width: 320px;

  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    "Microsoft YaHei",
    sans-serif;

  line-height: 1.3;

  background-color: var(--paper);

  overflow-x: hidden;
}


img {
  display: block;

  max-width: 100%;
}


a {
  color: inherit;

  text-decoration: none;
}



/* =========================================================
   3. WHOLE PAGE
========================================================= */

.site {
  width: 100%;

  max-width: none;

  margin: 0;

  overflow: hidden;

  background-color: var(--paper);

  background-image:
    linear-gradient(
      rgba(238, 233, 221, 0.82),
      rgba(238, 233, 221, 0.82)
    ),
    url("https://res.cloudinary.com/z36kd4vf/image/upload/v1790237219/paper-bg.webp");

  background-repeat: repeat;

  background-size:
    auto,
    580px auto;
}



/* =========================================================
   4. TOP BAR
========================================================= */

.top-bar {
  width: 100%;

  height: 42px;

  background: var(--olive);
}


.top-bar-inner {
  width: min(
    calc(100% - 64px),
    var(--content-width)
  );

  height: 100%;

  margin: 0 auto;

  display: flex;

  align-items: center;
}


.brand {
  color: rgba(255, 255, 255, 0.75);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.7px;
}


.nav {
  margin-left: auto;

  margin-right: 24px;

  display: flex;

  gap: 22px;
}


.nav a {
  color: rgba(255, 255, 255, 0.75);

  font-size: 9px;

  font-weight: 700;
}


.search-button {
  padding: 5px 14px;

  color: #666255;

  font-size: 8px;

  border: none;

  border-radius: 20px;

  background: #fff;

  cursor: pointer;
}



/* =========================================================
   5. HERO
========================================================= */

.hero {
  position: relative;

  width: 100%;

  height: clamp(390px, 35vw, 620px);

  overflow: hidden;

  background: var(--dark);
}


.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;
}


.hero-shade {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 24, 26, 0.04),
      rgba(5, 24, 26, 0.12) 50%,
      rgba(5, 24, 26, 0.55)
    );
}


.hero-text {
  position: absolute;

  top: clamp(45px, 5vw, 78px);

  right: max(
    32px,
    calc((100% - var(--content-width)) / 2)
  );

  display: flex;

  align-items: center;

  gap: clamp(18px, 2.5vw, 38px);

  color: var(--gold);
}


.hero-small {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(10px, 1vw, 14px);

  line-height: 1.06;
}


.hero-title {
  display: flex;

  align-items: flex-start;

  gap: 14px;
}


.hero-title h1 {
  margin: 0;

  color: var(--gold);

  font-family:
    "Songti SC",
    "SimSun",
    serif;

  font-size: clamp(70px, 7vw, 110px);

  font-weight: 500;

  line-height: 0.85;

  writing-mode: vertical-rl;
}


.hero-title span {
  margin-top: 5px;

  color: #fff;

  font-family:
    "Songti SC",
    "SimSun",
    serif;

  font-size: clamp(11px, 1vw, 16px);

  letter-spacing: 2px;

  writing-mode: vertical-rl;
}



/* =========================================================
   6. GENERAL SECTION
========================================================= */

.section {
  width: min(
    calc(100% - 64px),
    var(--content-width)
  );

  margin: 0 auto;

  padding:
    clamp(54px, 6vw, 90px)
    0;

  clear: both;
}


.section-heading {
  margin-bottom:
    clamp(26px, 3vw, 40px);
}


.heading-top {
  display: flex;

  align-items: baseline;

  gap: 10px;
}


.number {
  font-size:
    clamp(20px, 1.6vw, 26px);

  font-weight: 900;
}


.section-heading h2 {
  margin: 0;

  font-size:
    clamp(27px, 2.4vw, 38px);

  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.5px;
}


.section-heading h3 {
  margin: 13px 0 0;

  font-size:
    clamp(14px, 1.35vw, 19px);

  font-weight: 800;
}


.intro-copy {
  width: min(70%, 780px);

  margin: 0;

  font-size:
    clamp(13px, 1vw, 16px);

  line-height: 1.3;
}



/* =========================================================
   7. SECTION 01
========================================================= */

.intro-section {
  padding-top:
    clamp(32px, 4vw, 58px);

  padding-bottom:
    clamp(60px, 7vw, 100px);
}



/* =========================================================
   8. SECTION 02 — THREE TOMBS
========================================================= */

.tomb-section {
  padding-top:
    clamp(38px, 4vw, 65px);
}


.tomb-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    clamp(18px, 2vw, 32px);

  align-items: start;
}


.tomb-grid > .tomb-card {
  min-width: 0;
}


.tomb-card img {
  width: 100%;

  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border-radius: 12px;
}


.year {
  margin: 13px 0 3px;

  font-size:
    clamp(10px, 0.8vw, 12px);

  font-weight: 900;
}


.tomb-card h4 {
  margin: 0 0 5px;

  font-size:
    clamp(11px, 1vw, 15px);

  font-weight: 900;
}


.tomb-card > p:last-child {
  margin: 0;

  font-size:
    clamp(11px, 0.95vw, 14px);

  line-height: 1.2;
}



/* =========================================================
   9. SECTION 03 — WHAT REMAINS
========================================================= */

.objects-section {
  display: block;

  width: min(
    calc(100% - 64px),
    var(--content-width)
  );

  padding-top:
    clamp(46px, 5vw, 76px);

  clear: both;
}


.object-group {
  display: block;

  width: 100%;

  margin-top:
    clamp(35px, 4vw, 58px);

  clear: both;
}


.object-label {
  width: 100%;

  margin-bottom: 18px;
}


.object-label p {
  margin: 0;

  color: #4e4f49;

  font-size:
    clamp(14px, 1.15vw, 18px);

  letter-spacing: 0.2px;
}


.object-label span {
  display: block;

  margin-top: 3px;

  font-family:
    "Songti SC",
    "SimSun",
    serif;

  font-size:
    clamp(14px, 1.1vw, 17px);
}


.object-label-right {
  padding-right: 14px;

  text-align: right;
}



/* =========================================================
   03 — TOMB 01 / XIN ZHUI
========================================================= */

.xinzhui-grid {
  position: relative;

  width: 100%;

  min-height:
    clamp(340px, 31vw, 460px);

  display: grid;

  grid-template-columns:
    0.95fr
    1.05fr
    1.15fr;

  gap:
    clamp(20px, 2.2vw, 34px);

  align-items: start;
}


.object-card {
  margin: 0;

  min-width: 0;
}


.object-card img {
  width: 100%;

  height:
    clamp(160px, 15vw, 220px);

  object-fit: contain;
}


.object-card figcaption {
  margin-top: 8px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(8px, 0.65vw, 10px);

  line-height: 1.15;
}


.object-card figcaption span {
  display: block;

  margin-top: 4px;
}


.silk-card {
  padding-top: 8px;
}


.lacquer-card {
  padding-top: 8px;
}


/* 素纱襌衣 */

.robe-card {
  position: relative;

  top:
    clamp(-90px, -6vw, -68px);

  z-index: 2;
}


.robe-card img {
  width: 130%;

  max-width: none;

  height:
    clamp(330px, 30vw, 450px);

  margin-left: -15%;

  object-fit: contain;
}


.robe-card figcaption {
  margin-top: -3px;
}



/* =========================================================
   03 — TOMB 02 / LI CANG
========================================================= */

.seal-group {
  margin-top:
    clamp(10px, 1vw, 18px);
}


.seal-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap:
    clamp(24px, 3vw, 46px);

  align-items: end;
}


.seal-grid figure {
  margin: 0;

  min-width: 0;
}


.seal-grid img {
  width: 100%;

  height:
    clamp(135px, 13vw, 185px);

  object-fit: contain;
}


.seal-grid figcaption {
  margin-top: 8px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(8px, 0.65vw, 10px);
}



/* =========================================================
   03 — TOMB 03
========================================================= */

.tomb03-group {
  display: block;

  width: 100%;

  margin-top:
    clamp(45px, 5vw, 70px);

  clear: both;
}


.tomb03-grid {
  position: relative;

  width: 100%;

  min-height:
    clamp(300px, 30vw, 400px);

  display: grid;

  grid-template-columns:
    1.15fr
    0.68fr
    0.95fr
    0.92fr;

  gap:
    clamp(18px, 2vw, 30px);

  align-items: start;
}


.tomb03-item {
  margin: 0;

  min-width: 0;
}


.tomb03-item img {
  display: block;

  width: 100%;

  object-fit: contain;
}


.tomb03-item figcaption {
  margin-top: 8px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(7.5px, 0.62vw, 10px);

  line-height: 1.15;
}


.tomb03-item figcaption span {
  display: block;

  margin-top: 3px;

  font-family:
    "Songti SC",
    "SimSun",
    serif;

  font-size:
    clamp(7px, 0.58vw, 9px);
}


/* 1 — lacquer plate */

.vessel-item {
  padding-top:
    clamp(65px, 6vw, 90px);
}


.vessel-item img {
  width: 100%;

  height:
    clamp(130px, 12vw, 175px);

  object-fit: cover;

  border-radius: 8px;
}


/* 2 — boshu3 */

.boshu3-item {
  padding-top:
    clamp(52px, 5vw, 72px);
}


.boshu3-item img {
  height:
    clamp(160px, 15vw, 210px);
}


/* 3 — boshu1 */

.boshu1-item {
  padding-top:
    clamp(25px, 2.7vw, 38px);
}


.boshu1-item img {
  height:
    clamp(205px, 20vw, 275px);
}


/* 4 — boshu2 */

.boshu2-item {
  padding-top: 0;
}


.boshu2-item img {
  height:
    clamp(265px, 26vw, 350px);
}



/* =========================================================
   10. SECTION 04 — LIFE
========================================================= */

.life-section {
  display: block;

  width: 100%;

  margin-top:
    clamp(15px, 2vw, 30px);

  clear: both;

  background:
    rgba(247, 243, 235, 0.52);
}


.life-inner {
  padding-top:
    clamp(45px, 5vw, 70px);

  padding-bottom:
    clamp(38px, 4vw, 60px);
}


.life-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  background:
    rgba(255, 255, 255, 0.36);
}


.life-grid article {
  min-width: 0;

  border-right:
    1px solid
    var(--line);
}


.life-grid article:last-child {
  border-right: none;
}


.life-text {
  min-height:
    clamp(104px, 10vw, 140px);

  padding:
    clamp(10px, 1vw, 15px);

  display: flex;

  gap:
    clamp(7px, 0.8vw, 11px);
}


.life-text b {
  flex: 0 0 auto;

  color: var(--red);

  font-family:
    "Songti SC",
    "SimSun",
    serif;

  font-size:
    clamp(36px, 3.5vw, 52px);

  font-weight: 400;

  line-height: 1;
}


.life-text strong {
  font-size:
    clamp(8px, 0.75vw, 11px);
}


.life-text p {
  margin: 4px 0 0;

  color: var(--gray);

  font-size:
    clamp(7px, 0.63vw, 9px);

  line-height: 1.2;
}


.life-grid article > img {
  width: 100%;

  height:
    clamp(92px, 10vw, 145px);

  object-fit: cover;
}



/* =========================================================
   11. SECTION 05 — ARCHIVE
========================================================= */

.archive-section {
  position: relative;

  padding-top:
    clamp(52px, 6vw, 85px);

  padding-bottom:
    clamp(60px, 6vw, 90px);
}


.archive-feature {
  position: relative;

  min-height:
    clamp(210px, 21vw, 295px);
}


.archive-feature p {
  width: min(55%, 620px);

  margin:
    clamp(40px, 4vw, 60px)
    auto
    0;

  text-align: center;

  font-size:
    clamp(12px, 1vw, 15px);
}


.archive-lacquer {
  position: absolute;

  top:
    clamp(-100px, -6vw, -75px);

  right:
    clamp(-75px, -4vw, -50px);

  width:
    clamp(270px, 25vw, 360px);

  height:
    clamp(270px, 25vw, 360px);

  object-fit: contain;
}


.archive-grid {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 6px;
}


.archive-grid figure {
  margin: 0;
}


.archive-grid img {
  width: 100%;

  height: auto;

  aspect-ratio: 16 / 10;

  object-fit: cover;

  border-radius: 10px;
}


.archive-copy {
  width: min(78%, 850px);

  margin: 24px 0 0;

  font-size:
    clamp(11px, 0.95vw, 14px);

  line-height: 1.25;
}



/* =========================================================
   12. FOOTER
========================================================= */

.footer {
  width: 100%;

  padding:
    24px
    max(
      32px,
      calc((100% - var(--content-width)) / 2)
    )
    30px;

  color:
    rgba(255, 255, 255, 0.84);

  background: var(--green);
}


.footer p {
  margin: 1px 0;

  font-size:
    clamp(7px, 0.62vw, 9px);
}



/* =========================================================
   13. LARGE SCREEN
========================================================= */

@media (min-width: 1600px) {

  :root {
    --content-width: 1360px;
  }


  .hero {
    height: 620px;
  }

}



/* =========================================================
   14. TABLET
========================================================= */

@media (max-width: 1024px) {

  :root {
    --content-width: 920px;
  }


  .top-bar-inner,
  .section,
  .objects-section {
    width:
      calc(100% - 48px);
  }


  .hero {
    height: 430px;
  }


  .hero-text {
    right: 28px;
  }


  .hero-title h1 {
    font-size: 72px;
  }


  .tomb-grid {
    gap: 18px;
  }


  .seal-grid {
    gap: 22px;
  }


  .tomb03-grid {
    gap: 18px;
  }


  .robe-card {
    top: -55px;
  }


  .archive-lacquer {
    right: -75px;
  }

}



/* =========================================================
   15. MOBILE
========================================================= */

@media (max-width: 760px) {

  .brand,
  .nav {
    display: none;
  }


  .top-bar-inner {
    width:
      calc(100% - 32px);

    justify-content: flex-end;
  }


  .hero {
    height: 330px;
  }


  .hero-text {
    top: 40px;

    right: 20px;

    gap: 14px;
  }


  .hero-small {
    font-size: 8px;
  }


  .hero-title h1 {
    font-size: 54px;
  }


  .hero-title span {
    font-size: 10px;
  }


  .section,
  .objects-section {
    width:
      calc(100% - 32px);

    padding:
      42px
      0;
  }


  .section-heading h2 {
    font-size: 23px;
  }


  .section-heading h3 {
    font-size: 13px;
  }


  .intro-copy {
    width: 100%;
  }


  /* 02 */

  .tomb-grid {
    grid-template-columns: 1fr;

    gap: 34px;
  }


  .tomb-card img {
    width: 100%;

    height: auto;

    aspect-ratio: 4 / 3;
  }


  /* 03 */

  .xinzhui-grid,
  .seal-grid,
  .tomb03-grid {
    height: auto;

    min-height: 0;

    grid-template-columns: 1fr;
  }


  .xinzhui-grid {
    gap: 30px;
  }


  .robe-card {
    top: 0;
  }


  .robe-card img {
    width: 100%;

    height: 320px;

    margin: 0;
  }


  .seal-grid {
    gap: 28px;
  }


  .seal-grid img {
    height: 180px;
  }


  .vessel-item,
  .boshu3-item,
  .boshu1-item,
  .boshu2-item {
    padding-top: 0;
  }


  .vessel-item img,
  .boshu3-item img,
  .boshu1-item img,
  .boshu2-item img {
    width: 100%;

    height: auto;
  }


  /* 04 */

  .life-grid {
    grid-template-columns: 1fr;
  }


  .life-grid article {
    border-right: none;

    border-bottom:
      1px solid
      var(--line);
  }


  .life-text {
    min-height: 90px;
  }


  .life-grid article > img {
    height: auto;

    aspect-ratio: 16 / 7;
  }


  /* 05 */

  .archive-feature {
    min-height: 190px;
  }


  .archive-feature p {
    width: 65%;

    margin-left: 0;

    text-align: left;
  }


  .archive-lacquer {
    width: 190px;

    height: 190px;

    right: -65px;
  }


  .archive-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }


  .archive-grid img {
    width: 100%;

    height: auto;

    aspect-ratio: 16 / 9;
  }


  .archive-copy {
    width: 100%;
  }


  .footer {
    padding:
      24px
      16px
      30px;
  }

}



/* =========================================================
   16. SMALL PHONE
========================================================= */

@media (max-width: 480px) {

  .hero {
    height: 285px;
  }


  .hero-small {
    display: none;
  }


  .hero-title h1 {
    font-size: 48px;
  }


  .section,
  .objects-section {
    width:
      calc(100% - 24px);
  }


  .number {
    font-size: 18px;
  }


  .section-heading h2 {
    font-size: 21px;
  }


  .section-heading h3 {
    font-size: 12px;
  }


  .object-label p {
    font-size: 13px;
  }


  .object-label span {
    font-size: 13px;
  }


  .archive-feature p {
    width: 58%;
  }


  .archive-lacquer {
    width: 160px;

    height: 160px;
  }

}