:root {
  --bg: #f4f5ef;
  --surface: #ffffff;
  --surface-soft: #f8f9f5;
  --ink: #17221e;
  --ink-soft: #35443e;
  --muted: #76817c;
  --line: #e2e6df;
  --line-strong: #d5dbd2;
  --brand: #176b5c;
  --brand-deep: #0f5146;
  --brand-soft: #dff2e8;
  --lime: #dff27b;
  --orange: #ffad6b;
  --rose: #f5c6d5;
  --sky: #b9d7f7;
  --blue: #c9d8ff;
  --lilac: #dacdff;
  --gold: #f1df9e;
  --shadow-sm: 0 8px 24px rgba(31, 45, 38, 0.055);
  --shadow-md: 0 20px 50px rgba(31, 45, 38, 0.09);
  --shadow-lg: 0 36px 80px rgba(29, 48, 38, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 4%, rgba(223, 242, 123, 0.18), transparent 18rem),
    var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

::selection {
  color: #12362e;
  background: var(--lime);
}

.app-shell {
  min-height: 100vh;
}

.page-view {
  animation: page-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 13px max(24px, calc((100vw - 1400px) / 2));
  background: rgba(244, 245, 239, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: rgba(213, 219, 210, 0.75);
  box-shadow: 0 12px 30px rgba(44, 58, 50, 0.035);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--brand-deep);
  border-radius: 13px;
  box-shadow: 0 8px 16px rgba(15, 81, 70, 0.18);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #54605b;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: var(--brand-deep);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 190px;
  height: 40px;
  padding: 0 12px;
  color: #7b8580;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(218, 224, 215, 0.9);
  border-radius: 999px;
  transition: width 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  width: 230px;
  border-color: #9dbab1;
  box-shadow: 0 0 0 4px rgba(23, 107, 92, 0.08);
}

.search-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  margin: 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #8b948f;
}

