body {
  background-color: #fafafa;
}
html {
  scroll-behavior: smooth; 
}
.container {
  border: 0;
  width: 1080px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  padding: 8px;
  margin: 4px auto;
  justify-content: space-between;
}

.container {
  border: 0;
  width: 1280px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  padding: 8px 0;
  margin: 4px auto;
}

header.title {
  background-color: #fff;
  width: 1280px;
  margin: 0 auto;
  padding: 8px 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.h2_title {
  text-align: center;
  border-radius: 5px;
  font-size: 24px;
  padding: 16px;

  color: #333;
  font-weight: 700;
}

#headerUserBack {
  margin-right: 0;
}

#headerUserBack img {
  background: var(--header-bgcolor);
  padding: 8px;
  border-radius: 8px;
}

.setting {
  
  background-color: #fff;
  border-radius: 3px;
  min-height: 45px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  width: 360px;
}

.outputBox div {
  height: 28px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

#downloadButton {
  line-height: 36px;
  text-decoration: none;
  text-align: center;
  width: 50%;
  height: 36px;
  background-color: #00b578;
  color: white;
  cursor: pointer;
  border-radius: 16px;
  border: 0;
  font-size: 18px;
  margin: 0 auto;
  display: inline-block;
}

.file-info {
  padding: 8px;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  background-color: #fff;
  border-radius: 3px;
  display: none;
}

.setting select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 48px 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  font-size: 14px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

#settingBox fieldset {
  border-radius: 5px;

  height: auto;

  border-radius: 5px;
  padding: 8px;
  font-size: 16px;
}

#compressOption,
#outputFormat,
#imageSize {
  font-size: 16px;
  width: 165px;

  text-align: center;

  color: #555;
}


#compressButton {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 10px;
  border: 1px solid #e91e63;
  background: #e91e63;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 16px auto;
  text-decoration: none;
}
#compressButton:hover {
  background: #fff;
  color: #e91e63;
}

.outputBox {
  font-size: 14px;

  border-radius: 3px;

  margin-top: 16px;
  display: none;
}

#settingBox fieldset legend {
  padding: 0 5px;
  font-weight: bold;
}

#settingBox label {
  align-items: center;
  display: flex;
  justify-content: space-around;
  margin: 8px;
}

#inputFiles {
  display: none;
  padding: 8px;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 3px;
  flex-direction: column;
  outline: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fafafa;
}

.file-info .qualityRangeBox {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

#qualityRangeLabel {
  visibility: hidden;
}

.file-info #qualityRange {
  width: 150px;
}

.file-info #qualityValue {
  width: 50px;
  color: #000;
}

.file-info #compressButton {
  border-radius: 3px;
  border: 0;
  background: var(--button-color);
  color: #fff;
  width: 60px;
  height: 36px;
  cursor: pointer;
  font-size: 13px;
  visibility: hidden;
}

.file-info #compressButton:disabled {
  background-color: #999;
  cursor: default;
}


.file-info > * {
  flex: 1;
}

#fileList {
  margin-top: 8px;
  position: relative;
  font-size: 14px;

  height: calc(100vh - 136px);
  background-color: #fff;
  border-radius: 3px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.fileListHeader {
  font-weight: 500;
  height: 32px;
  background-color: #f9f9f9;
  color: #000;
}

#fileList li.fixed-header {
  margin: 0;
  width: 100%;
}

.fileListHeader div {
  flex: 1;
}

.fileListItem > * {
  flex: 1;
}

.fixed-header {
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fileListItem {
  font-weight: normal;
}

.section .file-info span {
  color: #333;
  margin-right: 16px;
  margin-left: 3px;
}

.grid-item svg {
  width: 54px;
  height: 54px;
  color: var(--color-dark);
}

#app_title {
  align-items: center;
  justify-content: center;
  flex: 1;

  display: none;
}

.downloadBtn {
  color: #0056b3;
  cursor: pointer;
}

#fileInput {
  font-size: 13px;
}

