:root {
  --green: #7C9473;
  --brown: #A86F4D;
  --sand: #B5A273;
  --apricot: #E3C9A7;
  --sage: #6E8E82;
  --mist-purple: #7D6C9C;
  --blueberry: #5B4A7A;
  --blueberry-light: #8B7BB5;
  --text: #4A4A43;
  --text-light: #7A7A70;
  --bg: #F5F2E9;
  --surface: #F0ECF6;
  --white: #FFFDF8;
  --shadow-sm: 0 2px 8px rgba(74, 74, 67, 0.06);
  --shadow-md: 0 4px 16px rgba(74, 74, 67, 0.08);
  --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;
}

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

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

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(125, 108, 156, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(139, 123, 181, 0.06) 0%, transparent 50%),
    var(--surface);
}

.hero-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.9rem;
  color: var(--blueberry-light);
  font-weight: 500;
  transition: color var(--transition);
}

.hero-back:hover { color: var(--blueberry); }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--blueberry-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

/* ===== Branches Main ===== */
.branches {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

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

.section-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Category Section ===== */
.category-section {
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--surface);
}

.cat-icon { font-size: 1.2rem; }

.cat-count {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.25rem;
}

/* ===== Unit Grid ===== */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

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

.unit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.unit-planning {
  border-left: 3px solid var(--blueberry-light);
}

.unit-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.unit-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blueberry-light);
  padding: 0.1em 0.55em;
  border-radius: 4px;
}

.unit-icon { font-size: 1.4rem; }

.unit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.unit-tagline {
  font-size: 0.75rem;
  color: var(--blueberry-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.unit-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.unit-meta li {
  font-size: 0.8rem;
  color: var(--text-light);
}

.unit-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.unit-badge {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.badge-planning {
  background: rgba(125, 108, 156, 0.1);
  color: var(--blueberry-light);
}

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

.site-footer a {
  font-size: 0.9rem;
  color: var(--blueberry-light);
  font-weight: 500;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--blueberry); }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .unit-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 30vh;
    padding: 3rem 1rem 2rem;
  }

  .hero-inner h1 {
    font-size: 1.6rem;
  }

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

  .unit-card {
    padding: 1rem;
  }
}