.search-box input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-box kbd {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8a948e;
  background: #f1f3ee;
  border: 1px solid #e1e5dd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 8px 0 10px;
  color: #5d6b65;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(218, 224, 215, 0.9);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.language-control:hover,
.language-control:focus-within {
  background: white;
  border-color: #b8c7bd;
}

.language-control > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.language-control select {
  max-width: 74px;
  padding: 0 14px 0 1px;
  color: #50605a;
  background: transparent;
  border: 0;
  outline: 0;
  appearance: none;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.language-control::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 5px;
  height: 5px;
  content: "";
  border-right: 1.3px solid #6f7c76;
  border-bottom: 1.3px solid #6f7c76;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  color: #49645b;
  background: rgba(223, 242, 232, 0.75);
  border: 1px solid rgba(191, 221, 208, 0.7);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.local-badge i {
  width: 7px;
  height: 7px;
  background: #27a078;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(39, 160, 120, 0.11);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.hero-wrap {
  padding: 12px max(20px, calc((100vw - 1440px) / 2)) 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: 50px;
  min-height: 650px;
  padding: 76px clamp(38px, 6vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 18%, rgba(216, 243, 108, 0.52), transparent 20rem),
    radial-gradient(circle at 82% 106%, rgba(174, 211, 196, 0.52), transparent 24rem),
    linear-gradient(135deg, #e9eee3 0%, #f0f2e9 58%, #e8eee4 100%);
  border: 1px solid rgba(214, 222, 208, 0.75);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image: radial-gradient(rgba(23, 55, 44, 0.13) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 20%, black 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.eyebrow span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(160, 190, 175, 0.46);
  border-radius: 50%;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  max-width: 620px;
  margin: 25px 0 24px;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 770;
  line-height: 1.09;
  letter-spacing: -0.065em;
}

.hero h1 em {
  position: relative;
  color: var(--brand);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  right: -3px;
  bottom: 3px;
  left: 2px;
  z-index: -1;
  height: 12px;
  content: "";
  background: var(--lime);
  border-radius: 2px 8px 2px 6px;
  transform: rotate(-1.5deg);
  opacity: 0.75;
}

.hero-lead {
  max-width: 540px;
  margin: 0;
  color: #57655f;
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.primary-btn,
.outline-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: white;
  background: var(--brand-deep);
  border: 1px solid var(--brand-deep);
  box-shadow: 0 12px 24px rgba(15, 81, 70, 0.2);
}

.primary-btn:hover:not(:disabled) {
  background: #0a463c;
  box-shadow: 0 16px 30px rgba(15, 81, 70, 0.26);
  transform: translateY(-2px);
}

.primary-btn:disabled {
  color: #98a19d;
  background: #e7eae5;
  border-color: #e7eae5;
  box-shadow: none;
  cursor: not-allowed;
}

.primary-btn svg,
.outline-btn svg,
.secondary-btn svg,
.ghost-btn svg,
.danger-btn svg {
  width: 18px;
  height: 18px;
}

.hero-cta {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 15px;
  font-size: 15px;
}

.hero-cta svg {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.text-btn {
  padding: 6px 0;
  color: #50625a;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aebbb5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #6a7771;
  font-size: 12px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.hero-art {
  position: relative;
  min-height: 510px;
  perspective: 1200px;
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(33, 97, 77, 0.12);
  border-radius: 50%;
}

.orbit-one {
  top: -78px;
  right: -64px;
  width: 510px;
  height: 510px;
}

.orbit-two {
  right: 30px;
  bottom: -90px;
  width: 390px;
  height: 390px;
}

.art-dot {
  position: absolute;
  border-radius: 50%;
}

.dot-one {
  top: 16px;
  right: 88px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 173, 107, 0.17);
}

.dot-two {
  bottom: 22px;
  left: 27px;
  width: 18px;
  height: 18px;
  background: var(--brand);
  box-shadow: 0 0 0 10px rgba(23, 107, 92, 0.09);
}

.mock-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, 94%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 23px;
  box-shadow: 0 35px 70px rgba(34, 63, 49, 0.2), 0 8px 18px rgba(44, 68, 55, 0.08);
  transform: translate(-50%, -50%) rotate(1.3deg);
  animation: float-window 7s ease-in-out infinite;
}

@keyframes float-window {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(1.3deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) rotate(0.5deg);
  }
}

.mock-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0eb;
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots i {
  width: 7px;
  height: 7px;
  background: #dbe0da;
  border-radius: 50%;
}

.mock-dots i:first-child {
  background: #f6b4aa;
}

.mock-title {
  color: #4a5851;
  font-size: 11px;
  font-weight: 700;
}

.mock-secure {
  justify-self: end;
  color: #80908a;
}

.mock-secure svg {
  width: 17px;
  height: 17px;
}

.mock-content {
  padding: 25px;
}

.mock-file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9f5;
  border: 1px solid #edf0e9;
  border-radius: 14px;
}

.mini-image {
  position: relative;
  display: block;
  width: 43px;
  height: 43px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8c398, #b6d2b1);
  border-radius: 10px;
}

.mini-image::before {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 34px;
  height: 28px;
  content: "";
  background: #6b977d;
  border-radius: 50% 0 0;
  transform: rotate(-15deg);
}

.mini-image i {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  background: #ffe7a6;
  border-radius: 50%;
}

.mock-file-card strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-file-card small {
  display: block;
  margin-top: 5px;
  color: #8b9590;
  font-size: 9px;
}

.mini-done {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  background: #44a77e;
  border-radius: 50%;
}

.mini-done svg {
  width: 14px;
  height: 14px;
}

.mock-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
}

.mock-arrow span {
  flex: 1;
  height: 1px;
  background: #e5e9e2;
}

.mock-arrow svg {
  width: 16px;
  height: 16px;
  color: #9aa49f;
  transform: rotate(90deg);
}

.mock-result-card {
  padding: 18px;
  background: #176b5c;
  border-radius: 16px;
  box-shadow: 0 14px 25px rgba(23, 107, 92, 0.18);
}

.result-head,
.size-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-head {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.result-head b {
  padding: 4px 8px;
  color: #183c30;
  background: var(--lime);
  border-radius: 999px;
  font-size: 10px;
}

.size-compare {
  align-items: baseline;
  margin: 15px 0 12px;
}

.size-compare span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  text-decoration: line-through;
}

.size-compare strong {
  color: white;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.size-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.size-track i {
  display: block;
  width: 32%;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
}

.mock-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  margin-top: 17px;
  color: var(--brand-deep);
  background: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.mock-download svg {
  width: 14px;
  height: 14px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  box-shadow: 0 15px 35px rgba(39, 64, 51, 0.13);
  backdrop-filter: blur(10px);
  font-size: 9px;
}

.floating-chip > svg {
  width: 31px;
  height: 31px;
  padding: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 9px;
}

.floating-chip span {
  color: #6d7974;
  line-height: 1.35;
}

.floating-chip b {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.chip-local {
  top: 63px;
  left: -3px;
  animation: float-chip 5.5s ease-in-out infinite;
}

.chip-time {
  right: 1px;
  bottom: 70px;
  animation: float-chip 6s 1.2s ease-in-out infinite;
}

@keyframes float-chip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.pulse-dot {
  display: block;
  width: 11px;
  height: 11px;
  margin-left: 7px;
  background: #3eb584;
  border: 3px solid #dff3e8;
  border-radius: 50%;
  box-sizing: content-box;
}

.tools-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 94px 24px 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2,
.principle-intro h2,
.privacy-banner h2 {
  margin: 9px 0 0;
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.category-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  background: #e9ece5;
  border: 1px solid #e0e4dd;
  border-radius: 999px;
}

.category-tabs button {
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  color: #707a75;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.category-tabs button:hover {
  color: var(--ink);
}

.category-tabs button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 5px 12px rgba(37, 53, 44, 0.07);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 17px;
  min-height: 182px;
  padding: 25px;
  overflow: hidden;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(222, 227, 219, 0.95);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card::before {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s ease;
  transform: scale(0.7);
}

.tool-card:hover {
  z-index: 2;
  border-color: #cdd6ce;
  box-shadow: 0 22px 45px rgba(33, 51, 42, 0.09);
  transform: translateY(-5px);
}

.tool-card:hover::before {
  opacity: 0.35;
  transform: scale(1);
}

.theme-mint::before {
  background: #b7ead6;
}

.theme-sky::before {
  background: var(--sky);
}

.theme-sand::before {
  background: #ffd4ad;
}

.theme-rose::before {
  background: var(--rose);
}

.theme-blue::before {
  background: var(--blue);
}

.theme-lilac::before {
  background: var(--lilac);
}

.theme-gold::before {
  background: #f3dfa4;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.tool-icon svg {
  width: 27px;
  height: 27px;
}

.theme-mint .tool-icon {
  color: #17765e;
  background: #dff3e9;
}

.theme-sky .tool-icon {
  color: #3d6f9d;
  background: #e0eefb;
}

.theme-sand .tool-icon {
  color: #91602d;
  background: #fff0df;
}

.theme-rose .tool-icon {
  color: #9b526c;
  background: #fbe8ef;
}

.theme-blue .tool-icon {
  color: #566eaa;
  background: #e9edff;
}

.theme-lilac .tool-icon {
  color: #7158a0;
  background: #f0eaff;
}

.theme-gold .tool-icon {
  color: #8c6e22;
  background: #faf2ce;
}

.tool-copy {
  min-width: 0;
}

.tool-copy strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.tool-meta {
  color: #8b9590;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-copy > span:last-child {
  display: block;
  max-width: 300px;
  color: #6f7b75;
  font-size: 12px;
  line-height: 1.65;
}

.tool-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 4px;
  color: #a4ada8;
  background: #f6f7f3;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-arrow svg {
  width: 15px;
  height: 15px;
}

.tool-card:hover .tool-arrow {
  color: white;
  background: var(--brand-deep);
  transform: translateX(2px);
}

.popular-mark {
  position: absolute;
  right: 22px;
  bottom: 19px;
  padding: 4px 8px;
  color: #597062;
  background: #edf5e8;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.wide-card {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 132px;
  align-items: center;
}

.wide-card .tool-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 20px;
}

.wide-card .tool-meta {
  grid-column: 1 / -1;
}

.wide-card .tool-copy strong {
  margin-bottom: 0;
}

.wide-card .tool-copy > span:last-child {
  max-width: none;
}

.empty-search {
  padding: 70px 20px;
  text-align: center;
  background: white;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
}

.empty-search strong {
  display: block;
  font-size: 18px;
}

.empty-search p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.principles {
  display: grid;
  grid-template-columns: 0.7fr 1.7fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  border-top: 1px solid var(--line);
}

.principle-intro {
  padding-top: 15px;
}

.principle-intro p {
  max-width: 350px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle-grid article {
  position: relative;
  min-height: 270px;
  padding: 29px 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.principle-number {
  position: absolute;
  top: 25px;
  right: 23px;
  color: #b9c1bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.principle-icon.mint {
  color: var(--brand);
  background: var(--brand-soft);
}

.principle-icon.blue {
  color: #536ea9;
  background: #e8edff;
}

.principle-icon.sand {
  color: #916434;
  background: #fff0df;
}

.principle-icon svg {
  width: 22px;
  height: 22px;
}

.principle-grid h3 {
  margin: 48px 0 10px;
  font-size: 16px;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.privacy-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  max-width: 1352px;
  margin: 0 auto 92px;
  padding: 45px 52px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 0%, rgba(223, 242, 123, 0.18), transparent 20rem),
    linear-gradient(135deg, #164f44, #0e3932);
  border-radius: 30px;
  box-shadow: 0 30px 65px rgba(14, 57, 50, 0.18);
}

.privacy-banner::after {
  position: absolute;
  top: -80px;
  right: 14%;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.privacy-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
}

.shield-halo {
  position: absolute;
  inset: 0;
  background: rgba(223, 242, 123, 0.08);
  border: 1px solid rgba(223, 242, 123, 0.2);
  border-radius: 50%;
}

.privacy-illustration svg {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  color: var(--lime);
}

.privacy-banner .section-kicker {
  color: #a9d1c5;
}

.privacy-banner h2 {
  margin-top: 7px;
  font-size: 30px;
}

.privacy-banner p {
  max-width: 670px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

.outline-btn {
  position: relative;
  z-index: 2;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.footer-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.footer-brand .brand-copy strong {
  font-size: 18px;
}

.footer-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.footer-privacy svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 20px;
  color: #9aa39e;
  border-top: 1px solid #e8ebe5;
  font-size: 10px;
}

.privacy-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 22, 0.52);
  backdrop-filter: blur(8px);
  animation: backdrop-in 0.2s ease;
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

.dialog-card {
  position: relative;
  width: min(570px, 100%);
  padding: 42px;
  background: #fbfcf9;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  animation: dialog-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #7d8882;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close svg {
  width: 17px;
  height: 17px;
}

.dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 15px;
}

.dialog-icon svg {
  width: 26px;
  height: 26px;
}

.dialog-card h2 {
  margin: 9px 0 18px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.dialog-card p {
  margin: 0 0 12px;
  color: #64716b;
  font-size: 13px;
  line-height: 1.8;
}

.dialog-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 23px 0 27px;
}

.dialog-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #4f635a;
  background: #edf5ee;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.dialog-points svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.dialog-confirm {
  width: 100%;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
  padding: 13px 16px;
  color: white;
  background: #1e322a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(14, 31, 24, 0.2);
  font-size: 12px;
  line-height: 1.5;
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.success::before {
  display: block;
  width: 8px;
  height: 8px;
  content: "";
  background: #77d6a9;
  border-radius: 50%;
}

.toast.error::before {
  display: block;
  width: 8px;
  height: 8px;
  content: "";
  background: #ff9c89;
  border-radius: 50%;
}

.toast.leaving {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Tool workspaces */
.tool-page {
  min-height: calc(100vh - 78px);
}

.tool-page-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: #6c7772;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--brand);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.tool-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 23px 0 30px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.tool-title-block {
  display: flex;
  align-items: center;
  gap: 17px;
}

.tool-title-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 17px;
}

.tool-title-icon svg {
  width: 30px;
  height: 30px;
}

.tool-title-block h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.tool-title-block p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: #4e6d61;
  background: #e8f3ea;
  border: 1px solid #d6e8da;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.privacy-chip svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 20px;
}

