:root {
  --kiwi: #6B8E23;
  --yellow: #FFD700;
  --orange: #FF8C00;
  --deep-teal: #004D40;
  --wine: #800020;
  --indigo: #3B1F6E;
  --cream: #FDF5E6;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --graphite: #37474F;

  --font-display: "Arial Black", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;

  --container-max: 1140px;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);

  --scroll-progress: 0;
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--container-max));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--kiwi), var(--yellow), var(--orange));
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1200;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 12px 8px 18px;
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  color: var(--white);
  pointer-events: auto;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header[data-scrolled="true"] .header-inner {
  background: rgba(0, 77, 64, 0.92);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kiwi);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--yellow);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 11px;
  border-radius: 60% 60% 50% 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow:
    -7px 4px 0 -1px var(--ink),
    7px 4px 0 -1px var(--ink),
    0 -10px 0 -1px var(--ink),
    -4px -8px 0 -1px var(--ink),
    4px -8px 0 -1px var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-list a[aria-current="page"] {
  background: var(--kiwi);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.3s ease, color 0.3s ease;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.42);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 52px;
  padding: 16px 32px;
  font-size: 1.125rem;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, background 0.3s ease;
}

.nav-toggle-line {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
  background:
    radial-gradient(circle at 8% 90%, rgba(255, 215, 0, 0.1), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(107, 142, 35, 0.28), transparent 46%),
    var(--deep-teal);
  color: var(--cream);
  border-radius: 48px 48px 0 0;
  margin-top: 72px;
  padding-top: 56px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--yellow);
}

.footer-brand-slogan {
  font-size: 0.95rem;
  color: rgba(253, 245, 230, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  border-left: 4px solid var(--orange);
  padding-left: 12px;
  line-height: 1.4;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(253, 245, 230, 0.82);
}

.footer-list a {
  color: rgba(253, 245, 230, 0.82);
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: var(--yellow);
}

.footer-note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(253, 245, 230, 0.8);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.875rem;
  color: rgba(253, 245, 230, 0.65);
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section {
  padding: 84px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.3em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--graphite);
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--graphite);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--kiwi);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.post-content {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  color: var(--ink);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.4em;
}

.post-content p {
  margin-top: 1.1em;
}

.image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.96);
    border-radius: var(--radius-lg);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-list a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-footer {
    border-radius: 32px 32px 0 0;
    margin-top: 48px;
    padding-top: 40px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 600px) {
  .site-header {
    top: 8px;
  }

  .header-inner {
    padding: 6px 10px 6px 14px;
    border-radius: 28px;
  }

  .container {
    width: min(100% - 24px, var(--container-max));
  }

  .brand-name {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }

  .btn-sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .icon-link {
    width: 36px;
    height: 36px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
