body {
  margin: 0;
  font-family: 'Roboto', 'Arial', sans-serif;
  background: #F4F5F0;
  color: #222;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="26" font-size="28">🍕</text></svg>') 0 24, auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw 12px 8vw;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo-flag {
  display: flex;
  margin-right: 12px;
}
.flag {
  width: 12px;
  height: 32px;
  display: inline-block;
  border-radius: 2px;
}
.flag.green { background: #008C45; }
.flag.white { background: #F4F5F0; border: 1px solid #ddd; }
.flag.red { background: #CD212A; }

.logo-text {
  font-family: 'Permanent Marker', 'Impact', cursive;
  font-size: 2rem;
  color: #008C45;
  display: flex;
  align-items: center;
}
.logo-text .emoji {
  font-size: 2rem;
  margin-right: 8px;
}
.site-title {
  letter-spacing: 2px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-switch button {
  background: #fff;
  border: 1.5px solid #008C45;
  color: #008C45;
  font-weight: bold;
  border-radius: 6px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.active,
.lang-switch button:hover {
  background: #008C45;
  color: #fff;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 16px 0 16px;
  text-align: center;
}
#main-title {
  font-family: 'Permanent Marker', 'Impact', cursive;
  font-size: 2.5rem;
  color: #CD212A;
  margin-bottom: 12px;
}
#main-desc {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 32px;
}
.main-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}
.action-btn {
  background: linear-gradient(90deg, #008C45 0%, #F4F5F0 50%, #CD212A 100%);
  color: #222;
  font-family: 'Permanent Marker', 'Impact', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.action-btn:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 6px 18px rgba(205,33,42,0.13);
}
.logo-large {
  margin: 48px 0 0 0;
  font-size: 2.2rem;
  font-family: 'Permanent Marker', 'Impact', cursive;
  color: #008C45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  letter-spacing: 2px;
  animation: wiggle 2.5s infinite;
}
.logo-large .emoji {
  font-size: 2.5rem;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}

/* 页脚置底美化 */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
  margin-top: 60px;
  padding: 22px 0;
  background: linear-gradient(90deg, #fff 60%, #F4F5F0 100%);
  color: #888;
  font-size: 1.15rem;
  text-align: center;
  border-top: 1px solid #eee;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px rgba(80,80,120,0.07);
  letter-spacing: 0.5px;
}
footer .emoji {
  font-size: 1.3rem;
  margin: 0 2px;
}
footer a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}
@media (max-width: 600px) {
  footer {
    font-size: 1rem;
    padding: 14px 0;
    border-radius: 12px 12px 0 0;
  }
}

/* 响应式设计 */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 12px;
    padding: 18px 4vw 8px 4vw;
  }
  main {
    padding-top: 24px;
  }
  .main-actions {
    flex-direction: column;
    gap: 14px;
  }
  .logo-large {
    font-size: 1.3rem;
    gap: 10px;
  }
}

.main-nav {
  display: flex;
  gap: 18px;
  margin-left: 32px;
}
.main-nav a {
  color: #008C45;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.active, .main-nav a:hover {
  background: #CD212A;
  color: #fff;
}

.image-gen-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,140,69,0.07);
  padding: 32px 18px 24px 18px;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#upload {
  margin-bottom: 18px;
  font-size: 1.1rem;
  border: 1.5px solid #008C45;
  border-radius: 8px;
  padding: 8px 12px;
  background: #F4F5F0;
  color: #222;
}
#img-actions button {
  background: linear-gradient(90deg, #008C45 0%, #F4F5F0 50%, #CD212A 100%);
  color: #222;
  font-family: 'Permanent Marker', 'Impact', cursive;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  margin-right: 12px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.13s;
}
#img-actions button:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 6px 18px rgba(205,33,42,0.13);
}

@media (max-width: 600px) {
  .main-nav {
    margin-left: 0;
    gap: 8px;
    font-size: 0.95rem;
  }
  .image-gen-box {
    padding: 18px 4px 12px 4px;
  }
}

/* Modern input box styles for all landing pages */
.input-box {
  background: #fafaf7;
  border: 2px solid #6c63ff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(80,80,120,0.06);
  padding: 20px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 32px auto 0 auto;
}

.styled-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  resize: none;
  min-height: 48px;
  margin-bottom: 16px;
  color: #333;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-btn {
  background: #fff;
  border: 1.5px solid #d1d1f7;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 1rem;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: box-shadow 0.2s;
}

.upload-btn:hover {
  box-shadow: 0 2px 8px rgba(80,80,120,0.08);
}

.create-btn {
  background: linear-gradient(90deg, #6c63ff 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}

.create-btn:hover {
  background: linear-gradient(90deg, #4f46e5 0%, #6c63ff 100%);
}

.icon {
  font-size: 1.2em;
  vertical-align: middle;
}

#text-output {
  margin: 24px auto 8px auto;
  font-size: 1.35rem;
  font-family: 'Permanent Marker', 'Impact', cursive;
  color: #CD212A;
  background: #fff8f0;
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(205,33,42,0.07);
  word-break: break-word;
}
#copy-btn {
  background: linear-gradient(90deg, #6c63ff 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
}
#copy-btn:hover {
  background: linear-gradient(90deg, #4f46e5 0%, #6c63ff 100%);
}

button, .create-btn, .upload-btn, #copy-btn, .quiz-opt, #download-btn, #reset-btn {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="26" font-size="28">🍕</text></svg>') 0 24, auto !important;
}

/* Quiz 美化 */
.quiz-q {
  font-size: 1.35rem;
  font-family: 'Permanent Marker', 'Impact', cursive;
  color: #CD212A;
  margin-bottom: 18px;
  font-weight: bold;
  text-align: center;
}
.quiz-opt {
  background: #fff;
  border: 2px solid #6c63ff;
  border-radius: 18px;
  padding: 10px 28px;
  font-size: 1.1rem;
  margin: 0 8px 12px 8px;
  color: #4f46e5;
  font-family: 'Roboto', 'Arial', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(80,80,120,0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  display: inline-block;
}
.quiz-opt:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.quiz-opt.selected, .quiz-opt:active {
  background: #6c63ff;
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 4px 16px rgba(76,70,229,0.13);
}
.quiz-opt.correct {
  background: #008C45 !important;
  color: #fff !important;
  border-color: #008C45 !important;
}
.quiz-opt.wrong {
  background: #CD212A !important;
  color: #fff !important;
  border-color: #CD212A !important;
}
.quiz-feedback {
  margin-top: 16px;
  font-size: 1.15rem;
  color: #008C45;
  font-weight: bold;
  text-align: center;
}
#score {
  margin-top: 24px;
  font-size: 1.25rem;
  color: #CD212A;
  font-family: 'Permanent Marker', 'Impact', cursive;
  text-align: center;
}
#next-question-btn {
  background: linear-gradient(90deg, #6c63ff 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 18px auto 0 auto;
  display: block;
  transition: background 0.2s;
}
#next-question-btn:hover {
  background: linear-gradient(90deg, #4f46e5 0%, #6c63ff 100%);
}
@media (max-width: 600px) {
  .quiz-q { font-size: 1.05rem; }
  .quiz-opt { font-size: 0.98rem; padding: 8px 12px; margin: 0 4px 10px 4px; }
  #score { font-size: 1.05rem; }
} 