#fileList {
  display: flex;
  flex-wrap: wrap; 
  gap: 8px;
  padding: 0 0 0 8px;
  margin: 0;
  list-style: none;
  display: none;
  width: 960px;
  align-content: flex-start;
}

#fileList button {
  background: #000;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

#fileList button:hover {
  background: #0056b3;
}

#fileList button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#fileList li {
  position: relative;
  flex-direction: column;
  width: 216px;
  height: 295px;
  border: 1px solid #aaa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  
}

#fileList .file-header {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
}

#fileList .thumbnail {
  cursor: pointer;
  max-width: 200px;
  max-height: 220px;
  width: auto;
  height: auto;

  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thumbnail:hover {
  cursor: pointer;
  box-shadow: 0 0 12px #1e88e5;
}

.file-info .name {
  color: #333;
}

.file-info .meta {
  color: #888;
  font-size: 13px;
}

.status {
  color: #999;
  font-size: 13px;
}

.processing-details {
  font-size: 13px;
  color: #444;
}

#qualityRangeLabel {
  width: 296px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}




#guidePage {
  width: 1080px;

  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.upload-label {
  margin-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
  background-color: #1e88e5;
  color: white;
  cursor: pointer;
  border-radius: 3px;
 
  font-size: 18px;
}

#inputFiles {
  display: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  width: 60%;
}

.grid-container .grid-item {
  padding: 3px;
  text-align: center;
  margin-top: 48px;
}

.grid-container .grid-item p {
  font-size: 16px;
  line-height: 20px;
  margin-top: 4px;
  color: #333;
}

.image_title {
  font-size: 36px;

  margin: 8px;
  font-weight: 700;
}

.image_title div {
  font-size: 16px;
  color: #666;
  margin: 8px;
  line-height: 23px;
  font-weight: normal;
}

#optimizeSize {
  width: 18px;
  height: 18px;
}

 


@media (max-height: 600px) {
  .grid-container .grid-item {
    margin: 0;
  }
}

.main_title {
  font-size: 32px;
  font-weight: 700;
  margin-top: 64px;
  color: #e91e63;
}

#guidePage h2 {
  font-size: 18px;
  color: #666;
  margin: 16px;
  line-height: 30px;
  font-weight: normal;
  word-break: break-all;
}

#recommnedInfo {
  margin-top: 126px;
  background-color: #fff;

  width: 80%;
  border-top: 1px dashed #333;
}


#guidePage article {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;

  line-height: 1.7;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#guidePage article h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 32px;
  margin-top: 64px;
  line-height: 1.3;
  text-align: center;
  
}

#guidePage article h3 {
  font-size: 18px; 
  font-weight: 700; 
  color: #111111; 
  margin-bottom: 12px; 
  line-height: 1.3; 
  text-align: left; 
  margin-top: 32px;
}


article section {
  font-size: 1rem;
  color: #333333;
  text-align: left;
  
}

#guidePage article p {
  text-align: left;

  margin-left: 16px;
  color: #333;
}

#guidePage article em {
  font-style: italic;
}


article strong {
  color: #e91e63;
  font-weight: 600;
}


article ol {
  margin: 16px 0 0 24px;
  padding: 0;
}

.more-links ul li {
  display: inline-block;
  margin: 8px;
}
.more-links a {
  text-decoration: none;
}

.common-issues dl dt {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  text-align: left;
}

.common-issues dl dd {
  text-align: left;
  color: #333;
}
.img-toolbar {
  margin: 5px;
}

.img-toolbar img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.img-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger {
  right: 7px;
  top: 7px;
  position: absolute;
  width: 25px;
  height: 25px;
}

.thumb-box {
  width: 200px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}


#fileList li {
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border 0.2s ease;
  border-radius: 6px; 
}


@media (hover: hover) {
  #fileList li:hover {
    
    border: 1px solid #000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.55);
  }
}


#fileList li.selected {
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
  border: 2px solid #2196f3;
}


#fileList li .img-toolbar,
#fileList li .danger {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}


#fileList li:hover .img-toolbar,
 
#fileList li.selected .img-toolbar
  {
  opacity: 1;
  pointer-events: auto;
}


