/* ===== 多多搜盘 · 现代科技风 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #6366f1; --primary2: #8b5cf6; --accent: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --bg: #f7f8fc; --card: #ffffff; --text: #1e2233; --muted: #7c8399;
  --border: #e8eaf2; --danger: #ef4444; --green: #10b981;
  --shadow: 0 4px 24px rgba(99,102,241,.08);
  --shadow-hover: 0 12px 40px rgba(99,102,241,.16);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  position: relative; min-height: 100vh;
}
/* 背景光斑装饰 */
body::before {
  content: ''; position: fixed; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(139,92,246,.12) 0%, rgba(99,102,241,.06) 40%, transparent 70%);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; min-height: 100vh; display: flex; flex-direction: column; }

/* ===== 顶部导航 ===== */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,252,.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 40px; height: 40px; background: var(--grad); color: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px;
  box-shadow: 0 6px 16px rgba(99,102,241,.35);
}
.logo h1 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 7px 14px; font-size: 14px; font-weight: 500;
  border-radius: 9px; transition: all .2s; }
nav a:hover { color: var(--primary); background: rgba(99,102,241,.07); }
nav a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(99,102,241,.28); }
main { flex: 1; padding: 30px 0; }
footer { padding: 24px 0; text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

.muted { color: var(--muted); font-size: 13px; }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--card);
  border-radius: 16px; border: 1px dashed var(--border); font-size: 14px; }

/* ===== 首页英雄区 ===== */
.home .hero { text-align: center; padding: 62px 0 34px; position: relative; }
.home .hero h2 {
  font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.3;
  background: linear-gradient(135deg, #1e2233 0%, #6366f1 55%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.slogan-en { display: block; font-size: 17px; font-weight: 600; letter-spacing: .5px; margin-top: 6px;
  background: linear-gradient(90deg, #6366f1, #06b6d4); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.home .hero p { color: var(--muted); font-size: 15px; margin-bottom: 34px; }
.home .hero h2 { animation: heroIn .7s ease-out; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.search-box { display: flex; max-width: 640px; margin: 0 auto; gap: 10px; padding: 6px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow-hover); border: 1px solid var(--border); }
.search-box input { flex: 1; padding: 14px 18px; font-size: 16px; border: none; outline: none;
  background: transparent; color: var(--text); }
.search-box input::placeholder { color: #aab0c0; }
.search-box button { padding: 0 34px; background: var(--grad); color: #fff; border: none;
  border-radius: 11px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 14px rgba(99,102,241,.3); }
.search-box button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,102,241,.42); }
.search-box.slim { max-width: 100%; margin: 0 0 26px; }
.hot-wrap { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex;
  align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hot-words { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hot-words a { color: var(--primary); text-decoration: none; background: rgba(99,102,241,.08);
  padding: 5px 13px; border-radius: 20px; font-size: 12px; transition: all .2s; border: 1px solid transparent; }
.hot-words a:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }

/* ===== 特性卡片 ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.feature { background: var(--card); padding: 26px 24px; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: all .25s; position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature:hover::before { opacity: 1; }
.fnum { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 13px; }

/* ===== 搜索结果 ===== */
.page .result-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.result-head h2 { font-size: 21px; font-weight: 700; }
.result-list { display: flex; flex-direction: column; gap: 11px; }
.item { display: flex; align-items: center; gap: 15px; background: var(--card); padding: 16px 18px;
  border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all .2s; }
.item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); border-color: rgba(99,102,241,.3); }
.item-ico { width: 44px; height: 44px; background: var(--grad-soft); color: var(--primary); flex-shrink: 0;
  border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: 15px; color: var(--text); text-decoration: none; font-weight: 600; }
.item-title:hover { color: var(--primary); }
.item-meta { display: flex; gap: 16px; margin-top: 5px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.item-btn { padding: 9px 20px; background: var(--grad); color: #fff; text-decoration: none;
  border-radius: 9px; font-size: 13px; font-weight: 600; box-shadow: 0 3px 10px rgba(99,102,241,.25); transition: all .2s; }
.item-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99,102,241,.35); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.pager a { color: var(--primary); text-decoration: none; font-weight: 600; padding: 8px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 9px; transition: all .2s; }
.pager a:hover { background: var(--grad); color: #fff; }

/* ===== 详情页 ===== */
.detail .d-card { background: var(--card); padding: 32px; border-radius: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow); }
.d-card h2 { font-size: 23px; margin-bottom: 14px; font-weight: 700; }
.d-meta { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.d-desc { padding: 18px; background: var(--grad-soft); border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.code-box { padding: 16px 18px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  margin-bottom: 20px; font-size: 14px; }
.d-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-pan { display: inline-block; padding: 12px 26px; background: var(--grad); color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 14px rgba(99,102,241,.28); transition: all .2s; }
.btn-primary:hover, .btn-pan:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(99,102,241,.38); }
.btn-pan { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.btn-ghost { padding: 11px 20px; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text); font-size: 13px; transition: all .2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.check-tip { margin-top: 16px; font-size: 12px; color: var(--muted); }
.report-box { margin-top: 22px; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
#reportForm, .edit-form { margin-top: 14px; background: var(--card); padding: 20px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); }

/* ===== 网盘分享 ===== */
.pan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.pan-item { background: var(--card); padding: 22px 12px; border-radius: 14px; border: 1px solid var(--border);
  text-align: center; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: all .25s; }
.pan-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(99,102,241,.3); }
.pan-ico { width: 52px; height: 52px; margin: 0 auto; background: var(--grad-soft); color: var(--primary);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; }
.pan-ico.dir { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.pan-name { margin-top: 10px; font-size: 13px; word-break: break-all; font-weight: 500; }
.pan-size { color: var(--muted); font-size: 11px; }

/* ===== 后台 ===== */
.login-card { max-width: 400px; margin: 50px auto; background: var(--card); padding: 32px;
  border-radius: 18px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-hover); }
.login-card h2 { text-align: center; }
.login-card input, .edit-form input, .edit-form textarea, #reportForm input, #reportForm textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; outline: none;
  transition: border-color .2s; }
.login-card input:focus, .edit-form input:focus, .edit-form textarea:focus { border-color: var(--primary); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-bar > div { display: flex; gap: 8px; }
.table { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.table table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.table th { background: var(--grad-soft); font-weight: 600; }
.table tr:hover td { background: rgba(99,102,241,.03); }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .home .hero { padding: 42px 0 28px; }
  .home .hero h2 { font-size: 27px; }
  .search-box { flex-wrap: wrap; }
  .search-box button { width: 100%; padding: 12px; }
  nav a { padding: 7px 10px; font-size: 13px; }
  .item-meta { gap: 8px; }
}
