html {
  overflow: hidden;
}

body {
  font-family: Helvetica, Arial, sans-serif;

  -webkit-font-smoothing: antialiased;
}


.zoom-checkbox {
  display: none;
}


.zoom-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  user-select: none;
  
}


.switch-box {
  box-sizing: border-box;
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}


.switch-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}


.zoom-checkbox:checked + .zoom-switch .switch-box {
  background-color: #007aff;
  
}

.zoom-checkbox:checked + .zoom-switch .switch-box::after {
  transform: translateX(20px);
  
}



.zoom-checkbox:checked ~ .main-image-container .preview-big-img {
  transform: scale(1.5);
  
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  
  margin-left: 4px;
}


.help-icon {
  width: 16px;
  height: 16px;
  
  background-color: #ff9800;
  
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  border: none;
  font-weight: bold;
  cursor: pointer;
  
  box-shadow: 0 0 4px rgba(255, 152, 0, 0.4);
  
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 152, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}


.tooltip-container:hover .help-icon,
.tooltip-container:focus .help-icon {
  background-color: #f57c00;
  transform: scale(1.1);
  
  transition: all 0.2s ease;
}


.tooltip-content {
  visibility: hidden;
  width: 220px;
  background-color: rgba(50, 50, 50, 0.9);
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  bottom: 150%;
  
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  
}


.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(50, 50, 50, 0.9) transparent transparent transparent;
}


.tooltip-container:hover .tooltip-content,
.tooltip-container:focus .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.toolbar {
  display: flex;
  gap: 24px;
}

.toolbar button {
   height: 32px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  width: 160px;
  transition: all 0.2s ease;
  position: relative;
}

#upload_count,
#output_count {
  position: absolute;
  top: -11px;
  right: -11px;
  margin-left: 8px;
  font-size: 0.85em;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: #00b578;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0px 3px 4px -2px rgba(233, 30, 99, 0.6);
  transition: background-color 0.2s ease-out;
}

#upload_count,
#output_count {
  visibility: hidden;
}

#output_count {
  background-color: #000;
  
}

#btnSelect:hover {
  color: #2db7f5;
  border: 1px solid #2db7f5;
  background-color: #fff;
}

#btnClear:hover {
  color: #e91e63;
  border: 1px solid #e91e63;
  background-color: #fff;
}

#btnCompress:hover {
  color: #00b578;
  border: 1px solid #00b578;
  background-color: #fff;
}

#btnSave:hover {
  color: #121212;
  border: 1px solid #121212;
  background-color: #fff;
}

#btnSelect {
  position: relative;
  background: #1e88e5;
  border: 1px solid #1e88e5;
  color: #fff;
}

#btnClear {
  border: 1px solid #e91e63;
  background: #e91e63;
  color: #fff;
  opacity: 0.5;
  pointer-events: none;
}

#btnCompress {
  position: relative;
  background: #00b578;
  border: 1px solid #00b578;
  opacity: 0.5;
  pointer-events: none;
}
#btnSave {
  position: relative;
  background: #121212;
  border: 1px solid #121212;
  opacity: 0.5;
  pointer-events: none;
}

.toolbar button:hover {
  background: #e8e8e8;
}
header.header {
  width: auto;
  padding: 8px;
  min-height: 36px;
 border-bottom: 1px solid #ddd;
}

.header .domain {
  flex:unset;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;

  color: #111;
  letter-spacing: -0.03em; 
  line-height: 1;
  text-transform: capitalize; 

  
  text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.1);
}




#utility-tools ul {
  margin-bottom: 60px;
}

.error-tips {
  color: red;
  margin: 16px 3px;
  text-align: left;
  display: none;
  width: 80%;
}
 

.logo-only {
  color: #111;
}


.logo-compress {
  color: #3b82f6;
}


.domain:hover .logo-only,
.domain:hover .logo-compress {
  opacity: 0.85;
  transition: 0.2s ease;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
  background-color: rgb(30, 136, 229);
  color: white;
  cursor: pointer;
  border-radius: 5px;
  margin: 16px auto;
}

