/* 喜逢出彩 — 单页站点样式 */
:root {
  --color-brand: #e84c3d;
  --color-brand-dark: #c73a2d;
  --color-text: #333;
  --color-muted: #666;
  --color-nav: #444;
  --bg-cream: #fffbf5;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

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

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

/* —— 顶栏 —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-size: 0.95rem;
  color: var(--color-nav);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--color-brand);
}

.nav-link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-brand);
}

/* —— 区块通用 —— */
.section {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

.section-desc {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* —— 图一：首屏 —— */
.hero {
  /* 首屏纵向留白较原先减少约 1/3（上下各约 2/3 原值） */
  min-height: calc((100vh - var(--header-h)) * 2 / 3);
  padding-top: calc(var(--header-h) + 37px);
  padding-bottom: 53px;
  background: linear-gradient(135deg, #fffbf7 0%, #fff5f0 45%, #ffe8e0 100%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-brand);
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  border: 2px solid var(--color-brand);
  box-shadow: 0 4px 14px rgba(232, 76, 61, 0.35);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.btn-outline {
  background: #fff;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn-outline:hover {
  background: #fff5f3;
}

/* 右侧圆环 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  position: relative;
  width: min(320px, 85vw);
  height: min(320px, 85vw);
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, #ffb347 0%, #ffcc33 40%, #f5a623 100%);
  box-shadow: 0 20px 50px rgba(245, 166, 35, 0.35);
}

.hero-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-circle-main {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  color: var(--color-brand);
}

.hero-circle-sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.hero-badge {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffcc33;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* —— 图二：服务 —— */
.services {
  background: linear-gradient(180deg, #fff9f5 0%, #fff 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fffbf5;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}

.service-icon-red {
  background: linear-gradient(145deg, #e84c3d, #c73a2d);
}

.service-icon-amber {
  background: linear-gradient(145deg, #f5a623, #e8940c);
}

.service-card-title {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 16px;
  line-height: 1.65;
}

.service-bullets {
  margin: 0;
  padding-left: 1.1em;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.service-bullets li {
  margin-bottom: 6px;
}

/* —— 案例 —— */
.cases {
  background: #fafafa;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.case-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.case-img-1 {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&q=80");
}

.case-img-2 {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=80");
}

.case-img-3 {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?w=800&q=80");
}

.case-img-4 {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.08)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&q=80");
}

.case-body {
  padding: 22px 24px 26px;
}

.case-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.case-metric {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 12px;
}

.case-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 16px;
  line-height: 1.65;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.tag-red {
  background: #ffe4e0;
  color: #c73a2d;
}
.tag-yellow {
  background: #fff3cd;
  color: #856404;
}
.tag-blue {
  background: #e3f2fd;
  color: #1565c0;
}
.tag-green {
  background: #e8f5e9;
  color: #2e7d32;
}
.tag-purple {
  background: #f3e5f5;
  color: #7b1fa2;
}
.tag-pink {
  background: #fce4ec;
  color: #c2185b;
}
.tag-cyan {
  background: #e0f7fa;
  color: #00838f;
}
.tag-orange {
  background: #fff3e0;
  color: #e65100;
}
.tag-teal {
  background: #e0f2f1;
  color: #00695c;
}
.tag-mint {
  background: #e8f5e9;
  color: #388e3c;
}
.tag-lime {
  background: #f1f8e9;
  color: #558b2f;
}
.tag-rose {
  background: #fce4ec;
  color: #ad1457;
}

/* —— 关于 —— */
.about {
  background: #fafafa;
  padding-bottom: 72px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.about-heading {
  font-size: 1.75rem;
  margin: 0 0 20px;
}

.about-text {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
}

.stat-red {
  color: var(--color-brand);
}
.stat-gold {
  color: #c9a227;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.about-card {
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.about-card:last-child {
  margin-bottom: 0;
}

.about-card-yellow {
  background: #fff9e6;
}

.about-card-pink {
  background: #fff0f0;
}

.about-card-title {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.about-vision {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* —— 联系 + 页脚 —— */
.contact {
  padding: 0;
  margin: 0;
}

.contact-gradient {
  background: linear-gradient(180deg, #ff8a3d 0%, #e85d2c 45%, #d94a28 100%);
  padding-top: calc(var(--header-h) + 48px);
}

.contact-inner {
  padding-bottom: 48px;
}

.contact-title {
  text-align: center;
  color: #fff;
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.contact-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  margin: 0 0 40px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.contact-card-title {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.contact-card-line {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.contact-card-line.muted {
  opacity: 0.88;
  font-size: 0.85rem;
}

.contact-card-line.address {
  line-height: 1.6;
}

.site-footer {
  text-align: center;
  padding: 28px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-copy {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-icp {
  margin: 0;
  font-size: 0.85rem;
}

.footer-icp a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-icp a:hover {
  opacity: 0.92;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .nav-link {
    font-size: 0.82rem;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }

  :root {
    --header-h: 88px;
  }
}