.tool-workspace.wide-aside {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.tool-panel {
  min-width: 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.tool-panel + .tool-panel {
  margin-top: 18px;
}

.aside-stack {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.aside-card.accent {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(223, 242, 123, 0.15), transparent 9rem),
    var(--brand-deep);
  border-color: var(--brand-deep);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 242, 123, 0.13), transparent 13rem),
    #fafbf8;
  border: 1.5px dashed #cad3ca;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: #f5f9f1;
  border-color: var(--brand);
}

.dropzone.dragover {
  transform: scale(0.995);
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  color: var(--brand);
  background: white;
  border: 1px solid #e1e8df;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(30, 57, 44, 0.08);
}

.dropzone-icon::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  content: "+";
  color: white;
  background: var(--brand);
  border: 3px solid #fafbf8;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}

.dropzone-icon svg {
  width: 31px;
  height: 31px;
}

.dropzone strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.dropzone > span {
  color: var(--muted);
  font-size: 11px;
}

.browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  padding: 9px 15px;
  color: var(--brand-deep);
  background: white;
  border: 1px solid #dbe3db;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(30, 57, 44, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.browse-link svg {
  width: 14px;
  height: 14px;
}

.dropzone.small {
  min-height: 190px;
  padding: 25px;
}

.dropzone.small .dropzone-icon {
  width: 51px;
  height: 51px;
  margin-bottom: 13px;
  border-radius: 15px;
}

