* {
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-display: swap;
}

body {
  background-color: #ffffff;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.logo_image {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  transition: all 0.3s;
}

.logo_image:hover {
  transform: scale(1.05);
}

.wrapper {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor label {
  font-size: 1.em;
  color: #000;
}

.result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

#chosen-image {
  max-width: 100%;
  max-height: 45vmin;
  margin: auto;
}

.hidden,
input[type="file"] {
  display: none;
}

.image-container {
  /* max-width: calc(100% - 4vmin); */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.button-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  max-width: 320px;
  height: 80px;
  width: 320px;
  margin: 30px auto;
  margin-top: 0px;
  border-radius: 50px;
  line-height: 80px;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.button-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

canvas {
  max-height: 50vh;
  max-width: 100%;
}

.switch,
input[type="range"] {
  margin-top: 20px;
  position: relative;
  height: 34px;
}

input[type="range"] {
  margin-right: 15px;
  width: 80%;

  cursor: ew-resize;
  display: block;
}

footer {
  margin-top: 50px;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 5px 0;
  padding-left: 20px;
  text-align: left;
  list-style-position: outside;
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  margin: 0 0 16px;
}

.upload {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff !important;
  display: inline-block;
  max-width: 320px;
  height: 80px;
  width: 300px;
  margin: auto;
  border-radius: 50px;
  line-height: 80px;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.upload:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.cr-slider {
  -webkit-appearance: none;
  width: 400px;
  max-width: 100%;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top: 8px !important;
  background-color: transparent;
}
.cr-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 3px;
}
.cr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top: -6px;
}
.cr-slider:focus {
  outline: 0;
}
.cr-slider::-moz-range-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 3px;
}
.cr-slider::-moz-range-thumb {
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top: -6px;
}
.cr-slider:-moz-focusring {
  outline: 1px solid #fff;
  outline-offset: -1px;
}
.cr-slider::-ms-track {
  width: 100%;
  height: 5px;
  background: 0 0;
  border-color: transparent;
  border-width: 6px 0;
  color: transparent;
}
.cr-slider::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.cr-slider::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.cr-slider::-ms-thumb {
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top: 1px;
}
.cr-slider:focus::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.5);
}
.cr-slider:focus::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.5);
}

footer {
  margin-top: 50px;
}
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: disc;
  list-style-position: inside;
}
ol {
  list-style-type: decimal;
  margin: 20px;
}

li {
  margin: 5px 0;
  padding-left: 20px;
  text-align: left;
  list-style-position: outside;
}
p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  margin: 0 0 16px;
}
.list-unstyled {
  list-style: none;
  padding-left: 0;
}
.footer-item {
  color: #000;
}
.a1 {
  text-decoration: none;
  color: #000;
}
.a1:hover {
  text-decoration: underline;
}
.color-input {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin-top: 8px !important;
  cursor: pointer;
}
.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
  padding: 0;
}
.color-input::-moz-color-swatch {
  border-radius: 50%;
}

input[type="radio"] {
  transform: scale(1.7);
  margin: 1px;
}

label {
  font-size: 19px; /* adjust the font size as needed */
  vertical-align: middle; /* adjust the vertical alignment of the label */
  margin: 10px; /* adjust the margin as needed */
}
.options {
  margin: 10px;
}
.option {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.option:hover {
  border-color: #667eea;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.option label, .option input[type="radio"] {
  cursor: pointer;
}

.image-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-table th,
.image-table td {
  padding: 15px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e2e8f0;
}

.image-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.image-table tbody tr:nth-child(even) {
  background-color: #f7fafc;
}

.image-table tbody tr:hover {
  background-color: #edf2f7;
}
#drop-zone {
  border: 3px dashed #cbd5e0;
  text-align: center;
  margin: 15px;
  cursor: pointer;
  border-radius: 16px;
  height: 170px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #718096;
}

#drop-zone:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}
.hz {
  display: block;
}
#dw-zip {
  display: none;
}

