:root{
  --bg:#f6f3ec; --card:#ffffff; --text:#3b3a35; --muted:#8b8578; --border:#e6e0d2;
  --accent:#5d9b82; --accent-soft:#e3f0e9; --accent-deep:#457a66;
  --pop:#e8b64c; --pop-soft:#faf0d8;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg); color:var(--text);
  font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
  line-height:1.75; font-size:16px;
}
.wrap{width:100%; max-width:880px; margin:0 auto; padding:24px 20px 70px;}

.actions{flex:none; display:flex; align-items:center; gap:10px;}
.lang-select{
  font-family:inherit; font-size:.9rem; color:var(--text); cursor:pointer;
  background:var(--card); border:1.5px solid var(--border); border-radius:99px;
  padding:7px 12px; transition:border-color .15s;
}
.lang-select:hover{border-color:var(--accent);}
.act{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  background:var(--card); border:1.5px solid var(--border); border-radius:99px;
  padding:7px 16px; font:inherit; font-size:.9rem; color:var(--text);
  transition:border-color .15s, transform .15s;
}
.act:hover{border-color:var(--accent); transform:translateY(-1px);}
.act:disabled{opacity:.5; cursor:default; transform:none;}
.act svg{width:16px; height:16px; color:var(--accent-deep); flex:none;}

header.site{display:flex; align-items:flex-start; gap:16px; padding:24px 0 6px;}
.logo{flex:none; width:64px; height:64px;}
.head-main{flex:1; min-width:0;}
.title-row{display:flex; align-items:center; gap:14px; flex-wrap:nowrap;}
.title-text{flex:0 1 auto; min-width:0; line-height:1.3;}
h1.title{display:inline; font-size:1.6rem; line-height:1.3; letter-spacing:.06em; font-weight:800;
  white-space:nowrap;}