.upload-label:hover {
  background-color: #1565c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section.dragover {
  border-color: #409eff;
  background-color: #f0f8ff;
}

#fileInput {
  display: none;
}

.file-name {
  margin-top: 10px;
  color: #333;
  font-weight: bold;
}


#dragMask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 32px;
  backdrop-filter: blur(3px);
  z-index: 999;
  pointer-events: none;
}

.feature-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 auto;
  border-bottom: 1px dashed #aaa;
  margin-bottom: 36px;
  text-align: center;
  padding-bottom: 16px;
}

.feature-list {
  width: min(1200px, 80%);

  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
  margin-top: 36px;
}

.feature-item {
  padding: 24px 0;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #111;
}

.feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

#dragMask.active {
  display: flex;
}

a#site_title {
  color: #000;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
}

div.header-right {
  justify-content: end;
  display: flex;
  align-items: center;
  text-align: right;

  pointer-events: none;
  margin-right: 8px;
}
div.header-right:hover {
  color: var(--color-blue2);
}

div.header-right > * {
  pointer-events: auto;
  cursor: pointer;
}

div.header-right span {
  margin: 0 6px;
  cursor: pointer;
}

.container {
  flex: 1;
  width: 1200px;
  margin: 0 auto;
  border: 0;
}

.container a {
  text-decoration: none;
  font-weight: 600;
}


.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.preview-modal.show {
  display: block;
}

.preview-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.preview-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1400px);
  height: min(82vh, 1000px);

  background: #111;
  border-radius: 18px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.preview-close:hover {
  
  background-color: #fff;
  color: rgba(255, 23, 68, 1);
}

.preview-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.preview-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-all;
  text-align: center;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.preview-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.preview-body {
  flex: 1;
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow: auto;
}


.preview-body.landscape {
  flex-direction: column;
}


.preview-body.portrait {
  flex-direction: row;
}

.preview-image-box {
  flex: 1;
  min-height: 0;

  background: #1a1a1a;
  border-radius: 14px;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.preview-label {
  flex-shrink: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.preview-label span:first-of-type {
  margin-right: 16px;
  font-size: 20px;
  color: #00b578;
  font-weight: 600;
}


.alert-shortcut-hint {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 12px;
  color: #86868b; 
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none; 
}


kbd {
  background-color: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: SFMono-Regular, Consolas, Menlo, monospace;
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), inset 0 1px 0 #ffffff;
  line-height: 1;
}


.preview-close {
  position: absolute;
  top: 12px; 
  right: 16px;
  background: #f5f5f7;
  border: none;
  font-size: 18px; 
  color: #86868b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s ease;
}


.preview-close:hover {
  background: #ff453a; 
  color: #fff; 
}

.preview-close:active {
  transform: scale(0.92); 
}

.preview-image-box img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

@media (max-width: 768px) {
  .preview-body {
    flex-direction: column !important;
  }
}





.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-control {
  width: min(320px, 95%);

  display: flex;
  align-items: center;
  gap: 12px;

  background: #fff;

  border: 1px solid #333;
  border-radius: 12px;

  padding: 10px 14px;
}

.preview-control-label {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  color: #000;

  white-space: nowrap;
}

.preview-control-label b {
color: #000;
    display: inline-block;
    font-weight: 600;
  
    width: 32px;
}



.preview-control input[type="range"] {
  flex: 1;

  height: 18px;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  cursor: pointer;

  accent-color: transparent;
}



.preview-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;

  background: #444;

  border-radius: 999px;
}

.preview-control input[type="range"]::-moz-range-track {
  height: 6px;

  background: #444;

  border-radius: 999px;
}



.preview-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;

  width: 8px;
  height: 20px;

  border-radius: 999px;

  background: #fff;

  border: 1px solid #000;

  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.25);

  margin-top: -7px;

  cursor: pointer;
}


.preview-control input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 20px;

  border-radius: 999px;

  background: #fff;

  border: 1px solid #000;

  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.25);

  cursor: pointer;
}



.preview-control input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}

