/* ==========================================================================
   煜苍官网 v2 · 子页与后台样式
   依赖 style.css 的设计变量（brand 蓝阶 / 圆角 / 阴影 / 字体）
   1. 子页页头      2. 通用状态（空态/骨架/占位封面）
   3. 博客列表      4. 文章详情      5. 白皮书列表
   6. 后台（登录/框架/表单/表格）   7. 响应式
   ========================================================================== */

/* ---------------------------------------------------- 1. 子页页头 */
.page-head {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hairline);
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 20em;
}
.page-head .page-lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 16px;
  color: var(--body-soft);
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--primary); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--muted-2); }

/* ------------------------------------------- 2. 通用状态与占位 */
.cover-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--parchment);
}
.cover-frame img {
  width: 100%;
  aspect-ratio: 352 / 200;
  object-fit: cover;
  transition: transform .5s;
}
.cover-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 352 / 200;
  padding: 20px;
  background: linear-gradient(145deg, #eef3fb 0%, #dde7f7 100%);
  color: var(--primary-mid);
  text-align: center;
}
.cover-ph span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary);
  max-width: 24ch;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: var(--pearl);
  text-align: center;
  color: var(--muted);
}

.skeleton-card {
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
}
.sk-cover {
  width: 100%;
  aspect-ratio: 352 / 200;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 50%, #eef1f7 75%);
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
}
.sk-line {
  height: 12px;
  margin-top: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 50%, #eef1f7 75%);
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
}
.sk-40 { width: 40%; }
.sk-60 { width: 60%; }
.sk-90 { width: 90%; }
@keyframes sk {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------------------------------------------------- 3. 博客列表 */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: border-color .18s, color .18s, background-color .18s;
}
.chip:hover { border-color: var(--primary-mid); color: var(--primary); }
.chip.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.search-field {
  position: relative;
  flex: 0 0 auto;
  width: min(320px, 100%);
}
.search-field input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search-field input:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(46, 111, 192, .12);
}
.search-field svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.post-grid .post-card { height: 100%; }
.post-card .post-cover img { aspect-ratio: 352 / 200; }
.cover-link { display: block; width: 100%; }
.post-card:hover .cover-frame img { transform: scale(1.03); }
.post-card .card-link { margin-top: auto; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--primary); }
.post-card .post-excerpt { flex: 1 1 auto; }

.result-count {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------- 4. 文章详情 */
.article-head { padding: 44px 0 0; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-meta .post-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  font-size: 12px;
}
.article-head h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.34;
  letter-spacing: -.01em;
  max-width: 22em;
}
.article-lead {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--primary-mid);
  font-size: 16px;
  color: var(--body-soft);
  max-width: 62ch;
}
.article-cover {
  margin: 36px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--parchment);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-wrap { padding: 52px 0 80px; }
.article-col { max-width: 800px; margin-inline: auto; }
.article {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--body);
}
.article > * + * { margin-top: 22px; }
.article h2 {
  margin-top: 46px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
}
.article h3 { margin-top: 34px; font-size: 19px; color: var(--ink); }
.article h4 { margin-top: 26px; font-size: 17px; color: var(--ink); }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 24px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-top: 10px; }
.article li::marker { color: var(--primary-mid); }
.article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--primary-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 16px;
}
.article blockquote p + p { margin-top: 12px; }
.article code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--parchment);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--primary-dark);
}
.article pre {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #d6e1f5;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
}
.article pre code { padding: 0; background: none; color: inherit; }
.article img { border-radius: var(--radius-sm); }
.article hr { height: 1px; background: var(--divider); margin: 40px 0; }

