/* =========================================================
   创格地产官网 · 首页（苹果官网风格）
   ========================================================= */
.page-home { background: #fff; overflow-x: hidden; }
.page-home, .page-home body { overflow-y: auto !important; }

.h-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.h-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .24em; color: rgba(255, 255, 255, .8); }
.h-eyebrow--brand { color: var(--brand); letter-spacing: .08em; font-size: 17px; }
.h-title { margin: 0; color: #1d1d1f; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: .01em; }
.h-lead { margin: 22px 0 0; max-width: 760px; font-size: 19px; line-height: 1.7; color: #6e6e73; }
.h-head { margin-bottom: 48px; }

/* 按钮与链接 */
.h-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px;
	border-radius: 980px; font-size: 16px; font-weight: 500; transition: background .2s, color .2s, opacity .2s;
}
.h-btn--light { background: #fff; color: #1d1d1f !important; }
.h-btn--light:hover { background: rgba(255, 255, 255, .86); }
.h-btn--brand { background: var(--brand); color: #fff !important; }
.h-btn--brand:hover { background: var(--brand-dark); }
.h-link { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--brand) !important; }
.h-link::after { content: ""; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 4px; transition: transform .2s; }
.h-link:hover::after { transform: translateX(3px) rotate(45deg); }
.h-link--light { color: #fff !important; }

/* ---------- 首屏 ---------- */
.h-hero { position: relative; height: calc(100vh - 56px); min-height: 560px; max-height: 1000px; overflow: hidden; background: #000; color: #fff; }
.h-hero__slides, .h-slide { position: absolute; inset: 0; }
.h-slide {
	background-size: cover; background-position: center; opacity: 0; transform: scale(1.08);
	transition: opacity 1.4s ease, transform 7s linear;
}
.h-slide.is-active { opacity: 1; transform: scale(1); }
.h-hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .08) 38%, rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, .55) 100%);
}
.h-hero__text { position: absolute; left: 0; right: 0; top: 13%; text-align: center; padding: 0 20px; }
.h-hero__text h1 { margin: 0; color: #fff; font-size: clamp(44px, 7vw, 96px); font-weight: 700; letter-spacing: .14em; line-height: 1.1; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.h-hero__sub { margin: 18px 0 0; font-size: clamp(18px, 2vw, 24px); letter-spacing: .3em; color: rgba(255, 255, 255, .9); }
.h-hero__links { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.h-hero__bar {
	position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between;
	max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.h-hero__caption { color: #fff !important; display: flex; flex-direction: column; gap: 2px; }
.h-hero__caption b { font-size: 22px; font-weight: 600; }
.h-hero__caption span { font-size: 14px; color: rgba(255, 255, 255, .78); }
.h-hero__caption b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-top: 1.6px solid #fff; border-right: 1.6px solid #fff; transform: rotate(45deg) translateY(-3px); }
.h-hero__dots { display: flex; gap: 8px; }
.h-hero__dots button {
	position: relative; width: 36px; height: 4px; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
	background: rgba(255, 255, 255, .35); cursor: pointer;
}
.h-hero__dots button i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.h-hero__dots button.is-active i { animation: hDot 6s linear forwards; }
@keyframes hDot { to { width: 100%; } }

/* ---------- 通用版块 ---------- */
.h-section { padding: 120px 0; }

/* 关于创格 */
.h-about { text-align: center; }
.h-about .h-lead { margin-left: auto; margin-right: auto; }
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px auto 48px; max-width: 960px; }
.h-stat { padding: 8px 12px; }
.h-stat + .h-stat { border-left: 1px solid #e5e5ea; }
.h-stat b { display: block; font-size: 52px; line-height: 1.1; font-weight: 700; color: #1d1d1f; }
.h-stat b small { font-size: 22px; font-weight: 600; margin-left: 2px; }
.h-stat span { display: block; margin-top: 8px; font-size: 15px; color: #6e6e73; }

/* 精选项目 */
.h-projects { background: #f5f5f7; }
.h-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-feature {
	position: relative; display: block; height: 560px; border-radius: 28px; overflow: hidden;
	background-size: cover; background-position: center; color: #fff !important;
	transition: transform .5s ease;
}
.h-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
.h-feature:hover { transform: scale(1.012); }
.h-feature__text { position: absolute; left: 40px; right: 40px; top: 40px; }
.h-feature__text span { font-size: 14px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .85); }
.h-feature__text b { display: block; margin-top: 6px; font-size: 40px; font-weight: 700; line-height: 1.15; }
.h-feature__text p { margin: 10px 0 14px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.h-feature__text em, .h-domain em, .h-card em { font-style: normal; }
.h-feature__text em { font-size: 17px; }
.h-feature__text em::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-top: 1.6px solid #fff; border-right: 1.6px solid #fff; transform: rotate(45deg) translateY(-2px); }

.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.h-card { display: block; background: #fff; border-radius: 24px; overflow: hidden; color: inherit !important; transition: transform .35s ease, box-shadow .35s ease; }
.h-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .35); }
.h-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e5e5ea; }
.h-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.h-card:hover .h-card__img img { transform: scale(1.05); }
.h-card__body { padding: 22px 26px 26px; }
.h-card__body span { font-size: 13px; color: #6e6e73; }
.h-card__body b { display: block; margin: 4px 0 6px; font-size: 22px; font-weight: 600; color: #1d1d1f; }
.h-card__body em { font-size: 14px; color: var(--brand); }

/* 业务板块 */
.h-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-domain {
	display: flex; flex-direction: column; padding: 36px 34px 32px; border-radius: 28px; background: #f5f5f7;
	color: inherit !important; transition: background .3s, transform .3s;
}
.h-domain:hover { background: #ededf0; transform: translateY(-4px); }
.h-domain i { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.h-domain i svg { width: 26px; height: 26px; }
.h-domain b { margin-top: 26px; font-size: 24px; font-weight: 600; color: #1d1d1f; }
.h-domain span { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #6e6e73; flex: 1; }
.h-domain em { margin-top: 20px; font-size: 15px; color: var(--brand); }
.h-domain em::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* 创格 App（黑色大卡片） */
.h-app-wrap { padding-top: 0; }
.h-app { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; background: #000; border-radius: 32px; padding: 64px 0 64px 72px; overflow: hidden; color: #f5f5f7; }
.h-app__icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 24px; }
.h-app h2 { margin: 0; color: #f5f5f7; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; font-weight: 700; }
.h-app h2 em { font-style: normal; color: #86868b; }
.h-app__text > p:not(.h-eyebrow) { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: #a1a1a6; max-width: 460px; }
.h-app .h-hero__links { justify-content: flex-start; }
.h-app__img img { width: 100%; display: block; }

/* ---------- 页脚 ---------- */
.h-footer { background: #f5f5f7; padding: 48px 0 28px; font-size: 13px; color: #6e6e73; }
.h-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #d2d2d7; }
.h-footer__col { display: flex; flex-direction: column; gap: 10px; }
.h-footer__col b { color: #1d1d1f; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.h-footer__col a, .h-footer__col span { color: #6e6e73 !important; font-size: 13px; }
.h-footer__col a:hover { color: #1d1d1f !important; text-decoration: underline; }
.h-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; }
.h-footer__bottom a { color: #6e6e73 !important; margin-left: 18px; }
.h-footer__bottom a:first-child { margin-left: 0; }
.h-footer__bottom a:hover { color: #1d1d1f !important; }
.h-beian img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .h-slide { transition: opacity .6s; transform: none !important; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
	.h-feature { height: 460px; }
	.h-cards { grid-template-columns: repeat(2, 1fr); }
	.h-domain-grid { grid-template-columns: repeat(2, 1fr); }
	.h-app { padding: 56px 0 56px 48px; }
	.h-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.h-section { padding: 72px 0; }
	.h-wrap { padding: 0 16px; }
	.h-hero { height: calc(100svh - 56px); min-height: 520px; }
	.h-hero__text { top: 14%; }
	.h-hero__text h1 { letter-spacing: .1em; }
	.h-hero__sub { letter-spacing: .2em; }
	.h-hero__bar { bottom: 26px; padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
	.h-hero__caption b { font-size: 19px; }
	.h-head { margin-bottom: 32px; }
	.h-lead { font-size: 16px; }
	.h-stats { grid-template-columns: repeat(2, 1fr); margin: 44px auto 36px; row-gap: 28px; }
	.h-stat:nth-child(3) { border-left: 0; }
	.h-stat b { font-size: 40px; }
	.h-feature-grid { grid-template-columns: 1fr; gap: 14px; }
	.h-feature { height: 420px; border-radius: 22px; }
	.h-feature__text { left: 26px; right: 26px; top: 28px; }
	.h-feature__text b { font-size: 32px; }
	.h-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
	.h-card { border-radius: 20px; }
	.h-domain-grid { grid-template-columns: 1fr; gap: 12px; }
	.h-domain { padding: 26px 24px; border-radius: 22px; }
	.h-domain b { margin-top: 18px; font-size: 21px; }
	.h-app { grid-template-columns: 1fr; padding: 44px 24px 0; border-radius: 24px; text-align: center; gap: 24px; }
	.h-app .h-hero__links { justify-content: center; }
	.h-app__text > p:not(.h-eyebrow) { margin-left: auto; margin-right: auto; font-size: 16px; }
	.h-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.h-footer__contact { grid-column: span 2; }
	.h-footer__bottom { flex-direction: column; }
	.h-footer__bottom a { margin-left: 0; margin-right: 14px; }
}
.h-title, .h-lead, .h-app h2 { text-wrap: balance; }
@media (max-width: 768px) {
	.h-title { font-size: 30px; }
	.h-about .h-title { font-size: 25px; text-wrap: nowrap; }
	.h-feature__text p { font-size: 15px; }
}
