﻿:root {
  --blue-1: #0f4d95;
  --blue-2: #1d7ae3;
  --card: #f2f6fb;
  --text: #1f2d3d;
  --muted: #66788a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(125deg, #0c4a89 0%, #167ad8 45%, #0f6cc7 100%);
}
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 35%), radial-gradient(circle at 84% 70%, rgba(255,255,255,.11), transparent 35%);
  pointer-events: none;
}
.app-shell {
  max-width: 1380px;
  margin: 26px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  flex: 1;
}
.panel {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(2, 27, 63, .28);
}
.section-title {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  background: #27384a;
  font-weight: 700;
}
.field-group {
  border: 1px dashed #b7c6d8;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}
label { display: block; margin-bottom: 6px; font-weight: 500; }
input[type="text"], input[type="color"], select {
  width: 100%;
  height: 42px;
  border: 1px solid #c9d5e2;
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 40px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(180deg, #3598ff, #1d73dd);
  border-radius: 8px;
  cursor: pointer;
}
.status { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.tab-btn {
  border: 1px solid #bfd0e3;
  background: #e5edf6;
  height: 42px;
  border-radius: 9px;
  cursor: pointer;
}
.tab-btn.active { background: #fff; border-color: #2f80df; color: #145eb9; font-weight: 700; }
.tab-body {
  border: 1px solid #ccd9e7;
  border-radius: 10px;
  background: #fff;
  min-height: 270px;
  padding: 12px;
}
.grid-select {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.choice {
  border: 1px solid #d2deec;
  border-radius: 10px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f7fbff;
  font-size: 14px;
}
.choice.active { border: 2px solid #1a7ce2; background: #ecf5ff; }
.inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.right-panel h2 {
  margin: 0 0 10px;
  font-family: "ZCOOL KuaiLe", cursive;
  color: #0f4d95;
}
#previewCanvas {
  width: 100%;
  height: auto;
  border: 1px solid #c9d5e2;
  border-radius: 12px;
  background: #fff;
}
.download-area { padding-top: 12px; }
#downloadBtn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #29af47;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.tiny { color: #6c7b8c; font-size: 13px; margin: 8px 0; }

.footer-unified {
  margin: 8px 0 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}
.footer-link {
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(90deg, #ff4d4f, #ffa940, #fadb14, #52c41a, #13c2c2, #1677ff, #722ed1, #eb2f96, #ff4d4f);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wob-rainbow 4s linear infinite;
}
.footer-heart {
  display: inline-block;
  animation: pulse-heart 1.35s ease-in-out infinite;
}
@keyframes wob-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
}
