/* mianfeippt.cn — original editorial resource library */
:root {
  --ink: #17243c; --muted: #65738a; --blue: #335bde;
  --mint: #d8f4eb; --yellow: #f2ff8a; --line: #e7ebf1;
  --page: #f8fafc; --paper: #fff; --radius: 20px;
}
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--blue);
}

button, input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  background: #fff;
  padding: 8px 16px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.2;
}

.brand-symbol {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 15px;
  font-weight: 900;
  font-size: 21px;
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: -.4px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.header-cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 10px 17px;
  background: var(--ink);
  color: white;
  border-radius: 99px;
  font-size: 13px;
}

.header-cta:hover {
  color: white;
  background: var(--blue);
}

.site-nav {
  border-top: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  min-height: 56px;
}

.nav-inner a {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 50px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 75px;
}

.hero-copy, .hero-art {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--blue);
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  line-height: 1.35;
  margin: 0;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.05em;
}

.hero h1 {
  margin-top: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-intro {
  color: #55657d;
  max-width: 660px;
  font-size: 15px;
  margin: 24px 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 750;
  font-size: 14px;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: #2245b9;
  color: white;
}

.button.subtle {
  background: #e9eef9;
  color: var(--ink);
}

.button.small {
  font-size: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  border-top: 1px solid var(--line);
  margin-top: 37px;
  padding-top: 19px;
  font-size: 12px;
  color: var(--muted);
}

.hero-facts b {
  font-size: 20px;
  color: var(--ink);
  margin-right: 4px;
}

.hero-art {
  position: relative;
  padding: 16px 0 22px 18px;
}

.hero-art-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 65px #1e3a8a25;
  transform: rotate(2deg);
}

.hero-art-frame img {
  width: 100%;
  aspect-ratio: 1.19;
  object-fit: cover;
}

.art-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 26px 22px;
  color: white;
  background: linear-gradient(transparent, #121f31e8);
}

.art-note strong {
  display: block;
  font-size: 20px;
}

.art-note span {
  font-size: 10px;
  letter-spacing: .08em;
}

.floating-square {
  position: absolute;
  z-index: 2;
  background: var(--yellow);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 25px #17243c16;
}

.floating-square.one {
  top: 0;
  right: -8px;
  transform: rotate(8deg);
}

.floating-square.two {
  bottom: 0;
  left: 0;
  background: var(--mint);
  transform: rotate(-6deg);
}

.section {
  padding-top: 75px;
  padding-bottom: 75px;
}

.section-soft {
  background: #edf2fa;
}

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

.section-heading h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin-top: 8px;
}

.section-heading p {
  max-width: 330px;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

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

.category-tile {
  position: relative;
  padding: 21px 18px;
  border-radius: 17px;
  background: white;
  border: 1px solid var(--line);
  min-height: 176px;
  transition: transform .2s;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile:nth-child(2) {
  background: #e5efff;
}

.category-tile:nth-child(3) {
  background: #e7f8f2;
}

.category-tile:nth-child(4) {
  background: #f6ecff;
}

.category-tile:nth-child(5) {
  background: #fff4e8;
}

.category-tile span {
  font-weight: 850;
  color: var(--blue);
  font-size: 11px;
}

.category-tile strong {
  display: block;
  margin-top: 21px;
  font-size: 20px;
}

.category-tile small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #61728b;
  line-height: 1.7;
}

.category-tile b {
  position: absolute;
  right: 17px;
  top: 17px;
  font-size: 18px;
}

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

.template-card {
  border: 1px solid #e6eaf1;
  background: #fff;
  border-radius: 19px;
  overflow: hidden;
  min-width: 0;
}

.template-card[hidden] {
  display: none;
}

.thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e9edf5;
}

.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.61;
  object-fit: cover;
  transition: transform .35s;
}

.thumb:hover img {
  transform: scale(1.035);
}

.file-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 10px;
  font-weight: 800;
  color: var(--ink);
  background: #f5ffdd;
  border-radius: 7px;
  font-size: 10px;
}

.template-body {
  padding: 21px;
}

.card-meta {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.template-body h3 {
  font-size: 19px;
  margin: 8px 0 8px;
}

.template-body p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  min-height: 24px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 12px;
  font-weight: 800;
}

.card-actions a:last-child {
  color: var(--blue);
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 23px;
}

.editorial-feature {
  overflow: hidden;
  border-radius: 20px;
  background: #e6f5ee;
}

.editorial-feature > img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.editorial-feature > div {
  padding: 26px;
}

.editorial-feature h3 {
  font-size: 26px;
  margin: 10px 0;
}

.editorial-feature p {
  color: var(--muted);
  font-size: 13px;
}

.editorial-list {
  display: grid;
  gap: 12px;
}

.reading-card {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 17px;
}

.reading-card h3 {
  margin: 8px 0 7px;
  font-size: 19px;
}

.reading-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 9px;
}

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

