* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  background: #f3f6fb;
  color: #1f2d3d;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e9eef6;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header h1 {
  margin: 0;
  font-size: 22px;
  color: #3aa0ff;
  text-align: center;
  letter-spacing: 1px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
}

.toolbar {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 8px 24px rgba(31,45,61,0.05);
}

select, input[type="text"], input[type="url"], input[type="number"], textarea {
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

select:focus, input:focus, textarea:focus {
  border-color: #72b9ff;
  box-shadow: 0 0 0 3px rgba(58,160,255,0.15);
}

.toolbar .btn {
  border: 0;
  background: #3aa0ff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}

.toolbar .btn:hover { filter: brightness(0.95); }

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 28px rgba(31,45,61,0.06);
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 64px;
  background: #eef4ff;
  border: 1px solid #e9eef6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info { flex: 1; min-width: 0; }
.title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.meta {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 6px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.desc {
  font-size: 13px;
  color: #334155;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions { flex: 0 0 auto; }
.install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #97ccff;
  color: #1584ff;
  background: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s;
}
.install:hover {
  background: #eaf5ff;
  border-color: #3aa0ff;
}

.stars { color: #f5b301; font-size: 14px; letter-spacing: 1px; }

.notice {
  background: #fff;
  border: 1px dashed #cfe3ff;
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 14px;
  color: #335b86;
}

/* admin */
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 0;
}
.admin-top a { color: #3aa0ff; text-decoration: none; font-weight: 700; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31,45,61,0.06);
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
  font-size: 14px;
}
.table th { background: #f7fbff; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1b7ff0;
  font-size: 12px;
  font-weight: 700;
}
.danger {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffecec;
  color: #d12b2b;
  text-decoration: none;
  font-weight: 700;
}
