/* ===== Reset ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* ===== Body ===== */
body{
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(200,190,175,0.08)),
    #f6efe6;
  font-family:Georgia, "Times New Roman", serif;
  color:#3d342c;
  line-height:1.8;
}

/* ===== Container ===== */
.page{
  max-width:880px;
  margin:0 auto;
  padding:90px 28px 70px;
}

/* ===== Hero (首页标题部分) ===== */
.hero{
  text-align:center;
  padding:100px 20px 90px;
}

/* Hero Title */
.hero h1{
  font-family:Georgia,serif;
  font-size:4.4rem;
  text-transform:uppercase;
  letter-spacing:4px;
  font-weight:700;
  line-height:1.18;
  color:#2c251f;
}

/* underline */
.hero h1::after{
  content:"";
  width:140px;
  height:2px;
  margin:28px auto 45px;
  display:block;
  background:linear-gradient(to right, #bda892, transparent);
}

/* Hero description */
.hero p{
  max-width:720px;
  margin:0 auto;
  font-size:1.15rem;
  line-height:1.9;
  color:#7a6e62;
}

/* ===== Memory list ===== */
.memory-list{
  display:flex;
  flex-direction:column;
  gap:40px;
  margin-top:30px;
}

/* ===== Cards ===== */
.memory-summary{
  background:#fffdf7;
  border:1px solid #ded2c3;
  padding:38px;
  border-radius:14px;
  position:relative;
  box-shadow:0 8px 20px rgba(0,0,0,0.04);
  transition:.4s;
}

/* Left bar */
.memory-summary::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:#c4a887;
  opacity:0.25;
}

/* Hover */
.memory-summary:hover{
  transform:translateY(-7px);
  background:#fff8ed;
  box-shadow:0 12px 32px rgba(0,0,0,0.08);
}

/* Card title */
.memory-summary h2{
  font-family:"Inter",sans-serif;
  font-weight:500;
  letter-spacing:.6px;
  font-size:1.45rem;
  margin-bottom:12px;
}

/* Card text */
.memory-summary p{
  font-size:1.02rem;
  color:#574e45;
}

/* Card link */
.memory-summary a{
  margin-top:12px;
  display:inline-block;
  color:#8b684c;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:.3s;
}
.memory-summary a:hover{
  border-bottom:1px solid #8b684c;
}

/* ===== Detail Page ===== */
.memory-detail{
  background:#fffdf7;
  border:1px solid #ded2c3;
  padding:60px 45px;
  border-radius:16px;
  box-shadow:0 8px 25px rgba(0,0,0,.05);
  margin-top:40px;
}

.memory-detail h2{
  font-family:"Inter",sans-serif;
  font-weight:400;
  margin-top:28px;
  margin-bottom:14px;
}

/* ===== Back link ===== */
.back-link{
  text-decoration:none;
  font-size:.92rem;
  color:#8b684c;
}
.back-link:hover{
  text-decoration:underline;
}

/* ===== Polaroid image ===== */
.memory-image{
  width:80%;
  max-width:600px;
  display:block;
  margin:20px auto 35px;
  padding:18px 18px 45px;
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 8px 28px rgba(0,0,0,0.12);
  transform:rotate(-1deg);
}
.memory-image:hover{
  transform:rotate(0deg) translateY(-5px);
  transition:.4s;
}

/* ===== Mobile ===== */
@media(max-width:700px){
  .hero h1{font-size:2.7rem;}
  .page{padding:50px 18px;}
  .memory-detail{padding:40px 24px;}
}