.article-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: #fff;
}
.article-cta h3 { color: #fff; font-size: 19px; }
.article-cta p { margin-top: 10px; color: var(--on-dark-2); font-size: 14px; }
.article-cta .btn { margin-top: 20px; }

/* 上下篇 */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.article-nav a {
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.article-nav a:hover { border-color: #d3dcea; box-shadow: var(--shadow-card); }
.article-nav span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-nav b { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.6; }

/* ---------------------------------------------------- 5. 白皮书列表 */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 26px;
}
.wp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.wp-card:hover {
  transform: translateY(-2px);
  border-color: #d3dcea;
  box-shadow: var(--shadow-card);
}
/* 白皮书预览大多是 A4 竖版封面，用同比例 + contain，保证整页可见、不被裁切 */
.wp-card .cover-frame {
  aspect-ratio: 1 / 1.414;
  background: var(--parchment);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.wp-card .cover-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform .5s;
}
.wp-card:hover .cover-frame img { transform: scale(1.035); }
.wp-card .cover-ph { aspect-ratio: 1 / 1.414; }
.wp-card h3 { font-size: 18px; line-height: 1.55; }
.wp-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
}
.wp-desc {
  font-size: 14px;
  line-height: 1.86;
  color: var(--body-soft);
  flex: 1 1 auto;
}
.wp-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.wp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}
.wp-actions .btn { flex: 1 1 auto; }
.wp-nofile {
  flex: 1 1 auto;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--parchment);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.wp-stats { margin-top: 34px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------- 6. 后台 */
.admin-body { background: var(--parchment); min-height: 100vh; }

.admin-shell { padding: 40px 0 80px; }

.admin-login {
  max-width: 420px;
  margin: 8vh auto 0;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.admin-login h1 { font-size: 24px; }
.admin-login p { margin-top: 12px; font-size: 14px; color: var(--body-soft); }
.admin-login form { margin-top: 26px; }

.field { display: block; margin-bottom: 18px; }
.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; font-family: inherit; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 111, 192, .12);
}
.field .hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.admin-topbar h1 { font-size: 24px; }
.admin-topbar .admin-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.admin-top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--hairline);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tab {
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.tab:hover { color: var(--primary); }
.tab.is-on { background: var(--primary); color: #fff; }

.panel { display: none; }
.panel.is-on { display: block; }

.admin-card {
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
}
.admin-card + .admin-card { margin-top: 24px; }
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-card-head h2 { font-size: 18px; }
.admin-card-head .muted { font-size: 13px; color: var(--muted); }

.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.admin-row:hover { border-color: #d3dcea; box-shadow: var(--shadow-card); }
.admin-thumb {
  flex: 0 0 auto;
  width: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--parchment);
}
.admin-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--parchment);
}
.admin-thumb .cover-ph { aspect-ratio: 1 / 1; padding: 8px; gap: 4px; }
.admin-thumb .cover-ph span { font-size: 10px; max-width: 100%; }
.admin-thumb .cover-ph svg { width: 20px; height: 20px; }
.admin-row-main { flex: 1 1 auto; min-width: 0; }
.admin-row-main h3 {
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.pill-on { background: #e7f6ed; color: #1d7a45; }
.pill-off { background: #fdecec; color: #b4342f; }
.pill-warn { background: var(--accent-soft); color: var(--accent-ink); }
.pill-mute { background: var(--parchment); color: var(--muted); }

.btn-xs { padding: 8px 15px; font-size: 13px; }
.btn-line {
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px #d6deeb;
}
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.btn-danger { background: #fff; color: #c0392b; box-shadow: inset 0 0 0 1px #f0c9c4; }
.btn-danger:hover { background: #fdf3f2; box-shadow: inset 0 0 0 1px #c0392b; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.admin-empty {
  padding: 44px 20px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--pearl);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* 编辑抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 52, .45);
  backdrop-filter: blur(2px);
}
.drawer-panel {
  position: relative;
  width: min(720px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  box-shadow: -18px 0 50px -30px rgba(11, 24, 52, .5);
  animation: drawer-in .26s cubic-bezier(.22, .61, .36, 1);
}
@keyframes drawer-in {
  from { transform: translateX(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.drawer-head h2 { font-size: 20px; }
.drawer-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary-mid); color: var(--primary); }
.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--pearl);
}
.upload-row .file-meta { font-size: 13px; color: var(--body-soft); flex: 1 1 auto; min-width: 0; }
.upload-row .file-meta b { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-input { display: none; }

.cover-preview {
  margin-top: 12px;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.cover-preview img { width: 100%; aspect-ratio: 352 / 200; object-fit: cover; }

.md-hint {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.md-hint code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--parchment);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------------------------------------------- 7. 响应式 */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .page-head { padding: 40px 0 32px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-field { width: 100%; }
  .article-wrap { padding: 36px 0 56px; }
  .article { font-size: 16px; }
  .article h2 { font-size: 21px; margin-top: 36px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .drawer-panel { padding: 24px 20px; }
  .admin-row { flex-wrap: wrap; }
  .admin-thumb { width: 100%; max-width: 180px; }
  .admin-row-actions { width: 100%; }
  .admin-row-actions .btn { flex: 1 1 auto; }
  .admin-card { padding: 20px; }
}

/* ==========================================================================
   8. 工具详情（产品图列表）
   两个主工具用「左图右文」的行式列表；图片统一放进等高容器里 contain，
   所以两张图原始比例不同（CRM 2.4:1 / 工作台 1.3:1）也不会被裁切
   ========================================================================== */
.tool-list { display: grid; gap: 30px; }

.tool-item {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
/* 偶数条左右对调，形成节奏 */
.tool-item:nth-child(even) .tool-shot { order: 2; }

.tool-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 304px;
  padding: 16px;
  border-radius: 14px;
  background: var(--parchment);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.tool-shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 36px -22px rgba(11, 24, 52, .5);
}

.tool-body { min-width: 0; }
.tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tool-head h3 { font-size: 23px; line-height: 1.4; }
.tool-tagline {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--primary-dark);
}
.tool-desc {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--body-soft);
}
.tool-feats { margin-top: 18px; display: grid; gap: 9px; }
.tool-feats li {
  position: relative;
  padding-left: 21px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body);
}
.tool-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .7em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary-mid);
}
.tool-feats li b { color: var(--ink); font-weight: 600; }

.tool-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tool-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}
.tool-note code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--parchment);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------------------------------------------- 企微联系区块 */
.contact-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.qr-box {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box .qr-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
}
.contact-block h3 { font-size: 20px; line-height: 1.45; }
.contact-block .contact-lead {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--body-soft);
  max-width: 52ch;
}
.contact-lines { margin-top: 20px; display: grid; gap: 10px; }
.contact-lines li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  flex-wrap: wrap;
}
.contact-lines .k {
  flex: 0 0 auto;
  min-width: 68px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.contact-lines a { color: var(--primary); font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .tool-item { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tool-item:nth-child(even) .tool-shot { order: 0; }
  .tool-shot { height: 260px; }
}

@media (max-width: 760px) {
  .tool-item { padding: 20px; }
  .tool-shot { height: 200px; padding: 12px; }
  .tool-head h3 { font-size: 20px; }
  .contact-block { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px; justify-items: center; text-align: center; }
  .contact-block .contact-lead { max-width: none; }
  .contact-lines li { justify-content: center; }
  .qr-box { width: 180px; height: 180px; }
}
