:root { --paper:#f7f3ec; --card:#fffdf9; --ink:#292722; --muted:#79736b; --line:#e7ded3; --rose:#c97768; --rose-dark:#9f5146; --sage:#7d9583; --gold:#c59a57; --shadow:0 16px 50px rgba(69,48,33,.08); }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Noto Sans TC",sans-serif; line-height:1.75; }
a { color:inherit; text-decoration:none; } button, input, textarea, select { font:inherit; } button { cursor:pointer; }
.shell { max-width:1180px; margin:auto; padding:0 28px; } .topbar { border-bottom:1px solid var(--line); background:rgba(247,243,236,.92); position:sticky; top:0; z-index:10; backdrop-filter:blur(12px); }
.nav { height:78px; display:flex; align-items:center; justify-content:space-between; gap:28px; } .brand { display:flex; align-items:center; gap:12px; font-family:"Noto Serif TC",serif; font-size:20px; font-weight:700; } .brand-mark { width:38px; height:38px; border-radius:50% 50% 46% 54%; background:var(--rose); color:white; display:grid; place-items:center; font-size:18px; transform:rotate(-8deg); }
.nav-links { display:flex; align-items:center; gap:24px; color:var(--muted); font-size:14px; } .nav-links a:hover { color:var(--rose-dark); } .nav-cta, .btn-primary { border:0; color:#fff; background:var(--ink); border-radius:999px; padding:10px 18px; } .nav-cta:hover, .btn-primary:hover { background:var(--rose-dark); }
.hero { padding:78px 0 70px; display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:70px; } .eyebrow { color:var(--rose-dark); font-size:13px; font-weight:800; letter-spacing:.15em; } h1,h2,h3 { line-height:1.3; margin:0; font-family:"Noto Serif TC",serif; } h1 { font-size:clamp(40px,5vw,68px); letter-spacing:.02em; margin:16px 0 20px; } h2 { font-size:30px; } h3 { font-size:20px; } .hero-copy { color:var(--muted); max-width:520px; font-size:16px; } .hero-actions { display:flex; gap:12px; margin-top:30px; } .btn-secondary { border:1px solid var(--line); background:transparent; border-radius:999px; padding:10px 18px; color:var(--ink); } .btn-secondary:hover { border-color:var(--rose); color:var(--rose-dark); }
.hero-art { position:relative; min-height:330px; display:grid; place-items:center; } .sun { width:260px; height:260px; border-radius:50%; background:#e7aa82; opacity:.68; position:absolute; top:15px; right:26px; } .arch { width:245px; height:300px; border-radius:140px 140px 18px 18px; background:#d9c8b3; position:absolute; bottom:0; left:35px; overflow:hidden; } .arch:before { content:""; position:absolute; width:150px; height:150px; border-radius:50%; background:var(--sage); left:48px; top:60px; opacity:.72; } .arch:after { content:"✦"; position:absolute; color:#fff8e9; font-size:70px; left:90px; top:90px; transform:rotate(12deg); } .note { position:absolute; right:0; bottom:18px; background:var(--card); padding:20px 22px; box-shadow:var(--shadow); transform:rotate(4deg); max-width:190px; font-family:"Noto Serif TC",serif; } .note small { display:block; color:var(--rose-dark); font-family:inherit; font-size:11px; margin-bottom:5px; }
.section { padding:35px 0 80px; } .section-head { display:flex; justify-content:space-between; align-items:end; margin-bottom:24px; gap:20px; } .section-head p { color:var(--muted); margin:0; font-size:14px; } .filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; } .filter { border:1px solid var(--line); background:transparent; border-radius:999px; padding:7px 14px; color:var(--muted); } .filter.active, .filter:hover { background:var(--ink); border-color:var(--ink); color:#fff; }
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; } .post-card { background:var(--card); border:1px solid var(--line); border-radius:18px; overflow:hidden; transition:.2s; } .post-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); } .post-visual { height:150px; display:flex; align-items:flex-end; padding:18px; color:#fff; font-size:14px; font-weight:700; } .visual-rose { background:linear-gradient(135deg,#b9685d,#e5ad8d); } .visual-sage { background:linear-gradient(135deg,#718c7d,#c4c7a8); } .visual-gold { background:linear-gradient(135deg,#b68e54,#e7c88e); } .card-body { padding:19px 20px 21px; } .card-meta { color:var(--muted); font-size:12px; display:flex; justify-content:space-between; margin-bottom:8px; } .card-body p { color:var(--muted); font-size:14px; margin:10px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.about { border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:50px; padding-top:64px; } .about p { color:var(--muted); } .quote { font-family:"Noto Serif TC",serif; font-size:26px; padding:24px 0 0 28px; border-left:3px solid var(--rose); }
.footer { border-top:1px solid var(--line); padding:28px 0; color:var(--muted); font-size:13px; } .footer-row { display:flex; justify-content:space-between; }
.article { max-width:800px; margin:0 auto; padding:75px 0; } .article .article-meta { color:var(--muted); font-size:13px; margin:15px 0 25px; } .article h1 { font-size:clamp(36px,5vw,58px); } .article-cover { height:230px; border-radius:20px; margin:35px 0; } .article-content { font-size:17px; color:#49443d; } .article-content p { margin:0 0 22px; } .article-content h2 { font-size:26px; margin:40px 0 12px; } .back { color:var(--rose-dark); font-size:14px; }
.admin-wrap { padding:46px 0 80px; } .admin-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; } .admin-layout { display:grid; grid-template-columns:1.6fr 1fr; gap:22px; } .panel { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:24px; } .stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px; } .stat { padding:17px; background:#f1ebe2; border-radius:14px; } .stat b { display:block; font-size:27px; margin-top:4px; } .stat span { color:var(--muted); font-size:12px; } .form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; } label { display:block; color:var(--muted); font-size:13px; margin:12px 0 5px; } input, textarea, select { width:100%; border:1px solid var(--line); background:#fffdf9; border-radius:10px; padding:10px 12px; color:var(--ink); outline:none; } input:focus, textarea:focus, select:focus { border-color:var(--rose); } textarea { min-height:180px; resize:vertical; } .form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; } .post-row { display:flex; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); } .post-row:last-child { border-bottom:0; } .post-row small { color:var(--muted); display:block; } .danger { color:#aa554d; border:0; background:transparent; font-size:12px; }
.admin-actions { display:flex; gap:10px; } .auth-page { min-height:620px; display:grid; place-items:center; } .auth-card { width:min(100%,430px); padding:34px; } .auth-mark { margin-bottom:18px; } .auth-copy { color:var(--muted); font-size:14px; margin:8px 0 20px; }
.empty { color:var(--muted); padding:28px 0; text-align:center; } .toast { position:fixed; bottom:24px; right:24px; background:var(--ink); color:#fff; padding:12px 17px; border-radius:10px; opacity:0; transform:translateY(8px); transition:.25s; z-index:20; } .toast.show { opacity:1; transform:none; }
@media (max-width:800px) { .shell { padding:0 18px; } .nav { height:68px; } .nav-links a:not(.nav-cta) { display:none; } .hero { grid-template-columns:1fr; gap:25px; padding:55px 0 35px; } .hero-art { min-height:270px; } .grid, .admin-layout { grid-template-columns:1fr; } .about { grid-template-columns:1fr; gap:10px; } .section { padding-bottom:55px; } .stats { grid-template-columns:repeat(3,1fr); } .stat { padding:11px; } .stat b { font-size:21px; } .footer-row { display:block; } }
.post-visual { background-size:cover; background-position:center; position:relative; }
.post-visual.has-image:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.5),transparent 70%); }
.post-visual span { position:relative; z-index:1; }
.article-cover { background-size:cover; background-position:center; }
.article-cover.has-image { box-shadow:var(--shadow); }
.article-content h3 { margin:30px 0 10px; }
.article-content img { max-width:100%; height:auto; border-radius:12px; margin:16px 0; }
.article-content blockquote { border-left:3px solid var(--rose); margin:24px 0; padding:8px 20px; color:var(--muted); }
.article-content a { color:var(--rose-dark); text-decoration:underline; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:8px; border:1px solid var(--line); border-bottom:0; border-radius:10px 10px 0 0; background:#f1ebe2; }
.editor-toolbar button, .editor-toolbar select { width:auto; min-width:34px; border:1px solid var(--line); background:var(--card); border-radius:7px; padding:5px 9px; }
.editor-toolbar button:hover { border-color:var(--rose); color:var(--rose-dark); }
.editor { min-height:230px; padding:15px; border:1px solid var(--line); border-radius:0 0 10px 10px; background:#fffdf9; outline:none; }
.editor:empty:before { content:attr(data-placeholder); color:#aaa39a; }
.editor img { max-width:100%; border-radius:10px; }
.editor-help { color:var(--muted); font-size:12px; margin-top:6px; }
.cover-preview { min-height:74px; margin-top:7px; border:1px dashed var(--line); border-radius:10px; display:grid; place-items:center; color:var(--muted); font-size:12px; overflow:hidden; }
.cover-preview img { display:block; width:100%; max-height:150px; object-fit:cover; }
.post-row-main { display:flex; align-items:center; gap:10px; }
.post-thumb { width:52px; height:40px; border-radius:7px; object-fit:cover; }
.admin-dashboard { display:grid; grid-template-columns:1.3fr 1fr; gap:22px; margin-bottom:22px; }
.bar-chart { height:180px; display:flex; align-items:end; justify-content:space-around; gap:12px; padding-top:22px; }
.bar-item { height:100%; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:end; gap:5px; color:var(--muted); font-size:11px; }
.bar { width:100%; max-width:32px; min-height:8px; border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,var(--rose),#e6b49a); }
.rank-row { display:grid; grid-template-columns:25px 1fr 40px; gap:10px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); font-size:13px; }
.rank-row:last-child { border-bottom:0; } .rank-row b { color:var(--rose-dark); } .rank-row span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; } .rank-row small { color:var(--muted); text-align:right; }
.settings-panel { margin-bottom:22px; } .settings-panel .section-head { margin-bottom:10px; } .status-pill { border-radius:999px; padding:5px 10px; background:#f1ebe2; color:var(--muted); font-size:12px; } .settings-textarea, .seo-textarea { min-height:90px; } .settings-help { color:var(--muted); font-size:12px; margin:12px 0 0; }
@media (max-width:800px) { .admin-dashboard { grid-template-columns:1fr; } }
.search-box { max-width:520px; margin:0 0 18px; position:relative; }
.search-box label { margin-top:0; }
.search-box input { padding-left:15px; background:var(--card); }
.search-result { min-height:24px; color:var(--muted); font-size:13px; margin:-8px 0 8px; }
.comments { margin-top:58px; padding:26px; }
.comment-count { color:var(--muted); font-size:13px; }
.comment-list { margin-bottom:24px; }
.comment { padding:14px 0; border-bottom:1px solid var(--line); }
.comment:last-child { border-bottom:0; }
.comment-head { display:flex; justify-content:space-between; gap:12px; }
.comment-head time, .inbox-item small { color:var(--muted); font-size:12px; }
.comment p, .inbox-item p { margin:5px 0 0; white-space:pre-wrap; color:#49443d; }
.comment-form textarea { min-height:120px; }
.contact-panel { margin-top:45px; padding:26px; }
.contact-panel h2 { margin:6px 0 4px; }
.muted { color:var(--muted); }
.inbox-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:22px; }
.inbox-item { padding:13px 0; border-bottom:1px solid var(--line); }
.inbox-item:last-child { border-bottom:0; }
.inbox-item strong, .inbox-item small { display:block; }
.article-tools { display:flex; gap:10px; flex-wrap:wrap; margin:28px 0 8px; }
.related { margin-top:58px; padding-top:35px; border-top:1px solid var(--line); }
.related h2 { margin:6px 0 20px; }
.related .post-visual { height:120px; }
.backup-panel { margin-bottom:22px; }
.backup-panel .settings-help { margin:0; }
.file-button { display:inline-block; cursor:pointer; }
@media (max-width:800px) {
  .section-head, .admin-top { align-items:flex-start; flex-direction:column; }
  .hero-actions, .admin-actions, .form-actions { flex-wrap:wrap; }
  .form-actions { justify-content:flex-start; }
  .form-row, .inbox-grid { grid-template-columns:1fr; gap:0; }
  .comments, .contact-panel, .panel { padding:18px; }
  .article { padding:48px 18px; }
  .article-cover { height:180px; }
  .editor-toolbar { gap:4px; }
  .editor-toolbar button, .editor-toolbar select { padding:6px 7px; }
  .post-row { align-items:flex-start; }
  .post-row-main { min-width:0; }
  .post-row-main strong { display:block; overflow-wrap:anywhere; }
  .article-tools .btn-secondary, .backup-panel .btn-secondary { width:100%; text-align:center; }
}
