@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-display: swap;
}
@keyframes shine {
  0% {
    background-position: 0% 50%
  }
  80% {
    background-position: 50% 90%
  }
  100% {
    background-position: 91% 100%
  }
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f9;
  color: #333;
  line-height: 1.5;
  padding-top: 70px;
  background: url("data:image/svg+xml,%3Csvg width='1276' height='721' viewBox='0 0 1276 721' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1376_26506)'%3E%3Ccircle cx='116' cy='126' r='256' fill='url(%23paint0_radial_1376_26506)' fill-opacity='0.08'/%3E%3Ccircle cx='222.5' cy='447.5' r='238.5' fill='url(%23paint1_radial_1376_26506)' fill-opacity='0.1'/%3E%3Cellipse cx='433.956' cy='116.5' rx='161.956' ry='140.5' fill='url(%23paint2_radial_1376_26506)' fill-opacity='0.2'/%3E%3Cellipse cx='181.557' cy='432.5' rx='332.557' ry='288.5' fill='url(%23paint3_radial_1376_26506)' fill-opacity='0.12'/%3E%3Cellipse cx='857.5' cy='275.5' rx='418.5' ry='362.5' fill='url(%23paint4_radial_1376_26506)' fill-opacity='0.72'/%3E%3Cg opacity='0.1'%3E%3Cellipse cx='480.5' cy='381.5' rx='264.5' ry='229.5' fill='url(%23paint5_radial_1376_26506)' fill-opacity='0.5'/%3E%3Cellipse cx='480.5' cy='381.5' rx='264.5' ry='229.5' fill='url(%23paint6_radial_1376_26506)' fill-opacity='0.5'/%3E%3C/g%3E%3Cg opacity='0.1'%3E%3Cellipse cx='295.5' cy='131.5' rx='264.5' ry='229.5' fill='url(%23paint7_radial_1376_26506)' fill-opacity='0.3'/%3E%3Cellipse cx='295.5' cy='131.5' rx='264.5' ry='229.5' fill='url(%23paint8_radial_1376_26506)' fill-opacity='0.3'/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(116 126) rotate(90) scale(256)'%3E%3Cstop stop-color='%2381BBFF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint1_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(222.5 447.5) rotate(90) scale(238.5)'%3E%3Cstop stop-color='%2381BBFF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint2_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(433.956 116.5) rotate(90) scale(140.5 161.956)'%3E%3Cstop stop-color='%23C0FFE8'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint3_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(181.557 432.5) rotate(90) scale(288.5 332.557)'%3E%3Cstop stop-color='%23C0FFE8'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint4_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(857.5 275.5) rotate(90) scale(362.5 418.5)'%3E%3Cstop stop-color='%23DBECE5'/%3E%3Cstop offset='1' stop-color='%23DBECE5' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint5_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(414.94 420.617) rotate(70.9985) scale(201.355 232.072)'%3E%3Cstop stop-color='%2350A0FF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint6_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(494.968 381.274) rotate(93.6038) scale(230.181 265.286)'%3E%3Cstop stop-color='%23A850FF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint7_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(229.94 170.617) rotate(70.9985) scale(201.355 232.072)'%3E%3Cstop stop-color='%2350A0FF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='paint8_radial_1376_26506' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(309.968 131.274) rotate(93.6038) scale(230.181 265.286)'%3E%3Cstop stop-color='%23A850FF'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CclipPath id='clip0_1376_26506'%3E%3Crect width='1276' height='721' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E") center center / cover no-repeat fixed;
}
input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: #696cff !important;
  box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.1)
}
#menu-toggle {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 999;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .06);
  opacity: .95;
}
.header-content {
  display: flex;
  position: relative;
  height: 70px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}
