/*
 * Tangxin Logo Entrance — Independent Editorial Guide
 * Organized tokens -> base -> navigation -> homepage -> articles -> responsive
 */
:root {
  --ink: #262036;
  --muted: #756b7a;
  --rose: #d63b65;
  --rose-soft: #fff0f2;
  --paper: #fffaf9;
  --white: #ffffff;
  --border: #eadfe2;
  --deep: #251c3f;
  --radius: 21px;
  --shell: 1180px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  line-height: 1.76;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--rose);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #ef6e93;
  outline-offset: 4px;
}
.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 99;
  background: white;
  padding: 12px;
}
.skip:focus {
  left: 12px;
}
.eyebrow {
  display: inline-block;
  color: var(--rose);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255,250,249,.96);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 1.26rem;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin-top: 7px;
  color: var(--muted);
}
.brand-accent {
  color: var(--rose);
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--deep);
  color: #ffd5e3;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.8vw,22px);
  font-size: .86rem;
  font-weight: 700;
}
.site-nav a {
  white-space: nowrap;
}
.site-nav a[aria-current="page"] {
  color: var(--rose);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
}
.hero-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 590px;
  padding-block: 47px 28px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 5% 25px 0;
}
.hero-topline {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--muted);
}
.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  margin-right: 9px;
}
.hero-kicker {
  margin: 35px 0 10px;
  color: var(--rose);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .25em;
}
h1,h2,h3,p {
  overflow-wrap: anywhere;
}
.hero-copy h1 {
  font-size: clamp(2.25rem,4.3vw,4.15rem);
  letter-spacing: -.065em;
  line-height: 1.22;
  margin: 0;
}
.hero-copy h1 span {
  display: block;
  font-size: clamp(1.3rem,2.3vw,2.18rem);
  line-height: 1.45;
  letter-spacing: -.045em;
  margin-top: 9px;
}
.hero-description {
  font-size: 1rem;
  line-height: 2.1;
  color: #5c5262;
  max-width: 470px;
  margin: 24px 0 25px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 800;
  transition: transform .2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--rose);
  color: white;
}
.button-primary:hover {
  color: white;
}
.button-ghost {
  background: white;
  border: 1px solid var(--border);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
  font-size: .73rem;
}
.hero-meta span + span::before {
  content: '·';
  padding-right: 12px;
}
.hero-art {
  min-width: 0;
  position: relative;
  background: #382243;
  padding: 19px;
  border-radius: 140px 16px 16px 16px;
}
.hero-art-main {
  height: 100%;
  border-radius: 125px 8px 8px 8px;
  overflow: hidden;
}
.hero-art-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floating-note {
  position: absolute;
  left: -38px;
  bottom: 68px;
  padding: 20px 25px;
  color: white;
  background: var(--rose);
  box-shadow: 0 20px 40px #381b3540;
}
.floating-note span {
  display: block;
  font-size: .68rem;
  letter-spacing: .15em;
  margin-bottom: 9px;
}
.floating-note strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.5;
}
.hero-art-caption {
  position: absolute;
  right: 30px;
  bottom: 29px;
  font-size: .62rem;
  color: #fff;
  background: #241a34b0;
  padding: 4px 9px;
  border-radius: 30px;
}
.mini-brief {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 22px;
  background: #f9ecf0;
  border-left: 4px solid var(--rose);
  padding: 22px 28px;
  margin-top: 14px;
}
.mini-brief strong {
  font-size: .95rem;
}
.mini-brief p {
  margin: 0;
  color: #625566;
  font-size: .87rem;
}
.mini-brief a {
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 800;
}
.section-space {
  padding-block: 87px 12px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}