.promise {
  background: var(--ink);
  color: white;
  border-radius: 25px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.promise h2 {
  font-size: 29px;
  margin-top: 7px;
}

.promise p {
  color: #c4cddd;
  max-width: 690px;
  font-size: 13px;
}

.promise .eyebrow {
  color: var(--yellow);
}

.promise .button {
  background: var(--yellow);
  color: var(--ink);
  flex-shrink: 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 38px 0 16px;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.foot-grid strong {
  font-size: 20px;
}

.foot-grid p {
  font-size: 12px;
  color: var(--muted);
}

.foot-grid > div:last-child {
  display: flex;
  gap: 20px;
  align-items: start;
  font-size: 12px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.inner-hero {
  padding-top: 64px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  margin: 12px 0;
  font-size: clamp(30px, 3.7vw, 48px);
}

.inner-hero p {
  max-width: 770px;
  color: var(--muted);
}

.search-label {
  display: block;
  margin-top: 25px;
  font-size: 12px;
  font-weight: 800;
}

.search {
  width: min(100%, 480px);
  border: 1px solid #cad3e4;
  border-radius: 12px;
  padding: 12px 17px;
  margin-top: 8px;
  background: white;
}

.no-results {
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 60px;
  padding-top: 47px;
  padding-bottom: 95px;
}

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

.detail-main h1 {
  margin: 15px 0 18px;
  font-size: clamp(31px, 3.3vw, 44px);
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
}

.detail-lead {
  font-size: 17px;
  color: #58667b;
  margin-bottom: 30px;
}

.detail-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
}

.download-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #eaf4ef;
  border-radius: 18px;
  padding: 22px;
  margin-top: 24px;
}

.download-panel strong {
  font-size: 19px;
}

.download-panel p {
  font-size: 12px;
  margin: 4px 0 0;
  color: #526374;
}

.article-section {
  border-top: 1px solid var(--line);
  margin-top: 33px;
  padding-top: 29px;
}

.article-section h2 {
  font-size: 25px;
  margin-bottom: 16px;
}

.article-section h3 {
  font-size: 19px;
  margin-top: 20px;
}

.article-section p, .article-intro, .article-section li {
  color: #45556d;
  line-height: 2;
  font-size: 15px;
}

.steps {
  padding-left: 23px;
}

.steps li {
  padding-bottom: 11px;
}

.article-section a, .related a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-aside {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.detail-aside h2 {
  font-size: 19px;
  margin-bottom: 16px;
}

.detail-aside > a:not(.button) {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.aside-note {
  background: #eff4fb;
  border-radius: 14px;
  padding: 16px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}

.aside-heading {
  margin-top: 34px;
}

.editorial-heading {
  margin-top: 54px;
}

.checklist {
  padding-left: 23px;
}

.prose-width {
  max-width: 850px;
}

.prose-width h2 {
  margin-top: 24px;
}

.prose-width p {
  color: var(--muted);
}

.prose-width a {
  color: var(--blue);
}

@media (max-width: 1000px) {
  .header-note {
    display: none;
  }

  .hero {
    gap: 22px;
  }

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

  .detail-layout {
    gap: 25px;
    grid-template-columns: minmax(0,1fr) 220px;
  }

}
@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, 620px);
  }

  .topbar {
    min-height: 78px;
  }

  .header-cta {
    display: none;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .nav-inner a {
    padding: 7px 3px;
    text-align: center;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-art {
    padding-left: 10px;
    max-width: 560px;
  }

  .hero-art-frame {
    transform: rotate(1deg);
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .promise {
    flex-direction: column;
    align-items: start;
    padding: 26px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .detail-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
    position: static;
  }

  .download-panel {
    flex-wrap: wrap;
  }

}
@media (max-width: 460px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .nav-inner {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-facts {
    gap: 10px 17px;
  }

  .hero-facts b {
    font-size: 17px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }

  .category-tile {
    min-height: 165px;
    padding: 14px;
  }

  .category-tile strong {
    font-size: 17px;
  }

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

  .editorial-feature > div {
    padding: 19px;
  }

  .foot-grid, .foot-grid > div:last-child {
    flex-direction: column;
    gap: 10px;
  }

  .detail-main h1 {
    font-size: 30px;
  }

  .article-section h2 {
    font-size: 23px;
  }

}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .category-tile, .thumb img {
    transition: none;
  }

}

/* Layout resilience: predictable sizing for all breakpoints. */
html { overflow-x: clip; }
body { min-width: 0; }
main, section, article, .container, .template-body, .hero-copy, .hero-art { min-width: 0; }
.hero-copy h1, .detail-main h1 { text-wrap: balance; }
.template-card, .reading-card { display: flex; flex-direction: column; }
.template-body { display: flex; flex: 1; flex-direction: column; }
.card-actions { margin-top: auto; padding-top: 13px; }
.template-body p { margin-bottom: 16px; }
.category-tile { overflow-wrap: anywhere; }
.hero-art-frame { transform: none; }
.floating-square.one { right: 0; }
@media (max-width: 760px) {
  .hero-art { padding-right: 8px; }
  .hero-art-frame { transform: none; }
  .nav-inner a { min-width: 0; overflow-wrap: anywhere; }
  .section-heading h2 { text-wrap: balance; }
  .site-footer .foot-grid > div { min-width: 0; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: clamp(27px, 8vw, 34px); }
  .hero-art { padding-left: 0; padding-right: 0; }
  .category-tile { min-height: 180px; }
  .category-tile strong { margin-top: 17px; }
  .card-actions { flex-wrap: wrap; }
  .download-panel .button { width: 100%; }
}
