.tool-download-main {
  padding: 10px 0 30px;
}

.tool-download-main *,
.tool-download-main *::before,
.tool-download-main *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tool-download-breadcrumb {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.tool-download-breadcrumb a { color: var(--accent); }
.tool-download-breadcrumb b { color: var(--text); font-weight: 700; }

.tool-download-heading {
  min-height: 104px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(115deg, var(--panel) 0%, var(--panel-soft) 72%, var(--accent-soft) 100%);
  box-shadow: 0 12px 28px var(--shadow);
}

.tool-download-heading figure {
  width: 76px;
  height: 76px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: #167f70;
  box-shadow: inset 0 0 0 4px color-mix(in srgb, #fff 12%, transparent);
}

.tool-download-heading figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--panel-deep);
}

.tool-download-heading figure b { font-size: 28px; }
.tool-download-heading > div { min-width: 0; }
.tool-download-heading > div > span { color: var(--gold); font-size: 10px; font-weight: 900; }
.tool-download-heading h1 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 23px;
  line-height: 1.25;
}
.tool-download-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.tool-download-heading p b { color: #167f70; }
.tool-download-heading p em { margin: 0 6px; color: var(--line); font-style: normal; }
.tool-download-heading > a {
  min-width: 102px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--panel-deep);
  font-size: 11px;
  font-weight: 800;
}
.tool-download-heading > a:hover { color: var(--accent); border-color: var(--accent); }

.tool-download-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr);
  align-items: start;
  gap: 12px;
}

.tool-download-intro,
.tool-download-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 10px 26px var(--shadow);
}

.tool-download-intro > header,
.tool-download-panel > header {
  padding: 13px 15px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.tool-download-intro > header span,
.tool-download-panel > header span { color: var(--gold); font-size: 9px; font-weight: 900; }
.tool-download-intro h2,
.tool-download-panel h2 { margin: 3px 0 0; color: var(--text); font-size: 17px; }
.tool-download-panel > header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.tool-download-intro > div {
  min-height: 346px;
  padding: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.tool-download-error {
  margin: 12px 12px 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, #c7434d 38%, var(--line));
  border-radius: 4px;
  color: #b23842;
  background: color-mix(in srgb, #c7434d 7%, var(--panel));
  font-size: 10px;
}
.tool-download-error[hidden] { display: none; }
.tool-download-error.is-busy {
  border-color: color-mix(in srgb, var(--gold) 46%, var(--line));
  color: color-mix(in srgb, var(--text) 78%, var(--gold));
  background: color-mix(in srgb, var(--gold) 7%, var(--panel));
}
.tool-download-error.is-success {
  border-color: color-mix(in srgb, #178671 42%, var(--line));
  color: #147362;
  background: color-mix(in srgb, #178671 7%, var(--panel));
}

.tool-download-disclaimer {
  margin: 12px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--gold) 5%, var(--panel));
}

.tool-download-disclaimer-heading {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-download-disclaimer h3 { margin: 0; color: var(--text); font-size: 12px; }
.tool-download-disclaimer-heading button {
  padding: 0;
  border: 0;
  color: var(--gold-deep);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.tool-download-disclaimer-heading button[hidden] { display: none; }
.tool-download-disclaimer-heading button:hover { color: var(--gold); text-decoration: underline; }
.tool-download-disclaimer > p {
  max-height: 58px;
  margin: 6px 0 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 11px;
  line-height: 1.65;
}

.tool-download-disclaimer label {
  margin-top: 7px;
  padding-top: 7px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  color: var(--text);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
}
.tool-download-disclaimer input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; }

.tool-download-actions {
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}

.tool-download-actions button {
  width: 100%;
  min-height: 50px;
  padding: 7px 11px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #197566;
  border-radius: 5px;
  color: #fff;
  background: #167f70;
  text-align: left;
  cursor: pointer;
}

.tool-download-actions button.channel-baidu { border-color: #2869bc; background: #3479cf; }
.tool-download-actions button.channel-lanzou { border-color: #26829a; background: #2993ae; }
.tool-download-actions button i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255,255,255,.14);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}
.tool-download-actions button span,
.tool-download-actions button strong,
.tool-download-actions button small { min-width: 0; display: block; }
.tool-download-actions button strong { font-size: 12px; }
.tool-download-actions button small { margin-top: 2px; color: rgba(255,255,255,.76); font-size: 9px; }
.tool-download-actions button:hover:not(:disabled) { filter: brightness(1.07); }
.tool-download-actions button.is-disabled,
.tool-download-actions button:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: var(--panel-soft);
  cursor: not-allowed;
  filter: none;
}
.tool-download-actions button:disabled i { background: var(--line); }
.tool-download-actions button:disabled small { color: var(--muted); }
.tool-download-actions button.is-loading:disabled { color: #fff; cursor: wait; filter: brightness(1.04); }
.tool-download-actions button.channel-baidu.is-loading:disabled { border-color: #2869bc; background: #3479cf; }
.tool-download-actions button.channel-lanzou.is-loading:disabled { border-color: #26829a; background: #2993ae; }
.tool-download-actions button.channel-local.is-loading:disabled { border-color: #197566; background: #167f70; }
.tool-download-actions button.is-loading:disabled i { background: rgba(255,255,255,.2); }
.tool-download-actions button.is-loading:disabled small { color: rgba(255,255,255,.82); }

.tool-download-disclaimer-full {
  color: var(--text);
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.tool-download-main .service-strip { margin-top: 12px; }

@media (max-width: 900px) {
  .tool-download-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-download-intro > div { min-height: 180px; }
}

@media (max-width: 620px) {
  .tool-download-main { padding: 7px 10px 22px; }
  .tool-download-heading { grid-template-columns: 62px minmax(0, 1fr); padding: 11px; }
  .tool-download-heading figure { width: 62px; height: 62px; }
  .tool-download-heading h1 { font-size: 19px; }
  .tool-download-heading > a { grid-column: 1 / -1; width: 100%; }
  .tool-download-intro > div { min-height: 140px; padding: 14px; font-size: 12px; }
  .tool-download-disclaimer > p { max-height: 76px; }
}
