:root {
  --brand: #e70216;
  --brand-2: #ff6a4f;
  --ink: #17181b;
  --muted: #565b66;
  --soft: #f6f7f9;
  --line: #eaedf2;
  --panel: #fff;
  --shadow: 0 28px 70px rgba(16, 18, 24, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}

.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(23, 24, 27, 0.07);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-logo-img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 700;
}
.nav-actions {
  gap: 10px;
}
.sign-in {
  height: 36px;
  padding: 0 18px;
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn {
  height: 44px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 18px 34px rgba(231, 2, 22, 0.28);
}
.btn-primary:hover {
  background: #ff1529;
  box-shadow: 0 22px 40px rgba(231, 2, 22, 0.35);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(20, 24, 32, 0.06);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 100px;
  text-align: center;
  background: #fff url("../img/assets/easepdf-figma/legal-banner.png") center top /
    cover no-repeat;
}
.page-hero::after {
  display: none;
}
.eyebrow {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 20px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(231, 2, 22, 0.08);
  font-size: 13px;
  font-weight: 800;
}
.page-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.page-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.legal-updated {
  min-height: 34px;
  margin: 16px auto 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(23, 24, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #303744;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 14px 34px rgba(231, 2, 22, 0.08);
}
.legal-updated::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #fff;
}

.section {
  padding: 92px 0;
}
.legal-section {
  padding-top: 0;
  /* margin-top: -90px; */
  position: relative;
  z-index: 1;
}
.section.alt {
  background: #f8f9fb;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-head h2,
.content-layout h2,
.support-section h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.section-head p,
.support-section > p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.content-layout {
  display: block;
  max-width: 1120px;
}
.toc {
  display: none;
}
.toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}
.toc a {
  display: block;
  padding: 10px 0;
  color: #596273;
  border-top: 1px solid #f0f2f5;
  font-size: 14px;
  line-height: 1.35;
}
.toc a:first-of-type {
  border-top: 0;
}
.legal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 24, 34, 0.08);
  padding: 44px 64px 64px;
  counter-reset: legal-section;
}
.legal-card[data-reveal] {
  opacity: 1;
  transform: none;
}
.legal-card h2 {
  margin: 52px 0 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.legal-card h2::before {
  counter-increment: legal-section;
  content: counter(legal-section) ". ";
}
.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-card h3 {
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.legal-card p,
.legal-card li {
  color: #4b5565;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.82;
  /* //纯英文换行 */
  /* white-space: pre-wrap; */
  word-break: break-word;
}
.legal-card p {
  margin: 0 0 18px;
}
.legal-card ul,
.legal-card ol {
  margin: 0 0 24px 22px;
  padding: 0;
}
.legal-card li {
  padding-left: 4px;
}
.legal-card a,
.legal-card strong {
  color: var(--brand);
}
.legal-preface {
  color: #424b59;
  font-size: 14px;
  font-style: italic;
  line-height: 1.75;
}
.legal-preface + h2 {
  margin-top: 34px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 50px;
  max-width: 916px;
  margin: 0 auto;
}
.support-page .page-hero {
  padding: 118px 0 94px;
  background: #fff url("../img/assets/easepdf-figma/legal-banner.png") center top /
    cover no-repeat;
}
.support-page .section {
  padding: 0 0 108px;
}
.support-card,
.faq-item,
.contact-card,
.form-card,
.assist-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 24, 34, 0.07);
}
.support-card {
  padding: 46px 34px 38px;
  min-height: 304px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.support-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.support-icon img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}
.support-card h2,
.support-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.support-card p {
  flex: 1;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  max-width: 420px;
}
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-size: 17px;
  font-weight: 500;
}
.support-link span,
.support-help-btn span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.support-link:hover span,
.support-help-btn:hover span {
  transform: translateX(5px);
}
.support-help-btn {
  min-width: 168px;
  height: 54px;
  padding: 0 28px;
  font-size: 17px;
  gap: 14px;
}
.support-card .support-help-btn {
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  padding: 24px 28px;
}
.faq-item h3 {
  margin: 0;
  font-size: 18px;
}
.faq-item p {
  margin: 12px 0 0;
  color: #536072;
  font-size: 15px;
  line-height: 1.65;
}

