.zbtool-shell {
  margin: 0;
  padding: var(--zbtool-shell-padding, 12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.workspace {
  display: grid;
  gap: var(--zbtool-workspace-gap, 12px);
}

.panel {
  padding: 18px;
}

.tool-breadcrumb {
  font-size: 14px;
  line-height: 14px;
  margin-bottom: 15px;
  color: #333;
}

.tool-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: #5781bf;
}

.tool-breadcrumb .sep {
  padding: 0 8px;
  color: #888;
}

.intro-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.intro-meta h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 36px;
  text-align: left;
}

.intro-meta p {
  margin: 0;
  font-size: var(--zbtool-intro-font-size, 14px);
  line-height: 1.5;
}

.intro-meta .ok {
  color: #0ca63f;
}

.tags {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.tags span {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: #4e5d71;
  border-radius: 4px;
  padding: 8px 12px;
}

.tool-billing {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tool-billing .bill-mode,
.tool-billing .bill-credit {
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 6px 10px;
}

.tool-billing .bill-mode {
  color: #b15a00;
  background: #fff2e2;
  border: 1px solid #ffcf9d;
}

.tool-billing .bill-credit {
  color: #125ea9;
  background: #eaf4ff;
  border: 1px solid #b7d9ff;
}

.tool-billing .bill-vip-link {
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f5f2f;
  background: #e9f9ef;
  border: 1px solid #9fdfba;
  text-decoration: none;
}

.tool-billing .bill-vip-link:hover {
  background: #dbf4e6;
}

.lang-switch {
  min-width: var(--zbtool-lang-min-width, 180px);
}

.lang-switch label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--zbtool-lang-label-size, 13px);
  color: #5b6472;
}

.lang-switch select {
  width: 100%;
  height: var(--zbtool-lang-select-height, 38px);
  border: 1px solid #d4d8df;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zbtool-work-gap, 14px);
}

.work-col textarea {
  box-sizing: border-box;
  width: 100%;
  height: var(--zbtool-textarea-height, 360px);
  padding: 12px;
  border: 1px solid var(--zbtool-textarea-border, #d9d9d9);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  color: var(--zbtool-textarea-color, #545f70);
}

.btn-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn-row.left {
  justify-content: center;
}

.btn-row.right {
  justify-content: flex-end;
}

.btn-row button {
  border: 1px solid #cfd5df;
  background: #f6f7fa;
  color: #445065;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

.panel-related h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
  color: #333;
}

.zbtool-related-list {
  margin-right: -2%;
  overflow: hidden;
}

.zbtool-related-list li {
  float: left;
  border-radius: 6px;
  background: #fff;
  width: 23%;
  margin: 10px 2% 10px 0;
  overflow: hidden;
  border: 1px solid #f2f2f2;
  box-shadow: 1px 2px 3px #ebebeb;
  box-sizing: border-box;
}

.zbtool-related-list li a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
}

.zbtool-related-list li .logo {
  height: 40px;
  position: relative;
  font-size: 14px;
  padding: 0 15px;
  font-weight: 700;
  color: #333;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zbtool-related-list li .logo img,
.zbtool-related-list li .logo .related-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
}

.zbtool-related-list li .logo .related-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.zbtool-related-list li .tool-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 15px 0 45px;
  margin: 2px 0 0;
  line-height: 18px;
}

.zbtool-related-list li .tool-price {
  display: inline-block;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid transparent;
}

.zbtool-related-list li .tool-price.free {
  color: #e85b6d;
  border-color: #e85b6d;
}

.zbtool-related-list li .tool-price.vip {
  color: #f08a00;
  border-color: #f08a00;
}

.zbtool-related-list li .tool-views {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  line-height: 16px;
}

.zbtool-related-list li .desc {
  line-height: 20px;
  height: 40px;
  padding: 0 15px;
  margin: 5px 0 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #333;
}

@media (min-width: 481px) {
  .zbtool-related-list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
    transition: all 0.3s ease;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.related-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #333;
  border: 1px solid #f2f2f2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 1px 2px 3px #ebebeb;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
}

.related-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 12px 15px 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #333;
  overflow: hidden;
}

.related-logo img,
.related-logo-placeholder {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.related-logo img {
  object-fit: cover;
}

.related-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px 0 63px;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 18px;
  flex-wrap: wrap;
}

.related-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 600;
  border: 1px solid transparent;
}

.related-badge.free {
  color: #e85b6d;
  background: #fff;
  border-color: #e85b6d;
}

.related-badge.vip {
  color: #f08a00;
  background: #fff;
  border-color: #f08a00;
}

.related-usage {
  color: #888;
}

.related-desc {
  line-height: 20px;
  min-height: 40px;
  padding: 0 15px 12px;
  margin: 5px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #555;
  font-size: 14px;
}

.muted {
  color: #666;
}

.zbtool-comments h3 {
  font-size: 30px;
  line-height: 1;
  margin: 0 0 14px;
  font-weight: 500;
}

.zbtool-comments .compost {
  margin: 15px 0;
}

.zbtool-comments .com_name span {
  margin-right: 10px;
  overflow: hidden;
  color: #5781bf;
}

.zbtool-comments .com_name a {
  color: #5781bf;
}

.zbtool-comments .com_box {
  margin-bottom: 15px;
}

