/* ============ 橙光导航 前台样式 ============ */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  background:#f6f5f2;
  color:#2d2a26;
  min-height:100vh;
}
a { text-decoration:none; color:inherit; }

.hero {
  background:linear-gradient(135deg,#ff8a3d 0%,#ff5e3a 55%,#e8452c 100%);
  padding:34px 0 0;
  color:#fff;
}
.hero-inner {
  max-width:1100px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px;
}
.brand { display:flex; align-items:center; gap:14px; }
.logo-dot { width:18px; height:18px; border-radius:50%; background:#ffe066; box-shadow:0 0 0 5px rgba(255,224,102,.25); }
.site-name { font-size:30px; font-weight:900; letter-spacing:2px; text-shadow:0 2px 8px rgba(0,0,0,.15); }
.search { display:flex; background:#fff; border-radius:50px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,.15); }
.search input { border:none; outline:none; padding:13px 22px; width:320px; font-size:15px; color:#333; }
.search button { border:none; background:linear-gradient(135deg,#ff8a3d,#ff5e3a); color:#fff; padding:0 30px; font-size:15px; font-weight:700; cursor:pointer; }
.notice {
  max-width:1100px; margin:22px auto 0; padding:0 24px 24px;
  font-size:15px; opacity:.95; font-weight:600;
}

.cats { max-width:1100px; margin:-18px auto 0; padding:0 24px; display:flex; flex-wrap:wrap; gap:12px; }
.cat {
  background:#fff; border-radius:50px; padding:11px 24px; font-size:15px; font-weight:700;
  color:#5a4a3f; box-shadow:0 4px 14px rgba(120,80,40,.10);
  transition:.2s; border:2px solid transparent;
}
.cat:hover { transform:translateY(-2px); border-color:#ff8a3d; }
.cat.active { background:linear-gradient(135deg,#ff8a3d,#ff5e3a); color:#fff; box-shadow:0 6px 16px rgba(255,110,60,.35); }

.grid {
  max-width:1100px; margin:26px auto 0; padding:0 24px;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(245px,1fr)); gap:18px;
}
.card {
  background:#fff; border-radius:16px; padding:18px 20px;
  box-shadow:0 3px 12px rgba(120,80,40,.08);
  transition:.22s; display:block;
}
.card:hover { transform:translateY(-4px); box-shadow:0 10px 24px rgba(255,110,60,.18); }
.card-head { display:flex; align-items:center; gap:13px; }
.favicon {
  flex:none; width:46px; height:46px; border-radius:12px;
  background:linear-gradient(135deg,#ffb35c,#ff7a45);
  color:#fff; font-size:21px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
}
.card-title { font-size:17px; font-weight:800; color:#2d2a26; }
.card-desc {
  margin-top:10px; font-size:13.5px; color:#8a7d70; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:20px;
}
.card-foot {
  margin-top:12px; padding-top:10px; border-top:1px dashed #f0e8df;
  display:flex; justify-content:space-between; font-size:12px; color:#b3a698; font-weight:600;
}

.empty { grid-column:1/-1; text-align:center; padding:60px 0; color:#b3a698; font-size:16px; }

.foot { max-width:1100px; margin:44px auto 0; padding:26px 24px 34px; text-align:center; color:#b3a698; font-size:13.5px; }
.foot .admin-link { margin-top:8px; }
.foot .admin-link a { color:#d0c3b3; font-size:12px; }
.foot .admin-link a:hover { color:#ff7a45; }

@media (max-width:640px) {
  .search input { width:180px; }
  .title .hero-inner { justify-content:center; }
}

/* ============ 后台样式 ============ */
.login-body {
  background:linear-gradient(135deg,#ff8a3d 0%,#ff5e3a 60%,#e8452c 100%);
  display:flex; align-items:center; justify-content:center; min-height:100vh;
}
.login-box {
  background:#fff; border-radius:20px; padding:44px 40px; width:360px;
  box-shadow:0 20px 50px rgba(0,0,0,.25); text-align:center;
}
.login-logo { font-size:40px; }
.login-box h2 { margin:10px 0 24px; color:#2d2a26; font-size:22px; }
.login-box input {
  width:100%; padding:13px 16px; margin-bottom:14px; border:2px solid #f0e8df;
  border-radius:12px; font-size:15px; outline:none; transition:.2s;
}
.login-box input:focus { border-color:#ff7a45; }
.login-box button {
  width:100%; padding:14px; border:none; border-radius:12px;
  background:linear-gradient(135deg,#ff8a3d,#ff5e3a); color:#fff;
  font-size:16px; font-weight:800; cursor:pointer; letter-spacing:4px;
}
.err { background:#fff0eb; color:#e8452c; padding:10px; border-radius:10px; margin-bottom:14px; font-size:14px; }

.admin-body { display:flex; min-height:100vh; background:#f6f5f2; }
.side {
  flex:none; width:230px; background:#2d2a26; padding:26px 0;
  display:flex; flex-direction:column; gap:4px;
}
.side-brand { color:#ffe066; font-size:19px; font-weight:900; padding:0 24px 22px; letter-spacing:1px; }
.side a {
  color:#cfc8bd; padding:13px 24px; font-size:15px; font-weight:600;
  border-left:3px solid transparent; transition:.2s;
}
.side a:hover, .side a.on { background:rgba(255,255,255,.07); color:#fff; border-left-color:#ff8a3d; }
.side a.quit { margin-top:auto; color:#8f8578; }
.main { flex:1; padding:34px 40px; overflow:auto; }
.main h2 { color:#2d2a26; margin-bottom:22px; font-size:22px; }
.ok {
  background:#e8f8ee; color:#0f8f4e; border:1px solid #bfe8d0;
  padding:12px 18px; border-radius:12px; margin-bottom:20px; font-size:14px; font-weight:700;
}
.stats { display:flex; gap:20px; flex-wrap:wrap; }
.stat {
  background:#fff; border-radius:16px; padding:26px 40px; text-align:center;
  box-shadow:0 4px 14px rgba(120,80,40,.08);
}
.stat b { display:block; font-size:34px; color:#ff5e3a; }
.stat span { font-size:14px; color:#8a7d70; }
.tip { color:#8a7d70; font-size:14px; margin-top:22px; }

.panel { background:#fff; border-radius:16px; padding:24px 28px; margin-bottom:24px; box-shadow:0 4px 14px rgba(120,80,40,.08); }
.panel h3 { font-size:16px; color:#2d2a26; margin-bottom:16px; }
.panel label { display:block; font-size:14px; color:#8a7d70; margin:14px 0 6px; font-weight:700; }
.panel input, .panel select {
  width:100%; padding:11px 14px; border:2px solid #f0e8df; border-radius:10px;
  font-size:14px; outline:none; transition:.2s; background:#fbfaf8;
}
.panel input:focus { border-color:#ff7a45; }
.panel button {
  margin-top:18px; padding:12px 34px; border:none; border-radius:10px;
  background:linear-gradient(135deg,#ff8a3d,#ff5e3a); color:#fff; font-size:15px; font-weight:800; cursor:pointer;
}
.form-row { display:flex; gap:10px; flex-wrap:wrap; }
.form-row input, .form-row select { flex:1; min-width:130px; width:auto; }
.form-row button { margin-top:0; padding:11px 26px; }

table { width:100%; background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 4px 14px rgba(120,80,40,.08); border-collapse:collapse; }
table th, table td { padding:13px 16px; text-align:left; font-size:14px; border-bottom:1px solid #f4efe8; }
table th { background:#fbfaf8; color:#8a7d70; font-size:13px; }
table td.url { color:#8a7d70; font-size:12.5px; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.del {
  background:#fff0eb; color:#e8452c; border:none; padding:7px 16px;
  border-radius:8px; font-size:13px; cursor:pointer; font-weight:700;
}
.del:hover { background:#e8452c; color:#fff; }
