:root {
  --ink: #0e233f; /* deep navy */
  --ink-2: #123a4e; /* blue teal */
  --accent: #b08d57; /* muted gold */
  --bg: #f6f4ef; /* ivory */
  --card: #ffffff;
  --muted: #5b6a75;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(14, 35, 63, 0.08);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  line-height: 1.25;
}
h1 {
  font-size: 2.5rem;
  margin: 0 0 0.4rem;
}
h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
p {
  margin: 0 0 1rem;
  color: var(--muted);
}
a {
  color: var(--ink-2);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}
.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.main-nav a:hover {
  border-color: rgba(16, 53, 84, 0.15);
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-2);
  font-weight: 600;
}
.btn-primary {
  background: var(--ink-2);
  color: #fff;
  border-color: var(--ink-2);
}
.btn-primary:hover {
  background: #0f2f41;
}
.btn-ghost {
  color: var(--ink-2);
  background: transparent;
}
.text-cta {
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.text-cta:hover {
  border-color: var(--accent);
  color: var(--ink);
}
/* Hero 场景下让次要按钮在深色背景上更清晰 */
.hero .btn-ghost {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.hero .btn-ghost:hover,
.hero .btn-ghost:focus {
  background: rgba(255, 255, 255, 0.22);
}

/* Innovation 1: Split hero with angled overlay */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 60vh;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("background.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10, 25, 44, 0.82) 0%,
    rgba(10, 25, 44, 0.62) 45%,
    rgba(10, 25, 44, 0) 100%
  );
  /* 更明显的斜切覆盖层 */
  clip-path: polygon(0 0, 100% 0, 65% 100%, 0% 100%);
}
/* Hero 底部斜形切割增强可视化 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-content {
  position: relative;
  padding: 80px 20px;
  color: #fff;
}
.hero-content h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* angled separators */
.diagonal-sep {
  height: 36px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(176, 141, 87, 0.25) 50%,
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}
.diagonal-sep.flip {
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-head p {
  max-width: 760px;
}

.cards {
  display: grid;
  gap: 18px;
}
.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Innovation 2: Alternating timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tl-card {
  position: relative;
  margin: 14px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.timeline li:nth-child(odd) .tl-card {
  grid-column: 1;
  margin-right: 28px;
}
.timeline li:nth-child(even) .tl-card {
  grid-column: 2;
  margin-left: 28px;
}
.tl-card time {
  font-weight: 700;
  color: var(--ink-2);
}

/* Innovation 3: CSS scroll-snap gallery (max 3 items) */
.snap-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.snap-item {
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.snap-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.snap-item figcaption {
  padding: 10px 12px;
  font-weight: 600;
}

/* Forms */
.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  max-width: 640px;
}
.subscribe-form label {
  grid-column: 1 / -1;
  font-weight: 600;
}
.subscribe-form input {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.subscribe-form .form-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* Required small image style */
.small-image {
  clip-path: inset(0% 0% 5% 5%);
}

/* Responsive */
@media (max-width: 920px) {
  .cards.three {
    grid-template-columns: 1fr;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline li:nth-child(odd) .tl-card,
  .timeline li:nth-child(even) .tl-card {
    grid-column: 1;
    margin: 14px 0 14px 24px;
  }
  .snap-gallery {
    grid-auto-columns: 88%;
  }
  .subscribe-form {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
