:root {
  --page: #f5f5f5;
  --card: #ffffff;
  --content-width: 1120px;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9df;
  --blue: #0066cc;
  --blue-hover: #004f9f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 max(22px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(250, 250, 252, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.nav-links {
  gap: 26px;
  color: #424245;
  font-size: 13px;
}

.nav-contact {
  position: relative;
}

.nav-contact-trigger {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #424245;
  cursor: pointer;
  font: inherit;
}

.nav-contact-trigger:hover,
.nav-contact:focus-within .nav-contact-trigger,
.detail-link:hover,
.contact-strip a:hover {
  color: var(--blue-hover);
}

.contact-popover {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 30;
  width: 240px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.contact-popover::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: 100%;
  height: 14px;
}

.nav-contact:hover .contact-popover,
.nav-contact:focus-within .contact-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-popover h2 {
  margin: 0 0 6px;
  color: #171717;
  font-size: 15px;
  line-height: 1.25;
}

.contact-popover p {
  margin: 0 0 10px;
  color: #555;
  font-size: 12px;
  line-height: 1.5;
}

.copy-email {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
}

.copy-email:hover {
  color: var(--blue-hover);
}

.copy-email.is-copied {
  color: var(--blue);
}

.copy-email.is-copied::after {
  content: "已复制";
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  color: #17823b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tool-catalog {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding: 28px 16px 44px;
}

.tool-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tool-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 6px;
  background: #151922;
  box-shadow: 0 8px 20px rgba(21, 25, 34, 0.18);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tool-tabs[data-active-category="pr"] .tool-tab-indicator {
  transform: translateX(100%);
}

.tool-tab {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #555;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.tool-tab:hover {
  color: #171717;
}

.tool-tab.is-active {
  color: #fff;
}

.tool-tab.is-active:hover {
  color: #fff;
}

.tool-category[hidden] {
  display: none;
}

.tool-category-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: #171717;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.tool-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, 280px);
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 280px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transform: translateY(0);
  opacity: 1;
  transition:
    box-shadow 320ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}

.tool-card:hover,
.tool-card:focus-within {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.065);
  transform: scale(1.012);
}

.tool-card:active {
  transform: scale(1.006);
}

.tool-card-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 142px;
  padding: 12px 14px 0;
  text-align: left;
}

.tool-card h3 {
  margin-bottom: 6px;
  color: #171717;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.contact-strip h2,
.detail-hero h1,
.detail-section h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.16;
  letter-spacing: 0;
}

.tool-summary {
  margin: 0;
  color: #333333;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-link,
.contact-strip a {
  color: var(--blue);
  font-size: 17px;
  line-height: 1.4;
}

.contact-strip a::after {
  content: " ›";
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.detail-link:hover {
  color: #fff;
  background: var(--blue-hover);
}

.detail-link::after {
  content: none;
}

.tool-image-frame {
  display: block;
  width: 100%;
  height: 158px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
}

.tool-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.tool-image-coming-soon {
  transform: scale(1.38);
}

.tool-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  margin: auto -14px 0;
  padding: 0 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
}

.platform-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.platform-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 5px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.download-link:hover {
  color: var(--blue-hover);
}

.download-link.is-disabled {
  color: #9a9a9a;
  cursor: default;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .tool-card:hover,
  .tool-card:focus-within,
  .tool-card:active {
    transform: none;
  }
}

.contact-strip {
  max-width: 1120px;
  margin: auto auto 20px;
  padding: 18px 22px 12px;
  text-align: center;
}

.contact-strip p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-strip h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.contact-strip .copy-email {
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.detail-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 22px 36px;
  text-align: center;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #424245;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.detail-breadcrumb a {
  color: #ff5a00;
}

.detail-breadcrumb a:hover {
  color: #c94700;
}

.detail-hero p {
  max-width: 740px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.detail-hero-image {
  width: min(980px, 100%);
  border-radius: 28px;
  background: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 72px;
}

.detail-section {
  min-height: 260px;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
}

.detail-section p,
.detail-section li {
  color: #424245;
  font-size: 16px;
  line-height: 1.7;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 15px;
}

@media (max-width: 1180px) {
  .tool-board {
    grid-template-columns: repeat(auto-fill, 280px);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .tool-catalog {
    padding: 22px 12px 56px;
  }

  .tool-tabs {
    display: flex;
    width: 100%;
  }

  .tool-tab {
    flex: 1;
    padding: 0 10px;
  }

  .tool-board {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tool-card {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .tool-image-frame {
    height: auto;
  }

  .tool-image {
    height: auto;
  }

  .tool-card-copy {
    min-height: 126px;
    padding: 12px 14px 0;
  }

  .tool-summary {
    font-size: 12px;
  }

  .tool-card-actions {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