.dropzone.small .dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}

.file-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 12px;
  background: #fbfcf9;
  border: 1px solid #e9ede7;
  border-radius: 13px;
}

.file-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #84908a;
  background: #f0f3ee;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.file-type-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.file-type-icon svg {
  width: 20px;
  height: 20px;
}

.file-main {
  min-width: 0;
}

.file-main strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-main span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.file-actions {
  display: flex;
  gap: 3px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #7d8882;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover:not(:disabled) {
  color: var(--brand);
  background: white;
  border-color: var(--line);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.icon-btn.danger:hover {
  color: #b14646;
  background: #fff4f2;
  border-color: #f4d7d2;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.field {
  margin-bottom: 17px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #4d5953;
  font-size: 11px;
  font-weight: 700;
}

.field label span,
.field-label span {
  color: #89938e;
  font-size: 9px;
  font-weight: 600;
}

.text-input,
.select-input,
.text-area {
  width: 100%;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid #dde3dc;
  border-radius: 10px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.text-input,
.select-input {
  height: 43px;
  padding: 0 12px;
  font-size: 12px;
}

.select-input {
  padding-right: 34px;
  cursor: pointer;
}

.text-input:focus,
.select-input:focus,
.text-area:focus {
  background: white;
  border-color: #98b9ae;
  box-shadow: 0 0 0 4px rgba(23, 107, 92, 0.07);
}

.input-suffix {
  position: relative;
}

.input-suffix .text-input {
  padding-right: 48px;
}

.input-suffix > span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #8b9590;
  font-size: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.range-head label {
  margin: 0;
}

.range-value {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.range-input {
  width: 100%;
  height: 5px;
  margin: 12px 0 8px;
  appearance: none;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) 75%, #e2e7df 75%, #e2e7df 100%);
  border-radius: 999px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  background: white;
  border: 5px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(15, 81, 70, 0.2);
  cursor: pointer;
}

.range-input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: white;
  border: 5px solid var(--brand);
  border-radius: 50%;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #96a09b;
  font-size: 8px;
}

.summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 15px;
  padding: 13px 14px;
  background: #f6f8f3;
  border: 1px solid #ebeee8;
  border-radius: 11px;
}