.preview-control input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.12);
}



.preview-control input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

.preview-control input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.2);
}



.preview-apply-btn {
  height: 36px;

  padding: 0 18px;

  border: none;
  border-radius: 10px;

  background: #fff;
  color: #000;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.preview-apply-btn:hover {
  opacity: 0.85;
}



.preview-info {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;

  margin-top: 10px;

  color: #999;
  font-size: 13px;
  line-height: 1.5;
  justify-content: center;
}

.preview-info-separator {
  opacity: 0.4;
  margin: 0 8px;
}

.preview-info-arrow {
  font-size: 14px;
}

.preview-info-percent {
  color: #00b578;
  font-weight: 600;
}



.preview-output {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}



.preview-output img {
  display: block;

  transition: filter 0.22s ease, transform 0.22s ease;

  filter: blur(0);
  transform: scale(1);
}


.preview-output.loading img {
  filter: blur(3px);
  transform: scale(1.01);
}



.preview-output::after {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.18s ease;

  background: rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(2px);

  z-index: 5;
}


.preview-output.loading::after {
  opacity: 1;
}



.preview-output::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 30px;
  height: 30px;

  margin-left: -15px;
  margin-top: -15px;

  border-radius: 50%;

  z-index: 10;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.18s ease;

  
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.95);

  animation: preview-spin 0.75s linear infinite;
}


.preview-output.loading::before {
  opacity: 1;
}



@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}




.image-item.compressed {
  transition: all 0.3s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .image-item.compressed:hover {
    outline: 2px solid #52c41a; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px); 
  }
}



.img-box::before,
.img-box::after {
  position: absolute;
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease, visibility 0.5s;
  pointer-events: none;
}


.image-item .img-box::before {
  content: "处理中...";
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 50px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 5;
  backdrop-filter: blur(0px); 
  color: #666;
  font-size: 14px;
  font-weight: bold;
}


html[lang="en"] .image-item .img-box::before {
  content: "processing...";
}


.image-item .img-box::after {
  content: "";
  top: 40%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  z-index: 10;
  animation: spin 1.5s linear infinite;
}


.image-item.is-processing .img-box::before,
.image-item.is-processing .img-box::after {
  opacity: 1;
  visibility: visible;
}

.image-item.is-processing .img-box::before {
  backdrop-filter: blur(2px); 
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



#top_menus {
  flex: 1.5;
}

#top_menus a {
  display: flex;
  align-items: center;
}

#top_menus a svg {
  width: 22px;
  height: 22px;
  color: #fff;
  margin-right: 8px;
}

html[lang] #top_menus a svg {
  color: #36baf1;
}

.section h2 {
  margin: 0;
  padding-bottom: 24px;
  font-weight: bold;
  border-bottom: 1px dashed #ddd;
}

.sub-title div {
  height: 16px;
}

.user-faq {
  text-align: center;
  margin-bottom: 64px;
}

.user-faq h3 {
  font-size: 18px;
  margin-bottom: 16px;
  margin-top: 48px;
  font-weight: bold;
}

.user-faq .info {
  font-size: 16px;
  color: #333;
}

.section .drag-tips {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  justify-content: center;
}

.section {
  
  box-sizing: border-box;
  flex-direction: column;
  width: 1200px;
  height: 320px;
  justify-content: center;
  align-items: center;
  display: flex;
  border-radius: 3px;

  border: 1.5px dashed #aaa;
  border-radius: 8px;
  text-align: left;
  background-color: #fff;
}

img.myIcon {
  margin: 0;

  margin-right: 12px;
}

.img-box {
  width: 155px;
}

a.download_compress {
  width: 128px;

  font-size: 13px;
  padding: 6px 4px;
  background: #beecff;
  align-items: center;
  display: flex;
  color: #444;
  margin: 8px auto;

  border-radius: 3px;

  flex-direction: column;
  gap: 12px;
  cursor: pointer;

  text-decoration: none;
  visibility: hidden;
}

@media (hover: hover) {
  a.download_compress:hover {
    background-color: #fafafa;
  }
}

