/* 親子報報・首頁：跟每一期同一套風格（夜空的開場、圓圓的標題字、大大的卡片） */
:root {
  --paper: #fffaf0; --ink: #1f2433; --muted: #6b7183; --accent: #ff7a1a;
  --head: "Huninn", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); }
p { margin: 0; }
.z { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: baseline; line-height: 1.25; }
.z > .p { display: inline-flex; align-items: flex-end; font-family: var(--body); font-size: .36em; line-height: 1; font-weight: 400; margin: 0 .35em 0 .15em; }
.z > .p > .y { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0; }
.z > .p > .t { display: block; width: .9em; margin-left: .05em; position: relative; top: -.3em; }
.nb { display: inline-flex; align-items: center; white-space: nowrap; }
html.nozy .z > .p { display: none; }   /* 注音關掉（全站共用的設定，見 zy.js） */
.phr { display: inline-block; }

.hero { position: relative; min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10vh 6vw; color: #fff; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #ff9a4d 0%, #7b3f8a 30%, #1b2558 62%, #070d24 100%); }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero h1 { position: relative; font: 400 clamp(42px, 6vw, 92px)/1.35 var(--head); margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero .sub { position: relative; font: 400 clamp(19px, 2vw, 28px)/1.8 var(--head); margin-top: 2.5vh; opacity: .92; text-wrap: balance; }

/* 期數：最新的一期（第一張）是一張大卡片，之前的排成小格（電腦一排三個，手機一排兩個） */
.shelf { max-width: 1100px; margin: -8vh auto 0; padding: 0 5vw 8vh; position: relative; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.issue-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(10, 15, 40, .18); transition: transform .2s, box-shadow .2s; }
.issue-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(10, 15, 40, .26); }
.issue-card .pic { display: block; aspect-ratio: 16 / 10; background: #0d1b3d center / cover no-repeat; }
.issue-card .txt { padding: 1.1em 1.4em 1.4em; }
.issue-card .no { display: inline-block; font: 700 15px var(--head); letter-spacing: .12em; color: #fff; background: var(--accent); border-radius: 6px; padding: .1em .6em; }
.issue-card .tt { font: 400 clamp(34px, 4vw, 52px)/1.4 var(--head); margin-top: .25em; }
.issue-card .ds { font: 400 clamp(18px, 1.7vw, 22px)/1.8 var(--head); color: var(--muted); margin-top: .2em; }
.foot { text-align: center; padding: 4vh 6vw 8vh; color: var(--muted); font-size: 14px; }
.issue-card .go { display: flex; gap: 12px; margin-top: 1em; flex-wrap: wrap; }
.issue-card .btn { font: 400 clamp(18px, 1.7vw, 22px)/1 var(--head); text-decoration: none; color: #fff; background: var(--accent); padding: .6em 1.2em; border-radius: 999px; }
.issue-card .btn.alt { background: #fff; color: var(--ink); border: 2px solid #e6dfcd; }
/* 注音開關：開場的左上角，跟每一期左上角的按鈕一樣 */
.zy-btn { position: absolute; left: 14px; top: 14px; z-index: 2; font: 600 14px/1.4 var(--body); color: #fff; background: rgba(0,0,0,.35); padding: 6px 14px; border: 0; border-radius: 999px; backdrop-filter: blur(6px); cursor: pointer; }
.zy-btn .on, .zy-btn .off { opacity: .5; }
html:not(.nozy) .zy-btn .on, html.nozy .zy-btn .off { opacity: 1; color: #ffd23f; }
/* 最新一期：橫的大卡片，照片在左、字在右 */
.issue-card:first-child { grid-column: 1 / -1; }
@media (min-width: 701px) {
  .issue-card:first-child { display: grid; grid-template-columns: 1.15fr 1fr; }
  .issue-card:first-child .pic { aspect-ratio: auto; min-height: 340px; }
  .issue-card:first-child .txt { align-self: center; padding: 1.4em 1.8em; }
}
/* 之前的期數：小格 */
.issue-card:not(:first-child) .tt { font-size: 30px; }
.issue-card:not(:first-child) .ds { font-size: 16px; }
.issue-card:not(:first-child) .btn { font-size: 16px; }
@media (max-width: 700px) {
  .shelf { grid-template-columns: 1fr 1fr; gap: 12px; }
  .issue-card:not(:first-child) .txt { padding: .7em .8em 1em; }
  .issue-card:not(:first-child) .tt { font-size: 22px; }
  .issue-card:not(:first-child) .ds { display: none; }
  .issue-card:not(:first-child) .go { gap: 6px; }
  .issue-card:not(:first-child) .btn { flex: 1 1 100%; text-align: center; font-size: 14px; padding: .55em .5em; }
}
