:root {
  --bg: #fff7e8;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #3f3f46;
  --yellow: #ffde59;
  --pink: #ff90b3;
  --blue: #8ecbff;
  --green: #9df59a;
  --orange: #ffad5c;
  --red: #ffb4b4;
  --bw: 3px;
  --radius: 12px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(17, 17, 17, 0.13) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--bw) solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--bw) solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 6px 12px; font-weight: 700; border-radius: 8px; border: 2px solid transparent; transition: 0.15s; }
.nav a:hover { border-color: var(--ink); background: var(--paper); }
.lang { display: flex; border: var(--bw) solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.lang a { padding: 5px 11px; font-size: 13px; font-weight: 800; }
.lang a + a { border-left: 2px solid var(--ink); }
.lang a:hover { background: var(--yellow); }
.lang a.active { background: var(--ink); color: var(--yellow); }

.hero { padding: 72px 0 64px; text-align: center; }
.hero-inner { position: relative; max-width: 880px; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--ink);
}
h1 {
  margin: 26px 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}
.subtitle { color: var(--muted); font-size: clamp(16px, 2vw, 19px); font-weight: 500; max-width: 640px; margin: 0 auto; }

.sticker {
  position: absolute;
  padding: 8px 16px;
  border: var(--bw) solid var(--ink);
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow);
  pointer-events: none;
  user-select: none;
}
.s1 { top: 0; left: -40px; background: var(--pink); transform: rotate(-9deg); }
.s2 { top: 70px; right: -50px; background: var(--blue); transform: rotate(7deg); }
.s3 { top: 300px; left: -80px; background: var(--orange); transform: rotate(5deg); }

.search { display: flex; gap: 14px; margin: 40px auto 16px; }
.field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.field:focus-within { box-shadow: var(--shadow-lg); }
.field-icon { position: absolute; left: 16px; }
.field input {
  width: 100%;
  height: 60px;
  padding: 0 96px 0 50px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  outline: none;
}
.field input::placeholder { color: #8a8a8a; }
.btn-paste {
  position: absolute;
  right: 10px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}
.btn-paste:active { transform: translate(1px, 1px); }

.btn-primary, .dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary { min-width: 170px; height: 66px; padding: 0 28px; background: var(--pink); font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.btn-primary:hover, .dl:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-primary:active, .dl:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary:disabled { cursor: wait; transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(17, 17, 17, 0.25); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--muted); font-size: 14px; font-weight: 500; }

.alert {
  margin: 24px auto 0;
  padding: 14px 18px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--red);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.result {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  margin-top: 40px;
  padding: 22px;
  border: var(--bw) solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  text-align: left;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.result-cover { position: relative; aspect-ratio: 9 / 14; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.result-cover img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); font-size: 12px; font-weight: 800; }
.result-info { display: flex; flex-direction: column; min-width: 0; }
.author { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; }
.author img { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; object-fit: cover; background: var(--yellow); }
.result-title { margin: 12px 0 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.actions { display: grid; gap: 12px; margin-top: auto; }
.dl { height: 52px; padding: 0 18px; font-size: 16px; }
.dl-main { background: var(--yellow); }
.dl-alt { background: var(--paper); }
.dl-alt:nth-child(2) { background: var(--blue); }
.dl-alt:nth-child(3) { background: var(--green); }
.again { margin-top: 4px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.photos { grid-column: 1 / -1; }
.photos h3 { margin-bottom: 12px; font-size: 18px; font-weight: 900; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo { position: relative; aspect-ratio: 3 / 4; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo a { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 38px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }

.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { display: inline-block; font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.section-head p { color: var(--muted); font-weight: 500; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature, .step, .article, .tip {
  padding: 26px;
  border: var(--bw) solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.feature { transition: transform 0.15s, box-shadow 0.15s; }
.feature:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.feature:nth-child(1) { background: var(--yellow); }
.feature:nth-child(2) { background: var(--pink); }
.feature:nth-child(3) { background: var(--blue); }
.feature:nth-child(4) { background: var(--green); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: var(--bw) solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-size: 26px;
}
.feature h3, .step h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.feature p { font-size: 15px; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--paper); }
.step p { color: var(--muted); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
}
.tip { margin-top: 22px; border-style: dashed; background: var(--paper); box-shadow: none; }
.tip strong { font-weight: 900; }
.tip p { color: var(--muted); margin-top: 4px; }

.article { background: var(--paper); padding: 36px; }
.article h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.article h3 { display: inline-block; margin: 26px 0 8px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); font-size: 17px; font-weight: 900; }
.article p { color: var(--muted); }

.faq { margin-bottom: 16px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s;
}
.faq[open] summary { background: var(--yellow); border-bottom: var(--bw) solid var(--ink); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 16px 22px 20px; color: var(--muted); }

.footer { margin-top: 48px; background: var(--ink); color: var(--bg); border-top: var(--bw) solid var(--ink); }
.footer .logo-mark { box-shadow: 3px 3px 0 var(--pink); border-color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer-grid p { margin-top: 14px; max-width: 380px; font-size: 14px; opacity: 0.8; }
.footer h4 { margin-bottom: 12px; color: var(--yellow); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-grid a:not(.logo) { display: block; width: fit-content; padding: 4px 0; font-size: 15px; font-weight: 600; }
.footer-grid a:not(.logo):hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 2px solid rgba(255, 247, 232, 0.2); font-size: 13px; opacity: 0.75; }

@media (max-width: 1100px) {
  .sticker { display: none; }
}

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 44px 0 40px; }
  .search { flex-direction: column; }
  .btn-primary { width: 100%; height: 58px; }
  .result { grid-template-columns: 1fr; padding: 16px; }
  .result-cover { max-width: 240px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .article { padding: 24px; }
}