.section a span:first-of-type {
  color: #333;
  white-space: break-spaces;
  font-weight: 500;
  font-size: 20px;
}

.section a svg {
  color: var(--color-blue2);
  width: 45px;
  height: 45px;
}

.section a span:nth-of-type(2) {
  line-height: 18px;
  font-size: 14px;
  color: #777;
}

a:target {
  color: red;
}

ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

ul li a span {
  margin-top: 8px;
}

li a {
  text-decoration: none;
  color: #666;
  font-size: 13px;
}

.webinfo {
  font-size: 32px;
  text-align: center;

  line-height: 36px;
  font-weight: 500;
  margin-top: 64px;
  font-weight: 600;
}

.faq {
  font-size: 36px;
  text-align: center;
  margin-bottom: 32px;
  line-height: 36px;
  font-weight: 500;
  margin-top: 96px;
}

.fmt {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-family: monospace;
  margin: 0 5px;
}

.container h2 {
  width: auto;
  font-size: 18px;
  text-align: left;
  margin: 16px auto;
  line-height: 28px;
  color: #333;
  margin-bottom: 96px;
  
  white-space: pre-line;
}
.logoBox {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  gap: 8px;
  border-radius: 3px;
  margin: 0 auto;
  color: red;
  font-weight: normal;

  margin-bottom: 8px;
}

input[type="file"] {
  font-size: 16px;
  background: #ededed;
}

.logoBox span {
  font-size: 22px;
}

.homeLogo {
  display: none;
}

.lang-tip {
  position: fixed;
  top: 60px;
  right: 10px;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 90%;
  width: 300px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.lang-tip button {
  margin-left: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.lang-tip .yes {
  background: #e60012;
  
  color: #fff;
}

.lang-tip .no {
  background: #444;
  color: #fff;
}

.lang-tip .close {
  background: transparent;
  color: #aaa;
  font-size: 16px;
  position: absolute;
  top: 6px;
  right: 8px;
  cursor: pointer;
}



.img-box.loading {
  position: relative;
  background-color: #eee;
  animation: pulse 1.5s infinite ease-in-out; 
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0% {
    background-color: #eee;
  }
  50% {
    background-color: #fafafa;
  }
  100% {
    background-color: #eee;
  }
}


.image-item img {
  width: 100%;
  height: 160px;
  object-fit: cover; 
  animation: fadeIn 0.4s ease-in;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



.tabs {
  width: 600px;
  margin: 40px auto;
  font-family: Arial;
}

nav {
  display: flex;
}

nav a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  background: #f5f5f5;
  margin-right: 6px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
  top: 1px;
}


nav a.active {
  background: #fff;
  border-bottom: 1px solid #fff;
}

.content {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 20px;
  height: 450px;
  margin-bottom: 30px;
  flex-direction: column;
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}


nav a[href$="jpg"],
nav a[href$="png"],
nav a[href$="gif"] {
}


nav a[href$="mp4"],
nav a[href$="mov"] {
  background: #e3f2fd;
  
  border-color: #bbdefb;
}


nav a[href$="mp3"],
nav a[href$="aac"],
nav a[href$="flac"] {
  background: #fff3e0;
  
  border-color: #ffe0b2;
}


nav a.active {
  background: #fff !important;
  border-color: #ddd;
  border-bottom-color: #fff;
  
  z-index: 2;
}


nav a {
  transition: background 0.2s ease;
  
  display: inline-block;
  padding: 8px 15px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}


nav a:hover {
  background: #fff !important;
  
  color: #333;
  
}


nav a.active {
  background: #fff !important;
  cursor: default;
  
}


.image-preview-container::-webkit-scrollbar {
  width: 20px; 
  height: 24px; 
}


.image-preview-container::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 6px;
}


.image-preview-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e0f2fe, #7dd3fc); 
  border-radius: 6px;
  border: 2px solid #f5f5f5;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}



@media (hover: hover) {
  .image-preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  }
}

