:root {
  --paper: #f8f5ee;
  --paper-deep: #eee9df;
  --ink: #1e2523;
  --muted: #7a827d;
  --jade: #355f5c;
  --jade-light: #93aaa4;
  --red: #a84336;
  --line: rgba(42, 57, 53, 0.12);
  --shadow: 0 16px 45px rgba(37, 49, 45, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 88px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand strong { display: block; font-size: 23px; letter-spacing: .16em; }
.brand small { display: block; margin-top: 4px; color: #8b8c86; font-size: 11px; letter-spacing: .12em; }
.seal {
  width: 28px; height: 38px; border: 1px solid var(--red); color: var(--red);
  display: grid; place-items: center; border-radius: 12px; font-size: 14px;
}
.main-nav { display: flex; gap: 34px; align-self: stretch; }
.main-nav a { display: grid; place-items: center; font-size: 15px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 18px; height: 1px; background: transparent; }
.main-nav a:hover::after, .main-nav a.active::after { background: var(--jade); }
.header-actions { justify-self: end; display: flex; gap: 12px; align-items: center; }
.icon-button, .login-button { border: 0; background: transparent; }
.icon-button { font-size: 26px; color: #34423f; }
.login-button { border: 1px solid #aebbb7; color: var(--jade); padding: 9px 15px; border-radius: 4px; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 25px; justify-self: end; }

.hero {
  min-height: 590px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 45% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 35%, transparent 65%),
    linear-gradient(180deg, #fbf9f4, #eef1ec 75%, #e6ebe6);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 155px;
  background: linear-gradient(to top, rgba(226,234,229,.92), transparent);
}
.hero-inner { position: relative; z-index: 5; text-align: center; width: min(760px, 88vw); margin-top: -15px; }
.hero-kicker { color: var(--red); letter-spacing: .36em; font-size: 13px; }
.hero h1 { font-weight: 500; font-size: clamp(42px, 5vw, 67px); line-height: 1.42; letter-spacing: .15em; margin: 22px 0 18px; }
.hero-description { color: #808680; letter-spacing: .16em; font-size: 14px; }
.search-box { display: grid; grid-template-columns: 1fr 88px; margin: 38px auto 14px; height: 58px; box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; background: white; }
.search-box input { border: 0; outline: 0; padding: 0 24px; color: var(--ink); background: rgba(255,255,255,.92); }
.search-box button { border: 0; background: var(--jade); color: white; font-size: 29px; }
.hot-searches { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; color: #7e837f; font-size: 13px; }
.hot-searches button { border: 0; background: rgba(255,255,255,.56); color: #68716d; border-radius: 18px; padding: 6px 13px; }
.hot-searches button:hover { background: var(--jade); color: white; }
.hero-sun { position: absolute; width: 54px; height: 54px; border-radius: 50%; left: 8%; top: 17%; background: radial-gradient(circle at 40% 40%, #e8b7a6, #ddb09f); opacity: .5; }
.birds { position: absolute; top: 17%; left: 20%; color: #6b817b; transform: rotate(-10deg); letter-spacing: 8px; }
.plum-branch { position: absolute; right: -15px; top: 24px; width: 390px; height: 140px; transform: rotate(-8deg); font-size: 44px; color: #cd8f8b; letter-spacing: 3px; opacity: .75; border-top: 5px solid #4d4740; border-radius: 50%; padding-top: 8px; }
.mountain { position: absolute; bottom: 0; background: linear-gradient(145deg, rgba(91,113,105,.05), rgba(64,87,80,.26)); clip-path: polygon(0 100%, 8% 63%, 18% 76%, 30% 32%, 43% 69%, 55% 45%, 67% 72%, 79% 39%, 91% 62%, 100% 44%, 100% 100%); filter: blur(.2px); }
.mountain-one { left: -7%; width: 58%; height: 290px; opacity: .65; }
.mountain-two { right: -8%; width: 62%; height: 360px; opacity: .7; transform: scaleX(-1); }
.mountain-three { left: 18%; width: 65%; height: 230px; opacity: .26; }

.quick-entry {
  position: relative; z-index: 10;
  width: min(1160px, calc(100% - 40px)); margin: -48px auto 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.7); border-radius: 8px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.entry-item { text-align: center; padding: 28px 12px; border-right: 1px solid var(--line); transition: .25s ease; }
.entry-item:last-child { border-right: 0; }
.entry-item:hover { transform: translateY(-5px); background: rgba(237,243,239,.75); }
.entry-icon { display: block; color: var(--jade-light); font-size: 33px; height: 42px; }
.entry-item strong { display: block; font-size: 17px; margin: 7px 0 9px; }
.entry-item small { color: #929790; line-height: 1.8; }

.content-section, .poet-section { width: min(1160px, calc(100% - 40px)); margin: 68px auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: 28px; font-weight: 600; letter-spacing: .14em; }
.section-heading a { color: #8c928e; font-size: 13px; }
.eyebrow { color: var(--jade); letter-spacing: .3em; font-size: 12px; }
.poem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.poem-card { min-height: 285px; background: rgba(255,255,255,.74); border: 1px solid rgba(69,88,80,.08); border-radius: 7px; box-shadow: 0 9px 28px rgba(44,54,50,.07); padding: 27px 24px 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: .25s ease; }
.poem-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.poem-card::after { content: ""; position: absolute; right: -35px; bottom: -35px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(101,137,126,.2), transparent 66%); }
.poem-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.poem-card .author { margin: 8px 0 20px; color: #8a8e89; font-size: 13px; }
.poem-card .lines { line-height: 2; font-size: 15px; flex: 1; }
.poem-meta { display: flex; gap: 18px; color: #989e99; font-size: 12px; margin-top: 18px; }

.quote-section { width: min(1160px, calc(100% - 40px)); margin: 70px auto; padding: 46px 58px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(110deg, #e8efea, #f7f3ea); border-radius: 8px; box-shadow: var(--shadow); }
.quote-section blockquote { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: .1em; margin: 14px 0 10px; }
.quote-section p { color: #7d8781; }
.quote-section button { border: 1px solid var(--jade); color: var(--jade); background: transparent; border-radius: 3px; padding: 10px 20px; }

.poet-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.poet-card { padding: 24px 18px; text-align: center; background: rgba(255,255,255,.63); border: 1px solid var(--line); border-radius: 7px; }
.poet-avatar { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e1e9e4; color: var(--jade); font-size: 25px; }
.poet-card h3 { margin: 0; }
.poet-card p { color: #8a918c; font-size: 13px; line-height: 1.7; }

.about-section { width: min(1160px, calc(100% - 40px)); margin: 75px auto 90px; padding: 48px 56px; background: rgba(255,255,255,.67); box-shadow: var(--shadow); border-radius: 8px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.about-copy h2 { font-size: 29px; letter-spacing: .08em; margin: 12px 0 18px; }
.about-copy p { color: #707872; line-height: 2; }
.outline-button { display: inline-block; margin-top: 12px; padding: 10px 18px; border: 1px solid var(--jade); color: var(--jade); }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.about-features div { display: grid; grid-template-columns: 45px 1fr; column-gap: 10px; align-items: center; }
.about-features span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; color: var(--jade); border: 1px solid #bac8c2; border-radius: 50%; }
.about-features strong { font-size: 16px; }
.about-features small { color: #8c928d; margin-top: 4px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px clamp(20px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 25px; color: #858b87; font-size: 12px; }
.footer-brand strong { font-size: 18px; color: var(--ink); }
.footer-links { display: flex; gap: 24px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 20px; border-radius: 4px; color: white; background: rgba(38,54,49,.94); transition: .25s; z-index: 99; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 22px 20px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px; }
  .main-nav a::after { display: none; }
  .header-actions { display: none; }
  .quick-entry { grid-template-columns: repeat(3, 1fr); }
  .entry-item:nth-child(3) { border-right: 0; }
  .entry-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .poem-grid { grid-template-columns: repeat(2, 1fr); }
  .poet-list { grid-template-columns: repeat(3, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; padding: 0 18px; }
  .main-nav { top: 72px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 37px; letter-spacing: .09em; }
  .plum-branch { opacity: .3; }
  .search-box { grid-template-columns: 1fr 62px; height: 54px; }
  .quick-entry { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .entry-item:nth-child(3) { border-right: 1px solid var(--line); }
  .entry-item:nth-child(even) { border-right: 0; }
  .entry-item { border-bottom: 1px solid var(--line); }
  .entry-item:nth-last-child(-n+2) { border-bottom: 0; }
  .poem-grid, .poet-list { grid-template-columns: 1fr; }
  .quote-section { padding: 34px 25px; align-items: flex-start; flex-direction: column; }
  .about-section { padding: 35px 25px; }
  .about-features { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
.data-stats{margin:12px 0 20px;color:#71827e;font-size:14px}.load-more-wrap{text-align:center;margin-top:30px}.empty-state{grid-column:1/-1;padding:44px;text-align:center;background:rgba(255,255,255,.7);border:1px solid rgba(60,90,80,.12);border-radius:14px;color:#70807c;line-height:2}