.summary-box span {
  color: var(--muted);
  font-size: 10px;
}

.summary-box strong {
  font-size: 12px;
}

.primary-btn.full-width,
.secondary-btn.full-width,
.outline-btn.full-width {
  width: 100%;
}

.secondary-btn {
  color: var(--brand-deep);
  background: white;
  border: 1px solid #dbe3db;
}

.secondary-btn:hover {
  background: #f7faf6;
  border-color: #bdcbc1;
}

.ghost-btn {
  min-height: 38px;
  padding: 0 13px;
  color: #65716b;
  background: #f4f6f1;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
}

.ghost-btn:hover {
  color: var(--brand-deep);
  background: #edf3eb;
}

.danger-btn {
  min-height: 40px;
  color: #a04646;
  background: #fff8f6;
  border: 1px solid #f1dcd7;
}

.micro-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 13px 0 0;
  color: #8b9590;
  font-size: 9px;
  line-height: 1.55;
}

.micro-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #699185;
}

.aside-title {
  margin: 0 0 14px;
  font-size: 14px;
}

.aside-card.accent .section-kicker {
  color: #8fc8b8;
}

.aside-card.accent .aside-title {
  margin-top: 7px;
  color: white;
  font-size: 19px;
}

.aside-card.accent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tip-list li {
  position: relative;
  padding-left: 18px;
  color: #69756f;
  font-size: 10px;
  line-height: 1.65;
}