.section-heading h2 {
  font-size: clamp(1.65rem,2.5vw,2.45rem);
  line-height: 1.35;
  margin: 8px 0 0;
  letter-spacing: -.04em;
}
.section-heading > p {
  width: min(360px,45%);
  color: var(--muted);
  font-size: .86rem;
  margin: 0 0 4px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
}
.topic-tile {
  display: flex;
  position: relative;
  flex-direction: column;
  min-height: 218px;
  padding: 27px 22px;
  background: #f0e8f3;
  border-radius: 15px;
  overflow: hidden;
}
.topic-tile:nth-child(2) {
  background: #fce8e4;
}
.topic-tile:nth-child(3) {
  background: #e6e8f5;
}
.topic-tile:nth-child(4) {
  background: #f8efd9;
}
.tile-no {
  font-size: .7rem;
  font-weight: 900;
  color: #837282;
}
.topic-name {
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: 25px;
}
.topic-desc {
  font-size: .78rem;
  color: #776b77;
  max-width: 180px;
  margin-top: 6px;
  line-height: 1.7;
}
.tile-arrow {
  position: absolute;
  right: 18px;
  top: 17px;
  font-size: 1.35rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 21px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  min-width: 0;
}
.story-image {
  display: block;
  aspect-ratio: 1.38;
  overflow: hidden;
  background: #f3d9e3;
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.story-card:hover .story-image img {
  transform: scale(1.045);
}
.story-content {
  padding: 22px 22px 24px;
}
.story-content h3 {
  font-size: 1.23rem;
  line-height: 1.45;
  margin: 8px 0 10px;
}
.story-content p {
  font-size: .84rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 17px;
}
.text-link,.subtle-link {
  color: var(--rose);
  font-size: .82rem;
  font-weight: 800;
}
.dark-feature {
  background: var(--deep);
  color: white;
  margin-top: 94px;
}
.dark-feature-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 7%;
  padding-block: 55px;
}
.dark-feature-img {
  border-radius: 14px;
  overflow: hidden;
}
.dark-feature-img img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.dark-feature .eyebrow {
  color: #ffa5c7;
}
.dark-feature h2 {
  font-size: clamp(2rem,3.2vw,3.1rem);
  margin: 13px 0;
  line-height: 1.4;
}
.dark-feature p {
  color: #dfd5e3;
  font-size: .94rem;
  max-width: 490px;
  margin-bottom: 25px;
}
.button-light {
  background: white;
  color: var(--deep);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}
