/* 智绘家官网 — 极简商务风 */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #888888;
  --accent: #4a90d9;
  --contact-accent: #2d8a5e;
  --contact-bg: #f5f6f8;
  --footer-bg: #1a1a1a;
  --footer-text: #e8e8e8;
  --header-h: 96px;
  --container: min(1200px, 100% - 48px);
  --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.5625rem);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.nav a:hover {
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #eaeaea;
}

.hero-track {
  position: relative;
  min-height: clamp(320px, 55vw, 620px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-slide--full.is-active {
  position: relative;
}

.hero-slide--full img {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 55vw, 620px);
  max-height: min(85vh, 720px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 2rem 1.5rem 3.25rem;
  font-size: clamp(1.25rem, 3.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.1);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 72px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  color: #fff;
  font-size: 0;
  transition: background 0.2s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-arrow--prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.hero-arrow--next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.hero-arrow--prev::after,
.hero-arrow--next::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-bottom: none;
  border-left: none;
}

.hero-arrow--prev::after {
  transform: rotate(-135deg);
  margin-left: 16px;
}

.hero-arrow--next::after {
  transform: rotate(45deg);
  margin-right: 16px;
}

/* Brand tagline */
.section--tagline {
  padding-block: 2.75rem 2.25rem;
  background: var(--bg);
  border-bottom: 1px solid #eee;
}

.tagline-inner {
  text-align: center;
}

.tagline-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tagline-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.tagline-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, var(--accent), rgba(74, 144, 217, 0.35));
  border-radius: 2px;
}

/* Offerings / 业务矩阵 */
.section--offerings {
  padding-block: 3.5rem 4rem;
  background: var(--bg);
}

.offerings-header {
  text-align: center;
  margin-bottom: 2rem;
}

.offerings-heading {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.offering-card {
  padding: 1.5rem 1.25rem;
  background: var(--bg-muted);
  border: 1px solid #ebebeb;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.offering-card:hover {
  border-color: #ddd;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.offering-name {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.offering-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
}

/* Contact / 期待与您合作 */
.section--contact {
  padding-block: 4rem 4.5rem;
  background: var(--contact-bg);
  border-top: 1px solid #e8eaed;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-copy {
  max-width: 36rem;
}

.contact-title {
  margin: 0 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.contact-accent {
  display: block;
  width: 52px;
  height: 5px;
  margin: 1.1rem 0 1.35rem;
  background: var(--contact-accent);
  border-radius: 2px;
}

.contact-intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #5c5c5c;
}

.contact-card-wrap {
  display: flex;
  justify-content: flex-end;
}

.contact-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 2.25rem;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(26, 26, 26, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-card-name {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.contact-card-line {
  margin: 0;
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.6;
}

.contact-label {
  color: #777;
}

.contact-phone {
  font-weight: 600;
  color: #333;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: var(--contact-accent);
}

/* Sections (shared) */
.section {
  padding-block: 4rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  font-size: 0.9375rem;
}

.footer-nav a {
  color: #fff;
  opacity: 0.95;
}

.footer-nav a:hover {
  opacity: 0.75;
}

.footer-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 1.5rem auto 1.25rem;
  max-width: 480px;
}

.footer-meta,
.footer-copy {
  margin: 0.35rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-beian {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-beian:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid #eee;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .logo {
    white-space: normal;
    max-width: 70%;
  }

  .hero-arrow {
    width: 36px;
    height: 56px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card-wrap {
    justify-content: stretch;
  }

  .contact-card {
    max-width: none;
  }
}

@media (max-width: 540px) {
  :root {
    --container: min(100%, 100% - 32px);
  }
}
