body {
 
  font-family: Graphik, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}

.container {
  border: 0;

  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  padding: 8px;
  margin: 4px auto;
  justify-content: space-between;

  width: 1000px;
}


#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;
}

#dragMask.active {
  display: flex;
}

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


.h2_title {
  font-weight: normal;
  font-size: 18px;
  color: #fff;
}

.setting {
  background-color: #fff;
  border-radius: 3px;

  padding: 8px 16px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  width: 360px;
}

#settingBox {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.outputBox div {
  display: none;
  height: 22px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  align-items: center;
  border-radius: 3px;
  padding: 8px;
}

#downloadButton {
  line-height: 25px;
  text-decoration: none;
  text-align: center;
  width: 80px;
  height: 28px;
  background-color: var(--color-black);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 0;
  margin-left: 8px;
}

div.del_icon {
  position: absolute;
  right: 5px;
  top: 18px;

  cursor: pointer;
  color: #b9b9c6;
  font-size: 13px;
  font-weight: 700;
  background-color: transparent;
  border-radius: 50%;
  border: 0;
  width: 26px;
  height: 26px;
  margin-left: -16px;
  margin-top: -16px;
  display: flex;
  align-items: center;
  justify-content: center;

  
  opacity: 1;
  pointer-events: auto;
  transition: color 0.15s ease, background-color 0.15s ease;
}


.del_icon:hover {
  color: #e5484d;
  background-color: #fdecec;
}

li[data-uid] {
  position: relative;
  border-radius: 6px;

  margin: 4px 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {
  li[data-uid]:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  }
}


.file-name-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}

.file-name-cell .file-item-name {
  
}


button.rename_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  color: #8b8b9c;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  li[data-uid]:hover button.rename_icon,
  button.rename_icon:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

button.rename_icon:hover {
  background-color: #eeecff;
  color: #5749d6;
}

@media (hover: none) {
  button.rename_icon {
    opacity: 1;
    pointer-events: auto;
  }
}


li[data-index].selected {
  
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

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

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

.tooltipImg:hover {
  transform: scale(1.2); 
  filter: brightness(1.3); 
}
.tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  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);
}

#compressOption {
  width: 80px;
  height: 26px;
  text-align: center;
  font-weight: 700;
  color: var(--color-black);
  border-radius: 3px;
  border: 2px solid #aaa;
}

#compressButton {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background-color: var(--color-blue);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid var(--color-blue);
  transition: all 0.3s ease;
  font-size: 16px;
}

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

.outputBox {
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fafafa;
  margin: 0;
  margin-top: 8px;
  display: none;
}

#settingBox label {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#settingBox .svgTips {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#inputFiles {
  display: none;
}

#addFiles {
  margin-top: 0;

  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 3px;

  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

#addFiles button {
  background-color: var(--black-90);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 700;
  height: 30px;
  width: 122px;
}

#addFiles span span {
  color: var(--color-blue);
  font-weight: 700;
}

.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 {
  position: relative;
  font-size: 14px;
  height: calc(100vh - 125px);
  background-color: #fff;
  border: 1px solid #ddd;
  overflow-x: hidden;
  overflow-y: scroll;
  border-radius: 8px;
  list-style: none;
  display: none;
  width: 750px;
}

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

#fileList li.fixed-header {
  margin: 0;
  width: 100%;
  padding-top: 0;
  
  position: sticky;
  top: 38px;
  background: #fff;
  z-index: 10;
}

.fileListHeader div {
  flex: 1;
}

.fileListItem > * {
  word-break: break-all;
  flex: 1;
  line-height: 22px;
}

.fixed-header {
  font-weight: bold;
  position: sticky;
  top: 38px;
  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;
}

#settingBox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

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

#fileInput {
  font-size: 13px;
}

#fileList li {
  margin: 16px 0;
  padding: 8px 2%;
  width: 96%;
}

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

#fileList .thumbnail {
  width: 260px;
  height: 130px;
  border-radius: 5px;
  object-fit: contain;
  padding: 4px;
  background-color: #fafafa;
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fileListItem .filename {
  display: block;
  padding-top: 8px;
  line-height: 22px;
}

#compressButton:disabled {
  background-color: var(--black-30);
  cursor: default;
  border: 0;
}

#compressButton:hover {
  transform: scale(1.03);

  border: 0;
}

