:root {
  --brand: #087f8c;
  --brand-dark: #075b66;
  --brand-soft: #e8f7f6;
  --blue: #2563eb;
  --ink: #172b35;
  --muted: #617680;
  --line: #dbe7eb;
  --bg: #f5f8fa;
  --white: #fff;
  --orange: #f97316;
  --shadow: 0 18px 48px rgba(23, 43, 53, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.demo-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  color: #fff;
  background: #0b2230;
  font-size: 13px;
  letter-spacing: .2px;
}
.demo-ribbon b { color: #6ee7d8; }
.demo-ribbon-copy { display: flex; align-items: center; gap: 10px; }
.top-detail-actions { display: flex; align-items: center; gap: 7px; margin-left: 10px; }
.top-detail-actions a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.08); font-size: 11px; }
.top-detail-actions a:hover { border-color: rgba(110,231,216,.8); background: rgba(110,231,216,.12); }
.top-detail-actions a b { color: #6ee7d8; }
.top-detail-actions a.is-selected { border-color: #6ee7d8; color: #fff; background: rgba(110,231,216,.18); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(219, 231, 235, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #0f9aa2, #075b66);
  box-shadow: 0 8px 18px rgba(8, 127, 140, .22);
}
.nav { display: flex; align-items: center; gap: 26px; color: #435b66; font-size: 14px; }
.nav .active { color: var(--brand); font-weight: 700; }
.preview-switch {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.library-shell { width: min(1180px, calc(100% - 36px)); margin: 24px auto 72px; }
.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid #cfe4e7;
  border-radius: 22px;
  background: linear-gradient(125deg, #fff 8%, #e9f8f7 100%);
  box-shadow: var(--shadow);
}
.library-hero h1 { margin: 14px 0 10px; font-size: 38px; line-height: 1.35; }
.library-hero p { margin: 0; color: var(--muted); line-height: 1.85; }
.hero-detail-link { position: relative; z-index: 1; transition: .2s; }
.hero-detail-link:hover { color: #fff; background: var(--brand); transform: translateY(-1px); }
.hero-detail-link span { margin-left: 3px; }
.library-stat { display: grid; grid-template-columns: 1fr; gap: 12px; }
.library-stat > div { padding: 18px; border: 1px solid rgba(255,255,255,.86); border-radius: 14px; background: rgba(255,255,255,.72); }
.library-stat-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.library-stat-copy { min-width: 0; }
.library-qr-contact { position: relative; z-index: 2; display: grid; flex: 0 0 112px; justify-items: center; gap: 7px; }
.library-stat-qr {
  position: relative;
  z-index: 3;
  width: 98px;
  padding: 7px;
  border: 1px solid #d5e6e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 77, 86, .08);
  transform-origin: right center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.library-stat-qr img { display: block; width: 100%; height: auto; }
.library-qr-phone { color: #087f8c; font-size: 12px; font-weight: 900; letter-spacing: .025em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .library-stat-qr:hover,
  .library-stat-qr:focus-visible {
    z-index: 20;
    border-color: #74c5cb;
    box-shadow: 0 22px 58px rgba(5, 49, 58, .28);
    transform: scale(2.2);
  }
}
.library-stat strong { display: block; color: var(--brand); font-size: 24px; }
.library-stat span { color: #71858e; font-size: 12px; }
.featured-index {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid #cfe4e7;
  border-radius: 16px;
  background: linear-gradient(110deg, #075b66, #0c8e97);
  box-shadow: 0 12px 32px rgba(7, 91, 102, .16);
}
.featured-index-mark { padding: 7px 10px; border-radius: 8px; color: var(--brand-dark); background: #dff7f3; font-size: 12px; font-weight: 800; }
.featured-index-copy { color: #fff; }
.featured-index-copy span { color: rgba(255,255,255,.68); font-size: 11px; }
.featured-index-copy h2 { margin: 3px 0 4px; font-size: 21px; }
.featured-index-copy p { margin: 0; color: rgba(255,255,255,.74); font-size: 13px; }
.featured-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.featured-keywords button { padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); font: inherit; font-size: 11px; line-height: 1; cursor: pointer; transition: .18s ease; }
.featured-keywords button:hover,.featured-keywords button.active { color: var(--brand-dark); background: #fff; transform: translateY(-1px); }
.featured-index-action { padding: 11px 16px; border: 0; border-radius: 10px; color: var(--brand-dark); background: #fff; font-weight: 800; }
.featured-index-action span { margin-left: 5px; }
.library-keyword-bank { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); }
.library-keyword-bank > div:first-child > span { color: var(--brand); font-size: 11px; font-weight: 800; }
.library-keyword-bank h3 { margin: 4px 0 5px; color: var(--ink); font-size: 18px; }
.library-keyword-bank p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.library-keyword-cloud { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; }
.library-keyword-cloud button { padding: 7px 11px; border: 1px solid #d7eaee; border-radius: 999px; color: #245364; background: #edf7f8; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; transition: .18s ease; }
.library-keyword-cloud button:hover,.library-keyword-cloud button.active { border-color: var(--brand); color: #fff; background: var(--brand); transform: translateY(-1px); }
.featured-keywords button:focus-visible,.library-keyword-cloud button:focus-visible { outline: 3px solid rgba(19,184,168,.28); outline-offset: 2px; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.library-tools h2 { margin: 0; font-size: 27px; }
.case-search { display: flex; width: min(390px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.case-search input { min-width: 0; flex: 1; padding: 12px 14px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.case-search button { padding: 0 17px; border: 0; color: #fff; background: var(--brand); font-weight: 800; }
.category-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0 20px; }
.category-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #536a74; background: #fff; }
.category-button.active, .category-button:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(23,43,53,.06); transition: .2s; }
.case-card:hover { transform: translateY(-3px); border-color: #9fd4d8; box-shadow: var(--shadow); }
.case-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #075b66, #19a7a3); }
.case-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; padding: 22px; color: #fff; text-align: center; font-size: 18px; font-weight: 800; line-height: 1.55; }
.case-cover-placeholder::after { content: ""; position: absolute; width: 150px; height: 150px; right: -35px; bottom: -55px; border-radius: 50%; background: rgba(255,255,255,.12); }
.case-badge { position: absolute; left: 11px; top: 11px; padding: 5px 8px; border-radius: 7px; color: var(--brand-dark); background: rgba(255,255,255,.94); font-size: 11px; font-weight: 800; }
.case-card-body { padding: 17px; }
.case-card-meta { display: flex; justify-content: space-between; gap: 10px; color: #82949c; font-size: 12px; }
.case-card h3 { min-height: 54px; margin: 9px 0 8px; font-size: 17px; line-height: 1.55; }
.case-card p { min-height: 44px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.case-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf2f4; color: #82949c; font-size: 12px; }
.case-card-foot b { color: var(--brand); }
.case-card.pending { opacity: .82; }
.case-card.pending .case-card-foot b { color: #8799a1; }
.case-empty { display: none; padding: 45px; border: 1px dashed #bfd0d6; border-radius: 16px; color: #758991; background: #fff; text-align: center; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 72px;
}
.content { min-width: 0; }
.breadcrumb { margin-bottom: 14px; color: #7c919b; font-size: 13px; }
.breadcrumb span { margin: 0 7px; color: #b0bdc3; }

.hero {
  overflow: hidden;
  position: relative;
  padding: 38px 40px;
  border: 1px solid #cfe4e7;
  border-radius: 22px;
  background: linear-gradient(125deg, #fff 10%, #eaf8f8 100%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -85px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 164, .18), rgba(14, 165, 164, 0) 68%);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}
.hero h1 { max-width: 760px; margin: 15px 0 12px; font-size: 36px; line-height: 1.4; }
.hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.fact { padding: 9px 13px; border: 1px solid #d5e6e9; border-radius: 10px; background: rgba(255,255,255,.82); font-size: 12px; }
.fact b { margin-right: 5px; color: var(--brand-dark); }

.panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 43, 53, .055);
}
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel h2 { margin: 0; font-size: 23px; }
.panel-note { color: #82959e; font-size: 12px; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article-panel p {
  margin: 0 0 14px;
  color: #4c6878;
  line-height: 1.9;
}
.article-panel h3 {
  margin: 24px 0 8px;
  color: #0b3143;
  font-size: 19px;
}
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.keyword-list span {
  padding: 7px 11px;
  border: 1px solid #cfe3e8;
  border-radius: 999px;
  background: #f2faf9;
  color: #087f8c;
  font-size: 13px;
}
.faq-panel details {
  padding: 15px 0;
  border-top: 1px solid #e1ebee;
}
.faq-panel details:first-of-type { border-top: 0; }
.faq-panel summary {
  color: #0b3143;
  font-weight: 700;
  cursor: pointer;
}
.faq-panel details p {
  margin: 10px 0 0;
  color: #526e7d;
  line-height: 1.8;
}
.highlight {
  padding: 18px;
  border: 1px solid #e1ecef;
  border-radius: 14px;
  background: #f9fbfc;
}
.highlight i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #fff; background: var(--brand); font-style: normal; font-weight: 800; }
.highlight h3 { margin: 12px 0 7px; font-size: 15px; }
.highlight p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.slide-visual {
  position: relative;
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0b6370, #1aa3a4);
}
.slide:nth-child(2) .slide-visual { background: linear-gradient(135deg, #155e75, #38bdf8); }
.slide:nth-child(3) .slide-visual { background: linear-gradient(135deg, #075985, #14b8a6); }
.slide-visual::before { content: "+"; position: absolute; right: 14px; top: 8px; color: rgba(255,255,255,.28); font-size: 50px; font-weight: 200; }
.slide-visual strong { max-width: 160px; text-align: center; font-size: 17px; line-height: 1.55; }
.slide-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #edf3f5; }
.slide-preview { position: relative; display: block; overflow: hidden; background: #edf3f5; }
.slide-preview::after {
  content: "点击查看大图";
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(7, 54, 62, .78);
  font-size: 11px;
  opacity: 0;
  transition: .2s;
}
.slide-preview .slide-image { transition: transform .25s ease; }
.slide-preview:hover::after { opacity: 1; }
.slide-preview:hover .slide-image { transform: scale(1.025); }
.slide small { display: block; padding: 10px 12px; color: #6f848e; }

.slide-hover-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 23, 31, .56);
  backdrop-filter: blur(3px);
  transition: opacity .18s ease, visibility .18s ease;
}
.slide-hover-overlay.open { visibility: visible; opacity: 1; }
.slide-hover-stage {
  position: relative;
  overflow: hidden;
  width: min(1040px, 86vw);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 18px;
  background: #132b34;
  box-shadow: 0 30px 100px rgba(0,0,0,.42);
}
.slide-hover-bg {
  position: absolute;
  inset: -28px;
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(.6);
  transform: scale(1.08);
}
.slide-hover-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide-hover-hint {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  background: rgba(5, 23, 31, .72);
  font-size: 11px;
}

.outline { display: grid; gap: 11px; }
.outline-row { display: grid; grid-template-columns: 74px 132px 1fr; gap: 14px; align-items: center; padding: 15px 16px; border-radius: 12px; background: #f7fafb; }
.outline-row em { color: var(--brand); font-size: 12px; font-style: normal; font-weight: 800; }
.outline-row b { font-size: 14px; }
.outline-row span { color: var(--muted); font-size: 13px; line-height: 1.65; }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, #075b66, #0b8791);
}
.inline-cta h3 { margin: 0 0 5px; }
.inline-cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.inline-contact { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(4, 47, 55, .2); }
.inline-contact-qr { width: 74px; padding: 5px; overflow: hidden; border: 1px solid #d5e6e8; border-radius: 10px; background: #fff; cursor: zoom-in; }
.inline-contact-qr img { display: block; width: 100%; height: auto; }
.inline-cta .contact-phone { display: grid; gap: 2px; margin: 0; }
.contact-phone span { color: #6f8790; font-size: 11px; }
.contact-phone a { color: #075b66; font-size: 18px; font-weight: 900; letter-spacing: .025em; white-space: nowrap; }
.cta-button {
  flex: 0 0 auto;
  min-width: 146px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 800;
}
.product-inline {
  align-items: center;
  border: 1px solid #dbe7eb;
  color: var(--ink);
  background: #f7fafb;
  box-shadow: none;
}
.product-inline .product-label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.product-inline h3 { margin: 0 0 7px; font-size: 17px; }
.product-inline p { color: #71858e; }
.product-inline .cta-button {
  color: #fff;
  background: var(--brand);
}

.side { min-width: 0; }
.sticky { position: sticky; top: 92px; }
.side-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.side-card-head { padding: 19px 20px 16px; color: #fff; background: linear-gradient(135deg, #075b66, #0f9aa2); }
.side-card-head small { opacity: .72; }
.side-card-head h2 { margin: 6px 0 0; font-size: 20px; }
.side-card-body { padding: 19px; }

.qr-shell { padding: 11px; border: 1px solid #cde2e5; border-radius: 14px; background: #f7fbfb; }
.qr-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 24px;
  border-radius: 9px;
  color: #66818b;
  background:
    linear-gradient(90deg, rgba(8,127,140,.08) 50%, transparent 50%) 0 0/18px 18px,
    linear-gradient(rgba(8,127,140,.08) 50%, transparent 50%) 0 0/18px 18px,
    #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.qr-placeholder b { display: block; color: var(--brand); font-size: 17px; }
.qr-image-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #cde2e5; border-radius: 14px; background: #f7fbfb; box-shadow: 0 9px 24px rgba(8, 77, 86, .08); }
.wecom-card-image { display: block; width: 100%; height: auto; }
.qr-image-button:hover .wecom-card-image { transform: scale(1.015); }
.wecom-card-image { transition: transform .2s ease; }
.wecom-qr-focus { display: block; width: min(320px, 100%); margin: 16px auto 0; padding: 18px; overflow: hidden; border: 1px solid #d8e5e8; border-radius: 14px; background: #fff; }
.wecom-qr-focus img { display: block; width: 100%; height: auto; }
.trust-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; color: #526a74; font-size: 13px; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: #0b9b7e; font-weight: 900; }
.qr-phone { display: grid; gap: 2px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef8f8; text-align: center; }
.qr-phone span { color: #6f8790; font-size: 11px; }
.qr-phone a { color: #087f8c; font-size: 18px; font-weight: 900; letter-spacing: .035em; }
.modal-phone { width: min(320px, 100%); margin-right: auto; margin-left: auto; }
.wide-button { width: 100%; margin-top: 16px; padding: 12px 15px; border: 0; border-radius: 10px; color: #fff; background: var(--brand); font-weight: 800; }
.privacy-note { margin: 10px 0 0; color: #8b9aa1; text-align: center; font-size: 11px; line-height: 1.55; }

.sku-cover {
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, #0c4a6e, #0891b2 60%, #2dd4bf);
  text-align: center;
}
.sku-cover span { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 1px; opacity: .72; }
.sku-cover b { font-size: 17px; line-height: 1.55; }
.sku-title { margin: 0; font-size: 17px; line-height: 1.55; }
.sku-meta { display: flex; justify-content: space-between; margin: 12px 0; color: #7a8d96; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; color: #ef5b2a; }
.price strong { font-size: 27px; }
.sku-benefits { margin: 15px 0 0; padding: 13px; border-radius: 11px; color: #536a74; background: #f7fafb; font-size: 12px; line-height: 1.8; }
.sku-button { background: linear-gradient(90deg, #f97316, #ef4444); }
.sku-link-note { display: block; margin-top: 9px; color: #889aa2; text-align: center; font-size: 11px; }

.mobile-bar { display: none; }
.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 20, 28, .62);
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; color: #78909a; background: transparent; font-size: 25px; }
.modal h2 { margin: 0 30px 8px 0; }
.modal p { color: var(--muted); line-height: 1.7; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions button, .modal-actions a { flex: 1; padding: 12px; border: 0; border-radius: 10px; text-align: center; font-weight: 800; }
.modal-actions .secondary { color: #526a74; background: #eef3f5; }
.modal-actions .primary { color: #fff; background: var(--brand); }
.route-preview { padding: 12px; border-radius: 10px; color: #36515c; background: #edf7f8; font: 12px/1.65 Consolas, monospace; word-break: break-all; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-bar {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px 12px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    color: #fff;
    background: rgba(7, 62, 70, .96);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
  }
  .mobile-bar small { display: block; margin-top: 3px; color: rgba(255,255,255,.68); }
  .mobile-bar button { padding: 10px 14px; border: 0; border-radius: 9px; color: var(--brand-dark); background: #fff; font-weight: 800; }
  .slide-hover-overlay { display: none; }
  .library-hero { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .demo-ribbon { justify-content: space-between; overflow-x: auto; white-space: nowrap; }
  .demo-ribbon-copy > span { display: none; }
  .top-detail-actions { margin-left: auto; }
  .site-header { min-height: 60px; padding: 0 14px; }
  .nav a:not(.preview-switch) { display: none; }
  .layout { width: calc(100% - 24px); margin-top: 14px; }
  .hero { padding: 27px 20px; border-radius: 17px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 14px; }
  .panel { padding: 20px 16px; border-radius: 15px; }
  .highlight-grid, .slides { grid-template-columns: 1fr; }
  .slide-preview::after { opacity: 1; }
  .outline-row { grid-template-columns: 56px 1fr; }
  .outline-row span { grid-column: 1 / -1; }
  .inline-cta { display: block; }
  .inline-contact { justify-content: center; margin-top: 15px; }
  .inline-cta .cta-button { width: 100%; margin-top: 15px; }
  .modal { padding: 22px 18px; }
  .modal-actions { flex-direction: column; }
  .library-shell { width: calc(100% - 24px); margin-top: 14px; }
  .library-hero { padding: 27px 20px; border-radius: 17px; }
  .library-hero h1 { font-size: 29px; }
  .library-stat { grid-template-columns: 1fr; }
  .library-tools { display: block; }
  .featured-index { grid-template-columns: 1fr; gap: 11px; padding: 18px; }
  .featured-index-mark { width: max-content; }
  .featured-index-action { width: 100%; }
  .library-keyword-bank { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .case-search { margin-top: 14px; }
  .case-grid { grid-template-columns: 1fr; }
}

