/* 拼豆豆图纸网 · 全站样式 */
:root {
  --brand: #E8635A;
  --brand-dark: #C94C45;
  --brand-soft: #FCEDEA;
  --ink: #24262B;
  --muted: #71757E;
  --line: #E9E5DF;
  --bg: #FBFAF8;
  --card: #FFFFFF;
  --green: #5FA88A;
  --blue: #7FB3D5;
  --yellow: #F2C879;
  --shadow: 0 18px 45px rgba(36, 38, 43, .07);
  --shadow-sm: 0 6px 18px rgba(36, 38, 43, .05);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 12px; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
::selection { background: var(--brand-soft); color: var(--brand-dark); }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 56px 0; }
.section-tight { padding: 24px 0 40px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: 10px 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(232, 99, 90, .22); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(232, 99, 90, .28); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: #F5F3EF; color: var(--ink); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

/* ---------- Top banner & header ---------- */
.topbar { background: #F7EFEB; border-bottom: 1px solid #F0E2DC; font-size: 12.5px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-text { display: flex; align-items: center; gap: 9px; color: #7A5F59; }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(232, 99, 90, .14); }
.topbar-link { color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
.topbar-link:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; }
.brand-mark span { border-radius: 50%; }
.brand-mark span:nth-child(1) { background: var(--brand); }
.brand-mark span:nth-child(2) { background: var(--yellow); }
.brand-mark span:nth-child(3) { background: var(--green); }
.brand-mark span:nth-child(4) { background: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: -.03em; }
.brand-text small { font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; color: #545862; padding: 24px 0; position: relative; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand-dark); }
.main-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 2px; background: var(--brand); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Floating global download CTA ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff; padding: 11px 18px 11px 12px;
  border-radius: 999px; box-shadow: 0 14px 32px rgba(232, 99, 90, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(232, 99, 90, .4); }
.float-cta-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.float-cta-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-cta-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; font-weight: 700; }
.float-cta-text small { font-size: 10px; font-weight: 500; opacity: .8; margin-top: 2px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 85% 20%, #FCEDEA 0, transparent 42%), linear-gradient(135deg, #FFFCF9 0%, #F7FAF7 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 72px 0 78px; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); margin: 18px 0 20px; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 28px; overflow-wrap: break-word; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; letter-spacing: -.04em; }
.hero-stats span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.hero-visual { position: relative; height: 420px; }
.hero-tile { position: absolute; width: 148px; height: 148px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hero-tile img { width: 100%; height: 100%; border-radius: 10px; }
.tile-a { top: 6px; left: 44px; transform: rotate(-8deg); z-index: 3; }
.tile-b { top: 34px; right: 26px; transform: rotate(7deg); z-index: 2; }
.tile-c { top: 168px; left: 2px; transform: rotate(5deg); z-index: 4; }
.tile-d { top: 196px; right: 54px; transform: rotate(-6deg); z-index: 3; }
.tile-e { bottom: 4px; left: 152px; transform: rotate(3deg); z-index: 5; }
.hero-note { position: absolute; top: 126px; left: 176px; z-index: 6; background: var(--ink); color: #fff; padding: 9px 15px; border-radius: 12px; display: flex; flex-direction: column; line-height: 1.25; box-shadow: var(--shadow); transform: rotate(-4deg); }
.hero-note span { font-weight: 800; font-size: 16px; }
.hero-note small { font-size: 10px; opacity: .75; }

/* ---------- Feature strip ---------- */
.feature-strip { border-bottom: 1px solid var(--line); background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.feature-item div { display: flex; flex-direction: column; line-height: 1.4; }
.feature-item strong { font-size: 14px; }
.feature-item small { font-size: 12px; color: var(--muted); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: 27px; margin-top: 8px; }
.section-more { color: var(--brand-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card {
  --c-bg: #F7F4F0; --c-tint: #EDE4DC; --c-accent: #B98A6B;
  position: relative; display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 10px 10px 16px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.category-card.cat-dongwu  { --c-bg: #EAF2EE; --c-tint: #D6E8DE; --c-accent: #4F9277; }
.category-card.cat-shuiguo { --c-bg: #FBEDE8; --c-tint: #F6DCD2; --c-accent: #D1735F; }
.category-card.cat-katong  { --c-bg: #F1EDF8; --c-tint: #E4DCF2; --c-accent: #8A76B8; }
.category-card.cat-meishi  { --c-bg: #FBF1E3; --c-tint: #F6E4C7; --c-accent: #C08A3E; }
.category-card.cat-zhiwu   { --c-bg: #EAF3F0; --c-tint: #D8EAE3; --c-accent: #5A9C86; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-tint); }
.category-art {
  position: relative; display: block; aspect-ratio: 1.25/1; border-radius: 12px;
  background: var(--c-bg); overflow: hidden;
}
.category-art::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -46px; top: -54px;
  border-radius: 50%; background: var(--c-tint); opacity: .55;
}
.category-art img {
  position: relative; z-index: 1; width: 74%; height: 82%; object-fit: contain;
  margin: 9% auto 0; filter: drop-shadow(0 8px 14px rgba(36,38,43,.12));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.category-card:hover .category-art img { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.category-badge {
  position: absolute; z-index: 2; left: 10px; top: 10px;
  background: rgba(255,255,255,.94); color: var(--c-accent);
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(36,38,43,.06);
}
.category-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 6px 0; }
.category-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.category-view { color: var(--c-accent); font-size: 11.5px; font-weight: 700; opacity: .85; white-space: nowrap; }
.category-view span { display: inline-block; transition: transform .25s ease; }
.category-card:hover .category-view span { transform: translate(2px, -2px); }

/* ---------- Pattern cards ---------- */
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pattern-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pattern-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #DCD6CE; }
.pattern-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #F7F4EF; }
.pattern-thumb img { width: 100%; height: 100%; object-fit: cover; padding: 16px; transition: transform .4s ease; }
.pattern-card:hover .pattern-thumb img { transform: scale(1.05); }
.card-badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--brand-dark); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.pattern-body { padding: 16px 18px 18px; }
.pattern-body h3 { font-size: 16px; }
.pattern-body h3 a:hover { color: var(--brand-dark); }
.pattern-excerpt { color: var(--muted); font-size: 12.5px; line-height: 1.65; margin: 8px 0 12px; min-height: 41px; }
.pattern-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.pattern-meta li { font-size: 11px; color: #666A73; background: #F5F3EF; padding: 3px 9px; border-radius: 6px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: #F7F4EF; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; padding: 20px; transition: transform .4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 17px 18px 19px; }
.article-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.article-cat { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; padding: 3px 9px; border-radius: 6px; font-size: 11px; }
.article-body h3 { font-size: 16px; margin: 11px 0 8px; }
.article-body h3 a:hover { color: var(--brand-dark); }
.article-body p { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.read-more { color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.read-more:hover { text-decoration: underline; }

/* ---------- SEO block ---------- */
.seo-block { padding-top: 8px; }
.seo-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; }
.seo-card h2 { font-size: 21px; margin-bottom: 14px; }
.seo-card p { color: #5F636C; font-size: 14px; }
.seo-card strong { color: var(--ink); }
.seo-card a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.inline-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--brand-dark); font-weight: 700; font-size: 13px; }
.inline-cta:hover { gap: 13px; }

/* ---------- Footer ---------- */
.footer-cta { background: linear-gradient(115deg, #FCEDEA 0%, #F4F7F4 100%); border-top: 1px solid var(--line); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; }
.footer-cta h2 { font-size: 22px; margin-bottom: 5px; }
.footer-cta p { color: var(--muted); font-size: 13px; margin: 0; }
.site-footer { background: #F5F3EF; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; max-width: 280px; margin-top: 15px; }
.footer-col h3 { font-size: 13px; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #666A73; font-size: 12.5px; }
.footer-col a:hover { color: var(--brand-dark); }
.footer-col span { color: #9A9DA4; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #E7E3DC; padding: 18px 0 24px; color: #92959C; font-size: 11.5px; }
.footer-bottom p { margin: 0; }

/* ---------- Breadcrumb & page head ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--brand-dark); }
.crumb-sep { color: #C9C5BE; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.page-head h1 { font-size: 34px; margin: 10px 0 8px; }
.page-head p { color: var(--muted); font-size: 14px; margin: 0; }
.page-head strong { color: var(--brand-dark); }

/* ---------- Library layout ---------- */
.library-layout { display: grid; grid-template-columns: 232px 1fr; gap: 30px; align-items: start; }
.library-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.search-box label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.search-field { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font-size: 13px; background: transparent; }
.search-field button { width: 42px; border: 0; background: var(--brand); color: #fff; font-size: 20px; cursor: pointer; }
.side-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.side-block h2 { font-size: 13px; margin-bottom: 12px; }
.side-list { display: flex; flex-direction: column; gap: 3px; }
.side-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: #5F636C; }
.side-list a:hover { background: #F7F5F1; }
.side-list a.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.side-list span { color: #A0A3A9; font-size: 11px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { font-size: 11px; color: #666A73; background: #F5F3EF; padding: 4px 10px; border-radius: 999px; }
.tag-cloud a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.side-cta { background: var(--brand-soft); border: 1px solid #F6DCD6; border-radius: 14px; padding: 18px; }
.side-cta strong { font-size: 14px; }
.side-cta p { color: #8A6A64; font-size: 12px; margin: 6px 0 10px; }
.side-cta a { color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.pattern-grid-library { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.result-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 70px 20px; }
.empty-state h1, .empty-state h2 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 32px; flex-wrap: wrap; }
.page-link { min-width: 36px; height: 36px; padding: 0 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: #5F636C; }
.page-link:hover { border-color: var(--brand); color: var(--brand-dark); }
.page-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------- Pattern detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.detail-image-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.detail-image { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; cursor: zoom-in; }
.detail-image-tag { position: absolute; right: 16px; top: 16px; background: var(--ink); color: #fff; font-size: 11px; padding: 5px 11px; border-radius: 999px; }
.image-hint { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.detail-info h1 { font-size: 34px; margin: 12px 0 12px; }
.detail-lead { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.spec-grid div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.spec-grid span { font-size: 11px; color: var(--muted); }
.spec-grid strong { font-size: 15px; margin-top: 2px; }
.download-box { background: #fff; border: 1px solid #F1D9D3; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.download-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.download-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.download-box-head div { display: flex; flex-direction: column; line-height: 1.35; }
.download-box-head small { font-size: 11px; color: var(--muted); }
.code-row { display: flex; align-items: center; gap: 10px; background: #F7F5F1; border-radius: 9px; padding: 8px 12px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.code-row code { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .12em; margin-right: auto; }
.copy-btn { border: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font-size: 11px; cursor: pointer; color: var(--brand-dark); }
.copy-btn:hover { border-color: var(--brand); }
.download-note { font-size: 11px; color: var(--muted); margin: 11px 0 0; text-align: center; }
.download-note a { color: var(--brand-dark); text-decoration: underline; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 11.5px; color: #666A73; background: #F2F0EC; padding: 5px 11px; border-radius: 999px; }
.tag:hover { background: var(--brand-soft); color: var(--brand-dark); }
.detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.prose-card h2 { font-size: 19px; margin-bottom: 14px; }
.prose-card p { color: #5F636C; font-size: 14px; }
.tips-list { counter-reset: tip; display: flex; flex-direction: column; gap: 11px; }
.tips-list li { position: relative; padding-left: 32px; font-size: 13.5px; color: #5F636C; }
.tips-list li::before { counter-increment: tip; content: counter(tip); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tips-list strong { color: var(--ink); }

/* ---------- News ---------- */
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.news-filters a { font-size: 12.5px; color: #666A73; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }
.news-filters a:hover, .news-filters a.is-active { background: var(--brand-soft); border-color: #F4D8D2; color: var(--brand-dark); font-weight: 700; }
.news-filters span { color: #A0A3A9; font-size: 11px; }
.news-feature { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 24px; transition: box-shadow .2s ease, transform .2s ease; }
.news-feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-feature-img { background: #F7F4EF; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; padding: 32px; min-height: 220px; }
.news-feature-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.news-feature-body h2 { font-size: 24px; margin: 12px 0; }
.news-feature-body p { color: var(--muted); font-size: 13.5px; }
.news-feature-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.news-feature-foot span { color: var(--brand-dark); font-weight: 700; }
.article-grid-news { grid-template-columns: repeat(3, 1fr); }
.news-bottom-cta { margin-top: 36px; background: var(--brand-soft); border: 1px solid #F5DBD4; border-radius: 16px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.news-bottom-cta strong { font-size: 16px; }
.news-bottom-cta p { font-size: 12.5px; color: #8A6A64; margin: 4px 0 0; }

/* ---------- Article detail ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 272px; gap: 42px; align-items: start; }
.article-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 38px; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 32px; margin: 14px 0 12px; }
.article-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.article-hero { border-radius: 14px; overflow: hidden; background: #F7F4EF; margin-bottom: 28px; }
.article-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; padding: 40px; }
.prose { font-size: 15px; color: #4F535C; }
.prose h2 { font-size: 21px; margin: 30px 0 12px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ol { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.article-inline-cta { margin-top: 34px; background: var(--brand-soft); border-radius: 14px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.article-inline-cta strong { font-size: 15px; }
.article-inline-cta p { font-size: 12px; color: #8A6A64; margin: 4px 0 0; }
.article-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.mini-pattern { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; color: #5F636C; }
.mini-pattern img { width: 44px; height: 44px; border-radius: 9px; background: #F7F4EF; padding: 3px; flex-shrink: 0; }
.mini-pattern:hover { color: var(--brand-dark); }
.side-more { display: block; margin-top: 12px; font-size: 12px; color: var(--brand-dark); font-weight: 700; }
.side-link { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0EDE8; font-size: 12.5px; color: #5F636C; }
.side-link:last-child { border: 0; }
.side-link:hover { color: var(--brand-dark); }

/* ---------- About ---------- */
.about-head { align-items: center; }
.about-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.about-hero-img { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.about-hero-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.about-layout { display: grid; grid-template-columns: 1fr 272px; gap: 42px; align-items: start; }
.about-prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 38px 32px; }
.about-prose section { padding: 18px 0; border-bottom: 1px solid #F0EDE8; }
.about-prose section:last-child { border: 0; }
.about-prose h2 { font-size: 21px; margin-bottom: 14px; }
.about-prose p, .about-prose li { color: #5F636C; font-size: 14px; }
.about-prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.about-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.about-side .side-cta a { display: inline-block; margin-top: 4px; }
.faq-section { margin-top: 46px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.faq-item[open] summary::before { content: "−"; }
.faq-item p { color: var(--muted); font-size: 13px; margin: 12px 0 2px 22px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(36,38,43,.82); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { background: #fff; border-radius: 16px; padding: 18px; width: min(760px, 92vw); max-height: 90vh; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pattern-grid, .article-grid, .article-grid-news, .pattern-grid-library { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 24px; }
  .hero-visual { transform: scale(.85); transform-origin: center; }
  .detail-layout { gap: 30px; }
  .library-layout { grid-template-columns: 200px 1fr; gap: 20px; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; flex-direction: column; align-items: stretch; gap: 0; margin: 0; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 4px; }
  .main-nav a.is-active::after { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 54px 0 40px; }
  .hero-visual { height: 340px; transform: scale(.8); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .detail-content, .article-layout, .about-layout { grid-template-columns: 1fr; }
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .article-sidebar, .about-side { position: static; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-img img { min-height: 0; height: 220px; }
  .faq-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topbar-text { font-size: 11px; }
  .section { padding: 40px 0; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 22px; }
  .hero-visual { transform: scale(.62); height: 270px; margin: -30px 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid, .article-grid, .article-grid-news, .pattern-grid-library { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-item small { display: none; }
  .section-head h2, .page-head h1 { font-size: 25px; }
  .page-head { flex-direction: column; align-items: start; }
  .detail-info h1, .article-header h1 { font-size: 27px; }
  .spec-grid { grid-template-columns: 1fr; }
  .article-main, .seo-card, .about-prose { padding: 24px 20px; }
  .footer-cta-inner { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .library-sidebar { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: repeat(2, 1fr); }
  .float-cta { right: 14px; bottom: 14px; padding: 9px 14px 9px 9px; }
  .float-cta-text { font-size: 12px; }
  .float-cta-text small { display: none; }
  .news-bottom-cta, .article-inline-cta { flex-direction: column; align-items: start; }
}