a.compress_single {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 32px 0;
  text-decoration: none;
  display: none;
}


#guidePage {
  width: 1000px;

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

.upload-label {
  font-size: 18px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  min-height: 60px;
  background-color: #009688;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 700;
}

.drag_text {
  color: #999;
  font-size: 16px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  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;
}

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

#guidePage h2 {
  font-size: 24px;
  color: #333;
  margin: 16px;

  line-height: 30px;
}

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


.button_box {
  display: flex;
  justify-content: center;
  padding: 0 8px;
}


#compressButton {
  position: relative;
  background: #009688;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  margin-top: 8px;
}

#compressButton:disabled {
  background: #aaa;
  cursor: not-allowed;
}


#compressButton .progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #000;
  opacity: 1;
  transition: width 0.2s ease;
  z-index: 0;
}


#compressButton span,
#compressButton {
  position: relative;
  z-index: 1;
  font-weight: bold;
}


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

.settingTitle {
  font-size: 16px;
  padding: 0 16px;
  font-weight: bold;
}

#zipPassword {
  height: 26px;
  width: 120px;
}



#zipLevel {
  text-align: center;
  height: 28px;
  width: 188px;
}

#fileList {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.unzip-tips {
  line-height: 200px;
  background-color: #def2ff;
  text-align: center;
  height: 200px;
  border-radius: 8px;
  padding: 8px;
  display: none;
  width: 220px;
  margin-top: 16px;
}


.file-row {
  padding: 2px 6px;
  transition: background 0.15s ease;
  border-radius: 4px;
}


.file-row.file:hover {
  background: rgba(0, 0, 0, 0.05);
}


.file-row.file:active {
  background: rgba(0, 0, 0, 0.08);
}


.file-row.folder {
  cursor: default;
}


.file-name-wrapper {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}

.file-name-wrapper .file-row-name {
  
}


.file-row.file .rename-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b8b9c;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background-color 0.15s ease,
    color 0.15s ease;
}

.file-row.file:hover .rename-btn,
.file-row.file .rename-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.file-row.file .rename-btn:hover {
  background: #eeecff;
  color: #5749d6;
}

@media (hover: none) {
  .file-row.file .rename-btn {
    opacity: 1;
    pointer-events: auto;
  }
}


.file-row.file .download-icon {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eeecff;
  color: #6558e8;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.file-row.file .download-icon:hover {
  background: #6558e8;
  color: #fff;
}

#zipFileName {
  height: 26px;
  width: 120px;
}

 

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.feature-item {
  text-align: center;
  border: 1px solid #aaa;
  padding: 8px;
  border-radius: 5px;
}

.feature-item h3 {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 20px;
  height: 60px;
  color: #e91e63;
}

.feature-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

#guidePage h2.iphone-issues {
  margin-top: 120px;
  color: #009688;
}

.faq {
  margin: 0 auto;
  min-height: 500px;
}

.faq dt {
  font-weight: 600;
  margin-top: 32px;
}

.faq dd {
  padding: 0 16px;
  margin: 8px 0 0 0;
  color: #555;
  line-height: 1.6;
}


@media screen and (orientation: portrait) {
  .feature-grid {
    grid-template-columns: 1fr;
  }



      .feature-item   {
        margin: 8px auto;
        width: 90%;
      }

  .drag_text {
    margin-bottom: 60px;
  }

  #fileList {
    padding: 0;
  }

  #zipPassword {
    height: 20px;
    width: 120px;
  }

  #fileList li {
    margin: 0;
  }

  .unzip-tips {
    width: 94%;
    margin: 3%;
    height: 50px;
    line-height: 50px;
    padding: 0;
  }

  #compressButton:hover {
    transform: unset;
  }

  #guidePage h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .main_title {
    font-size: 32px;
    margin-top: 32px;
  }
  .fileListItem .filename {
    line-height: 18px;
  }

  #page_footer {
    display: none;
  }

  .processing-details div {
    flex-direction: column;
  }

  .setting {
    height: 252px;
    margin: 1%;
    padding: 1%;
    width: 96%;
    outline: 0;
    overflow-y: scroll;
    margin-top: 3%;
  }

  #settingBox {
    border: 1px solid #ddd;
  }

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

  #fileList .thumbnail {
    min-width: 200px;
    width: 200px;
    height: 240px;
    border: 0;
    background-color: #fafafa;
  }

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

  .upload-label {
    margin-bottom: 8px;
    font-weight: 700;

    font-size: 18px;
  }

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

  #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 {
    border: 1px solid #aaa;
    width: 99%;
    margin: 0;
    height: 100%;
  }

  #compressButton {
    margin-top: 8px;
    min-height: 36px;
  }

  #compressButton:hover {
    transform: unset;

    border: 0;
  }

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

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

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

  #fileInput {
    width: 70px;
  }

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

  .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: 8px;
    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: 24px;
  }
}


* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: flex-start;
  border-radius: 0;
}

#guidePage {
  width: 100%;
  margin: 0;
  padding: 72px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image_title {
  margin: 0 0 18px;
  color: #101018;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

#guidePage > h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #6b6b78;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.upload-box {
  position: relative;
  width: 100%;
  margin: 40px auto 0;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #d9d9e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 26, 0.05);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-box:hover {
  border-color: #b7aefc;
  background: #fcfbff;
  box-shadow: 0 24px 48px rgba(17, 17, 26, 0.08);
}

.upload-box:focus-within {
  border-color: #6558e8;
  box-shadow: 0 0 0 4px rgba(101, 88, 232, 0.12);
}

.upload-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f2efff;
  color: #6558e8;
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  color: #14141c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-width: 220px;
  min-height: 56px;
  margin: 20px 0 0;
  padding: 0 30px;
  border-radius: 999px;
  background-color: #6558e8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upload-label-plus {
  position: relative;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.upload-label-plus::before,
.upload-label-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.upload-label-plus::before {
  width: 8px;
  height: 2px;
}

.upload-label-plus::after {
  width: 2px;
  height: 8px;
}

.upload-label:hover {
  background-color: #5749d6;
  box-shadow: 0 14px 30px rgba(101, 88, 232, 0.28);
  transform: translateY(-2px);
}

.upload-hint {
  margin-top: 16px;
  color: #8b8b98;
  font-size: 14px;
  line-height: 1.6;
}

#inputFiles {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 56px 0 0;
}

.grid-container .grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 28px 24px;
  border: 0;
  border-radius: 20px;
  background: #f7f6ff;
  text-align: left;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.grid-container .grid-item:hover {
  background: #f1eeff;
  box-shadow: 0 16px 36px rgba(101, 88, 232, 0.1);
  transform: translateY(-2px);
}

.grid-item svg {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  color: #6558e8;
  box-shadow: 0 6px 16px rgba(101, 88, 232, 0.12);
}

.feature-title {
  margin: 0 0 8px;
  color: #101018;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.grid-container .grid-item .feature-desc {
  margin: 0;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.7;
}

.guide-section {
  width: 100%;
  margin-top: 64px;
  color: #182230;
  line-height: 1.65;
  counter-reset: step-counter;
  text-align: left;
}

.guide-section h3 {
  margin: 0 0 16px;
  color: #101018;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.guide-section .step {
  position: relative;
  margin-bottom: 12px;
  padding: 22px 22px 22px 68px;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 17, 26, 0.03);
}

.guide-section .step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6558e8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.guide-section .step h4 {
  margin: 0 0 8px;
  color: #101018;
  font-size: 16px;
  line-height: 1.4;
}

.guide-section .step p {
  margin: 0;
  color: #6b6b78;
  font-size: 14px;
  line-height: 1.7;
}

#fileList {
  flex: 1;
  width: auto;
  min-width: 0;
  height: calc(100vh - 160px);
  min-height: 360px;
  margin: 24px 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 26, 0.07);
  font-family: inherit;
}

#fileList li {
  width: auto;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f5;
}

#fileList li.fixed-header {
  padding: 0 16px;
  background: #fafaff;
}

#fileList .file-header {
  min-height: 52px;
  gap: 12px;
  text-align: left;
}

.fileListHeader {
  color: #6b6b78;
  background: transparent;
  font-weight: 600;
}

.file-row {
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.file-row.folder {
  color: #40369c;
}

.setting {
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
  height: auto;
  min-height: 45px;
  margin: 24px 0 24px 20px;
  padding: 20px;
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 26, 0.07);
}

#settingBox {
  padding: 16px;
  gap: 16px;
  border: 1px solid #e9e9f0;
  border-radius: 16px;
}

