/* ===== 城市乐园 CITYFUNS 官网样式 ===== */
:root {
  --yellow: #ffc60b;
  --yellow-deep: #f5a800;
  --dark: #101828;
  --navy: #0d1b2e;
  --ink: #1f2937;
  --gray: #667085;
  --line: #eaecf0;
  --tint: #fff8e1;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 56px rgba(16, 24, 40, .16);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }
section { scroll-margin-top: var(--header-h); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--dark);
  box-shadow: 0 10px 24px rgba(245, 168, 0, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(245, 168, 0, .45); }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }

/* ===== 导航栏 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(16, 24, 40, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  transition: color .3s ease;
}
.brand-mark span { color: var(--yellow); }
.brand-name { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .2em; transition: color .3s ease; }
.site-header.scrolled .brand-mark { color: var(--dark); }
.site-header.scrolled .brand-name { color: var(--dark); }

.main-nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  border-radius: 8px;
  transition: color .3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.site-header.scrolled .nav-link { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 18, 32, .82) 0%, rgba(10, 18, 32, .45) 55%, rgba(10, 18, 32, .15) 100%);
}
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-kicker {
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 26px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .88);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 34px;
  color: rgba(255, 255, 255, .8);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== 数据条 ===== */
.stats {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; color: var(--dark); }
.stat-num { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.2; }
.stat-num em { font-style: normal; font-size: .55em; margin-left: 2px; }
.stat-label { font-size: 14px; font-weight: 500; opacity: .82; margin-top: 4px; }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #e6eaf2; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--yellow-deep);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: .04em; }
.section-desc { margin-top: 14px; font-size: 16px; color: var(--gray); }
.section-dark .section-desc { color: rgba(230, 234, 242, .7); }

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { margin-bottom: 18px; font-size: 16.5px; color: #344054; }
.about-text strong { color: var(--dark); }
.about-history {
  padding: 16px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--tint);
  border-radius: 0 12px 12px 0;
  font-size: 15px !important;
}
.about-cards { display: grid; gap: 22px; }
.entity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.entity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.entity-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.entity-card h3 { font-size: 20px; margin-bottom: 10px; }
.entity-card p { font-size: 15px; color: var(--gray); }

/* ===== 战略定位横幅 ===== */
.strategy {
  position: relative;
  padding: 110px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.strategy-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.strategy-overlay { position: absolute; inset: 0; background: rgba(8, 14, 26, .72); }
.strategy-content { position: relative; z-index: 2; }
.strategy-content h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 18px; }
.strategy-content > p { color: rgba(255, 255, 255, .82); font-size: 16.5px; margin-bottom: 34px; }
.strategy-pills { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pill {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 198, 11, .65);
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(255, 198, 11, .08);
}

/* ===== 核心业务 ===== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--yellow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.biz-icon { font-size: 40px; margin-bottom: 14px; }
.biz-scene { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--yellow-deep); }
.biz-card h3 { font-size: 24px; margin: 4px 0 8px; }
.biz-slogan { font-size: 15px; color: var(--gray); margin-bottom: 20px; }
.biz-meta { list-style: none; margin-top: auto; border-top: 1px dashed var(--line); padding-top: 16px; }
.biz-meta li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  padding: 6px 0;
  color: #344054;
}
.biz-meta li span {
  flex: none;
  width: 66px;
  color: var(--gray);
  font-size: 13.5px;
}

/* ===== IP 矩阵 ===== */
.ip-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  padding: 44px;
  margin-bottom: 36px;
}
.ip-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.ip-feature-info h3 { font-size: 30px; margin-bottom: 14px; color: #fff; }
.ip-feature-info > p { font-size: 15.5px; color: rgba(230, 234, 242, .8); margin-bottom: 24px; }
.ip-feature-info strong { color: var(--yellow); }
.ip-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ip-figures b { display: block; font-size: 22px; color: var(--yellow); }
.ip-figures span { font-size: 13px; color: rgba(230, 234, 242, .65); }
.ip-feature-img img {
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
}
.ip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ip-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.ip-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 198, 11, .55);
  background: rgba(255, 198, 11, .07);
}
.ip-card h4 { font-size: 18px; color: var(--yellow); margin-bottom: 10px; }
.ip-card p { font-size: 13.8px; color: rgba(230, 234, 242, .72); line-height: 1.7; }

/* ===== 核心优势 ===== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.strength-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.strength-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.strength-no {
  font-size: 44px;
  font-weight: 800;
  color: var(--tint);
  -webkit-text-stroke: 1.5px var(--yellow-deep);
  line-height: 1;
  margin-bottom: 16px;
}
.strength-card h3 { font-size: 19px; margin-bottom: 10px; }
.strength-card p { font-size: 14.2px; color: var(--gray); }

.capital-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.capital-card {
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--navy);
  color: #e6eaf2;
}
.capital-card h3 { font-size: 20px; color: var(--yellow); margin-bottom: 12px; }
.capital-card p { font-size: 14.5px; color: rgba(230, 234, 242, .78); }
.capital-data { background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: var(--dark); }
.capital-data h3 { color: var(--dark); }
.capital-figures { display: grid; gap: 12px; }
.capital-figures b { font-size: 24px; font-weight: 800; margin-right: 10px; }
.capital-figures span { font-size: 14px; opacity: .85; }

/* ===== 成功案例 ===== */
.case-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
.case-feature img { border-radius: 16px; }
.case-feature-info h3 { font-size: 24px; margin-bottom: 12px; }
.case-feature-info p { font-size: 15px; color: var(--gray); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9.6;
}
.case-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.case-card:hover img { transform: scale(1.07); }
.case-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(8, 14, 26, .85));
  color: #fff;
}
.case-card figcaption b { display: block; font-size: 16px; }
.case-card figcaption span { font-size: 13px; color: rgba(255, 255, 255, .8); }

.case-render { margin-top: 34px; text-align: center; }
.case-render img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.case-render p { margin-top: 14px; font-size: 14px; color: var(--gray); }

/* ===== 页脚 ===== */
.footer { background: var(--navy); color: #e6eaf2; padding: 90px 0 34px; }
.footer-cta { text-align: center; max-width: 680px; margin: 0 auto 70px; }
.footer-cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 16px; color: #fff; }
.footer-cta p { color: rgba(230, 234, 242, .72); margin-bottom: 30px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand .brand-mark { font-size: 22px; }
.footer-brand p { font-size: 13.5px; color: rgba(230, 234, 242, .55); margin-top: 6px; }
.footer-entities { text-align: right; font-size: 14.5px; color: rgba(230, 234, 242, .8); }
.footer-loc { color: var(--yellow); font-weight: 600; letter-spacing: .2em; margin-top: 6px; }
.footer-copy {
  text-align: center;
  margin-top: 34px;
  font-size: 13px;
  color: rgba(230, 234, 242, .4);
}

/* ===== 灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 14, 26, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox p { color: rgba(255, 255, 255, .85); font-size: 15px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 34px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ===== 入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .about-grid, .ip-feature, .case-feature { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .capital-grid { grid-template-columns: 1fr; }
  .ip-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 70px 0; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    padding: 12px 4%;
    box-shadow: 0 20px 40px rgba(16, 24, 40, .12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav .nav-link { color: var(--ink); padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .strength-grid, .ip-grid, .case-grid { grid-template-columns: 1fr; }
  .ip-figures { grid-template-columns: repeat(2, 1fr); }
  .footer-entities { text-align: left; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