.zbtool-comments .com_box textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px;
  display: block;
  box-sizing: border-box;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.zbtool-comments .com_info {
  margin-top: 15px;
  overflow: hidden;
}

.zbtool-comments .com_info ul {
  float: left;
  list-style: none;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.zbtool-comments .com_info li {
  float: left;
  margin: 0 15px 15px 0;
}

.zbtool-comments .com_info li input {
  width: 160px;
  height: 30px;
  line-height: 30px;
  padding-left: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.zbtool-comments .com_info li span {
  margin-left: 4px;
}

.zbtool-comments .com_info li span img {
  height: 30px;
  line-height: 30px;
  vertical-align: top;
}

.zbtool-comments .com_info button {
  background-color: #5781bf;
  border: 0;
  border-radius: 3px;
  padding: 8px 20px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.zbtool-comments .com_info button:hover {
  background: #6b90c7;
}

.zbtool-comments .comlist {
  margin-top: 0;
}

.zbtool-comments .comlist ul {
  list-style: none;
  border-top: 1px solid #ededed;
}

.zbtool-comments .comlist ul ul {
  margin-left: 28px;
}

.zbtool-comments .comlist li {
  overflow: hidden;
  padding: 15px 0;
}

.zbtool-comments .comlist li img {
  float: left;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  max-width: none;
  object-fit: cover;
  transition: 1s;
  -moz-transition: 1s;
  -webkit-transition: 1s;
  -o-transition: 1s;
}

.zbtool-comments .comlist li:hover img {
  transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -o-transform: rotate(360deg);
}

.zbtool-comments .comlist li .clbody {
  margin-left: 50px;
}

.zbtool-comments .clbody .cinfo {
  overflow: hidden;
}

.zbtool-comments .clbody .cinfo h5 {
  float: left;
  height: 18px;
  line-height: 18px;
  color: #5781bf;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 0;
  background: transparent;
  text-indent: 0;
}

.zbtool-comments .clbody .cinfo span {
  float: right;
}

.zbtool-comments .clbody .cinfo span a {
  color: #5781bf;
}

.zbtool-comments .clbody em {
  color: #888;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  font-style: normal;
  display: block;
}

.zbtool-comments .clbody p {
  line-height: 24px;
  color: #4a4a4a;
  overflow: hidden;
  margin: 0;
}

.zbtool-comments .clbody p a {
  color: #5781bf;
}

.zbtool-social-bar {
  margin: 0;
}

.zbtool-shell .zbtool-social-bar {
  display: flex;
  justify-content: center;
  margin: 0 !important;
}

@media (max-width: 1180px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .intro-meta h1 {
    font-size: 20px;
    line-height: 36px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 240px));
    gap: 10px;
  }

  .zbtool-related-list li {
    width: 33.333%;
    margin-right: 3%;
  }
}

@media (max-width: 980px) {
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 10px;
  }

  .zbtool-related-list {
    margin-right: -5%;
  }

  .zbtool-related-list li {
    width: 45%;
    margin-right: 5%;
  }
}

@media (max-width: 760px) {
  .intro-head {
    flex-direction: column;
  }

  .lang-switch {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .related-card {
    width: 100%;
    max-width: 360px;
  }

  .zbtool-related-list {
    margin-right: 0;
  }

  .zbtool-related-list li {
    width: 100%;
    margin-right: 0;
  }

  .zbtool-comments .com_info ul {
    float: none;
    display: block;
  }

  .zbtool-comments .com_info li {
    float: none;
    margin-right: 0;
  }

  .zbtool-comments .com_info li input {
    width: 100%;
    max-width: 320px;
  }

  .zbtool-comments .comlist ul ul {
    margin-left: 18px;
  }
}

/* non-iframe mode hardening: avoid theme CSS collisions */
.zbtool-shell {
  font-size: 14px !important;
}

.zbtool-shell .workspace {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.zbtool-shell .panel {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

.zbtool-shell .intro-meta h1 {
  display: block !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
  text-align: left !important;
  border: 0 !important;
  padding: 0 !important;
}

.zbtool-shell .intro-meta p,
.zbtool-shell .intro-meta .muted {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.zbtool-shell .work-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.zbtool-shell .work-col {
  min-width: 0 !important;
}

.zbtool-shell .work-col textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

.zbtool-shell .panel-related h2,
.zbtool-shell .zbtool-comments h3 {
  border: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  text-indent: 0 !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  color: #333 !important;
  font-weight: 400 !important;
}

.zbtool-shell .panel-related h2 {
  font-size: 18px !important;
  line-height: 18px !important;
}

.zbtool-shell .zbtool-comments h3 {
  font-size: 18px !important;
  line-height: 18px !important;
}

.zbtool-shell .zbtool-comments .comlist li img {
  width: 40px !important;
  height: 40px !important;
  max-width: none !important;
  border: 0 !important;
}

.zbtool-shell .zbtool-comments .clbody .cinfo h5 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  text-indent: 0 !important;
  line-height: 18px !important;
}

.zbtool-shell .related-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px)) !important;
  gap: 14px !important;
  justify-content: flex-start !important;
}

.zbtool-shell .related-card {
  width: 220px !important;
  max-width: 100% !important;
}

.zbtool-shell .related-desc {
  font-size: 14px !important;
}

.zbtool-shell .zbtool-comments .com_box textarea {
  width: 100% !important;
  max-width: 100% !important;
}
