:root {
  --more-bg-warm: #f8f2eb;
  --more-bg-cool: #e4f2ff;
  --more-surface: rgba(255, 255, 255, 0.92);
  --more-card: rgba(255, 255, 255, 0.95);
  --more-line: rgba(30, 42, 62, 0.08);
  --more-ink: #1d2a3e;
  --more-muted: #687589;
  --more-accent: #0e8b82;
  --more-accent-deep: #0c6e67;
  --more-accent-soft: #dff6f2;
  --more-shadow-lg: 0 28px 80px rgba(102, 136, 177, 0.18);
  --more-shadow-md: 0 20px 48px rgba(102, 136, 177, 0.14);
  --more-shadow-sm: 0 12px 28px rgba(102, 136, 177, 0.1);
  --more-radius-xl: 30px;
  --more-radius-lg: 24px;
  --more-radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.more-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--more-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 28%),
    radial-gradient(circle at top right, rgba(129, 214, 208, 0.22), transparent 20%),
    linear-gradient(110deg, var(--more-bg-warm) 0%, #f7f6f2 30%, var(--more-bg-cool) 100%);
}

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

button {
  font: inherit;
}

.more-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.hero-surface {
  padding: 8px 0 0;
}

.tool-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--more-shadow-md);
  backdrop-filter: blur(18px);
}

.tool-filter-btn {
  border: 0;
  border-radius: 18px;
  padding: 12px 20px;
  background: transparent;
  color: var(--more-ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tool-filter-btn:hover {
  transform: translateY(-1px);
}

.tool-filter-btn.is-active {
  background: linear-gradient(135deg, var(--more-accent-deep), var(--more-accent));
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 139, 130, 0.28);
}

.tool-filter-jump {
  margin-left: auto;
  background: rgba(14, 139, 130, 0.08);
  color: var(--more-accent-deep);
}

.tool-filter-jump::after {
  content: "↓";
  margin-left: 8px;
}

.hero-layout {
  padding: 14px 4px 8px;
}

.hero-copy {
  max-width: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding-top: 8px;
}

.grid-loading,
.grid-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border-radius: var(--more-radius-lg);
  text-align: center;
  color: var(--more-muted);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--more-shadow-sm);
}

.tool-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  background: var(--more-card);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--more-shadow-sm);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tool-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--more-shadow-md);
  border-color: rgba(14, 139, 130, 0.18);
}

.tool-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 16px 12px;
}

.tool-card-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-title-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.tool-title-icons.is-multi {
  gap: 7px;
}

.tool-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.tool-title-icon.is-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
}

.tool-title-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.tool-title-icon.is-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-title-icons.is-multi .tool-title-icon img {
  width: 29px;
  height: 29px;
}

.tool-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.tool-card-desc {
  margin: 5px 0 0;
  color: var(--more-muted);
  font-size: 14px;
  line-height: 1.48;
}

.tool-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-footer.is-arrow-only {
  justify-content: flex-end;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--more-accent-soft);
  color: var(--more-accent);
  font-size: 13px;
  font-weight: 700;
}

.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(14, 139, 130, 0.08);
  color: var(--more-accent);
  font-size: 20px;
  line-height: 1;
}

.quick-entry-surface {
  scroll-margin-top: 24px;
  margin-top: 38px;
  padding: 28px 28px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--more-shadow-lg);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
}

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

.qr-card {
  display: flex;
  flex-direction: column;
  min-height: 302px;
  padding: 16px;
  border-radius: 22px;
  background: var(--more-card);
  border: 1px solid rgba(30, 42, 62, 0.08);
  box-shadow: 0 14px 28px rgba(94, 116, 150, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 139, 130, 0.18);
  box-shadow: 0 18px 34px rgba(94, 116, 150, 0.12);
}

.qr-code-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 2px dashed rgba(157, 171, 193, 0.6);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.82), rgba(255, 255, 255, 0.98));
  cursor: zoom-in;
}

.qr-code-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(14, 139, 130, 0.08), rgba(14, 139, 130, 0.08)) center / 44% 12px no-repeat,
    linear-gradient(90deg, rgba(21, 36, 57, 0.08), rgba(21, 36, 57, 0.08)) center 62% / 58% 10px no-repeat,
    linear-gradient(135deg, rgba(224, 240, 250, 0.7), rgba(255, 255, 255, 0.98));
}

.qr-placeholder span {
  margin-top: 96px;
  color: var(--more-muted);
  font-size: 14px;
  font-weight: 600;
}

.qr-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 4px 0;
}

.qr-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.qr-card-meta {
  margin-top: 8px;
  color: #8b97aa;
  font-size: 13px;
  font-weight: 600;
}

.qr-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.qr-preview-modal.is-visible {
  display: block;
}

.qr-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.qr-preview-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 460px);
  padding: 22px 22px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
}

.qr-preview-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-preview-title {
  margin: 0 36px 16px 0;
  font-size: 22px;
  line-height: 1.2;
}

.qr-preview-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.qr-preview-name {
  margin: 14px 0 0;
  color: var(--more-muted);
  font-size: 15px;
}

.more-footer {
  padding: 8px 0 34px;
}

.more-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  color: #354258;
  font-size: 17px;
  font-weight: 600;
}

.footer-back-home {
  color: var(--more-accent);
  font-weight: 700;
}

.more-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(21, 36, 57, 0.88);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.more-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .more-shell {
    width: min(100% - 24px, 1220px);
  }

  .hero-layout {
    padding-top: 18px;
  }

  .section-heading {
    flex-direction: column;
  }

  .tool-card-link {
    border-radius: 20px;
  }
}

@media (max-width: 680px) {
  .more-shell {
    padding-top: 18px;
  }

  .tool-filters {
    gap: 10px;
    padding: 12px;
  }

  .tool-filter-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .tool-filter-jump {
    margin-left: 0;
  }

  .hero-title {
    font-size: 28px;
  }

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

  .tool-card-link {
    min-height: 0;
  }

  .tool-card-body {
    padding: 15px 16px 13px;
  }

  .tool-card-title {
    font-size: 18px;
  }

  .tool-card-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .quick-entry-surface {
    margin-top: 42px;
    padding: 22px 16px 18px;
  }
  .more-footer-inner {
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
  }
}
