body {
  background-color: var(--color-light);
}
b {
  font-weight: 700;
}
.section {
  display: none;
  flex-direction: column;
  position: relative;
}
h2 {
  margin: 32px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
#videoPreview {
  background-color: #fff;
  width: 100%;
  object-fit: contain; 
}
#videoContainer {
  flex-direction: column;
  margin-top: 8px;
  position: relative;
  background-color: #fff;
  overflow: hidden;
  border-radius: 3px;
  display: flex;

  align-items: center;
  height: 100%;
  margin-left: 24px;
  width: 760px;
  margin-top: 0;
}
.section .file-info span {
  color: #0056b3;
  margin-right: 16px;
  margin-left: 3px;
}

.grid-item svg {
  width: 54px;
  height: 54px;
  color: var(--color-icon);
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  width: 60%;
  margin: 0 auto;
}
.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-bottom: 16px;
  font-weight: 700;
}
.image_title div {
  font-size: 16px;
  color: #555;
  margin: 8px 0;
  line-height: 23px;
  font-weight: normal;
}

.faq dt {
  cursor: pointer;
  padding: 14px;
  background: #f5f5f5;
  margin-top: 8px;
  border-radius: 6px;
  font-weight: 600;
  position: relative;
  transition: background 0.2s ease;
}

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

.faq dt::after {
  content: "+";
  position: absolute;
  right: 14px;
  font-weight: bold;
}

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

.faq dd {
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 14px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq dd.open {
  padding: 12px 14px;
  max-height: 500px;
  font-size: 14px;
}

.quality-options {
  display: flex;

  gap: 8px;
  margin-top: 10px;
}

.quality-option {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 600;
}

.quality-option span {
  font-size: 14px;
  color: #666;
  display: block;
  margin-top: 8px;
  font-weight: 300;
  line-height: 20px;
}

.quality-option:hover {
  border-color: #999;
}

.quality-option.active {
  border-color: #1e88e5;
  background: #e3f2fd;
}


label.keep-audio {
  margin: 8px;
  justify-content: end;
  align-items: center;

  display: inline;
  float: right;
  margin-right: 0;
}

label.keep-audio input {
  width: 16px;
  height: 16px;
}

.keep-audio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.keep-audio:hover {
  background: #e6e6e6;
  box-shadow: 0 0 0 1px #e6e6e6 inset;
}

.keep-audio input {
  cursor: pointer;
}

.previewSize {
  margin-top: 64px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.user_tips {
  color: #555;
  
  background-color: #d4f2ff;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 90px;
  padding: 8px;
  line-height: 20px;

  text-align: left;
}


#output_name {
  word-break: break-all;
}

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

  margin: 4px auto;
}
.container .userEdit {
  margin-top: 8px;
  margin-right: 24px;
  width: 360px;
  padding-left: 30px;
  height: 98%;
  border-radius: 3px;
  border-left: 1px dashed #ccc;
  flex-direction: column;
  display: flex;
}
section.preview {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
header.title {
  background-color: #fff;
  width: 1264px;
  margin: 0 auto;
  padding: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
#headerUserBack {
  margin-right: 0;
}
#headerUserBack img {
  background: var(--header-bgcolor);
  padding: 8px;
  border-radius: 8px;
}
.image_title div {
  margin: 16px 0;
}
#videoPreview {
  width: 100%;
  height: calc(100vh - 172px);
  object-fit: contain;
}

a.preview_lesson {
  text-align: right;
  font-size: 13px;
  margin-right: 8px;
  color: var(--color-blue);
  float: right;
  padding-bottom: 8px;
}

#imageTipsBox {
  width: 1280px;
  min-height: 600px;
  text-align: center;
  align-items: center;
  margin: 0 auto;
}
.upload-label {
   font-size: 18px;
  margin: 0 auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
  background-color: #0088ff;
  pointer-events: auto;
  color: white;
  cursor: pointer;
  border-radius: 3px;
}

.previewSize span:last-of-type {
  color: green;
  margin-left: 8px;
}

.recommned-pc {
  margin-bottom: 45px;
  color: #e91e63;
  visibility: hidden;
}

#videoInput {
  display: none;
  width: 100%;
}
.section .file-info {
  flex-direction: column;
  outline: 0;
  border-radius: 3px;
  background-color: #fff;
  margin: 16px 8px;
}
.section .file-info input[type="file"] {
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
#videoinfo {
  width: 100%;
  margin: 0;
  font-size: 14px;
}
#videoinfo div {
  padding-bottom: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 8px;
  border-bottom: 1px solid #eee;
}
.section .file-info span {
  color: #555;
}

.compressBox label {
  align-items: center;
  display: flex;
  justify-content: space-between;
 
}
.compressBox fieldset select {
  font-weight: 500;
  height: 25px;
  width: 60px;
  color: #e91e63;
}
#startCompress {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 16px auto;
  text-decoration: none;
}
#startCompress:hover {
  background: #fff;
  color: #111;
}
#output_video {
  color: #00b578;
}
.compressAction {
  border-radius: 3px;
  background-color: #fafafa;
  margin: 16px 8px;
}
.compressOutput {
  padding: 8px;
  font-size: 14px;
  outline: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fafafa;
  margin: 16px 8px;
  display: none;
}
.compressOutput div {
  padding-bottom: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 8px;
  border-bottom: 1px solid #eee;
  align-items: center;
}
#downloadVideo {
  width: 70px;
  height: 28px;
  background-color: #000;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 0;
  margin-left: 8px;
}
.section .file-info {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 3px;

  flex-direction: column;
  font-size: 14px;
  border-radius: 3px;

  margin: 8px;
}
#videoinfo,
#videoInput {
  font-size: 14px;
}

section.preview {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

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

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



#recommnedInfo {
  margin-top: 64px;
  background-color: #fafafa;
  padding: 8px;
  border-radius: 8px;
}


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


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

#imageTipsBox 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: center;
  
}

#imageTipsBox article p {
  text-align: left;
  margin-top: 16px;
  color: #333;
}


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


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

article ol li {
  margin-bottom: 12px;
}

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

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

.common-issues dl dd {
  text-align: left;
  color: #333;
}


@media screen and (max-width: 768px)  {
  .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;
  }

  .recommned-pc {
    visibility: visible;
  }

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

  .container {
    width: 98%;
    padding: 1%;
  }
  #videoInput {
    width: 96%;
  }
  section.preview {
    flex-direction: column;
   
  }
  header.title {
    width: 98%;
    padding: 1%;
  }

  #videoPreview {
    height: 360px;
  }

  #startCompress {
    margin-bottom: 60px;
  }

  .container .userEdit {
    width: 98%;
    padding-left: 1%;
    border: 0;
    height: auto;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 32px;
    width: 100vw;
    padding: 0;
  }
  .section .file-info {
    width: 96%;
    padding: 8px 0;
  }
  #videoContainer {
    width: 100%;
    margin-left: 1%;
    height: auto;
  }
  #imageTipsBox {
    margin: 0 auto;

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