.tip-list li::before {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 6px;
  height: 6px;
  content: "";
  background: #7ead9b;
  border-radius: 50%;
}

.result-card {
  padding: 17px;
  color: #24483c;
  background: #eef8ef;
  border: 1px solid #d5ebd9;
  border-radius: 13px;
}

.result-card.error {
  color: #8c3f3f;
  background: #fff4f1;
  border-color: #f3d6cf;
}

.result-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.result-card-head span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: white;
  background: #39a375;
  border-radius: 50%;
}

.result-card-head svg {
  width: 13px;
  height: 13px;
}

.result-card p {
  margin: 0;
  color: #5f7d6f;
  font-size: 10px;
  line-height: 1.5;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 11px;
  color: var(--brand-deep);
  background: white;
  border: 1px solid #d5e5d8;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.result-link svg {
  width: 14px;
  height: 14px;
}

.split-file-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px;
  background: #f7f9f5;
  border: 1px solid #e8ece6;
  border-radius: 14px;
}

.page-count {
  padding-left: 14px;
  color: var(--muted);
  border-left: 1px solid #dfe5dd;
  font-size: 10px;
  text-align: right;
}

.page-count strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #fbfcf9;
  border: 1px solid #e4e9e2;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mode-option:hover {
  border-color: #c9d5cb;
}

.mode-option:has(input:checked) {
  background: #f3f9f3;
  border-color: #99bdaf;
}

.mode-option input {
  position: absolute;
  opacity: 0;
}

.radio-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  background: white;
  border: 1.5px solid #b8c2bc;
  border-radius: 50%;
}

.mode-option input:checked + .radio-mark {
  border: 5px solid var(--brand);
}

.mode-option strong {
  display: block;
  font-size: 11px;
}

.mode-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 8px;
}

.result-row > svg {
  width: 14px;
  height: 14px;
  color: #4d8f70;
  flex: 0 0 auto;
}

.result-row span {
  overflow: hidden;
  flex: 1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-row button {
  padding: 3px 6px;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.image-card {
  position: relative;
  overflow: hidden;
  background: #f9faf7;
  border: 1px solid #e5eae3;
  border-radius: 14px;
}

.image-preview {
  position: relative;
  height: 132px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #edf0ea 25%, transparent 25%),
    linear-gradient(-45deg, #edf0ea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf0ea 75%),
    linear-gradient(-45deg, transparent 75%, #edf0ea 75%);
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-size: 14px 14px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #53605a;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(28, 43, 35, 0.1);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-remove svg {
  width: 13px;
  height: 13px;
}

.image-info {
  padding: 11px;
}

.image-info strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.saving-badge {
  padding: 3px 5px;
  color: #317c5c;
  background: #e3f5e8;
  border-radius: 5px;
  font-weight: 800;
}

.image-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e9ede7;
}

.image-download-row span {
  color: #3b775e;
  font-size: 9px;
  font-weight: 700;
}

.image-download-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--brand);
  background: white;
  border: 1px solid #dbe8de;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.image-download-row svg {
  width: 11px;
  height: 11px;
}

.add-more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 208px;
  padding: 20px;
  color: #718079;
  background: transparent;
  border: 1.5px dashed #d4dcd4;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.add-more-tile:hover {
  color: var(--brand);
  background: #f8fbf6;
  border-color: #aabfb2;
}

.add-more-tile b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  background: #f0f4ef;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
}

.add-more-tile span {
  font-size: 10px;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 9px;
}

.button-row > * {
  flex: 1;
}

.processing {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.processing::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: processing-line 1s linear infinite;
}

