:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #fffaf1;
  --text: #222326;
  --muted: #6f6b63;
  --line: #e8dfd2;
  --line-strong: #dbcbb8;
  --primary: #8f3d2e;
  --primary-dark: #6f2c22;
  --primary-soft: #f6dfd8;
  --gold: #b88238;
  --shadow: 0 18px 50px rgba(93, 58, 36, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 223, 216, 0.78), transparent 360px),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 42%, #f5f1ea 100%);
  line-height: 1.7;
}

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

.container {
  width: min(calc(100% - 36px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 223, 210, 0.82);
}

.simple-header {
  position: relative;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #c17645);
  box-shadow: 0 12px 24px rgba(143, 61, 46, 0.20);
}

.brand-text {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  background: rgba(143, 61, 46, 0.08);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 20px;
}

.hero {
  padding: 74px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-desc {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(143, 61, 46, 0.24);
}

.btn.ghost {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero-card {
  padding: 18px;
  border: 1px solid rgba(232, 223, 210, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.note-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(232, 223, 210, 0.74);
}

.note-card + .note-card {
  margin-top: 12px;
}

.top-card {
  background: linear-gradient(135deg, #fff, var(--surface-soft));
}

.note-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(143, 61, 46, 0.10);
}

.note-dot.soft {
  background: #6f7c62;
  box-shadow: 0 0 0 6px rgba(111, 124, 98, 0.12);
}

.note-dot.warm {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(184, 130, 56, 0.12);
}

.note-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.note-card p,
.project-card p,
.about-content p,
.contact-panel p,
.article-card p {
  color: var(--muted);
}

.note-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.section {
  padding: 62px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head p:last-child {
  color: var(--muted);
}

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

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(93, 58, 36, 0.06);
}

.active-card {
  border-color: rgba(143, 61, 46, 0.24);
  background: linear-gradient(180deg, #fff, #fffaf5);
}

.card-label {
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
}

.card-label.muted {
  color: #6d665c;
  background: #f0e8dc;
}

.project-card p {
  flex: 1;
  margin-bottom: 22px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(143, 61, 46, 0.08);
  font-weight: 700;
}

.card-link:hover {
  background: rgba(143, 61, 46, 0.14);
}

.card-link.disabled {
  color: #8a8177;
  background: #f1ebe2;
  cursor: default;
}

.soft-section {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(232, 223, 210, 0.72);
  border-bottom: 1px solid rgba(232, 223, 210, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 36px;
}

.about-content {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.about-content p:last-child,
.contact-panel p:last-child,
.article-card p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #fff8ec);
  box-shadow: var(--shadow);
}

.contact-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(232, 223, 210, 0.86);
}

.site-footer {
  padding: 34px 0;
  color: #766d62;
  background: #f1ebe2;
  border-top: 1px solid var(--line-strong);
}

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

.footer-inner p {
  margin: 6px 0 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 14px;
}

.footer-links a {
  color: var(--primary-dark);
}

.page-main {
  min-height: calc(100vh - 210px);
  padding: 64px 0;
}

.center-page {
  display: flex;
  align-items: center;
}

.article-card {
  max-width: 820px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.article-card h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.article-actions {
  margin-top: 26px;
}

.small-card {
  text-align: center;
}

@media (max-width: 920px) {
  .hero-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav:not(.static-nav) {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 12px;
  }

  .static-nav {
    gap: 2px;
  }

  .static-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 0 28px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-desc {
    font-size: 16px;
  }

  .project-card,
  .about-content,
  .contact-panel,
  .article-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Wenduona title nowrap v2 start */
.hero-copy {
  max-width: 100% !important;
  width: 100% !important;
}

.hero-copy h1 {
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-break: strict !important;
  font-size: clamp(38px, 5vw, 62px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.06em !important;
}

.hero-desc {
  max-width: 760px !important;
}

@media (max-width: 720px) {
  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
}
/* Wenduona title nowrap v2 end */

