/* BackImg — shared layout (aligned with ToolApp) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background: #f5f7f6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e8ece9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d7d55;
  transition: color 0.15s;
}

.logo a:hover {
  color: #3a9d6c;
}

ul.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav li {
  width: auto;
}

.nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  color: #555;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  background: #eef8f2;
  color: #2d7d55;
}

/* Landing hero */
.backimg-home .editor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: min(420px, 70vh);
  height: auto;
}

.editordesc {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.descoption {
  max-width: 32rem;
}

.slogan {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.35;
  width: auto;
}

.description {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
  width: auto;
}

.option {
  width: auto;
}

button.start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.65rem 1.75rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #45b07a 0%, #3a9d6c 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(58, 157, 108, 0.35);
  transition: filter 0.15s, transform 0.15s;
}

button.start:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.editorimage {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.editorimage img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  border: 2px solid #3a9d6c;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.content::before {
  content: "示例作品";
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

ul.imageshow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.imageshow li {
  width: auto;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ece9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imageshow li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.imageshow img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
  border-top: 1px solid #e8ece9;
  color: #888;
  font-size: 0.8125rem;
}

.footer p {
  margin: 0;
}

/* Loading animation */
.loadingFour {
  width: 30px;
  height: 12px;
}

.loadingFour span {
  display: inline-block;
  width: 5px;
  height: 100%;
  margin-right: 2px;
  background: #6dd4a0;
  border-radius: 1px;
  animation: backimg-load 1.04s ease infinite;
}

.loadingFour span:last-child {
  margin-right: 0;
}

@keyframes backimg-load {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.loadingFour span:nth-child(1) { animation-delay: 0.13s; }
.loadingFour span:nth-child(2) { animation-delay: 0.26s; }
.loadingFour span:nth-child(3) { animation-delay: 0.39s; }
.loadingFour span:nth-child(4) { animation-delay: 0.52s; }
.loadingFour span:nth-child(5) { animation-delay: 0.65s; }

.RecommendationColor {
  width: 100px;
  height: 50px;
  text-align: center;
  margin: 2px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s;
}

.RecommendationColor:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .backimg-home .editor {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .editordesc {
    align-items: center;
  }

  ul.nav {
    gap: 0;
  }

  .nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
  }
}
