/* 网页隐写溯源系统 — 对齐源站渲染结构 */

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

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

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

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

.ws-header { text-align: center; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .ws-header { margin-bottom: 4rem; } }
#overview .ws-header { margin-bottom: 1rem; }
.ws-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .ws-h2 { font-size: 1.875rem; } }
.ws-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.ws-line { width: 2rem; height: 2px; background: var(--primary); }
.ws-en {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero — 对齐其他产品页（高度由 inner padding 决定，非固定 600px） */
.ws-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
}
.ws-hero-photo {
  position: absolute;
  inset: 0;
  background: url('/products/web-stego-hero.png') center / cover no-repeat;
}
.ws-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,.95), rgba(10,10,10,.8), rgba(10,10,10,.6));
}
.ws-hero-shade-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(10,10,10,.8));
}
.ws-hero-orb1 {
  position: absolute;
  top: -8rem; right: -8rem;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.2);
  filter: blur(120px);
  pointer-events: none;
}
.ws-hero-orb2 {
  position: absolute;
  bottom: -5rem; left: -5rem;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.1);
  filter: blur(100px);
  pointer-events: none;
}
.ws-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.ws-hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 10;
  pointer-events: none;
}
.ws-hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem;
}
@media (min-width: 768px) { .ws-hero-inner { padding: 8rem 1.5rem; } }
@media (min-width: 1024px) { .ws-hero-inner { padding: 10rem 1.5rem; } }
.ws-hero-copy { max-width: 48rem; }
.ws-hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ws-hero-label-line { width: 2.5rem; height: 2px; background: var(--primary); }
.ws-hero-label-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: hsl(351 79% 54% / 0.9);
}
.ws-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .ws-hero h1 { font-size: 2.75rem; line-height: 1.1; } }
@media (min-width: 1024px) { .ws-hero h1 { font-size: 3.25rem; line-height: 1.1; } }
.ws-hero h1 .ws-accent { color: var(--primary); }
.ws-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.625;
  color: hsl(0 0% 100% / 0.7);
  max-width: 42rem;
  margin-bottom: 1.75rem;
}
.ws-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ws-hero-actions { flex-direction: row; }
}
.ws-hero-copy[data-reveal-immediate] {
  animation: ws-hero-in 0.75s ease-out forwards;
}
@keyframes ws-hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared cards */
.ws-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid hsl(214 13% 90% / 0.6);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
@media (min-width: 768px) { .ws-card { padding: 1.75rem; } }
.ws-card-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.ws-card-num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: hsl(351 79% 54% / 0.2);
  transition: color 0.3s;
  user-select: none;
  pointer-events: none;
}
.ws-card:hover {
  transform: translateY(-6px);
  border-color: hsl(351 79% 54% / 0.4);
  box-shadow: 0 12px 24px hsl(351 79% 54% / 0.05);
}
.ws-card:hover .ws-card-bar { transform: scaleX(1); }
.ws-card:hover .ws-card-num { color: hsl(351 79% 54% / 0.3); }
.ws-card:hover .ws-card-icon { background: hsl(351 79% 54% / 0.15); }
.ws-card:hover .ws-card-title { color: var(--primary); }
.ws-card-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: hsl(351 79% 54% / 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.ws-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.ws-card-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.ws-pain-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ws-pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-pain-grid { grid-template-columns: repeat(4, 1fr); } }

/* Overview — 对齐 Word_WPS文档防拷溯源系统 */
.ws-overview-text {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ws-overview-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: hsl(0 0% 7% / 0.8);
}
@media (min-width: 768px) {
  .ws-overview-text p { font-size: 1.125rem; }
}

.ws-adv-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ws-adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-adv-grid { grid-template-columns: repeat(3, 1fr); } }
.ws-adv-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid hsl(214 13% 90% / 0.6);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
@media (min-width: 768px) { .ws-adv-card { padding: 1.75rem; } }
.ws-adv-side {
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 0;
  background: hsl(351 79% 54% / 0.7);
  transform: translateY(-50%);
  transition: height 0.3s;
  border-radius: 0 2px 2px 0;
}
.ws-adv-card:hover {
  transform: translateY(-6px);
  border-color: hsl(351 79% 54% / 0.4);
  box-shadow: 0 12px 24px hsl(351 79% 54% / 0.05);
}
.ws-adv-card:hover .ws-adv-side { height: 2.5rem; }
.ws-adv-card:hover .ws-adv-icon {
  background: var(--primary);
  color: #fff;
}
.ws-adv-card:hover .ws-card-title { color: var(--primary); }
.ws-adv-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: hsl(351 79% 54% / 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}
.ws-adv-card .ws-card-title { margin-bottom: 0.75rem; }
.ws-adv-card .ws-card-desc { color: #6b7280; }

.ws-feat-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ws-feat-grid { grid-template-columns: repeat(2, 1fr); } }
.ws-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}
.ws-feat-grid .ws-card-title { margin-bottom: 1rem; }
.ws-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(220 9% 46%);
}
.ws-dot {
  width: 0.375rem; height: 0.375rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

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

.ws-value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ws-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-value-grid { grid-template-columns: repeat(4, 1fr); } }

/* CTA */
.ws-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 768px) { .ws-cta { padding: 6rem 0; } }
.ws-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0f172a, #1e1b4b, #7f1d1d);
}
.ws-cta-orb1 {
  position: absolute;
  top: 50%; left: 25%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.2);
  filter: blur(120px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ws-cta-orb2 {
  position: absolute;
  bottom: 0; right: 25%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: hsl(351 79% 54% / 0.1);
  filter: blur(100px);
  pointer-events: none;
}
.ws-cta-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(to right, white 1px, transparent 1px),
    linear-gradient(to bottom, white 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.ws-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}
.ws-cta h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.ws-cta p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(0 0% 100% / 0.7);
  margin-bottom: 2.5rem;
}
.ws-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ws-cta-actions { flex-direction: row; }
}
.ws-cta .btn-ghost {
  border-color: hsl(0 0% 100% / 0.3);
  color: #fff;
}
.ws-cta .btn-ghost:hover {
  background: hsl(0 0% 100% / 0.1);
}