.img-toolbar img,
.danger {
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.img-toolbar img:hover
  {
  transform: scale(1.1);
  opacity: 1;
}

a.topHref,
a.compressHref {
  display: none;
}


@media (hover: none) {
  #fileList li .img-toolbar,
  #fileList li .danger {
  
    pointer-events: auto;
  }
}


.tooltipImg {
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.tooltipImg[data-action="hover"]:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
  transition: transform 0.2s, filter 0.2s;
}


.tooltipImg:hover {
  transform: scale(1.1); 
  filter: brightness(1.3); 
}
.tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-align: center;
}


.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px; 
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000; 
}

.tooltip.show {
  opacity: 1;
  transform: translateY(-12px) scale(1);
}

.tooltip.hide {
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
}

.tooltipImg {
  cursor: pointer;
  width: 22px;
  height: 22px;
}

.size-info {
  display: flex;
  align-items: center;
  gap: 3px;
}

.modal-cancel {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #333;
  transition: all 0.2s ease;
}

.modal-cancel:hover {
  background: #dcdcdc; 
  border-color: #999; 
  transform: scale(1.15); 
}

.modal-save {
  background: #e91e63; 
  border: 1px solid #e91e63;
  color: #fff;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.modal-save:hover {
  background: #b0003a; 
  border-color: #b0003a;
  transform: scale(1.15); 
}


img[src="/assets/images/loading.svg?v=a1f932b7ffb2"] {
  width: 23px;
  height: 23px;
  display: block;
  margin: auto;
  animation: spin 1s linear infinite;
  transform-origin: center center;
}

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

.img-index {
  display: none;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 12px;
  color: #fff;
  background: #e91e63;
  color: #fff;
  position: absolute;
  top: 9px;
  left: 6px;
}

.img_preview {
  text-decoration: none;
  color: #43a047;
  pointer-events: auto;
}

.download_compress {
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}


.button_box {
  height: 300px;
  width: 100%;
  position: relative;
  margin-top: 32px;
}
#settingBox {
  margin-bottom: 32px;
}

.button_count {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 80px;
  font-size: 0.85em;
  font-weight: 700;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  background-color: #e91e63;
  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;
}

.compress_tips {
  margin: 0 auto;
  color: #555;
  background-color: #dff0ff;
  border-radius: 8px;
  font-size: 14px;
   margin-top: 8px;

  padding: 8px;
  line-height: 20px;
  width: 90%;
}


.modal {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; 
  display: flex; 
  justify-content: center;
  align-items: center;
}

.modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.modal-actions {
  position: fixed;
  display: flex;
  justify-content: flex-end;
  padding: 5px;
  top: 5px;
  right: 5px;
  z-index: 10000000;
}

.modal-content {
  position: relative;
  width: 100%; 
  height: 100%; 
  background: #333;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-actions button {
  width: 100px;
  height: 36px;
  margin-left: 10px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
}


.tui-image-editor-container .tui-image-editor-controls-logo > img,
.tui-image-editor-container .tui-image-editor-header-logo > img {
  width: 45px !important;
  height: 45px !important;
  border-radius: 3px;
}


.tui-image-editor-container .tui-image-editor-help-menu.top {
  top: 16px;
}


.tui-image-editor-help-menu [tooltip-content]::after,
.tui-image-editor-menu [tooltip-content]::after {
  font-size: 16px !important;
}


.tui-image-editor-container
  .tui-image-editor-submenu
  .tui-image-editor-submenu-item
  label
  > span {
  font-size: 16px;
}


.tui-image-editor-menu use.active.use-default,
.tui-image-editor-help-menu use.active.use-default {
  fill: #000 !important;
  stroke: #000 !important;
}


[tooltip-content]:hover::after {
  background-color: red !important;
  color: #ffffff !important;
}


[tooltip-content]:hover::before {
  border-color: red transparent transparent transparent !important;
}


.tui-image-editor-canvas-container {
  background: #fff !important;
}

