/* 光豆社官网 — 视觉：豆青绿 + 暖纸白，非紫、非奶油陶土、非报刊风 */
:root {
  --brand: #0f766e;
  --brand-deep: #0b4f4a;
  --brand-soft: #5eead4;
  --ink: #14201e;
  --muted: #5b6b68;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: rgba(15, 118, 110, 0.14);
  --shadow: 0 18px 50px rgba(11, 79, 74, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", "Noto Serif SC", serif;
  --font-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 234, 212, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 118, 110, 0.12), transparent 50%),
    linear-gradient(180deg, #eef7f4 0%, var(--paper) 28%, #f3f8f6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background:
    linear-gradient(145deg, var(--brand-soft), var(--brand)),
    #0f766e;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand-deep);
  background: rgba(15, 118, 110, 0.08);
}

.site-nav a.is-active {
  color: var(--brand-deep);
  background: rgba(15, 118, 110, 0.12);
  font-weight: 600;
}

.site-nav a.nav-cta {
  background: var(--brand);
  color: #fff;
  margin-left: 0.35rem;
}

.site-nav a.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
  animation: rise 0.8s ease both;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-index {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-banner {
  position: relative;
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
}

.page-banner-inner {
  position: relative;
  min-height: 220px;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #1a1a1a;
  box-shadow: var(--shadow);
}

.page-banner-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.page-banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08) 55%, transparent);
}

.page-banner-copy {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  color: #f5fffc;
}

.page-banner-copy h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.page-banner-copy p {
  margin: 0;
  opacity: 0.88;
}

.breadcrumb {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #2a3a37;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.split-visual {
  border-radius: 24px;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.15), transparent),
    linear-gradient(45deg, #ccfbf1, #99f6e4 40%, #5eead4);
  box-shadow: var(--shadow);
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.consult-list {
  display: grid;
  gap: 1rem;
}

.consult-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consult-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.consult-thumb {
  width: 120px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #99f6e4, #0f766e);
}

.consult-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.consult-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.consult-tag {
  font-size: 0.8rem;
  color: var(--brand-deep);
  background: rgba(15, 118, 110, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-panel,
.contact-form {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-form h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-list strong {
  font-weight: 600;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--brand);
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  background: #0b2e2b;
  color: rgba(245, 255, 252, 0.88);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-inner p,
.footer-inner a {
  color: rgba(245, 255, 252, 0.72);
  font-size: 0.92rem;
}

.footer-inner h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(245, 255, 252, 0.55);
}

.footer-bottom a {
  color: rgba(245, 255, 252, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

.img-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.split-visual .img-slot,
.consult-thumb .img-slot {
  color: var(--brand-deep);
  background: transparent;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .feature-strip,
  .split,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .consult-item {
    grid-template-columns: 96px 1fr;
  }

  .consult-tag {
    grid-column: 2;
    justify-self: start;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
  }

}