h1.title .n1, h1.title .n2{color:#3f8f63;}
.title-sub{display:inline-block; position:relative; padding-bottom:5px; white-space:nowrap;}
.title-sub .n3{font-size:1.6rem; line-height:1.3; letter-spacing:.06em; font-weight:800;}
.title-deco{position:absolute; left:0; bottom:0; width:100%; height:8px; color:var(--accent);}
.issue-badge{
  flex:none; width:60px; height:60px; border-radius:50%;
  margin:-13px 0 -13px 12px;
  background:var(--pop); color:#5c430e; transform:rotate(-4deg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-weight:800; line-height:1.1; box-shadow:2px 3px 0 var(--pop-soft);
  padding:4px; text-align:center;
}
.issue-badge[hidden]{display:none;}
.issue-badge .no{font-size:1.15rem;}
.issue-badge .lab{font-size:.72rem; letter-spacing:.12em;}
.updated{
  color:var(--muted); font-size:.85rem; margin:8px 0 0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:none;
}
.updated-top{
  color:var(--muted); font-size:.85rem; margin:6px 0 0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.issue-nav{display:none; gap:8px; margin:0;}
.issue-nav[hidden]{display:none;}
.issue-nav button{
  font-family:inherit; font-size:.9rem; font-weight:700; cursor:pointer; white-space:nowrap;
  background:var(--card); border:1.5px solid var(--border); color:var(--muted);
  border-radius:10px; padding:6px 14px; transition:border-color .15s, color .15s, background .15s;
}
.issue-nav button:hover{border-color:var(--accent); color:var(--text);}
.issue-nav button.on{background:var(--accent); border-color:var(--accent); color:#fff;}
@media (min-width:1180px){
  .issue-nav{
    display:flex; position:fixed; left:max(14px, calc(50% - 556px)); top:150px; z-index:8;
    flex-direction:column; flex-wrap:nowrap; width:100px;
    max-height:70vh; overflow-y:auto;
  }
  .issue-nav button{width:100%;}
  .issue-head .issue-select{display:none;}
}

.issue{margin-top:26px;}
.issue-head{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.issue-head .issue-select{margin-left:auto;}
.issue-head .tag{
  display:inline-block; font-size:.95rem; font-weight:800; letter-spacing:.12em;
  background:var(--pop); color:#5c430e; padding:3px 16px; border-radius:99px;
}
.issue-select{
  font-family:inherit; font-size:.95rem; font-weight:700; cursor:pointer;
  color:var(--accent-deep); background:var(--card);
  border:1.5px solid var(--border); border-radius:10px; padding:4px 10px;
  transition:border-color .15s;
}
.issue-select:hover{border-color:var(--accent);}
.issue-select[hidden]{display:none;}
.issue-intro{
  margin-top:14px; font-size:1rem; line-height:1.85;
  background:var(--accent-soft); border-radius:14px; padding:13px 18px;
  border-left:5px solid var(--accent);
}

.card{
  position:relative;
  background:var(--card); border:1.5px solid var(--border); border-radius:18px;
  padding:20px; margin-top:14px; display:flex; gap:18px; flex-wrap:wrap;
  transition:transform .18s, box-shadow .18s;
}
.card:hover{transform:translateY(-3px); box-shadow:0 8px 22px rgba(69,122,102,.13);}
.thumb{
  flex:none; width:205px; border-radius:12px;
  object-fit:cover; background:var(--accent-soft); border:1.5px solid var(--border);

  height:1px; min-height:100%;
}

.thumb-wrap{position:static; flex:none; align-self:stretch; display:flex; min-height:230px;}
.stickers{position:absolute; top:-16px; right:18px; display:flex; gap:16px; z-index:2;}
.sticker{
  width:66px; height:66px; border-radius:50%; flex:none;
  background:var(--pop); border:2.5px dashed rgba(255,255,255,.9);
  display:flex; align-items:center; justify-content:center;
  transform:rotate(7deg); box-shadow:0 3px 10px rgba(0,0,0,.16);
  font-size:1.25rem; font-weight:900; letter-spacing:.03em; line-height:1;
  color:#5c430e; white-space:nowrap; overflow:visible;
  -webkit-text-stroke:5px #fff; paint-order:stroke fill;
}
.sticker:nth-child(2){transform:rotate(-8deg); background:var(--accent); color:var(--accent-deep);}
.card-body{flex:1; min-width:0;}
.card-body h3{font-size:1.4rem; display:inline; letter-spacing:.03em;}

.card-actions{flex:0 0 100%; display:flex; justify-content:flex-end; align-items:center;
  gap:10px; margin-top:14px;}
.card-link{
  display:inline-flex; align-items:center; gap:4px;
  color:#fff; background:var(--accent); font-size:.9rem; font-weight:700; text-decoration:none;
  border-radius:99px; padding:5px 16px; transition:background .15s;
}
.card-link:hover{background:var(--accent-deep);}
.card-link svg{width:14px; height:14px;}
.card-save{
  display:inline-flex; align-items:center; gap:4px;
  background:none; border:1.5px solid var(--border); color:var(--muted);
  font-size:.9rem; border-radius:99px; padding:5px 14px; cursor:pointer;
  font-family:inherit; transition:color .15s, border-color .15s;
}
.card-save:hover{color:var(--accent-deep); border-color:var(--accent);}
.card-save:disabled{opacity:.5; cursor:default;}
.card-save svg{width:14px; height:14px;}
.card-desc{color:var(--muted); font-size:.95rem; line-height:1.7; margin-top:8px;
  display:flex; align-items:baseline; gap:8px; flex-wrap:nowrap;}
.card-desc .author{font-weight:700; color:var(--accent-deep); flex:0 0 auto;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:60%;}
.card-desc .sep{color:var(--muted); opacity:.5; flex:none;}
.card-desc .slogan{flex:1 1 auto; min-width:0; overflow-wrap:anywhere;}
.block{margin-top:16px; font-size:1rem; line-height:1.9;}
.block .who{
  display:inline-block; font-size:.875rem; font-weight:800; letter-spacing:.08em;
  margin-bottom:5px; padding:1px 12px; border-radius:99px;
}
.block.opinion .who{background:#f0ede4; color:var(--muted);}
.block.opinion{border-left:3.5px solid var(--border); padding-left:13px;}
.block.ai{background:var(--accent-soft); border-radius:14px; padding:13px 15px;}
.block.ai .who{background:var(--accent); color:#fff;}

.empty{
  margin-top:44px; text-align:center; color:var(--muted);
  background:var(--card); border:2px dashed var(--border); border-radius:18px; padding:46px 20px;
}
footer{text-align:center; color:var(--muted); font-size:.875rem; margin-top:52px; line-height:2;}
.foot-links{display:flex; justify-content:center; gap:14px; margin-top:16px; flex-wrap:wrap;}
.foot-links a, .foot-links button{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  font-family:inherit; font-size:.9rem; text-decoration:none; line-height:1.4;
  background:var(--card); border:1.5px solid var(--border); color:var(--text);
  border-radius:8px; padding:5px 14px; transition:border-color .15s, transform .15s;
}
.foot-links a:hover, .foot-links button:hover{border-color:var(--accent); transform:translateY(-1px);}
.foot-links svg{width:14px; height:14px; color:var(--accent-deep);}

#about{
  display:none; position:fixed; inset:0; z-index:40;
  background:rgba(59,58,53,.5); align-items:center; justify-content:center; padding:20px;
}
#about.show{display:flex;}
#about .panel{
  background:var(--card); border-radius:18px; max-width:620px; width:100%;
  max-height:86vh; overflow-y:auto; padding:0 30px 26px; position:relative;
  box-shadow:0 12px 44px rgba(0,0,0,.22);
}
#about .pane-head{
  position:sticky; top:0; z-index:2; background:var(--card);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:22px 0 12px; margin-bottom:14px; border-bottom:1.5px solid var(--border);
}
#about h2{font-size:1.35rem; letter-spacing:.06em;}
#about ol.steps{padding-left:1.4em;}
#about ol.steps > li{margin-bottom:10px; font-weight:700;}
#about ol.steps > li:last-child{margin-bottom:0;}
#about .note{font-weight:400; color:var(--muted); font-size:.9rem;}
#about ol.substeps{
  list-style:decimal; padding-left:1.35em; margin-top:8px;
  border-left:3px solid var(--border); padding-top:2px; padding-bottom:2px;
}
#about ol.substeps li{font-weight:400; margin-bottom:4px;}
#about .lead{color:var(--muted); font-size:.95rem; margin-bottom:20px;}
#about section{margin-top:22px;}
#about h3{
  font-size:1.05rem; letter-spacing:.05em; margin-bottom:8px;
  padding-left:11px; border-left:5px solid var(--accent);
}
#about p, #about li{font-size:.95rem; line-height:1.9;}
#about ul, #about ol{padding-left:1.35em;}
#about code{
  background:var(--accent-soft); border-radius:5px; padding:1px 7px;
  font-family:inherit; font-size:.92rem; color:var(--accent-deep); font-weight:700;
}
#about table{width:100%; border-collapse:collapse; margin-top:6px; font-size:.95rem;}
#about th, #about td{border-bottom:1px solid var(--border); padding:8px 6px; text-align:left; line-height:1.7;}
#about th{color:var(--muted); font-size:.875rem; font-weight:800; white-space:nowrap;}
#about a{color:var(--accent-deep); word-break:break-all;}
#about .me{background:var(--accent-soft); border-radius:14px; padding:14px 18px; margin-top:10px;}
#about .close{
  flex:none; width:36px; height:36px; border-radius:50%;
  border:1.5px solid var(--border); background:var(--card); color:var(--muted);
  cursor:pointer; font-size:1.2rem; line-height:1; display:flex; align-items:center; justify-content:center;
}
#about .close:hover{color:var(--text); border-color:var(--accent);}