.tool-quick-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1rem;
  margin-top: 5px;
  position: relative
}
.tool-quick-nav a {
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 5px
}
.tool-quick-nav a:hover, .tool-quick-nav a.active {
  color: #696cff
}
.tool-quick-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #696cff;
  transition: width 0.2s ease
}
.tool-quick-nav a:hover::after, .tool-quick-nav a.active::after {
  width: 100%
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all .3s ease
}
.search-btn svg {
  width: 24px;
  height: 24px;
  fill: #222;
  transition: fill .3s ease
}
.search-btn:hover svg {
  fill: #696cff
}
.logo {
  display: flex;
  font-family: "Nunito", sans-serif;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #333;
  text-decoration: none
}
.logo svg {
  width: 40px;
  height: 40px;
  aspect-ratio: 1/1;
  flex-shrink: 0
}
.logo .logo-txt {
  width: 110px;
  height: 20px;
  aspect-ratio: 3700/660;
}
.menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all .3s ease
}
.menu-btn span {
  width: 24px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all .3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: absolute
}
.menu-btn span:nth-child(1) {
  transform: translateY(-8px)
}
.menu-btn span:nth-child(3) {
  transform: translateY(8px)
}
.menu-btn:hover span {
  background: #696cff
}
#menu-toggle:checked ~ header .menu-btn span:nth-child(1) {
  transform: rotate(45deg);
  background: #696cff
}
#menu-toggle:checked ~ header .menu-btn span:nth-child(2) {
  opacity: 0
}
#menu-toggle:checked ~ header .menu-btn span:nth-child(3) {
  transform: rotate(-45deg);
  background: #696cff
}
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform: translateY(-80px);
  padding: 0;
  margin: 0;
  box-sizing: border-box
}
#menu-toggle:checked ~ .menu-modal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 220px
}
.menu-grid a {
  padding: 12px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  color: #222;
  font-weight: 500;
  transition: .3s;
  text-decoration: none
}
.menu-grid a:hover {
  background: #696cff;
  color: #fff;
  border: 1px solid #696cff
}
.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 20px;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.breadcrumb-nav {
  width: 100%
}
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #333
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #BDC7D1;
  font-weight: 300
}
.breadcrumb a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease
}
.breadcrumb a:hover {
  color: #696cff
}
@media (max-width:768px) {
  .breadcrumb-container {
    padding: 0.75rem 20px
  }
  .breadcrumb li.breadcrumb-tool {
    display: none
  }
  .remind {
    width: 100% !important;
    text-align: center !important;
    top: 0 !important;
    border-radius: 0 !important;
    font-weight: 400 !important;
    padding: 14px 20px !important
  }
}
main, .content {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto
}
main {
  margin-bottom: 60px
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  gap: 20px;
  padding: 80px 20px 100px 20px;
}
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
  max-width: 860px;
  animation: shine 4s ease-in-out infinite alternate;
  background: linear-gradient(to right, #28c76f 0%, #5a4aff 47.92%, #ff3739 100%);
  background-clip: text;
  background-size: 200% auto;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.hero p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 750px
}
.info-section {
  max-width: 1200px;
  margin-top: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(115, 103, 240, 0.08)
}
.list-section {
  max-width: 1200px
}
.info-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8ff;
  position: relative
}
.info-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #696cff
}
.info-section p, .info-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #444
}
.info-section p {
  margin-bottom: 0.8rem
}
.info-section a {
  color: #696cff;
  text-underline-offset: 2px;
  transition: text-underline-offset 0.3s ease;
}
.info-section a:hover {
  text-underline-offset: 4px;
}
.info-section ul {
  margin: 16px 0 24px 24px
}
.info-section li {
  margin-bottom: 8px
}
.info-section li::marker {
  color: #696cff
}
.faq-item {
  margin-bottom: 16px;
  border: 1px solid #e8e8ff;
  border-radius: 8px;
  overflow: hidden
}
.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center
}
.related-header a {
  color: #444;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem
}
.related-header a:hover {
  color: #696cff
}
.faq-question {
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  background: #f8f8ff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: relative
}
.faq-question:hover {
  background: #f0f0ff
}
.faq-question::after {
  content: "";
  width: 24px;
  height: 24px;
  color: #696cff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23696cff' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  transition: transform .2s ease
}
.faq-item[open] .faq-question::after {
  content: "";
  transform: rotate(180deg)
}
.faq-answer {
  padding: 18px 24px 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  border-top: 1px solid #e8e8ff
}
details > summary::-webkit-details-marker {
  display: none
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px
}
.tool-card {
  padding: 24px;
  border: 1px solid #e8e8ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(67, 97, 238, .05);
  transition: all .3s ease;
  height: 100%
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(115, 103, 240, .1);
  border-color: #696cff
}
.tool-card-link {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  text-decoration: none;
  color: inherit
}
.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  transition: color .3s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}
.tool-card:hover h3 {
  color: #696cff
}
.tool-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis
}
@media (max-width:1024px) {
  .converter-controls {
    grid-template-columns: repeat(4, 1fr)
  }
}
@media (max-width:920px) {
  .tool-quick-nav {
    display: none
  }
}
@media (max-width:768px) {
  .logo {
    gap: 6px;
    font-size: 20px
  }
  .logo svg {
    width: 36px;
    height: 36px
  }
  .logo .logo-txt {
    width: 100px;
    height: 20px
  }
  .hero {
    padding: 20px 0
  }
  .hero h1 {
    font-size: 30px;
    padding: 10px 20px 0 20px;
  }
  .hero p {
    font-size: 14px;
    padding: 0 20px 0 20px;
  }
  .text-input {
    min-height: 200px
  }
  .transform-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }
  .text-stats {
    text-align: left;
    width: 100%
  }
  .convert-btn {
    padding: 10px 8px;
    font-size: 13px
  }
  .action-buttons {
    flex-direction: column
  }
  .undo-btn, .copy-btn, .clear-btn {
    width: 100%;
    max-width: none
  }
  main {
    padding: 0;
    margin-bottom: 30px
  }
  .tool-container {
    padding: 30px 20px !important;
    border-radius: 0 !important;
    box-shadow: none !important
  }
  .info-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 0;
    box-shadow: none
  }
  .info-section h2 {
    font-size: 20px
  }
  .info-section p, .info-section li {
    font-size: 15px
  }
  .faq-question {
    font-size: 16px;
    padding: 16px 20px
  }
  .tool-card {
    padding: 20px
  }
}
@media (max-width:560px) {
  .converter-controls {
    grid-template-columns: repeat(3, 1fr)
  }
  .tools-grid {
    grid-template-columns: 1fr
  }
}
@media (max-width:380px) {
  .converter-controls {
    grid-template-columns: repeat(2, 1fr)
  }
}
#menu-toggle:checked ~ .menu-modal {
  overscroll-behavior: none
}
html:has(#menu-toggle:checked) {
  overflow: hidden !important
}
html:has(#menu-toggle:checked) body {
  overflow: hidden !important;
  touch-action: none !important
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0
}
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: #696cff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(115, 103, 240, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}
.back-to-top::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg)
}
.back-to-top:hover {
  background: #5c53d1;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(115, 103, 240, 0.3)
}
#menu-toggle:checked ~ body {
  padding-top: 0 !important
}
.page {
  line-height: 1.7;
  color: #333
}
.page h1 {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #696cff;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  gap: 0.75rem
}
.page p {
  font-size: 1rem;
  color: #444;
  margin: 0 0 1rem
}
footer {
  background-color: #2f3349;
  border-top: 1px solid rgba(115, 103, 240, 0.1);
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
  color: #d3d4dc;
  transition: background-color 0.3s ease-in-out
}
.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  margin-bottom: 1.5rem
}
.footer-col {
  flex: 1
}
.footer-col.about {
  min-width: 360px
}
.footer-col .logo {
  margin-inline-end: 0;
  margin-bottom: 1.5rem
}
.footer-col .logo a {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px
}
.footer-col .logo a .logo-txt {
  margin-top: 12px
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #d3d4dc;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.25rem
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0
}
.footer-col ul li {
  margin-bottom: 0.75rem
}
.footer-col ul li a {
  color: #d3d4dc;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  display: inline-block
}
.footer-col ul li a:hover {
  color: #ffffff
}
.footer-col .contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem
}
.footer-col .contact-info li i {
  color: #696cff;
  font-size: 1rem;
  margin-top: 2px
}
.footer-col .social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem
}
.footer-col .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #696cff;
  background-color: rgba(115, 103, 240, 0.1);
  transition: all 0.3s ease-in-out
}
.footer-col .social-links a:hover {
  background-color: #696cff;
  color: #ffffff;
  transform: translateY(-3px)
}
.footer-col .chromewebstore {
  display: flex;
  margin-top: 2rem
}
.footer-col .chromewebstore a {
  line-height: 0;
}
.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(109, 107, 119, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem
}
.footer-bottom-links a {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d3d4dc;
  transition: color 0.3s ease-in-out;
  text-decoration: none
}
.footer-bottom-links svg {
  display: inline-block;
  vertical-align: middle
}
.footer-bottom-links a:hover {
  color: #ffffff
}
@media (max-width:768px) {
  .footer-top {
    gap: 3rem
  }
  .list-section {
    padding: 0 20px;
  }
}
.tag-container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #e9ecef
}
.tag-title {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem
}
.tag-item {
  background: #f8f9fa;
  color: #495057;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  white-space: nowrap;
  display: inline-block
}
.role-container {
  margin-top: 1.2rem
}
.role-title {
  font-size: 0.85rem;
  color: #444;
  font-weight: 600;
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px
}
.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem
}
.role-item {
  color: #495057;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-block;
  padding: 0;
}
.role-item a {
  display: block;
  width: 100%;
  padding: 4px 12px;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
  text-decoration: none;
  transition: all 0.24s ease
}
.role-item a:hover {
  background: #696cff;
  border-color: #696cff;
  color: #fff
}
.video-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
  padding: 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 4px
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  display: block
}
@media (max-width:768px) {
  .video-wrapper {
    box-sizing: border-box
  }
}
.video-wrapper iframe, .lazy-yt-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}
.lazy-yt-player {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}
.lazy-yt-player img {
  width: 100%;
  height: 100%;
  object-fit: cover
}
.lazy-yt-player .play-btn {
  position: absolute;
  width: 68px;
  height: 68px;
  background-color: rgba(33, 33, 33, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out
}
.lazy-yt-player:hover .play-btn {
  background-color: #ff0000
}
.lazy-yt-player .play-btn::before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  height: 0;
  margin-left: 28px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #ffffff
}
.box {
  width: 100%;
  padding: 5rem 2rem;
  margin: 0 auto;
  box-sizing: border-box
}
.box-title {
  text-align: center;
  margin-bottom: 3rem
}
.box-title h3 {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  color: #444050;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.3
}
.box-title p {
  font-size: 1rem;
  color: #6d6b77;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6
}
@media (max-width:768px) {
  .box {
    padding: 2.5rem 1rem
  }
  .box-title {
    margin-bottom: 2rem
  }
  .box-title h3 {
    font-size: 1.5rem
  }
  .box-title p {
    font-size: 0.9rem;
    padding: 0 1rem
  }
}
@media (max-width:480px) {
  .box {
    padding: 2rem 0.5rem
  }
  .box-title h3 {
    font-size: 1.5rem
  }
}
@media (min-width:769px) and (max-width:1024px) {
  .box-title h3 {
    font-size: 1.8rem
  }
}
.bg-light {
  background-color: #f8f7fa
}
.bg-white {
  background-color: #fff
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%
}
.tool-card {
  background: #fff;
  border: 1px solid #e8e8ff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 74, 255, 0.08)
}
.tool-card h4 {
  font-size: 1.15rem;
  color: #444050;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}
.tool-card:hover h4 {
  color: #5a4aff
}
.tool-card p {
  font-size: 15px;
  color: #6d6b77;
  line-height: 1.6;
  margin: 0
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem
}
.category-card {
  background: #fff;
  border: 1px solid #f1f0f4;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease
}
.category-card:hover {
  border-color: #5a4aff;
  background: rgba(90, 74, 255, 0.02)
}
.category-card svg {
  color: #5a4aff;
  margin-bottom: 0.75rem
}
.category-card h4 {
  font-size: 1.05rem;
  color: #444050;
  margin: 0 0 0.25rem 0;
  font-weight: 600
}
.category-card:hover h4 {
  color: #5a4aff
}
.category-card span {
  font-size: 14px;
  color: #6d6b77
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem
}
.review-card {
  background: #f8f7fa;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #f1f0f4
}
.review-stars {
  color: #ff9f43;
  margin-bottom: 1rem
}
.review-card p {
  font-style: italic;
  color: #6d6b77;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0
}
.review-user {
  display: flex;
  align-items: center;
  gap: 1rem
}
.review-avatar {
  width: 46px;
  height: 46px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem
}
.review-avatar img {
  width: 46px;
  height: 46px;
  border-radius: 50%
}
.review-user-info h5 {
  margin: 0;
  font-size: 0.95rem;
  color: #444050;
  font-weight: 600
}
.review-user-info span {
  font-size: 0.8rem;
  color: #a5a3ae
}
.faq-item {
  max-width: 880px;
  margin: 0 auto;
  margin-bottom: 20px
}
.faq-answer {
  background: #fff
}
.faq-item[open] .faq-answer {
  animation: fadeIn 0.3s ease-out
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.box-footer-action {
  text-align: center;
  margin-top: 3rem
}
.btn-primary {
  display: inline-block;
  background: #5a4aff;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s
}
.btn-primary:hover {
  background: #4839d4;
  box-shadow: 0 4px 12px rgba(90, 74, 255, 0.25)
}
.slider-page.active {
  display: grid
}
.slider-dots .dot.active {
  background-color: #5a4aff;
  transform: scale(1.3)
}
.tool-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 30px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(115, 103, 240, 0.08)
}
/* nav overrides: language switcher + responsive menu button */
.menu-btn {
  display: none;
}
@media (max-width: 920px) {
  .menu-btn {
    display: flex;
  }
}
.lang-switch {
  position: relative;
}
.lang-details {
  position: relative;
}
.lang-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e6e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, color .2s;
}
.lang-details > summary::-webkit-details-marker {
  display: none;
}
.lang-details > summary .wsw-globe {
  flex-shrink: 0;
  display: block;
}
.lang-details > summary .lang-name {
  line-height: 1;
}
.lang-details > summary:hover {
  border-color: #696cff;
  color: #696cff;
}
.lang-details > summary .lang-caret {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e8e8ff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(115, 103, 240, .12);
  padding: 6px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu .lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.lang-menu .lang-item:hover {
  background: #f4f3ff;
  color: #696cff;
}
.lang-menu .lang-item.active {
  color: #696cff;
  font-weight: 600;
}
.remind {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 28px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  animate: slideDown 0.3s ease
}
.remind.error {
  background: #ef4444
}
.remind.success {
  background: #22c55e
}
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 120px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #f8fafc;
  position: relative;
  max-height: 520px;
  overflow: hidden;
  box-sizing: border-box
}
.upload-area.hide-up {
  max-height: 0;
  padding: 0;
  opacity: 0;
  border-width: 0;
  pointer-events: none
}
.upload-area.dragover, .upload-area:hover {
  border-color: #696cff;
  background: #f1f5f9;
  transform: translateY(-1px)
}
.upload-icon {
  color: #64748b;
  margin-bottom: 16px;
  transition: transform 0.2s ease
}
.upload-area:hover .upload-icon {
  transform: scale(1.05);
  color: #696cff
}
.upload-text {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px
}
.upload-hint {
  font-size: 14px;
  color: #64748b
}
#fileInput {
  display: none
}
/* ===== Image convert panel (added for index.html parity) ===== */
.convert-panel {
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease
}
.convert-panel[hidden] {
  display: none
}
.convert-panel.show {
  opacity: 1;
  transform: translateY(0)
}
.convert-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap
}
.convert-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px
}
.convert-title {
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
  font-family: inherit;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.toolbar-btns {
  display: flex;
  align-items: center;
  gap: 8px
}
.convert-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit
}
.convert-btn.primary {
  background: #696cff;
  color: #fff
}
.convert-btn.primary:hover {
  background: #5f55e0;
  transform: translateY(-1px)
}
.convert-btn.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}
.convert-btn.ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0
}
.convert-btn.ghost:hover {
  background: #e2e8f0
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 344px;
  overflow: auto;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  overscroll-behavior: contain
}
.file-list::-webkit-scrollbar {
  width: 6px
}
.file-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px
}
.file-list::-webkit-scrollbar-track {
  background: transparent
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease;
  height: 80px;
  flex: 0 0 auto;
  box-sizing: border-box
}
.file-item.processing {
  border-color: #c7d2fe
}
.file-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.file-meta {
  font-size: 12px;
  line-height: 14px;
  color: #64748b;
  margin-top: 3px
}
.file-preview {
  font-size: 12px;
  line-height: 14px;
  color: #696cff;
  font-weight: 600;
  margin-top: 1px;
  min-height: 14px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap
}
.file-preview .preview-pct {
  background: #ede9fe;
  color: #696cff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 7px
}
.file-preview .preview-pct.up {
  background: #fef3c7;
  color: #d97706
}
.file-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #e2e8f0
}
.file-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #696cff, #a5a4ff);
  transition: width .3s ease
}
.file-progress > span.done {
  background: linear-gradient(90deg, #22c55e, #86efac)
}
.file-progress > span.error {
  background: linear-gradient(90deg, #ef4444, #fca5a5)
}
.preview-dl {
  display: inline-block;
  border: 1px solid #c7d2fe;
  color: #696cff;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease
}
.preview-dl:hover {
  background: #696cff;
  color: #fff
}
.file-state {
  font-size: 14px;
  font-weight: 600;
  color: #696cff;
  white-space: nowrap
}
.file-state.error {
  color: #ef4444
}
.file-state.done {
  color: #22c55e
}
.convert-controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px
}
.ctrl-group {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}
.ctrl-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px
}
.ctrl-value {
  color: #696cff;
  font-weight: 700
}
.ctrl-select-wrap {
  position: relative;
}
.ctrl-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 36px 9px 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ctrl-select:focus {
  outline: none;
  border-color: #696cff
}
.ctrl-select-wrap .lang-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
}
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 190px;
  min-width: 130px;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  margin-top: 20px;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #696cff;
  cursor: pointer;
  border: none
}
.ctrl-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #696cff;
  cursor: pointer;
  border: none
}
.ctrl-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.ctrl-actions .convert-btn.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}
.ctrl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
  min-height: 34px
}
.ctrl-check input {
  width: 16px;
  height: 16px;
  accent-color: #696cff;
  cursor: pointer;
  margin: 0;
  flex: none
}
.result-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px
}
.result-summary {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px
}
.result-item .file-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center
}
.result-item .file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
.save-badge.up {
  background: #fef3c7;
  color: #d97706
}
@media (max-width:560px) {
  .convert-controls {
    flex-direction: column;
    align-items: stretch
  }
  .ctrl-group {
    min-width: 0
  }
  .ctrl-range {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .ctrl-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch
  }
  .ctrl-actions .convert-btn {
    width: 100%
  }
  .toolbar-btns {
    flex-wrap: wrap
  }
}
@media (max-width:768px) {
  .tool-container {
    padding: 1.5rem;
    margin: 0;
    background: none;
  }
  .upload-area {
    padding: 60px 20px;
  }
}
/* nav dropdown sub-categories */
.nav-item {
  position: relative;
  display: flex;
  align-items: center
}
.nav-item::after {
  /* hover bridge: cover the 8px gap so the dropdown never disappears
       while moving the mouse down from the parent link */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
  z-index: 1200
}
.nav-item .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  white-space: nowrap;
  position: relative;
  padding-bottom: 5px;
  cursor: pointer
}
.nav-item .nav-parent::after {
  /* hide the underline animation on parent links (svg caret replaces it) */
  display: none
}
.nav-item:hover .nav-parent {
  color: #696cff
}
.nav-item .nav-parent .nav-caret {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .25s;
  color: #6d6b77
}
.nav-item:hover .nav-parent .nav-caret {
  transform: rotate(180deg);
  color: #696cff
}
.nav-item .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  width: max-content;
  min-width: 170px;
  background: #fff;
  border: 1px solid #e8e8ff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(115, 103, 240, .16);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1200
}
.nav-item:hover .dropdown {
  display: flex
}
.nav-item .dropdown a {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s
}
.nav-item .dropdown a::after {
  display: none
}
.nav-item .dropdown a:hover {
  background: #f4f3ff;
  color: #696cff
}
/* mobile menu sub items */
.menu-sub {
  width: 100%;
  padding: 10px 14px !important;
  border: none !important;
  border-radius: 8px !important;
  text-align: left !important;
  font-size: 14px !important;
  color: #555 !important;
  background: #f8f7fa !important
}
.menu-sub:hover {
  background: #696cff !important;
  color: #fff !important
}
.menu-modal {
  align-items: flex-start;
  justify-content: center;
  padding-top: 96px
}
.menu-modal .menu-grid {
  width: min(88vw, 360px);
  max-width: 88vw;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch
}
/* mobile menu collapsible groups */
.menu-group {
  width: 100%
}
.menu-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  color: #222;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  transition: .3s;
  user-select: none
}
.menu-group summary::-webkit-details-marker {
  display: none
}
.menu-group summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #696cff;
  border-bottom: 2px solid #696cff;
  transform: rotate(45deg);
  transition: transform .25s;
  margin-left: 8px;
  flex-shrink: 0
}
.menu-group[open] summary::after {
  transform: rotate(225deg)
}
.menu-group[open] summary {
  background: #696cff;
  color: #fff;
  border-color: #696cff
}
.menu-sub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px 4px;
  width: 100%
}
/* mobile fixed-header stability */
header {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform
}
@media (max-width:920px) {
  body {
    background-attachment: scroll;
    -webkit-background-attachment: scroll
  }
}
/* box-view: Why Choose Webp.wiki */
.box-view {
  width: 100%
}
.box-view ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem
}
.box-view li {
  text-align: center
}
.box-view li svg {
  color: #5a4aff;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease
}
.box-view li h4 {
  font-size: 1.25rem;
  color: #444050;
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.2
}
.box-view li p {
  font-size: 0.95rem;
  color: #6d6b77;
  line-height: 1.6;
  margin: 0
}
@media (max-width:768px) {
  .box-view ul {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }
  .box-view li {
    padding: 1.5rem 1rem
  }
  .box-view li h4 {
    font-size: 1.1rem
  }
  .box-view li p {
    font-size: 0.9rem
  }
  .box-view li svg {
    width: 56px;
    height: 57px;
    margin-bottom: 1rem
  }
}
@media (max-width:480px) {
  .box-view li {
    padding: 1.2rem 0.8rem
  }
}
@media (min-width:769px) and (max-width:1024px) {
  .box-view ul {
    grid-template-columns: repeat(2, 1fr)
  }
}
/* ===== JPG to WebP tool page (jpg-to-webp.php) ===== */
.hero-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 60px 0 0px;
  position: relative;
  box-sizing: border-box;
}
.hero-tool h1 {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
  max-width: 860px;
  animation: shine 4s ease-in-out infinite alternate;
  background: linear-gradient(to right, #28c76f 0%, #5a4aff 47.92%, #ff3739 100%);
  background-clip: text;
  background-size: 200% auto;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.hero-tool p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 750px
}
.tool-container-tool {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 30px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(115, 103, 240, 0.08);
}
@media (max-width:768px) {
  .tool-container-tool {
    padding: 1.5rem
  }
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #7367f0;
  z-index: 2;
  animation: hintFloat 2.2s ease-in-out infinite;
}
.scroll-hint .mouse {
  width: 18px;
  height: 30px;
  border: 1px solid #7367f0;
  border-radius: 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
}
.scroll-hint .mouse .wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 3px;
  background: linear-gradient(180deg, #696cff, #a5a4ff);
  animation: wheelScroll 1.8s ease-in-out infinite;
}
.scroll-hint .scroll-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}
@keyframes wheelScroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes hintFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) translateY(-7px);
    opacity: 1;
  }
}
@media (max-height: 700px) {
  .scroll-hint {
    bottom: 14px;
  }
}
.results-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px
}
@media (max-width:768px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }
}
@media (max-width:480px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }
}
.result-card {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-card:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.result-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}
.result-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.3;
}
.preview-container {
  margin-top: 24px;
  text-align: center;
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.preview-img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}
@media (max-width:768px) {
  .preview-container {
    padding: 12px;
  }
  .preview-img {
    max-height: 300px;
  }
}
.convert-count {
  font-size: 13px;
  color: #64748b;
}
.progress-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-wrap[hidden] {
  display: none;
}
.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #7367f0, #a5a4ff);
  transition: width .3s ease;
}
.progress-text {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.save-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 6px;
}
.download-link {
  border: 1px solid #7367f0;
  color: #7367f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.download-link:hover {
  background: #7367f0;
  color: #fff;
}
@keyframes slideDown {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
/* FAQ full-width override (jpg-to-webp.php only, does not affect index.php) */
.faq-wide .faq-item {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}