/* shuangrenppp.cn | 组件化样式，按布局顺序维护 */
:root {
  --ink: #14213c;
  --muted: #5e6980;
  --bg: #f7f8fd;
  --paper: #ffffff;
  --line: #e6eaf2;
  --coral: #f35d64;
  --blue: #416bd7;
  --purple: #7854af;
  --radius: 22px;
  --container: 1160px;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.75 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: var(--coral);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input {
  font: inherit;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 20;
  padding: 9px 16px;
  background: #fff;
}
.skip:focus {
  top: 8px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, #f75e66, #8260dc 65%, #3587f6);
  font-size: 21px;
}
.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.primary-nav a {
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 650;
}
.primary-nav .current, .primary-nav a:hover {
  background: #ffedf0;
  color: #d33c50;
}
.header-search {
  display: flex;
  align-items: center;
  width: 205px;
  min-width: 150px;
  border: 1px solid #e6e9f2;
  border-radius: 99px;
  overflow: hidden;
  background: #fff;
}
.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline-offset: -4px;
  padding: 8px 10px 8px 15px;
  font-size: 13px;
}
.header-search button {
  width: 38px;
  align-self: stretch;
  border: 0;
  color: #fff;
  background: var(--coral);
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #151c3e;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,18,48,.94), rgba(27,27,61,.86) 34%, rgba(25,24,55,.18) 85%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 490px;
  padding-block: 64px;
}
.hero-content {
  max-width: 650px;
}
.eyebrow {
  display: inline-block;
  color: #ffc5c8;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
}
h1, h2, h3, p {
  overflow-wrap: break-word;
}
h1 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.23;
  letter-spacing: -.025em;
}
.hero h1 {
  text-wrap: balance;
}
.hero p {
  max-width: 560px;
  color: #ebefff;
  font-size: 16px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 99px;
  font-weight: 750;
}
.btn.primary {
  color: #fff;
  background: var(--coral);
}
.btn.secondary {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-note {
  font-size: 12px !important;
  opacity: .83;
  margin-top: 16px;
}
.section {
  padding-block: 48px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.35;
}
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.section-head a {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 17px;
}
.topic-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(19,30,80,.035);
  transition: transform .2s, box-shadow .2s;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(19,30,80,.10);
}
.topic-card .thumb {
  aspect-ratio: 1.55;
  width: 100%;
  object-fit: cover;
}
.topic-card .copy {
  padding: 15px 16px 18px;
}
.topic-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.5;
}
.topic-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  color: #b03755;
  background: #ffedf2;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.feature img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.feature-text {
  padding: 37px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-text h2 {
  margin: 2px 0 13px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
}
.feature-text p {
  color: var(--muted);
}
.feature-text a {
  color: #db4b61;
  font-weight: 750;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.step {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.step b {
  display: block;
  color: #df6176;
  font-size: 25px;
}
.step h3 {
  margin: 12px 0 8px;
  font-size: 17px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.footer {
  margin-top: 44px;
  color: #d5ddef;
  background: #17213e;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
}
.footer a {
  color: #e3e8f4;
}
.footer p {
  max-width: 580px;
  margin: 8px 0 0;
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-content: center;
  font-size: 14px;
}
.copybar {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 15px;
  font-size: 12px;
  color: #b1bad0;
}
.breadcrumb {
  padding-block: 22px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a {
  color: var(--blue);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.article-panel, .aside-panel {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.article-panel {
  overflow: hidden;
}
.article-cover {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
}
.article-body {
  padding: clamp(22px,4vw,44px);
}
.article-body h1 {
  margin: 0 0 18px;
  font-size: clamp(27px,4vw,39px);
}
.article-body .lead {
  color: #40506d;
  font-size: 17px;
  padding: 15px 18px;
  background: #f4f6fb;
  border-left: 4px solid var(--coral);
}
.article-body h2 {
  margin-top: 37px;
  margin-bottom: 11px;
  font-size: 23px;
  line-height: 1.45;
}
.article-body p {
  color: #38445d;
}
.article-body ul {
  padding-left: 22px;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 36px;
}
.related a {
  display: block;
  padding: 8px 0;
  color: var(--blue);
}
.aside-panel {
  padding: 20px;
  position: sticky;
  top: 15px;
}
.aside-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.aside-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.aside-panel a:last-child {
  border: 0;
}
.notice {
  color: var(--muted);
  font-size: 13px;
}
.search-empty {
  padding: 16px;
  background: #fff1f2;
  color: #963449;
  border-radius: 12px;
}
@media (max-width:1080px) {
  .head-inner {
    gap: 10px;
  }
  .header-search {
    display: none;
  }
  .primary-nav a {
    padding: 7px 9px;
  }
}
@media (max-width:800px) {
  .head-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 13px 0 8px;
    gap: 11px;
  }
  .primary-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 5px;
  }
  .primary-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .hero-inner {
    min-height: 410px;
  }
  .hero::after {
    background: linear-gradient(90deg, rgba(14,18,48,.93), rgba(14,18,48,.68));
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature img {
    height: 300px;
    min-height: 0;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .aside-panel {
    position: static;
  }
}
@media (max-width:480px) {
  .wrap {
    width: min(calc(100% - 28px), var(--container));
  }
  .brand strong {
    font-size: 19px;
  }
  .hero-inner {
    min-height: 430px;
    padding-block: 42px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 9px;
  }
  .btn {
    padding: 10px 15px;
    font-size: 13px;
  }
  .section {
    padding-block: 33px;
  }
  .section-head {
    align-items: start;
  }
  .section-head a {
    font-size: 12px;
  }
  .topic-grid {
    gap: 12px;
  }
  .topic-card .copy {
    padding: 12px;
  }
  .topic-card h3 {
    font-size: 14px;
  }
  .topic-card p {
    font-size: 12px;
  }
  .feature-text {
    padding: 24px 20px;
  }
  .feature img {
    height: 220px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
  }
  .article-body h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .topic-card {
    transition: none;
  }
}
.topic-card[hidden] {
  display: none;
}
/* 2026-11 mobile/header/hero refinements */
@media (max-width: 1080px) {
  .header-search {
    display: flex;
    flex: 0 0 190px;
  }
}
@media (max-width: 800px) {
  .head-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 9px;
  }
  .brand {
    grid-column: 1;
    min-width: 0;
  }
  .header-search {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: 190px;
    min-width: 0;
  }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overscroll-behavior-x: contain;
  }
  .primary-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .hero-inner {
    min-height: 375px;
  }
}
@media (max-width: 480px) {
  .head-inner {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-search {
    width: 44px;
    height: 40px;
    justify-self: end;
  }
  .header-search:focus-within {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
  }
  .header-search:not(:focus-within) input {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  .header-search button {
    min-width: 42px;
  }
  .hero-inner {
    min-height: 390px;
    padding-block: 36px;
  }
  .hero h1 {
    font-size: clamp(27px, 7vw, 34px);
  }
  .hero p {
    line-height: 1.8;
  }
  .hero-note {
    line-height: 1.6;
  }
  .topic-card .thumb {
    aspect-ratio: 1.48;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .topic-card {
    transform: none !important;
  }
}

/* Search remains visible and usable on narrow screens. */
@media (max-width: 480px) {
  .head-inner {
    grid-template-columns: 1fr;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .primary-nav {
    grid-column: 1;
    grid-row: 2;
  }
  .header-search,
  .header-search:focus-within {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    height: 40px;
    justify-self: stretch;
  }
  .header-search:not(:focus-within) input {
    width: 100%;
    padding: 8px 10px 8px 15px;
    opacity: 1;
    pointer-events: auto;
  }
}
