:root {
  --green: #7C9473;
  --brown: #A86F4D;
  --sand: #B5A273;
  --apricot: #E3C9A7;
  --sage: #6E8E82;
  --mist-green: #A5B791;
  --coral: #B1725F;
  --teal: #77B4A4;
  --mist-purple: #8781A1;
  --yellow: #FFD662;
  --brick: #D14D33;
  --mist-blue: #7D99B5;
  --text: #4A4A43;
  --text-light: #7A7A70;
  --bg: #F5F2E9;
  --surface: #DED3C2;
  --white: #FFFDF8;
  --shadow-sm: 0 2px 8px rgba(74, 74, 67, 0.06);
  --shadow-md: 0 4px 16px rgba(74, 74, 67, 0.08);
  --shadow-lg: 0 8px 32px rgba(74, 74, 67, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(124, 148, 115, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(168, 111, 77, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(110, 142, 130, 0.06) 0%, transparent 50%),
    var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeUp 0.8s var(--transition);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(110, 142, 130, 0.08);
  padding: 0.35em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
}

/* ===== Section ===== */
.projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== Bento Grid (legacy) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ===== Platform Grid (新四产品首页) ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-platform {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.75rem 1.5rem;
  min-height: 320px;
}

.platform-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 16px 0 0 16px;
}

.platform-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

/* ===== Connect Note ===== */
.connect-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(110, 142, 130, 0.06);
  border: 1px dashed rgba(110, 142, 130, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.connect-icon {
  font-size: 1.1rem;
  color: var(--sage);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card-platform {
    min-height: unset;
  }
}

/* ===== Card Base ===== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(74, 74, 67, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

a.card {
  cursor: pointer;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 148, 115, 0.25);
}

.card:not(a) {
  opacity: 0.85;
}

/* ===== Card Sizes ===== */
.card-lg {
  grid-column: span 2;
  grid-row: span 2;
  gap: 1rem;
}

.card-md {
  grid-column: span 2;
  grid-row: span 1;
}

.card-sm {
  grid-column: span 1;
  grid-row: span 1;
}

/* ===== Card Icon ===== */
.card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.card-lg .card-icon {
  font-size: 2.8rem;
}

.card-icon-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  display: block;
}

.card-lg .card-icon-img {
  width: 5.6rem;
  height: 5.6rem;
}

/* ===== Card Body ===== */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card-lg .card-title {
  font-size: 1.35rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.card-lg .card-desc {
  font-size: 0.92rem;
  display: none;
}

/* ===== Card Features (Large only) ===== */
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Card Footer ===== */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ===== Badges ===== */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-online {
  background: rgba(124, 148, 115, 0.12);
  color: var(--green);
}

.badge-planning {
  background: rgba(181, 162, 115, 0.12);
  color: var(--sand);
}

.badge-exploring {
  background: rgba(110, 142, 130, 0.10);
  color: var(--sage);
}

/* ===== Card Arrow ===== */
.card-arrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

a.card:hover .card-arrow,
a.card:focus-visible .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Card Online States ===== */
.card-online {
  border-left: 3px solid var(--green);
}

.card-planning {
  border-left: 3px solid var(--sand);
}

.card-exploring {
  border-left: 3px solid var(--sage);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(74, 74, 67, 0.08);
  background: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-size: 1.3rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.card-enter {
  animation: fadeUp 0.6s var(--transition) both;
}

/* Stagger delays for cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.40s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.50s; }
.card:nth-child(11) { animation-delay: 0.55s; }
.card:nth-child(12) { animation-delay: 0.60s; }
.card:nth-child(13) { animation-delay: 0.65s; }
.card:nth-child(14) { animation-delay: 0.70s; }
.card:nth-child(15) { animation-delay: 0.75s; }
.card:nth-child(16) { animation-delay: 0.80s; }

/* ===== Responsive - Tablet ===== */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card-lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .card-md {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero {
    min-height: 80vh;
    padding: 3rem 1.25rem 5rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  }

  .card-features {
    display: none;
  }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .card-lg,
  .card-md,
  .card-sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-lg .card-desc {
    display: block;
  }

  .hero {
    min-height: 75vh;
    padding: 2.5rem 1rem 4rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-icon {
    font-size: 1.6rem;
  }

  .card-lg .card-icon {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-lg .card-title {
    font-size: 1.1rem;
  }
}

.platform-grid.platform-grid--single{grid-template-columns:minmax(0,760px);justify-content:center}

.platform-grid--pair{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1100px;margin:auto}@media(max-width:720px){.platform-grid--pair{grid-template-columns:1fr}}