input.tooltipImg {
  border: 0;
  text-align: center;
  width: 200px;
  color: #2196f3;
  cursor: pointer;
  font-size: 13px;
}



@media screen and (max-width: 768px)  {
  .compressHref,
  .topHref {
    position: fixed; 
    top: 200px; 
    right: 16px; 
    padding: 8px; 
    background-color: #1e88e5; 
    color: #fff; 
    border: none; 
    border-radius: 24px; 
    text-decoration: none;
    cursor: pointer; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    z-index: 9999; 
    transition: background 0.3s;
    width: 20px;
    letter-spacing: 5px;
    writing-mode: vertical-rl; 
    text-orientation: upright; 
    text-align: center; 
    line-height: 1.2; 
    font-size: 16px; 
  }

  
  .tui-image-editor-header-logo {
    display: none;
  }

  .modal-actions {
    top: 65px;
  }

  .modal-cancel {
    opacity: 0.9;
  }

  .modal-save {
    opacity: 0.9;
  }

  li.tie-btn-rotate {
    display: none !important;
  }

  .tui-image-editor-container .tui-image-editor-help-menu.top {
    width: 360px;
  }

  #guidePage article {
    padding: 8px;
  }
  .compress_tips {
    margin-top: 0;
  }

  #recommnedInfo {
    margin-top: 60px;
    width: 100%;
  }

  .topHref {
    top: 100px; 
    right: 16px;
  }
  article section {
    text-align: center;
  }

  .top-right-btn:hover {
    background-color: #ff7875; 
  }

 

  
  .selected .danger,
  .selected .img-toolbar {
    visibility: visible;
  }

  
  li:active {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border: 2px solid #2196f3;
    border-radius: 6px;
  }

  .more-links ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0; 
  }

  .more-links ul li {
    display: grid;
    margin: 8px;
  }

  article {
    padding: 18px;
  }

  article h2 {
    font-size: 1.5rem;
  }

  #page_footer {
    display: none;
  }

  .setting {
    height: auto;
    margin: 1%;
    padding: 0;
    width: 98%;
    gap: 8px;
    outline: 0;
  }

  header.title {
    width: 98%;
    padding: 1%;
  }

  .container {
    width: 98%;
    padding: 1%;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
  }

  .container .file-info {
    width: 100%;
    justify-content: space-between;
    min-height: 36px;
    font-size: 14px;
  }

  #convertAllBtn:disabled {
    background-color: #999;
    cursor: default;
  }

  #guidePage {
    width: 100%;
    margin: 0 auto;
    margin-top: 0;
  }

  .grid-container .grid-item {
    margin-top: 12px;
  }

  .grid-container .grid-item p {
    font-size: 13px;
  }

  #fileList {
    width: 100%;
    margin: 8px 0;
    height: auto;
    justify-content: center;
  }

  

  .grid-container {
    width: unset;
    padding: 0;
    margin-top: unset;
    grid-gap: 32px;
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-container .grid-item p {
    font-size: 16px;
    margin-top: 3px;
  }

  .section .file-info {
    flex: unset;
    font-size: 13px;
    width: 100vw;
    padding: 0;
  }

  #fileInput {
    width: 70px;
  }

  #qualityRangeLabel {
    width: 180px;
  }

  .file-info > * {
    flex: unset;
  }

  .file-info #qualityValue {
    width: 16px;
  }

  .file-info #qualityRange {
    width: 100px;
  }

  .section .file-info {
    width: 96dvw;
    margin: 1dvw;
    padding: 1dvw;
    justify-content: space-around;
    outline: 1px solid #aaa;
  }

  .title {
    margin-bottom: 0;
  }

  .fileNameHeader,
  .fileName {
    display: none;
  }

  #fileList .file-header {
    gap: 0;
    font-size: 12px;
  }

  .fileListHeader {
    font-weight: normal;
    background-color: #f9f9f9;
  }

  .section {
    display: block;
  }

  .file-info #compressButton {
    height: 30px;
    font-size: 13px;
  }

  .grid-container .grid-item {
    margin-top: 16px;
  }
}