#toTop{
  position:fixed; right:max(18px, calc(50% - 496px)); bottom:18px; z-index:9;
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(69,122,102,.35);
  display:none; align-items:center; justify-content:center;
  transition:background .15s, transform .15s;
}
#toTop:hover{background:var(--accent-deep); transform:translateY(-2px);}
#toTop.show{display:flex;}
#toTop svg{width:20px; height:20px;}
#toast{
  position:fixed; left:50%; bottom:76px; transform:translateX(-50%) translateY(20px);
  background:var(--text); color:#fff; font-size:.95rem;
  padding:9px 22px; border-radius:99px; opacity:0; pointer-events:none;
  transition:opacity .25s, transform .25s; z-index:20; max-width:88vw; text-align:center;
}
#toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

@media (max-width:800px){
  body{font-size:15px;}
  body{padding-top:50px;}
  .actions{
    position:fixed; top:0; left:0; right:0; z-index:12;
    justify-content:space-between; padding:7px 13px;
    background:var(--bg); border-bottom:1.5px solid var(--border);
  }
  .wrap{padding:8px 13px 60px;}
  header.site{gap:11px; padding:10px 0 4px;}
  .logo{width:46px; height:46px;}
  h1.title{font-size:1.16rem; white-space:normal;}
  .title-sub{white-space:normal;}
  .title-sub .n3{font-size:1.16rem;}
  .issue-badge{width:52px; height:52px; margin:0 0 0 6px; align-self:center;}
  .title-sub{padding-bottom:3px;}
  .issue-badge .no{font-size:1.05rem;}
  .issue-badge .lab{font-size:.66rem;}
  .updated{font-size:.72rem;}
  footer{font-size:.78rem;}
  .card{flex-direction:column; padding:14px; gap:14px;}
  .updated{display:block;}
  .updated-top{display:none;}
  .thumb-wrap{position:relative;}
  .thumb-wrap{align-self:stretch;}
  .thumb-wrap{min-height:0;}
  .card-actions{flex:0 0 auto;}
  .thumb{width:100%; max-width:none; height:auto; min-height:0; aspect-ratio:4/5;}
  .sticker{width:74px; height:74px; font-size:1.3rem; -webkit-text-stroke:4px #fff;}
  .stickers{top:auto; right:-8px; bottom:-12px; gap:20px;}
  .card-body h3{display:block;}
}