.contact-layout {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}
.contact-page .page-hero {
  padding: 92px 0 58px;
}
.contact-page .section {
  padding-top: 0;
}
.form-card {
  padding: clamp(26px, 4vw, 44px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  row-gap: 8px;
  color: #2d3340;
  font-size: 15px;
  font-weight: 800;
}
.field.full {
  grid-column: 1 / -1;
}
.field span {
  color: var(--brand);
  line-height: 1;
}
.field input,
.field select,
.field textarea {
  flex: 0 0 100%;
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #5f6876;
  font-weight: 500;
  padding: 14px 15px;
  outline: none;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.field textarea {
  min-height: 148px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(231, 2, 22, 0.08);
}
.captcha-row {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.captcha-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.captcha-canvas {
  flex-shrink: 0;
  width: 148px;
  height: 48px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #f8f9fb;
  cursor: pointer;
}
.attachment-field {
  position: relative;
}
.attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.attachment-trigger {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px dashed #c5ccd8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.attachment-trigger:hover {
  border-color: #e70216;
  background: rgba(255, 75, 102, 0.04);
}
.attachment-text {
  color: #4b7bff;
  font-size: 15px;
  font-weight: 600;
}
.attachment-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.attachment-list {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.attachment-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #f8f9fb;
}
.attachment-file-name {
  color: #4b5565;
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
}
.attachment-file-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(231, 2, 22, 0.08);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.contact-toast {
  position: fixed;
  left: 50%;
  top: 132px;
  z-index: 100;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.contact-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.contact-toast.is-success {
  background: #1f9d55;
  box-shadow: 0 18px 40px rgba(31, 157, 85, 0.28);
}
.contact-toast.is-error {
  background: #d92d20;
  box-shadow: 0 18px 40px rgba(217, 45, 32, 0.28);
}
.contact-submit {
  margin: 24px auto 0;
  display: flex;
}
.contact-card {
  padding: 28px;
}
.contact-card + .contact-card {
  margin-top: 18px;
}
.contact-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.contact-card p,
.contact-card a {
  color: #536072;
  font-size: 15px;
  line-height: 1.65;
}
.assist-list {
  display: grid;
  gap: 12px;
}
.assist-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.assist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(18, 24, 34, 0.1);
}
.assist-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(231, 2, 22, 0.08);
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}
.assist-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.site-footer {
  padding: 54px 0 28px;
  background: #121212;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.6fr);
  gap: 40px;
}
.footer-copy {
  max-width: 340px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}
.footer-col {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.copyright {
  width: min(1200px, calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    padding: 16px 0;
  }
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links,
  .nav-actions {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-hero {
    padding: 76px 0 62px;
  }
  .content-layout,
  .support-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 36px 32px 44px;
  }
}

@media (max-width: 560px) {
  .page-hero h1 {
    font-size: 40px;
  }
  .page-hero p {
    font-size: 16px;
  }
  .section {
    padding: 68px 0;
  }
  .legal-section {
    margin-top: -34px;
  }
  .legal-card {
    padding: 26px 18px 34px;
  }
  .legal-card p,
  .legal-card li {
    font-size: 14px;
    line-height: 1.75;
  }
  .support-card,
  .form-card,
  .legal-card {
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .contact-page .page-hero {
    padding: 72px 0 40px;
  }

  .contact-page .page-hero h1 {
    font-size: 32px;
  }

  .contact-page .page-hero p {
    font-size: 15px;
  }

  .contact-page .section {
    padding: 0 0 48px;
  }

  .contact-layout {
    width: 100%;
    min-width: 0;
  }

  .contact-page .form-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .contact-page .form-grid {
    gap: 18px;
  }

  .contact-page .field {
    min-width: 0;
    font-size: 14px;
  }

  .contact-page .field input,
  .contact-page .field select,
  .contact-page .field textarea {
    max-width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
  }

  .contact-page .field textarea {
    min-height: 120px;
  }

  .contact-page .captcha-row {
    flex-direction: column;
    gap: 10px;
  }

  .contact-page .captcha-row input {
    width: 100%;
    flex: none;
  }

  .contact-page .captcha-canvas {
    width: 100%;
    max-width: 150px;
    height: 48px;
  }

  .contact-page .attachment-trigger {
    padding: 12px 14px;
    min-height: 48px;
  }

  .contact-page .attachment-text {
    font-size: 14px;
  }

  .contact-page .attachment-file-item {
    padding: 8px 10px;
  }

  .contact-page .attachment-file-name {
    font-size: 13px;
  }

  .contact-page .contact-submit {
    width: 100%;
    margin-top: 20px;
  }

  .contact-toast {
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: translateY(12px);
  }

  .contact-toast.is-visible {
    transform: translateY(0);
  }
}
