/* 野花社区 · 原创响应式设计系统 */
:root {
  --ink: #2e2732;
  --muted: #6e6973;
  --pink: #db3676;
  --pink-soft: #fff0f6;
  --line: #eee4e9;
  --paper: #ffffff;
  --bg: #fff9fb;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(102, 39, 67, .07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--pink);
}
img {
  display: block;
  width: 100%;
  height: auto;
}
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 15px;
  top: 15px;
  z-index: 100;
  background: white;
  padding: 8px;
}
.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--pink-soft);
  font-size: 28px;
}
.brand strong {
  display: block;
  color: #a71c54;
  font-size: 25px;
  line-height: 1.25;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}
.nav a[aria-current=page], .nav a:hover {
  background: var(--pink-soft);
  color: #a71c54;
}
.search {
  display: flex;
  min-width: 175px;
  max-width: 225px;
  border: 1px solid #e7dbe2;
  border-radius: 40px;
  overflow: hidden;
}
.search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  outline-offset: -2px;
}
.search button {
  border: 0;
  padding: 8px 13px;
  background: var(--pink);
  color: white;
  cursor: pointer;
}
.hero {
  background: linear-gradient(110deg, #4a2441 0%, #9e4068 50%, #dc83a4 100%);
  overflow: hidden;
}
.hero-inner {
  min-height: 350px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
}
.hero-copy {
  color: white;
  padding: 44px 0;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 750;
}
h1 {
  font-size: clamp(32px, 4vw, 53px);
  line-height: 1.2;
  margin: 15px 0;
}
.hero-copy p {
  max-width: 580px;
  margin: 0 0 24px;
}
.hero-visual {
  height: 350px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 70px 0 0 70px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  border-radius: 40px;
  padding: 10px 20px;
  background: white;
  color: #a71c54;
  font-weight: 750;
}
.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-top: 24px;
}
.quick-nav a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 750;
}
.quick-nav span {
  display: block;
  font-size: 25px;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
  margin-block: 32px;
}
.content-column {
  min-width: 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
h2 {
  font-size: 23px;
  line-height: 1.35;
  margin: 0;
}
h3 {
  line-height: 1.45;
  margin: 9px 0 5px;
  font-size: 17px;
}
.section-head a {
  color: #a71c54;
  font-size: 14px;
  white-space: nowrap;
}
.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: center;
}
.feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}
.tag {
  color: #a71c54;
  font-weight: 750;
  font-size: 13px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card-grid a {
  min-width: 0;
}
.card-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}
.card-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.ranked {
  margin: 0;
  padding-left: 22px;
}
.ranked li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.ranked li:last-child {
  border: 0;
}
.ranked a {
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.article {
  max-width: 850px;
  margin: 34px auto;
}
.article h1 {
  font-size: clamp(28px, 3.5vw, 40px);
}
.article h2 {
  margin-top: 30px;
  margin-bottom: 12px;
}
.article p {
  line-height: 2;
}
.article-cover {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0;
}
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 15px;
}
.site-footer {
  margin-top: 35px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 1100px) {
  .header-inner {
  flex-wrap: wrap;
  padding: 14px 0;
}
  .nav {
  order: 3;
  width: 100%;
}
  .search {
  margin-left: auto;
}
}
@media (max-width: 850px) {
  .main-grid {
  grid-template-columns: 1fr;
}
  .quick-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
  .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
  .hero-inner {
  grid-template-columns: 1fr 42%;
}
}
@media (max-width: 600px) {
  .container {
  width: min(100% - 28px, 1200px);
}
  .header-inner {
  gap: 12px;
}
  .brand strong {
  font-size: 21px;
}
  .search {
  max-width: none;
  width: 100%;
}
  .nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
}
  .nav a {
  flex: 0 0 auto;
}
  .hero-inner {
  grid-template-columns: 1fr;
}
  .hero-copy {
  padding: 35px 0 5px;
}
  .hero-visual {
  height: 210px;
  border-radius: 24px 24px 0 0;
}
  .quick-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
  .panel {
  padding: 16px;
}
  .feature-card {
  grid-template-columns: 1fr;
}
  .card-grid {
  grid-template-columns: 1fr;
}
  .card-grid img {
  aspect-ratio: 16 / 9;
}
}

/* V2: clearer reading hierarchy and predictable responsive grid */
:root {
  --content-max: 1200px;
}
.container {
  max-width: var(--content-max);
}
.header-inner {
  gap: 16px;
}
.nav {
  min-width: 0;
  justify-content: center;
}
.nav a {
  white-space: nowrap;
}
.hero-copy p {
  line-height: 1.85;
}
.content-column, .main-grid > aside {
  min-width: 0;
}
.story-card {
  display: block;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.story-card:hover, .story-card:focus-visible {
  background: #fff7fa;
  border-color: var(--line);
}
.story-card h3 {
  overflow-wrap: anywhere;
}
.story-card img {
  background: #f6edf2;
}
.feature-card > div {
  min-width: 0;
}
.feature-card h3 {
  font-size: clamp(19px, 2vw, 25px);
}
@media (min-width: 851px) {
  .main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 285px);
}
  .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 850px) {
  .main-grid {
  grid-template-columns: minmax(0, 1fr);
}
  .hero-inner {
  grid-template-columns: 1fr 42%;
}
}
@media (max-width: 600px) {
  .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}
  .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
  .story-card {
  padding: 4px;
}
  .story-card h3 {
  font-size: 15px;
}
  .section-head {
  flex-wrap: wrap;
}
  .quick-nav a {
  padding: 12px 8px;
}
}
@media (max-width: 390px) {
  .card-grid {
  grid-template-columns: minmax(0, 1fr);
}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
  scroll-behavior: auto !important;
  transition: none !important;
}
}