.settingTitle {
  padding: 0 8px;
  color: #182230;
  font-size: 18px;
}

#addFiles {
  gap: 12px;
}

#addFiles button {
  width: auto;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #eeecff;
  color: #5749d6;
  white-space: nowrap;
}

#settingBox label {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.optional {
  color: #182230;
  font-weight: 600;
}

#zipPassword,
#zipFileName {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dedeea;
  border-radius: 10px;
  background: #fff;
  color: #182230;
  font: inherit;
  outline: none;
}

#zipPassword:focus,
#zipFileName:focus {
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.12);
}

#compressButton {
  height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #6558e8;
  box-shadow: 0 8px 20px rgba(101, 88, 232, 0.2);
}

#compressButton:hover {
  border: 0;
  background: #5749d6;
  transform: translateY(-1px);
}

#compressButton:disabled {
  border: 0;
  background: #aaa;
  box-shadow: none;
}

.unzip-actions {
  display: none;
  flex: 0 0 250px;
  align-self: flex-start;
  width: 250px;
  margin: 24px 0 24px 20px;
  padding: 18px;
  border: 1px solid #f0f0f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 26, 0.07);
}

.unzip-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #ece9ff;
  border-radius: 16px;
  background: #f7f6ff;
}

.unzip-result-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #6558e8;
  color: #fff;
  box-shadow: 0 6px 14px rgba(101, 88, 232, 0.2);
}

.unzip-result-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unzip-result-body {
  min-width: 0;
}

.unzip-result-label {
  display: block;
  margin-bottom: 3px;
  color: #6b6b78;
  font-size: 13px;
  line-height: 1.4;
}

.unzip-file-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-align: left;
}

.unzip-file-count strong {
  color: #101018;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.unzip-file-count span {
  color: #6b6b78;
  font-size: 13px;
}

.unzip-tips {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #6558e8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.unzip-tips:hover {
  background: #5749d6;
  transform: translateY(-2px);
}

.unzip-save-folder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: auto;
  margin: 6px auto 0;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #7a6ff0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.unzip-save-folder:hover {
  background: #f6f4ff;
}

.unzip-save-folder[hidden] {
  display: none;
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 16px;
    flex-direction: column;
  }

  #guidePage {
    margin: 0;
    padding: 50px 0 64px;
  }

  .image_title {
    margin-bottom: 15px;
    font-size: 30px;
    letter-spacing: -1px;
  }

  #guidePage > h2 {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
  }

  .upload-box {
    margin-top: 32px;
    padding: 40px 16px;
    border-radius: 20px;
  }

  .upload-label {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    min-height: 52px;
    margin: 18px 0 0;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .grid-container .grid-item {
    margin: 0;
    padding: 22px 20px;
    gap: 14px;
  }

  .grid-item svg {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .feature-title {
    font-size: 16px;
  }

  .grid-container .grid-item .feature-desc {
    font-size: 14px;
  }

  .guide-section {
    margin-top: 40px;
  }

  .guide-section h3 {
    font-size: 20px;
  }

  .guide-section .step {
    padding: 20px 16px 20px 54px;
  }

  .guide-section .step::before {
    left: 14px;
    top: 18px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  #fileList {
    flex: none;
    width: 100%;
    height: min(56vh, 520px);
    min-height: 280px;
    margin: 16px 0 0;
    border-radius: 16px;
  }

  .setting {
    flex: none;
    width: 100%;
    height: auto;
    margin: 12px 0 24px;
    padding: 16px;
    overflow: visible;
    border-radius: 16px;
  }

  .unzip-actions {
    flex: none;
    width: 100%;
    margin: 12px 0 24px;
  }

  .unzip-tips {
    width: 100%;
    height: 52px;
    margin: 0;
  }
}

@media (hover: none) {
  div.del_icon {
    opacity: 1;
    pointer-events: auto;
  }
}


.faq {
  min-height: 0;
  margin: 16px 0;
  padding: 0;
}

.faq dt {
  position: relative;
  margin-top: 12px;
  padding: 16px 48px 16px 20px;
  border-radius: 14px;
  background: #f7f6ff;
  color: #101018;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq dt:hover {
  background: #f1eeff;
}

.faq dt::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #6558e8;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.faq dt.active::after {
  content: "−";
}