.image-item {
  box-sizing: border-box; 
  width: 166px;
  position: relative; 
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.image-item img {
  width: 60%; 
  margin: 0 auto;
  height: 120px;
  object-fit: contain; 
  border-radius: 2px;
}

.image-info {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}

.image-info p {
  margin: 2px 0;
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-btn {
  visibility: hidden;
  font-weight: 600;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #e04c4c;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  line-height: 20px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #aaa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (hover: hover) {
  .delete-btn:hover {
    outline: 1.5px solid #555;
  }
}



@media (hover: hover) {
  .image-item:hover .delete-btn {
    opacity: 1;
    visibility: visible;
  }
}

.item-action {
  gap: 8px;
  display: flex;
  flex-direction: row;
}

.preview-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1100px, 98%);
}

.image-preview-container {
  display: flex; 
  gap: 15px; 

  padding: 10px;
  overflow-x: hidden;
  overflow-y: hidden;

  display: flex;

  scroll-behavior: smooth; 
  gap: 8px;
  padding: 0 16px;
  flex-direction: column;
  justify-content: center;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #007aff;
  color: white;
  border-color: #007aff;
}

.nav-btn.left {
  left: -20px;
} 
.nav-btn.right {
  right: -20px;
}

ol li {
  padding: 24px 0;
}

ol li strong {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #111;
  display: block;
}

ol li p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .lang-tip {
    left: 50%;
    bottom: 16px;
    top: unset;
    transform: translateX(-50%);
  }

  .section p {
    display: none;
  }

  .webinfo {
    margin: 24px 8px;
    line-height: 36px;

    font-size: 24px;
  }

  .homeLogo {
    display: block;
  }

  .section ul {
    list-style: none;
    padding-left: 0;
    display: block;
  }

  #top_menus {
    width: 100%;
    display: none;
  }

  #top_menus a {
    flex-direction: column;
  }

  #top_menus a svg {
    margin-bottom: 8px;
  }

  .container {
    width: 97%;
    padding: 0;
    font-size: 16px;
    margin: 8px auto;
  }

  .header {
    flex-direction: row;
    align-items: flex-start;
    padding: 2%;
    min-height: 48px;
    width: 98%;
  }

  .header-left {
    margin-left: 0;
  }

  .top_nav span {
    display: none;
  }

  .top_nav span a {
    color: #333;
    text-decoration: none;
    padding: 3px 5px;
    background-color: #eeeeee;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 12px;
  }

  .header-left {
    gap: 0;
    justify-content: space-around;
  }

  .header-left a {
    margin: 3px 10px;
  }

  .header-left.active {
    display: flex;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
    cursor: pointer;
    display: none;
  }

  .header-right a {
    flex: 1;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    background-color: #444;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .top_nav {
    display: flex;
    justify-content: space-between;
  }

  a#site_title {
    color: #000;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
  }

  .header a.selectable {
    text-decoration: none;
    display: inline-block;
    color: #fff;

    transition: all 0.3s ease;
    font-size: 13px;
    padding: 0;
  }
}

.section p {
  font-size: 13px;
  color: #333;
  margin: 4px 0px;
}


@media screen and (max-width: 768px) {
  .alert-shortcut-hint {
    display: none;
  }

  .delete-btn {
    visibility: visible;
  }

  .container h2 {
    font-size: 16px;
  }

  .toolbar button {
    width: 145px;
  }

  .section .drag-tips {
    flex-direction: column;
    display: block;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .content {
    gap: 8px;
  }

  nav {
    margin-top: 32px;
  }

  .container h2 {
    margin: 0 16px;
    line-height: 24px;
  }

  .user-faq .info {
    line-height: 24px;
    padding: 0 16px;
  }

  .section a img {
    float: left;
  }

  .section a svg {
    float: left;
  }

  .section a span {
    display: block; 
    padding-left: 68px;
    margin: 3px;
  }

  html[lang="en"] div.detail ul li {
    line-height: 20px;
  }

  div.detail {
    margin-left: 0;
  }
}

@media screen and (max-width: 360px) and (orientation: portrait) {
  
  div.detail ul li {
    font-size: 14px;
  }
}