.guide-grid .story-image {
  aspect-ratio: 1.55;
}
.final-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 9%;
  padding: 75px 0 94px;
}
.final-panel h2 {
  font-size: clamp(1.8rem,2.7vw,2.5rem);
  line-height: 1.4;
}
.final-panel p {
  color: var(--muted);
  font-size: .92rem;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 19px 2px;
}
.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}
.faq-list p {
  font-size: .86rem;
  margin-bottom: 0;
}
.site-footer {
  background: #f3eced;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-block: 52px;
}
.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  font-size: .82rem;
  color: #655b69;
}
.footer-inner strong {
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-inner p {
  max-width: 420px;
  margin-top: 7px;
}
.footer-brand {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}
.content-page {
  padding-top: 27px;
  padding-bottom: 80px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .77rem;
  margin-bottom: 27px;
}
.topic-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 30px;
  padding: 35px 42px;
  background: #f6eaf0;
  border-radius: 20px;
}
.topic-intro h1 {
  font-size: clamp(2rem,4vw,3.2rem);
  margin: 12px 0;
}
.topic-intro p {
  color: #655a66;
  max-width: 560px;
}
.topic-intro-art {
  border-radius: 15px;
  overflow: hidden;
  max-height: 230px;
}
.topic-intro-art img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.listing {
  padding-top: 54px;
}
.listing > h2 {
  font-size: 1.55rem;
  margin: 0 0 20px;
}
.listing > h2 span {
  font-size: .85rem;
  color: var(--rose);
}
.note-banner {
  background: #fbecf0;
  margin-top: 55px;
  padding: 20px 25px;
  border-left: 3px solid var(--rose);
}
.note-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,770px) 270px;
  justify-content: space-between;
  gap: 48px;
}
.article-main {
  min-width: 0;
}
.article-header h1 {
  font-size: clamp(2rem,3.5vw,3.05rem);
  line-height: 1.38;
  margin: 12px 0;
}
.article-lead {
  font-size: 1.07rem;
  color: #655a69;
  line-height: 1.9;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: .76rem;
  color: var(--muted);
  margin: 22px 0 26px;
}
.article-figure {
  margin: 0 0 40px;
  background: #f6e6ec;
}
.article-figure img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: .77rem;
  color: var(--muted);
  padding: 10px 15px;
}
.article-section {
  margin-block: 34px;
}
.article-section h2 {
  font-size: 1.48rem;
  padding-left: 14px;
  border-left: 3px solid var(--rose);
  line-height: 1.4;
}
.article-section p {
  font-size: 1rem;
  line-height: 2.12;
  color: #524856;
}
.checklist {
  background: #fbf0f2;
  padding: 24px 29px;
  list-style: none;
  border-radius: 12px;
}
.checklist li {
  margin: 10px 0;
}
.checklist li span {
  font-weight: 900;
  color: var(--rose);
  margin-right: 12px;
}
.article-sidebar {
  padding-top: 36px;
}
.side-panel {
  position: sticky;
  top: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: .87rem;
}
.side-panel strong {
  font-size: 1.16rem;
}
.side-reminder {
  margin-top: 25px;
  background: #f8ecf0;
  padding: 22px;
  border-radius: 12px;
}
.side-reminder p {
  color: #655a66;
  font-size: .82rem;
  margin-bottom: 0;
}
.article-end {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: .83rem;
}
.article-end a {
  color: var(--rose);
}
.related-block {
  border-top: 1px solid var(--border);
  margin-top: 55px;
}
.related-block .guide-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.about-panel {
  max-width: 810px;
  background: white;
  padding: 40px 50px;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.about-panel h1 {
  font-size: 2.55rem;
}
.about-panel h2 {
  font-size: 1.35rem;
  margin-top: 38px;
}
.about-panel p {
  color: #625965;
  line-height: 2.1;
}
.about-panel a {
  color: var(--rose);
}
@media (max-width: 1050px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 15px;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
  .hero-section {
    min-height: 530px;
  }
  .floating-note {
    left: -16px;
  }
  .article-layout {
    grid-template-columns: minmax(0,1fr) 225px;
    gap: 25px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 30px),var(--shell));
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: nowrap;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    padding: 17px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 20px #261a3010;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 8px 12px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 26px;
  }
  .hero-copy {
    padding: 15px 0 0;
  }
  .hero-kicker {
    margin-top: 23px;
  }
  .hero-meta {
    margin-top: 25px;
  }
  .hero-art {
    height: 350px;
    border-radius: 75px 14px 14px 14px;
  }
  .hero-art-main {
    border-radius: 65px 6px 6px 6px;
  }
  .floating-note {
    bottom: 30px;
    left: 0;
    padding: 12px 17px;
  }
  .floating-note strong {
    font-size: .95rem;
  }
  .mini-brief {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section-space {
    padding-top: 63px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    width: auto;
    margin-top: 12px;
  }
  .topic-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .feature-grid,.guide-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .dark-feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .dark-feature {
    margin-top: 68px;
  }
  .final-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
  .topic-intro {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .topic-intro-art {
    max-height: 180px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .about-panel {
    padding: 28px;
  }
}
@media (max-width: 490px) {
  .brand {
    font-size: 1.08rem;
  }
  .brand small {
    font-size: .48rem;
  }
  .brand-glyph {
    width: 35px;
    height: 35px;
  }
  .hero-art {
    height: 320px;
  }
  .hero-copy h1 {
    font-size: 2.1rem;
  }
  .hero-copy h1 span {
    font-size: 1.3rem;
  }
  .hero-meta {
    gap: 7px;
  }
  .hero-meta span + span::before {
    padding-right: 7px;
  }
  .topic-grid {
    gap: 8px;
  }
  .topic-tile {
    min-height: 190px;
    padding: 17px;
  }
  .topic-name {
    font-size: 1.1rem;
    margin-top: 20px;
  }
  .feature-grid,.guide-grid,.related-block .guide-grid {
    grid-template-columns: 1fr;
  }
  .story-image {
    aspect-ratio: 1.6;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner > div:first-child {
    grid-column: auto;
  }
  .article-header h1 {
    font-size: 2rem;
  }
  .about-panel {
    padding: 24px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition-duration: .01ms !important;
  }
}
/* Responsive safety: prevent long URL and flex content overflow. */
html, body {
  max-width: 100%;
}
.site-header, .site-footer, main {
  min-width: 0;
}
.hero-copy, .hero-art, .story-content, .section-heading > div {
  min-width: 0;
}
.story-content a, .article-content a, .faq-list p {
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: .97rem;
  }
  .brand small {
    letter-spacing: .08em;
  }
  .nav-toggle {
    padding: 7px 9px;
    font-size: .8rem;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 270px;
  }
}

