/* 草原向晚 — 草原日落暖调 */
:root {
  --sunset-1: #ff8c42; --sunset-2: #e85d3d; --sunset-3: #b64a2e;
  --gold: #f2b544; --cream: #fff7ec; --paper: #fffdf8;
  --ink: #3a2a20; --muted: #8a6f5c; --line: #ecd9c2;
  --green: #5b7a4a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.7; }
a { color: var(--sunset-2); }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 247, 236, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--sunset-3); text-decoration: none; }
.logo small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.topbar nav a { margin-left: 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.topbar nav a:hover { color: var(--sunset-2); }
.hero { background: linear-gradient(180deg, #ff9e57 0%, #e85d3d 45%, #7a3b2e 100%); color: #fff; padding: 72px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { font-size: 44px; margin: 0 0 10px; letter-spacing: 6px; }
.hero p { margin: 6px 0; opacity: .95; font-size: 17px; }
.hero .sub { font-size: 14px; opacity: .8; }
.hero .rv { font-size: 40px; margin-top: 14px; }
section { padding: 36px 0 8px; }
h2 { font-size: 24px; margin: 0 0 6px; color: var(--sunset-3); }
.sec-desc { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink); }
.filters button.active, .filters button:hover { background: var(--sunset-2); color: #fff; border-color: var(--sunset-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(122, 59, 46, .14); }
.cover { height: 168px; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #ff9e57, #b64a2e); background-size: cover; background-position: center; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.card-body { padding: 14px 16px 16px; }
.tag { display: inline-block; font-size: 12px; background: #fdeeda; color: var(--sunset-3); border-radius: 999px; padding: 2px 10px; margin-right: 6px; }
.tag.example { background: #eee; color: #888; }
.card h3 { margin: 8px 0 6px; font-size: 18px; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card time { font-size: 12px; color: #b39a86; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.gallery img { width: 100%; height: 170px; object-fit: cover; display: block; }
.gallery figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.video-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.video-item video { width: 100%; max-height: 480px; background: #000; border-radius: 10px; }
.about { background: var(--paper); border: 1px dashed var(--gold); border-radius: 14px; padding: 22px; }
.about .placeholder { color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(40, 20, 10, .7); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: var(--paper); max-width: 720px; width: 100%; border-radius: 16px; padding: 28px; position: relative; }
.modal-box img { width: 100%; border-radius: 10px; margin: 12px 0; }
.modal-box video { width: 100%; border-radius: 10px; margin: 12px 0; background: #000; }
.modal-box .content p { margin: 0 0 14px; }
.close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 0 44px; }
footer a { color: var(--muted); }
/* 后台 */
.admin-box { max-width: 860px; margin: 40px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.admin-box label { display: block; font-size: 14px; margin: 14px 0 4px; }
.admin-box input, .admin-box select, .admin-box textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.admin-box textarea { min-height: 220px; line-height: 1.7; }
.btn { display: inline-block; background: var(--sunset-2); color: #fff; border: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; margin: 6px 6px 0 0; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: #b3261e; border: 1px solid #e8b4b0; }
.msg { margin-top: 12px; font-size: 14px; }
.msg.error { color: #b3261e; } .msg.ok { color: var(--green); }
.post-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; }
.post-row .t { font-weight: 600; }
.post-row .m { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .hero h1 { font-size: 32px; } .topbar nav a { margin-left: 10px; font-size: 14px; } }
