/* 鸡皮肤官网 - 温柔精致护肤主题 */
:root {
  --bg: #f6f1ec;
  --bg-soft: #fbf7f3;
  --ink: #2b2826;
  --ink-soft: #5c5550;
  --muted: #8a8178;
  --sage: #6f8f7f;
  --sage-deep: #4f6d5f;
  --rose: #c48a8a;
  --rose-soft: #e8c9c4;
  --line: rgba(79, 109, 95, 0.14);
  --shadow: 0 18px 50px rgba(74, 58, 48, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 138, 138, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(111, 143, 127, 0.16), transparent 50%),
    linear-gradient(180deg, #f8f3ee 0%, var(--bg) 40%, #f3eee8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--sage-deep);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--rose);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 236, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  color: var(--sage);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 109, 95, 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: #fff;
}

/* Sections */
.section {
  padding: 1.5rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Article list */
.post-list {
  display: grid;
  gap: 1.1rem;
}

.post-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: rise 0.7s ease both;
}

.post-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 48px rgba(74, 58, 48, 0.1);
}

.post-index {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--sage-deep);
  background: linear-gradient(145deg, rgba(232, 201, 196, 0.55), rgba(111, 143, 127, 0.18));
  font-size: 0.95rem;
}

.post-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.post-body h3 a {
  color: var(--ink);
}

.post-body h3 a:hover {
  color: var(--sage-deep);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-excerpt {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-more {
  color: var(--sage);
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Article page */
.article-hero {
  padding: 3.2rem 0 1.5rem;
  text-align: center;
  animation: rise 0.75s ease both;
}

.article-hero h1 {
  margin: 0 auto 1rem;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
  animation: rise 0.85s ease both;
}

.article-content {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.article-content p {
  margin: 0 0 1.15rem;
}

.article-content strong {
  color: var(--ink);
  font-weight: 600;
}

.article-content img {
  margin: 1.4rem auto;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(74, 58, 48, 0.12);
}

.article-content figure {
  margin: 1.5rem 0;
}

.related {
  margin-top: 0.5rem;
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.related-list {
  display: grid;
  gap: 0.75rem;
}

.related-list a {
  display: block;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.related-list a:hover {
  background: #fff;
  color: var(--sage-deep);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.8rem;
  margin-top: 1rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.site-footer .brand-mini {
  font-family: var(--font-display);
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

/* 404 */
.page-empty {
  padding: 6rem 0;
  text-align: center;
}

.page-empty h1 {
  font-family: var(--font-display);
  font-size: 2rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-item:nth-child(1) { animation-delay: 0.05s; }
.post-item:nth-child(2) { animation-delay: 0.12s; }
.post-item:nth-child(3) { animation-delay: 0.19s; }
.post-item:nth-child(4) { animation-delay: 0.26s; }
.post-item:nth-child(5) { animation-delay: 0.33s; }

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.4rem));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0.7rem;
    left: 0.7rem;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .post-item {
    grid-template-columns: auto 1fr;
  }

  .post-more {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
