/* 7-Zip Official Site — Desktop */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #0c1219;
  --ink-soft: #1a2433;
  --paper: #f3f0e8;
  --paper-dim: #e8e4d8;
  --steel: #3d5a73;
  --teal: #1f8a7a;
  --teal-bright: #2ab5a0;
  --amber: #d97706;
  --amber-hot: #f59e0b;
  --line: rgba(12, 18, 25, 0.12);
  --muted: #5a6573;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(12, 18, 25, 0.14);
  --radius: 2px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-width: 1100px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 64px, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(12, 18, 25, 0.06);
  background: rgba(243, 240, 232, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--amber-hot);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 12px;
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 18px !important;
  text-decoration: none !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 40%, rgba(42, 181, 160, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(217, 119, 6, 0.12), transparent 50%),
    linear-gradient(165deg, #f3f0e8 0%, #e4ebe8 45%, #dce6e3 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 18, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 25, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 28px;
  color: var(--ink);
}

.hero-brand span {
  display: block;
  color: var(--teal);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(12, 18, 25, 0.22);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
}

.btn-amber:hover {
  background: var(--amber-hot);
  color: var(--ink);
}

.hero-meta {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Visual plane */
.hero-visual {
  position: relative;
  height: 420px;
  background: var(--ink);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(42, 181, 160, 0.35) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(245, 158, 11, 0.08) 18px,
      rgba(245, 158, 11, 0.08) 20px
    );
  pointer-events: none;
}

.archive-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  gap: 14px;
  z-index: 1;
}

.archive-bar {
  height: 52px;
  background: rgba(243, 240, 232, 0.08);
  border: 1px solid rgba(243, 240, 232, 0.15);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  font-size: 0.9rem;
  transform-origin: left center;
  animation: barGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.archive-bar:nth-child(1) {
  width: 92%;
  animation-delay: 0.15s;
}
.archive-bar:nth-child(2) {
  width: 68%;
  animation-delay: 0.35s;
  background: rgba(42, 181, 160, 0.25);
  border-color: rgba(42, 181, 160, 0.45);
}
.archive-bar:nth-child(3) {
  width: 44%;
  animation-delay: 0.55s;
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.5);
}
.archive-bar:nth-child(4) {
  width: 28%;
  animation-delay: 0.75s;
}

.archive-bar small {
  margin-left: auto;
  opacity: 0.55;
  font-weight: 500;
  font-size: 0.78rem;
}

@keyframes barGrow {
  from {
    transform: scaleX(0.15);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.compress-badge {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--amber-hot);
  letter-spacing: -0.04em;
  line-height: 1;
  animation: fadeUp 0.9s 0.9s ease both;
}

.compress-badge span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(243, 240, 232, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--ink);
  color: var(--paper);
}

.section-alt .muted,
.section-alt p {
  color: rgba(243, 240, 232, 0.72);
}

.section-head {
  max-width: 36em;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-alt .section-head p {
  color: rgba(243, 240, 232, 0.65);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-alt .eyebrow {
  color: var(--teal-bright);
}

/* Feature list — not cards, open layout */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.feature-item:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.feature-item:nth-child(n + 4) {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Format bands */
.format-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.12);
  align-items: start;
}

.format-row:last-child {
  border-bottom: none;
}

.format-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--amber-hot);
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.format-tags span {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(243, 240, 232, 0.85);
  border-bottom: 1px solid rgba(42, 181, 160, 0.45);
  padding-bottom: 2px;
}

/* Download platform strip */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dl-platform {
  padding: 32px 0;
  border-top: 2px solid var(--ink);
}

.dl-platform h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.dl-platform p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  min-height: 2.8em;
}

.dl-platform .btn {
  width: 100%;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

table.data th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-dim);
}

table.data tr:hover td {
  background: rgba(31, 138, 122, 0.06);
}

table.data .btn {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #e8ebe6 0%, var(--paper) 100%);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38em;
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--muted);
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border: 2px solid var(--paper);
  outline: 2px solid var(--teal);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--muted);
  margin: 0;
  max-width: 42em;
}

/* License block */
.license-block {
  max-width: 720px;
}

.license-block ul {
  padding-left: 1.2em;
  color: var(--muted);
}

.license-block li {
  margin-bottom: 8px;
}

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: var(--teal);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--amber);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(243, 240, 232, 0.7);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(243, 240, 232, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--amber-hot);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(243, 240, 232, 0.12);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* Reveal animation — 默认可见，避免 JS 未加载时整页空白 */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .reveal-delay-1 {
  transition-delay: 0.1s;
}
html.js-ready .reveal-delay-2 {
  transition-delay: 0.2s;
}
html.js-ready .reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Utility */
.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