@keyframes processing-line {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.doc-preview-shell {
  margin-top: 17px;
  padding: 18px;
  overflow: auto;
  background: #eef0eb;
  border: 1px solid #dfe4dd;
  border-radius: 16px;
}

.doc-page {
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 20mm 18mm;
  color: #1c2420;
  background: white;
  box-shadow: 0 10px 30px rgba(35, 52, 43, 0.1);
  font-family: "Microsoft YaHei", "PingFang SC", serif;
  font-size: 11pt;
  line-height: 1.75;
}

.doc-page img {
  max-width: 100%;
  height: auto;
}

.doc-page h1 {
  margin: 0 0 0.8em;
  font-size: 22pt;
  line-height: 1.35;
}

.doc-page h2 {
  margin: 1.2em 0 0.6em;
  font-size: 17pt;
}

.doc-page h3 {
  margin: 1em 0 0.5em;
  font-size: 14pt;
}

.doc-page p {
  margin: 0.5em 0;
}

.doc-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
}

.doc-page td,
.doc-page th {
  padding: 5px;
  border: 1px solid #bbb;
}

.doc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  color: #8a9690;
  text-align: center;
}

.doc-placeholder svg {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: #a4b3ac;
}

.doc-placeholder strong {
  color: #59665f;
  font-size: 14px;
}

.doc-placeholder p {
  margin: 7px 0 0;
  font-size: 10px;
}

.text-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.text-editor-card {
  min-width: 0;
  overflow: hidden;
  background: #fbfcf9;
  border: 1px solid #e2e8e1;
  border-radius: 15px;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 47px;
  padding: 0 14px;
  background: #f7f9f5;
  border-bottom: 1px solid #e7ebe5;
}

.editor-head strong {
  font-size: 11px;
}

.editor-head span {
  color: var(--muted);
  font-size: 8px;
}

.text-area {
  display: block;
  min-height: 390px;
  padding: 16px;
  resize: vertical;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.85;
}

.text-area:focus {
  box-shadow: none;
}

.text-area[readonly] {
  color: #344b41;
  background: #f9fbf7;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.counter-headline {
  padding: 20px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(223, 242, 123, 0.22), transparent 10rem),
    var(--brand-deep);
  border-radius: 16px;
}

