/* 严格参考 屏幕拍摄泄密溯源系统-代码 React 项目版型 */

.tr-page {
  min-height: 100vh;
  background: hsl(0 0% 100%);
  color: hsl(0 0% 7%);
}

.tr-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .tr-container { padding: 0 1.5rem; } }

.tr-container-narrow { max-width: 56rem; }

.tr-section { width: 100%; padding: 4rem 0; }
@media (min-width: 768px) { .tr-section { padding: 2rem 0; } }

.tr-bg-white { background: #fff; }
.tr-bg-muted { background: #f7f8f9; }

/* Section header */
.tr-header { text-align: center; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .tr-header { margin-bottom: 4rem; } }
#overview .tr-header { margin-bottom: 1rem; }

.tr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.tr-eyebrow-line { width: 2rem; height: 1px; background: var(--primary); }
.tr-eyebrow-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.tr-h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}
.tr-h2 .tr-accent { color: var(--primary); }

/* 产品介绍 / 产品功能标题 — 对齐 Word_WPS文档防拷溯源系统 */
#overview .tr-h2,
#comparison .tr-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  #overview .tr-h2,
  #comparison .tr-h2 { font-size: 1.875rem; }
}
.tr-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.tr-line { width: 2rem; height: 2px; background: var(--primary); }
.tr-en {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Hero ── */
.tr-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
}
.tr-hero-photo {
  position: absolute;
  inset: 0;
  background:
    url('/products/终端隐写.jpg') center / cover no-repeat;
  pointer-events: none;
}
.tr-hero-orb1 {
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.2);
  filter: blur(120px);
  pointer-events: none;
}
.tr-hero-orb2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.1);
  filter: blur(100px);
  pointer-events: none;
}
.tr-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.6));
  pointer-events: none;
}
.tr-hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
  z-index: 10;
}
.tr-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 6rem 1rem;
}
@media (min-width: 768px) {
  .tr-hero-inner { padding: 8rem 1.5rem; }
}
@media (min-width: 1024px) {
  .tr-hero-inner { padding: 10rem 1.5rem; }
}
.tr-hero-copy {
  max-width: 48rem;
}
.tr-hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.tr-hero-label-line {
  width: 2.5rem;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.tr-hero-label-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.tr-hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .tr-hero h1 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .tr-hero h1 { font-size: 3.75rem; line-height: 1; }
}
.tr-hero h1 .tr-accent { color: var(--primary); }
.tr-hero-desc {
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(0 0% 100% / 0.7);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}
.tr-hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tr-hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Pain cards ── */
.tr-pain-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tr-pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tr-pain-grid { grid-template-columns: repeat(4, 1fr); } }

.tr-pain-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.tr-pain-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.tr-pain-card:hover {
  transform: translateY(-6px);
  border-color: hsl(351 79% 54% / 0.3);
  box-shadow: 0 10px 15px hsl(351 79% 54% / 0.05);
}
.tr-pain-card:hover::before { transform: translateX(0); }
.tr-pain-card:hover .tr-pain-num { color: hsl(351 79% 54% / 0.4); }
.tr-pain-card:hover .tr-pain-title { color: var(--primary); }
.tr-pain-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(351 79% 54% / 0.2);
  margin-bottom: 1.25rem;
  transition: color 0.3s;
}
.tr-pain-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.tr-pain-desc { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ── Overview — 对齐 Word_WPS文档防拷溯源系统 ── */
.tr-overview-text {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tr-overview-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: hsl(0 0% 7% / 0.8);
}
@media (min-width: 768px) {
  .tr-overview-text p { font-size: 1.125rem; }
}
.tr-overview-text strong { font-weight: 600; color: var(--foreground); }
.tr-overview-text .tr-accent { font-weight: 600; color: var(--primary); }
.tr-tag-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}
.tr-tag-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid hsl(351 79% 54% / 0.2);
  background: hsl(351 79% 54% / 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.tr-tag-arrow { color: hsl(0 0% 7% / 0.3); }

/* ── Advantage cards ── */
.tr-adv-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tr-adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tr-adv-grid { grid-template-columns: repeat(3, 1fr); } }

