* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0ebe3;
  color: #2c2416;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #3d2914, #6b4423);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a { color: #ffd89b; text-decoration: none; margin-left: 12px; }
header nav a:first-child { margin-left: 0; }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }

.intro { margin-bottom: 20px; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(61, 41, 20, 0.08);
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card h2 { font-size: 1.2rem; margin-bottom: 8px; color: #6b4423; }
.project-card .desc { color: #5a5040; font-size: 0.9rem; margin-bottom: 14px; white-space: pre-line; line-height: 1.5; }

.info { font-size: 0.85rem; margin-bottom: 16px; }
.info dt { color: #8a7a62; margin-top: 8px; font-weight: 500; }
.info dd { word-break: break-all; margin-left: 0; }

label { display: block; margin: 10px 0 6px; font-weight: 500; }
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4c4a8;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  background: #8b4513;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover { background: #6b3410; }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; margin-right: 6px; margin-bottom: 6px; }
.btn-warn { background: #a0522d; }
.btn-warn:hover { background: #7a3e22; }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.status { font-size: 0.8rem; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.status-on { background: #e8f5e9; color: #2e6b3f; }
.status-off { background: #f0f0f0; color: #666; }

.actions { margin: 12px 0; }
.download-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.download-hint { margin-top: 8px; font-size: 0.8rem; line-height: 1.4; }

.alert { padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.alert-err { background: #fde8e8; color: #a33; }
.alert-ok { background: #e8f5e9; color: #2e6b3f; }
.meta { color: #7a6a52; font-size: 0.9rem; }

.nginx-card { margin-top: 0; }
.nginx-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.nginx-head h2 { font-size: 1.15rem; color: #6b4423; }
.nginx-meta { margin-bottom: 14px; word-break: break-all; }
.nginx-meta code { font-size: 0.85rem; background: #f5f0e8; padding: 2px 6px; border-radius: 4px; }
.nginx-pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 75vh;
  overflow-y: auto;
}
