/* 成長影音天地 Press On! — v2
   Visual identity carried over from the legacy site:
   pine forest banner (assets/bg.jpg), grape vine bar (assets/vinebar.jpg),
   wheat gold and grape purple accents. */
:root {
  --ink: #2b3126;
  --muted: #6d7666;
  --line: #e0ddd0;
  --bg: #f7f5ee;            /* parchment */
  --card: #fffdf7;
  --forest: #24422f;        /* deep pine */
  --forest-2: #35594052;
  --accent: #2e6844;        /* leaf green */
  --accent-soft: #e9f1e6;
  --grape: #5c5f9e;         /* vinebar grapes */
  --grape-soft: #ececf5;
  --gold: #b8892c;          /* wheat */
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Serif TC", "PMingLiU", "MingLiU", Georgia, serif;
  line-height: 1.65;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header: forest banner + vine bar, echoing the legacy layout ---- */
.site-header .banner {
  background:
    linear-gradient(rgba(18, 38, 25, .55), rgba(18, 38, 25, .68)),
    url("assets/bg.jpg") center 35% / cover no-repeat;
  border-bottom: 2px solid #1c3524;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding-top: 26px; padding-bottom: 22px;
}
.brand {
  color: #fff; font-size: 27px; font-weight: 700; letter-spacing: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.brand .en {
  display: block; font-size: 13px; font-weight: 400; letter-spacing: 4px;
  color: #e9d8a6; font-family: Georgia, serif; margin-top: -2px;
}
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.site-header nav a {
  color: #f0f4ec; padding: 5px 13px; border-radius: 16px; font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5); border: 1px solid transparent;
}
.site-header nav a.active { background: rgba(233, 216, 166, .22); border-color: rgba(233,216,166,.5); }
.site-header nav a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.site-header nav a.legacy { color: #e9d8a6; }

.vinebar {
  height: 31px;
  background: url("assets/vinebar.jpg") repeat-x center / auto 31px, #eef0e6;
  border-bottom: 1px solid var(--line);
}
.site-footer .vinebar { border-top: 1px solid var(--line); border-bottom: none; }

main { padding: 26px 20px 48px; }
h1 { font-size: 28px; margin: 16px 0 10px; color: var(--forest); }
h1 .en, h2 .en { color: var(--muted); font-size: 70%; font-weight: 400; margin-left: 8px; }
h2 {
  font-size: 21px; margin: 30px 0 12px; color: var(--forest);
  border-left: 5px solid var(--gold); padding-left: 10px;
}
.count { color: var(--muted); font-size: 70%; font-weight: 400; }
.note, .fine { color: var(--muted); font-size: 14px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }

.hero { text-align: center; padding: 20px 0 4px; }
.hero-logo {
  max-width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(36, 66, 47, .18);
}
.hero p { max-width: 660px; margin: 14px auto 0; color: var(--muted); }
.twoways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 10px; }
.way {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; transition: box-shadow .15s;
}
.way + .way { border-top-color: var(--grape); }
.way:hover { box-shadow: 0 4px 16px rgba(36,66,47,.16); text-decoration: none; }
.way h2 { border: none; padding: 0; margin: 0 0 8px; }
.way p { color: var(--muted); margin: 0; }

/* ---- entry cards with legacy series thumbnails ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 4px 14px rgba(36,66,47,.16); text-decoration: none; transform: translateY(-1px); }
.cthumb {
  width: 74px; height: 74px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--accent-soft);
}
.cthumb.ph {
  display: block;
  background: var(--accent-soft) url("assets/vinebar.jpg") center / 60px auto no-repeat;
  opacity: .55;
}
.cbody { display: block; min-width: 0; }
.ctitle { display: block; margin: 3px 0; font-size: 16.5px; font-weight: 700; line-height: 1.45; color: var(--forest); }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.year { color: var(--gold); font-weight: 700; font-size: 13.5px; margin-right: auto; }
.badge-up {
  font-size: 11px; background: var(--grape-soft); color: var(--grape);
  border-radius: 4px; padding: 0 6px;
}
.kind {
  font-size: 10.5px; font-family: Arial, sans-serif; letter-spacing: .5px;
  background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 1px 5px;
}
.kind.k-rm, .kind.k-ram { background: #efeef6; color: var(--grape); }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag {
  display: inline-block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 1px 10px; font-size: 13px; color: var(--accent);
}
.tag.book { background: var(--accent-soft); border-color: transparent; }
.toc { line-height: 2.2; }

.searchbox { margin: 10px 0 4px; }
.searchbox input {
  width: 100%; max-width: 420px; font: inherit; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
}
.searchbox input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.bookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 26px; }
.bookcell {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; display: flex; flex-direction: column; color: var(--ink);
}
.bookcell:hover { box-shadow: 0 3px 10px rgba(36,66,47,.16); text-decoration: none; }
.bookcell .zh { font-weight: 700; color: var(--forest); }
.bookcell .en { color: var(--muted); font-size: 12.5px; font-family: Georgia, serif; }
.bookcell .n { color: var(--gold); font-size: 13px; margin-top: 2px; }
.bookcell.empty { opacity: .45; }
.bookcell.empty .n { color: var(--muted); }
.booknav { display: flex; gap: 18px; color: var(--muted); }

.study { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
.study-head { display: flex; gap: 20px; align-items: flex-start; }
.study-head h1 { margin-top: 0; }
.thumb { width: 160px; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.study p { margin: 6px 0; }
.media-sec h3 { margin: 22px 0 8px; font-size: 17px; color: var(--forest); }
.media-sec .verb { color: var(--muted); font-size: 72%; font-weight: 400; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; }
.part {
  background: var(--accent-soft); border-radius: 6px; padding: 3px 10px;
  font-size: 13.5px; font-family: Arial, sans-serif; min-width: 40px; text-align: center;
}
.part:hover { background: var(--accent); color: #fff; text-decoration: none; }
.part.missing { background: #f1efe8; color: #b9b4a4; text-decoration: line-through; }

.site-footer { color: var(--muted); font-size: 13.5px; background: var(--card); }
.site-footer .wrap { padding-top: 12px; padding-bottom: 16px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 720px) {
  .twoways { grid-template-columns: 1fr; }
  .study-head { flex-direction: column; }
  .site-header nav { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .brand { font-size: 23px; }
}