.option-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.option-container input[type="color"],
.option-container input[type="range"] {
  margin: 0 auto;
  display: block;
}
footer {
  text-align: center;
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #e2e8f0;
  color: #718096;
  font-size: 0.9rem;
}

.center {
  display: block;
  margin: auto;
}

.menulink {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.othertools {
  font-size: 36px;
}

.button-link {
  margin: 20px;
  padding: 10px 20px;
  color: #ffffff; /* white text */
  background-color: #007bff; /* blue background */
  border-radius: 4px; /* rounded corners */
  text-align: center;
  text-decoration: none; /* removes underline */
  font-weight: bold;
  transition: background-color 0.3s; /* smooth transition for hover effect */
  max-width: 500px;
}

.button-link:hover {
  background-color: #0056b3;
}

.button-link:active {
  background-color: #004080;
}
hr {
  border: none;
  height: 2px;
  background-color: #333;
  margin: 20px 0;
}

/* 语言切换下拉菜单样式 */
.lang-switcher-dropdown {
  /* position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000; */
  position: relative;
  align-self: flex-end;
  font-size: 15px;
  margin-block-start: 1rem;
  margin-inline-end: 1rem;
}
#lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: background 0.2s, color 0.2s;
}
#lang-dropdown-btn:focus {
  outline: none;
  border-color: #222;
}
.lang-dropdown-list {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 120px;
  padding: 6px 0;
}
.lang-dropdown-list a {
  display: block;
  padding: 7px 18px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 15px;
}
.lang-dropdown-list a.active, .lang-dropdown-list a:hover {
  background: #222;
  color: #fff;
}
.lang-switcher-dropdown.open .lang-dropdown-list {
  display: block;
}
@media (max-width: 600px) {
  .lang-switcher-dropdown {
    right: 10px;
    font-size: 13px;
  }
  #lang-dropdown-btn {
    padding: 3px 10px;
    font-size: 13px;
  }
  .lang-dropdown-list {
    min-width: 90px;
  }
  .lang-dropdown-list a {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* 现代化落地页样式 */
.wrapper {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* 页面标题样式 */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 40px 0 30px 0;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin: 40px 0 20px 0;
  position: relative;
  padding-left: 20px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #4a5568;
  margin: 25px 0 15px 0;
}

/* 段落样式 */
p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 20px;
}

/* 列表样式 */
ul, ol {
  margin: 20px 0;
  padding-left: 25px;
}

li {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 8px;
}

/* 指南网格布局 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.guide-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.guide-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.guide-card h3 a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.guide-card h3 a::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 0;
  opacity: 0;
  transition: all 0.3s;
  color: #667eea;
}

.guide-card h3 a:hover {
  color: #667eea;
}

.guide-card h3 a:hover::after {
  opacity: 1;
  right: -25px;
}

.guide-card p {
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1rem;
}

.guide-card ul {
  margin: 0;
  padding-left: 20px;
}

.guide-card li {
  color: #4a5568;
  margin-bottom: 6px;
  font-size: 0.95rem;
  position: relative;
}

.guide-card li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: #48bb78;
  font-weight: bold;
}

/* 优势展示网格 */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.benefit-item h4 {
  color: #2d3748;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.benefit-item p {
  color: #718096;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* CTA区域样式 */
.cta-section {
  background: linear-gradient(135deg, #4c63d2 0%, #6b46c1 100%);
  color: white;
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.cta-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 1;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button {
  display: inline-block;
  background: white;
  color: #4c63d2;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 相关链接区域 */
.related-links {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.related-links h3 {
  color: #2d3748;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li {
  margin-bottom: 12px;
}

.related-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
  padding: 8px 0;
}

.related-links a:hover {
  color: #764ba2;
  transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .wrapper {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
    margin: 30px 0 20px 0;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-section {
    padding: 40px 20px;
    margin: 40px 0;
  }
  
  .cta-section h3 {
    font-size: 1.6rem;
  }
  
  .guide-card {
    padding: 25px;
  }
  
  .benefit-item {
    padding: 25px 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .cta-section {
    padding: 30px 15px;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }
}
