* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section , .preview-section {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.preview-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f2f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.url-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.url-input:focus {
  border-color: #2575fc;
  outline: none;
}

.button-group{
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 14px 52px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#example-btn{
  background: linear-gradient(135deg, #11cb54 0%, #256efc 100%);
  background: #eee;
  color: #666;
  border:1px solid #ddd;
}

.btn:hover {
  box-shadow: 0 6px 12px rgba(37, 117, 252, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.preview-container {
  flex: 1;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 300px;
  max-height: 900px;
  overflow: auto;
  background: #fafafa;
}

.preview-placeholder {
  text-align: center;
  color: #888;
}

.format-options {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.format-btn {
  flex: 1;
  background: #f1f2f3;
  border: 2px solid #e0e0e0;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.format-btn:hover {
  background: #e8e8e8;
}

.format-btn.active {
  background: #2575fc;
  color: white;
  border-color: #2575fc;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  line-height: 1;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

footer {
  font-size: 15px;
  text-align: center;
  color: #666;
}

.footer-content{
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.footer-content p{
  margin-top: 15px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f1f2f3;
  border-top: 4px solid #2575fc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#content-display {
  padding: 20px;
  max-width: 100%;
}

#content-display img {
  max-width: 100%;
  height: auto;
}

#content-display .rich_media_meta_list,
#content-display .rich_media_toolbox,
#content-display .reward_area,
#content-display .qr_code_pc_area {
  display: none;
}
