:root {
  --primary: #4ade80;
  --primary-hover: #22c55e;
  --danger: #ef4444;
  --bg-glass: rgba(30, 30, 36, 0.6);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 12px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: #0f172a;
  min-height: 100vh;
}

/* ===================================== */
/* 你的背景图在这里修改 */
/* ===================================== */
.bg-image {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  /* 把单引号里的链接换成你自己的图片地址即可 */
  background-image: url('https://i.postimg.cc/jSrLFMnL/IMG-20260427-200927-122.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) contrast(1.1);
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h1, h2, h3 { margin-top: 0; font-weight: 600; }
.lede { color: var(--text-muted); font-size: 1.1rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

/* 毛玻璃卡片 */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 安全警告框 */
.security-notice {
  background: rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--danger);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #fca5a5;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

button {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.primary-btn {
  width: 100%;
  background: var(--primary);
  color: #000;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.primary-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

.secondary { background: rgba(255,255,255,0.1); color: white; flex: 1; border: 1px solid var(--border-glass);}
.secondary:hover { background: rgba(255,255,255,0.2); }

.ghost { background: transparent; border: 1px solid var(--border-glass); color: var(--text-main); }
.ghost:hover { background: rgba(255,255,255,0.1); }
.ghost.danger { border-color: var(--danger); color: var(--danger); }
.ghost.danger:hover { background: var(--danger); color: white; }

.divider {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 1.5rem 0;
}

.hidden { display: none !important; }

/* 画廊样式 */
.output-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

#status {
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 0.5rem;
}

#status.error { color: var(--danger); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: rgba(0,0,0,0.2);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.result img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.result footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }
pre { background: rgba(0,0,0,0.4); padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; }