.tr-adv-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.tr-adv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), hsl(351 79% 54% / 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.tr-adv-card:hover {
  transform: translateY(-4px);
  border-color: hsl(351 79% 54% / 0.3);
  box-shadow: 0 20px 25px hsl(351 79% 54% / 0.05);
}
.tr-adv-card:hover::after { opacity: 1; }
.tr-adv-card:hover .tr-adv-icon { background: var(--primary); color: #fff; box-shadow: 0 10px 15px hsl(351 79% 54% / 0.3); }
.tr-adv-card:hover .tr-adv-title { color: var(--primary); }
.tr-adv-icon {
  width: 3.5rem; height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(351 79% 54% / 0.1);
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.tr-adv-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 0.3s; }
.tr-adv-desc { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ── Features panels ── */
.tr-feat-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .tr-feat-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.tr-feat-panel {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.04);
}
.tr-feat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid hsl(214 13% 90%);
}
.tr-feat-head.primary { background: linear-gradient(to right, hsl(351 79% 54% / 0.1), transparent); }
.tr-feat-head.dark { background: linear-gradient(to right, hsl(0 0% 7% / 0.05), transparent); }
.tr-feat-head-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.tr-feat-head-icon.red { background: var(--primary); color: #fff; }
.tr-feat-head-icon.dark { background: hsl(0 0% 7%); color: #fff; }
.tr-feat-head h3 { font-size: 1.25rem; font-weight: 600; }
.tr-feat-list { padding: 1rem 1.5rem 1.5rem; }
.tr-feat-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.tr-feat-item:hover { background: hsl(210 13% 96% / 0.6); }
.tr-feat-item:hover h4 { color: var(--primary); }
.tr-feat-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.tr-feat-item h4 { font-size: 1rem; font-weight: 500; margin-bottom: 0.375rem; transition: color 0.2s; }
.tr-feat-item p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* Comparison — aligned with Word_WPS文档防拷溯源系统 */
.tr-cmp-wrap {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(214 13% 90% / 0.6);
  background: #fff;
}
.tr-cmp-scroll { overflow-x: auto; }
.tr-cmp-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
}
.tr-cmp-table th, .tr-cmp-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid hsl(214 13% 90% / 0.4);
  vertical-align: top;
  word-break: break-word;
}
.tr-cmp-table thead tr { background: #f1f5f9; }
.tr-cmp-table th.col-label { width: 25%; font-weight: 600; }
.tr-cmp-table th.col-old { width: 37.5%; font-weight: 600; color: var(--muted); }
.tr-cmp-table th.col-new {
  width: 37.5%;
  font-weight: 600;
  color: var(--primary);
  background: #fff1f2;
}
.tr-cmp-table td.col-label { font-weight: 500; }
.tr-cmp-table td.col-old { color: var(--muted); }
.tr-cmp-table td.col-new { background: #fff1f2; }
.tr-cmp-table tbody tr:hover { background: #f8fafc; }
.tr-cmp-table tbody tr:last-child td { border-bottom: 0; }
.tr-cell { display: flex; align-items: flex-start; gap: 0.5rem; }
.tr-cell svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.tr-cell-muted svg { color: #9ca3af; }

/* ── Scenario cards ── */
.tr-scenario-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tr-scenario-grid { grid-template-columns: repeat(2, 1fr); } }

.tr-scenario-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.tr-scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 4px; width: 0;
  background: var(--primary);
  transition: width 0.5s;
}
.tr-scenario-card:hover {
  transform: translateY(-4px);
  border-color: hsl(351 79% 54% / 0.4);
  box-shadow: 0 20px 25px hsl(351 79% 54% / 0.05);
}
.tr-scenario-card:hover::before { width: 100%; }
.tr-scenario-card:hover .tr-scenario-icon { background: var(--primary); color: #fff; }
.tr-scenario-card:hover .tr-scenario-title { color: var(--primary); }
.tr-scenario-inner { display: flex; gap: 1.25rem; }
.tr-scenario-icon {
  width: 3.5rem; height: 3.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(351 79% 54% / 0.1);
  color: var(--primary);
  transition: background 0.3s, color 0.3s;
}
.tr-scenario-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 0.3s; }
.tr-scenario-desc { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ── Deployment ── */
.tr-deploy-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .tr-deploy-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.tr-deploy-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.tr-deploy-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
}
.tr-deploy-card.online::before { background: var(--primary); }
.tr-deploy-card.offline::before { background: hsl(0 0% 7% / 0.6); }
.tr-deploy-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px hsl(0 0% 0% / 0.08); }
.tr-deploy-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.tr-deploy-icon {
  width: 3.5rem; height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  transition: transform 0.3s;
}
.tr-deploy-card:hover .tr-deploy-icon { transform: scale(1.1); }
.tr-deploy-icon.online { background: hsl(351 79% 54% / 0.1); color: var(--primary); }
.tr-deploy-icon.offline { background: hsl(0 0% 7% / 0.1); color: hsl(0 0% 7% / 0.7); }
.tr-deploy-mode { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; }
.tr-deploy-mode.online { color: var(--primary); }
.tr-deploy-mode.offline { color: hsl(0 0% 7% / 0.5); }
.tr-deploy-title { font-size: 1.25rem; font-weight: 600; }
.tr-deploy-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.tr-deploy-step { display: flex; gap: 1rem; }
.tr-step-num {
  width: 1.75rem; height: 1.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}
.tr-step-num.online { background: hsl(351 79% 54% / 0.1); color: var(--primary); }
.tr-step-num.offline { background: hsl(0 0% 7% / 0.1); color: hsl(0 0% 7% / 0.7); }
.tr-deploy-step p { padding-top: 2px; font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ── Value cards ── */
.tr-value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tr-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tr-value-grid { grid-template-columns: repeat(4, 1fr); } }

.tr-value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid hsl(214 13% 90%);
  background: #fff;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.tr-value-card:hover {
  transform: translateY(-4px);
  border-color: hsl(351 79% 54% / 0.3);
  box-shadow: 0 20px 25px hsl(351 79% 54% / 0.05);
}
.tr-value-card:hover .tr-value-icon {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 15px hsl(351 79% 54% / 0.3);
}
.tr-value-card:hover .tr-value-title { color: var(--primary); }
.tr-value-icon {
  width: 4rem; height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tr-value-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 0.3s; }
.tr-value-desc { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ── CTA ── */
.tr-cta {
  position: relative;
  overflow: hidden;
  background: hsl(0 0% 7%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
@media (min-width: 768px) { .tr-cta { padding: 7rem 0; } }
.tr-cta-orb {
  position: absolute;
  top: -10rem; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 24rem;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.2);
  filter: blur(80px);
  pointer-events: none;
}
.tr-cta-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.tr-cta-inner { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.tr-cta h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.tr-cta h4 .tr-accent { color: var(--primary); }
.tr-cta p {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: hsl(0 0% 100% / 0.7);
}
.tr-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tr-cta-actions { flex-direction: row; }
}
.tr-cta .btn-ghost {
  border-color: hsl(0 0% 100% / 0.3);
  color: #fff;
}
.tr-cta .btn-ghost:hover {
  background: hsl(0 0% 100% / 0.1);
}

/* Reveal overrides for terminal page */
.tr-page .reveal-left,
.tr-page .reveal-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tr-page .reveal-left { transform: translateX(-24px); }
.tr-page .reveal-left.visible { opacity: 1; transform: translateX(0); }
.tr-page .reveal-right { transform: translateX(24px); }
.tr-page .reveal-right.visible { opacity: 1; transform: translateX(0); }

.tr-hero-copy[data-reveal-immediate] {
  animation: tr-hero-in 0.75s ease-out forwards;
}
@keyframes tr-hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