.counter-headline span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.counter-headline strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.counter-headline strong small {
  color: rgba(255, 255, 255, 0.57);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.counter-headline p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.stat-cell {
  padding: 12px;
  background: #f7f9f5;
  border: 1px solid #e8ece6;
  border-radius: 10px;
}

.stat-cell span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.stat-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0eb;
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy strong {
  display: block;
  color: #37453f;
  font-size: 10px;
}

.switch-copy small {
  display: block;
  margin-top: 3px;
  color: #8a948f;
  font-size: 8px;
}

.switch {
  position: relative;
  width: 35px;
  height: 20px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #dce2dc;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: "";
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(28, 44, 35, 0.15);
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(15px);
}

.format-layout .tool-workspace {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.format-textareas {
  min-height: 430px;
}

.format-textareas .text-area {
  min-height: 430px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4a7b65;
  font-size: 8px;
  font-weight: 800;
}

.live-badge::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #49a777;
  border-radius: 50%;
}

.upload-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: #66726c;
  background: white;
  border: 1px solid #e0e6df;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.upload-mini svg {
  width: 12px;
  height: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 14px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
    gap: 30px;
    padding-right: 46px;
    padding-left: 46px;
  }

  .hero h1 {
    font-size: clamp(46px, 6vw, 66px);
  }

  .hero-art {
    transform: scale(0.92);
    transform-origin: center right;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-card {
    grid-column: 1 / -1;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .principle-intro p {
    max-width: 580px;
  }

  .tool-workspace,
  .tool-workspace.wide-aside,
  .format-layout .tool-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .search-box {
    width: 160px;
  }

  .search-box:focus-within {
    width: 180px;
  }

  .local-badge {
    display: none;
  }

  .language-control {
    padding-left: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 62px 45px 35px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-art {
    min-height: 480px;
    transform: none;
  }

  .mock-window {
    width: min(470px, 90%);
  }

  .chip-local {
    left: 8%;
  }

  .chip-time {
    right: 7%;
  }

  .privacy-banner {
    grid-template-columns: auto minmax(0, 1fr);
    margin-right: 24px;
    margin-left: 24px;
  }

  .privacy-banner .outline-btn {
    grid-column: 2;
    justify-self: start;
  }

  .tool-workspace,
  .tool-workspace.wide-aside,
  .format-layout .tool-workspace {
    grid-template-columns: 1fr;
  }

  .aside-stack {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .aside-stack > .aside-card:first-child {
    grid-row: span 2;
  }

  .text-tool-grid {
    grid-template-columns: 1fr;
  }

  .text-area {
    min-height: 280px;
  }

  .format-textareas,
  .format-textareas .text-area {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 10px 18px;
  }

  .brand-copy small {
    display: none;
  }

  .language-control {
    height: 40px;
    padding: 0 7px;
    border-color: transparent;
    border-radius: 50%;
    background: white;
  }

  .language-control > svg {
    width: 17px;
    height: 17px;
  }

  .language-control select {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    opacity: 0;
    cursor: pointer;
  }

  .language-control::after {
    display: none;
  }

  .search-box {
    width: 40px;
    padding: 0 11px;
    background: white;
  }

  .search-box:focus-within {
    position: absolute;
    top: 10px;
    right: 18px;
    left: 18px;
    z-index: 2;
    width: auto;
  }

  .search-box input {
    position: absolute;
    width: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .search-box kbd {
    display: none;
  }

  .search-box:focus-within input {
    position: static;
    width: 100%;
    margin: 0 8px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-wrap {
    padding: 8px 12px 0;
  }

  .hero {
    padding: 46px 25px 22px;
    border-radius: 27px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero h1 {
    margin: 21px 0 18px;
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 27px;
  }

  .hero-cta {
    width: 100%;
  }

  .trust-row {
    gap: 12px;
    margin-top: 23px;
  }

  .hero-art {
    min-height: 430px;
    margin: 12px -12px 0;
  }

  .mock-window {
    width: 94%;
  }

  .mock-content {
    padding: 18px;
  }

  .chip-local {
    top: 20px;
    left: 1px;
  }

  .chip-local {
    padding: 9px;
  }

  .chip-local span {
    display: none;
  }

  .chip-time {
    right: 0;
    bottom: 15px;
  }

  .tools-section {
    padding: 68px 18px 64px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 23px;
  }

  .category-tabs {
    width: 100%;
  }

  .category-tabs button {
    flex: 1;
    min-width: 0;
  }

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

  .tool-card,
  .wide-card {
    grid-column: auto;
    min-height: 154px;
    padding: 21px;
  }

  .wide-card .tool-copy {
    display: block;
  }

  .wide-card .tool-copy strong {
    margin: 5px 0 8px;
  }

  .wide-card .tool-copy > span:last-child {
    max-width: 300px;
  }

  .principles {
    gap: 28px;
    padding: 54px 18px 68px;
  }

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

  .principle-grid article {
    min-height: 220px;
  }

  .principle-grid h3 {
    margin-top: 35px;
  }

  .privacy-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 12px 65px;
    padding: 34px 28px;
    border-radius: 25px;
  }

  .privacy-banner .outline-btn {
    grid-column: auto;
    width: 100%;
  }

  .privacy-banner h2 {
    font-size: 27px;
  }

  .footer-main {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .footer-main p {
    width: 100%;
  }

  .footer-privacy {
    margin-left: 0;
  }

  .tool-page-inner {
    padding: 20px 14px 65px;
  }

  .tool-page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin: 16px 0 22px;
    padding-bottom: 21px;
  }

  .tool-title-icon {
    width: 49px;
    height: 49px;
    border-radius: 14px;
  }

  .tool-title-icon svg {
    width: 25px;
    height: 25px;
  }

  .tool-title-block h1 {
    font-size: 26px;
  }

  .tool-title-block p {
    font-size: 11px;
    line-height: 1.55;
  }

  .tool-panel,
  .aside-card {
    padding: 18px;
    border-radius: 18px;
  }

  .dropzone {
    min-height: 250px;
    padding: 25px 18px;
  }

  .aside-stack {
    grid-template-columns: 1fr;
  }

  .aside-stack > .aside-card:first-child {
    grid-row: auto;
  }

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

  .image-preview {
    height: 180px;
  }

  .doc-page {
    min-height: 0;
    padding: 10mm;
    font-size: 10pt;
  }

  .dialog-card {
    padding: 33px 24px 25px;
    border-radius: 23px;
  }

  .dialog-card h2 {
    padding-right: 25px;
    font-size: 25px;
  }

  .dialog-points {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .toast {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