.faq dd {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  transition: height 0.22s ease;
}

.faq dd > div {
  padding: 12px 20px 14px;
}

@media (max-width: 900px) {
  .faq dt {
    padding: 14px 44px 14px 16px;
    font-size: 15px;
  }

  .faq dt::after {
    right: 16px;
  }

  .faq dd > div {
    padding: 10px 16px 12px;
  }
}


.file-type-icon {
  --file-color: #64748b;
  --file-bg: #f1f5f9;
  flex: none;
  width: 36px;
  height: 40px;
  color: var(--file-color);
  overflow: visible;
}

.file-type-icon .file-type-sheet {
  fill: var(--file-bg);
  stroke: var(--file-color);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.file-type-icon .file-type-label-bg {
  fill: var(--file-color);
  stroke: none;
}

.file-type-icon text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.file-type-image { --file-color: #7c3aed; --file-bg: #f3e8ff; }
.file-type-audio { --file-color: #0891b2; --file-bg: #ecfeff; }
.file-type-video { --file-color: #dc2626; --file-bg: #fef2f2; }
.file-type-document { --file-color: #2563eb; --file-bg: #eff6ff; }
.file-type-spreadsheet { --file-color: #059669; --file-bg: #ecfdf5; }
.file-type-presentation { --file-color: #ea580c; --file-bg: #fff7ed; }
.file-type-archive { --file-color: #d97706; --file-bg: #fffbeb; }
.file-type-code { --file-color: #0f766e; --file-bg: #f0fdfa; }

.file-type-folder {
  width: 34px;
  height: 34px;
  color: #e5a318;
}

.file-type-folder path {
  fill: #fff3c4;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}


.file-row-size {
  flex: none;
  margin-left: 4px;
  color: #8b8b9c;
  font-size: 12px;
  white-space: nowrap;
}


.file-row .del_icon {
  position: static;
  flex: none;
  margin: 0 0 0 6px;
  width: 22px;
  height: 22px;
  font-size: 13px;
}

.file-tree-prefix {
  flex: none;
  color: #aaaab8;
  white-space: pre;
}

.file-row-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-format {
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-format .file-type-icon {
  width: 34px;
  height: 38px;
}

#fileList .file-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 100px 40px;
  gap: 16px;
  width: 100%;
}

#fileList .file-header > * {
  min-width: 0;
}

#fileList .fileListHeader > div:nth-child(2) {
  text-align: center;
}

#fileList .fileListHeader > div:last-child,
#fileList .fileListItem .processing-details {
  text-align: right;
}

@media (max-width: 768px) {
  #fileList .file-header {
    grid-template-columns: minmax(0, 1fr) 52px 76px 36px;
    gap: 8px;
  }
}


.sort-control {
  position: sticky;
  top: 0;
  z-index: 15;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
  color: #6b6b78;
  white-space: nowrap;
}

.sort-control-label {
  flex: none;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid #e2e0f2;
  border-radius: 8px;
  background: #fff;
  color: #24242e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sort-field:hover,
.sort-field[aria-expanded="true"] {
  border-color: #c9c0ff;
  background: #faf9ff;
}

.sort-caret {
  color: #8b8b9c;
  font-size: 9px;
  line-height: 1;
}

.sort-direction {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e2e0f2;
  border-radius: 8px;
  background: #fff;
  color: #6558e8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sort-direction:hover {
  background: #f4f2ff;
}

.sort-field:focus-visible,
.sort-direction:focus-visible,
.sort-option:focus-visible {
  outline: 2px solid #6558e8;
  outline-offset: 1px;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  z-index: 30;
  min-width: 132px;
  padding: 4px;
  border: 1px solid #ececf4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 26, 0.14);
}

.sort-menu[hidden] {
  display: none;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #33333f;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.sort-option:hover {
  background: #f4f2ff;
}

.sort-option.active {
  background: #f2f2f5;
  color: #111018;
  font-weight: 600;
}


.rename-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.rename-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #6558e8;
  border-radius: 6px;
  background: #fff;
  color: #101018;
  font: inherit;
  outline: none;
}


.rename-ext {
  flex: none;
  padding-right: 2px;
  color: #6b6b7d;
  font: inherit;
  white-space: nowrap;
}

.file-row-name.renaming,
.file-item-name.renaming {
  display: block;
  min-width: 0;
}
