/* 糖心菠萝 · Original fruit editorial stylesheet / 2026 */
:root {
  --ink: #25392c;
  --muted: #607267;
  --pine: #f6bd35;
  --leaf: #316f4b;
  --cream: #fffdf5;
  --line: #e8eadb;
  --pink: #f5aca3;
  --radius: 22px;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: -apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC",Arial,sans-serif;
  color: var(--ink);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #bb6718;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px,calc(100% - 40px));
  margin: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 8px;
  z-index: 100;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo-mark {
  background: var(--pine);
  border-radius: 19px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.logo strong {
  font-size: 26px;
  letter-spacing: 1px;
  display: block;
  line-height: 1.3;
}

.logo small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .8px;
}

.header-note {
  font-size: 13px;
  color: var(--leaf);
  border: 1px solid #d6e5ce;
  border-radius: 30px;
  padding: 6px 14px;
}

.site-nav {
  background: var(--leaf);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 8px 0;
}

.site-nav a {
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,.site-nav a[aria-current="page"] {
  background: var(--pine);
  color: #243f31;
}

.hero {
  margin: 26px auto 34px;
  background: #fff2cc;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  min-height: 445px;
}

.hero-text {
  padding: 58px 52px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 12px;
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(30px,4.4vw,57px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 13px 0 19px;
}

.hero p {
  font-size: 16px;
  color: #52644d;
  margin: 0 0 22px;
}

.hero-image {
  min-width: 0;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.pill-link {
  display: inline-flex;
  align-self: flex-start;
  background: var(--leaf);
  padding: 10px 23px;
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
}

.pill-link:hover {
  color: white;
  background: #225037;
}

.layout-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 35px 0 18px;
}

.layout-title h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: .3px;
}

.layout-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.topic-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.topic-tile {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid var(--line);
  min-height: 156px;
}

.topic-tile:nth-child(1) {
  background: #fff0c7;
}

.topic-tile:nth-child(2) {
  background: #dff3e9;
}

.topic-tile:nth-child(3) {
  background: #f5e6f1;
}

.topic-tile:nth-child(4) {
  background: #e6f0ff;
}

.topic-tile .symbol {
  font-size: 34px;
  display: block;
  margin-bottom: 7px;
}

.topic-tile strong {
  font-size: 19px;
}

.topic-tile small {
  display: block;
  color: #5e6e5e;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 17px;
}

.feature-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
}

.feature-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.feature-card:first-child {
  grid-row: span 2;
}

.feature-card:first-child img {
  height: 427px;
}

.feature-body {
  padding: 15px 17px 21px;
}

.feature-body span {
  font-size: 11px;
  color: var(--leaf);
  font-weight: 700;
}

.feature-body h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 7px 0;
}

.feature-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.feature-card:first-child h3 {
  font-size: 23px;
}

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.editorial-panel {
  border-radius: 25px;
  background: #e6f1da;
  padding: 32px;
}

.editorial-panel:last-child {
  background: #fce9df;
}

.editorial-panel h2 {
  margin: 8px 0;
  font-size: 25px;
}

.editorial-panel p {
  color: #52644d;
  margin: 0 0 14px;
}

.text-link {
  color: #2b6e46;
  font-weight: 700;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.article-card .inner {
  padding: 18px;
}

.article-card h3 {
  margin: 4px 0 9px;
  font-size: 18px;
  line-height: 1.5;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.kicker {
  color: var(--leaf);
  font-weight: 700;
  font-size: 12px;
}

.intro {
  background: #f8f3df;
  border-radius: 22px;
  padding: 25px 30px;
  margin: 40px auto;
}

.intro h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.intro p {
  margin: 0;
  color: #556a56;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 28px 0 16px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-heading {
  max-width: 830px;
  margin: 4px 0 25px;
}

.page-heading h1 {
  font-size: clamp(28px,4vw,43px);
  margin: 8px 0;
  line-height: 1.35;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
}

.page-cover {
  border-radius: 25px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 28px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  gap: 55px;
}

.article-main {
  min-width: 0;
  font-size: 16px;
}

.article-main h2 {
  font-size: 25px;
  margin: 35px 0 10px;
  border-left: 5px solid var(--pine);
  padding-left: 14px;
}

.article-main h3 {
  font-size: 19px;
  margin: 22px 0 8px;
}

.article-main p {
  line-height: 2.05;
  color: #35473b;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 20px;
  background: #fff5dc;
  padding: 22px;
  border-radius: 18px;
}

.article-aside h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.article-aside ul {
  margin: 0;
  padding-left: 20px;
}

.article-aside li {
  margin: 9px 0;
}

.related {
  margin: 45px 0;
}

.related h2 {
  font-size: 23px;
}

.site-footer {
  background: #254c38;
  color: #f4fae9;
  margin-top: 65px;
  padding: 40px 0 25px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.site-footer p {
  color: #c8dbc7;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid #41694e;
  padding-top: 18px;
  margin-top: 25px;
  color: #c9d8c8;
  font-size: 12px;
}

.no-results {
  background: #fff6df;
  padding: 16px;
  border-radius: 13px;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 22px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #b8d2b7;
  border-radius: 12px;
  padding: 11px 15px;
}

.search-form button {
  border: 0;
  background: var(--leaf);
  color: #fff;
  border-radius: 12px;
  padding: 11px 22px;
}

@media (max-width:900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:first-child {
    grid-column: span 2;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
  }

  .feature-card:first-child img {
    height: 270px;
  }

  .topic-row {
    grid-template-columns: repeat(2,1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .article-list {
    grid-template-columns: repeat(2,1fr);
  }

}

@media (max-width:640px) {
  .container {
    width: min(100% - 28px,1160px);
  }

  .header-inner {
    min-height: 76px;
  }

  .logo strong {
    font-size: 21px;
  }

  .logo-mark {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .header-note {
    display: none;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
    border-radius: 20px;
  }

  .hero-text {
    padding: 29px 25px;
  }

  .hero-image {
    height: 230px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .topic-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .topic-tile {
    padding: 18px;
    min-height: 136px;
  }

  .topic-tile strong {
    font-size: 16px;
  }

  .topic-tile small {
    font-size: 12px;
  }

  .feature-grid,.editorial,.article-list {
    grid-template-columns: 1fr;
  }

  .feature-card:first-child {
    grid-column: auto;
    display: block;
  }

  .feature-card:first-child img,.feature-card img {
    height: auto;
    aspect-ratio: 3/2;
  }

  .layout-title {
    display: block;
  }

  .layout-title h2 {
    font-size: 24px;
  }

  .layout-title p {
    margin-top: 4px;
  }

  .editorial-panel {
    padding: 23px;
  }

  .article-layout {
    gap: 18px;
  }

  .page-cover {
    border-radius: 14px;
  }

  .site-footer {
    margin-top: 45px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

}

/* Narrow screens and accessibility refinements */
:root {
  color-scheme: light;
}

body {
  min-width: 320px;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 3px solid #b45e19;
  outline-offset: 3px;
}

.site-nav .nav-inner {
  justify-content: center;
}

@media (max-width: 640px) {
  .site-nav .nav-inner {
    justify-content: flex-start;
    gap: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
    text-align: center;
  }

  .hero, .feature-card, .article-card {
    min-width: 0;
  }
}
