@charset "utf-8";

/* 首页主视觉 v2（2026-11-02）
   在 css/index.css 之后加载：对旧 .main-top / .home-search-* 的绝对定位与固定高度做重置 */

.main-top {
	--blue: #2e6bff;
	--violet: #7a5cff;
	--cyan: #54d8ff;
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	min-height: clamp(780px, 88vh, 961px);
	padding: clamp(56px, 6vh, 88px) 0 64px;
	overflow: hidden;
	background-image:
		radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 62%),
		linear-gradient(118deg, #e6f9fd 0%, #d6e1fb 30%, #e4dbf7 62%, #d9defa 100%);
	background-size: 100% 100%, 240% 240%;
	background-position: 50% 0%, 0% 34%;
	animation: hero-aurora-flow 2.4s ease-in-out infinite alternate;
}

@keyframes hero-aurora-flow {
	to {
		background-position: 50% 0%, 100% 70%;
	}
}

/* 光斑背景 */
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}

.hero-orb {
	position: absolute;
	border-radius: 50%;
	will-change: transform;
}

.hero-orb--cyan {
	width: clamp(420px, 46vw, 860px);
	aspect-ratio: 1;
	left: -10%;
	top: -26%;
	background: radial-gradient(circle at 45% 45%, rgba(104, 210, 240, .62), rgba(104, 210, 240, 0) 67%);
	animation: hero-orb-a 3s ease-in-out infinite alternate;
}

.hero-orb--violet {
	width: clamp(380px, 40vw, 760px);
	aspect-ratio: 1;
	right: -10%;
	top: -20%;
	background: radial-gradient(circle at 50% 50%, rgba(146, 118, 232, .52), rgba(146, 118, 232, 0) 68%);
	animation: hero-orb-b 3.6s ease-in-out infinite alternate;
}

.hero-orb--blue {
	width: clamp(460px, 52vw, 940px);
	aspect-ratio: 1;
	left: 26%;
	bottom: -42%;
	background: radial-gradient(circle at 50% 50%, rgba(104, 138, 232, .42), rgba(104, 138, 232, 0) 70%);
	animation: hero-orb-c 4.4s ease-in-out infinite alternate;
}

@keyframes hero-orb-a {
	from { transform: translate3d(-6%, -4%, 0) scale(1); }
	to { transform: translate3d(28%, 20%, 0) scale(1.16); }
}

@keyframes hero-orb-b {
	from { transform: translate3d(8%, -6%, 0) scale(1.1); }
	to { transform: translate3d(-24%, 22%, 0) scale(.94); }
}

@keyframes hero-orb-c {
	from { transform: translate3d(-12%, 12%, 0) scale(.96); }
	to { transform: translate3d(16%, -18%, 0) scale(1.12); }
}

/* 网格纹理 */
.main-top::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(90deg, rgba(46, 107, 255, .075) 1px, transparent 1px),
		linear-gradient(180deg, rgba(46, 107, 255, .075) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 30%, #000 24%, transparent 76%);
	mask-image: radial-gradient(ellipse 78% 68% at 50% 30%, #000 24%, transparent 76%);
	animation: hero-grid-breathe 1.8s ease-in-out infinite alternate;
}

@keyframes hero-grid-breathe {
	from { opacity: .55; }
	to { opacity: 1; }
}

.hero-fade {
	position: absolute;
	inset: auto 0 0;
	z-index: 0;
	height: 140px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 88%, #fff 100%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
	width: min(1400px, calc(100% - 96px));
	margin: 0 auto;
}

/* 标题 */
.main-top-title {
	margin-top: clamp(20px, 5vh, 60px);
	text-align: center;
	animation: hero-rise-in .9s cubic-bezier(.2, .7, .2, 1) both;
}

.main-top-title h1 {
	margin: 0;
	font-size: clamp(36px, 3.2vw, 58px);
	line-height: 1.22;
	font-weight: 900;
	letter-spacing: .5px;
	color: #0b1322;
}

.main-top-title h1 .title-tail {
	white-space: nowrap;
	color: #0b1322;
}

.main-top-title h1 .title-accent {
	background: linear-gradient(100deg, #2e6bff 0%, #7a5cff 46%, #37a4ff 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: hero-span-shift 9s ease-in-out infinite alternate;
}

@keyframes hero-span-shift {
	to { background-position: 100% 0; }
}

.main-top-title p {
	margin: 20px 0 0;
	color: rgba(16, 28, 54, .58);
	font-size: 16px;
	letter-spacing: .4px;
}

/* 搜索面板 */
.home-search-panel {
	position: relative;
	top: auto;
	left: auto;
	width: min(980px, 100%);
	height: auto;
	margin: clamp(36px, 6vh, 56px) auto 0;
	padding: 20px 22px 16px;
	transform: none;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .6));
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow:
		0 34px 80px -36px rgba(37, 74, 166, .55),
		0 1px 0 rgba(255, 255, 255, .7) inset;
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	animation: hero-rise-in .9s cubic-bezier(.2, .7, .2, 1) .12s both;
}

.home-search-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(120deg, rgba(84, 216, 255, .85), rgba(122, 92, 255, .6) 48%, rgba(255, 255, 255, .25) 80%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: .65;
	pointer-events: none;
}

.home-search-panel > * {
	position: relative;
	z-index: 1;
}

.home-search-tabs {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	display: inline-flex;
	gap: 4px;
	height: auto;
	padding: 4px;
	overflow: visible;
	border-radius: 999px;
	background: rgba(46, 107, 255, .07);
	border: 1px solid rgba(46, 107, 255, .08);
}

.home-search-tabs::before {
	content: none;
	display: none;
}

.home-search-tabs button {
	position: relative;
	width: auto;
	min-width: 92px;
	height: 34px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #4f5a70;
	font-size: 14px;
	cursor: pointer;
	transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}

.home-search-tabs button span {
	display: inline;
	width: auto;
	height: auto;
}

.home-search-tabs button:hover {
	color: var(--blue);
}

.home-search-tabs button.active {
	color: var(--blue);
	font-weight: 600;
	background: #fff;
	box-shadow: 0 6px 16px -8px rgba(46, 107, 255, .65);
}

.home-search-box {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 62px;
	margin-top: 14px;
	padding: 6px 6px 6px 20px;
	border: 1px solid rgba(46, 107, 255, .12);
	border-bottom: 1px solid rgba(46, 107, 255, .12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 28px -22px rgba(34, 64, 140, .6);
	transition: border-color .25s ease, box-shadow .25s ease;
}

.home-search-box:focus-within {
	border-color: rgba(46, 107, 255, .45);
	box-shadow: 0 0 0 4px rgba(46, 107, 255, .12), 0 14px 28px -22px rgba(34, 64, 140, .6);
}

.home-search-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.home-search-left > .icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-right: 0;
	fill: none;
	stroke: #8b96ab;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-search-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin-left: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #1b2438;
	font-size: 16px;
}

.home-search-input::placeholder {
	color: #9aa4b6;
}

.search-clear {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(28, 56, 120, .06);
	color: #6d798e;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.search-clear[hidden] {
	display: none;
}

.search-clear:hover {
	background: rgba(28, 56, 120, .12);
	color: #2b3a56;
}

.search-clear svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.home-search-right {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
	margin-left: 0;
}

.home-image-search {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	color: #5c677c;
	font-size: 13px;
	white-space: nowrap;
	transition: color .2s ease, background .2s ease;
}

.home-image-search:hover {
	color: var(--blue);
	background: rgba(46, 107, 255, .07);
}

.home-image-search .icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 50px;
	margin-left: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 11px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	cursor: pointer;
	background-image: linear-gradient(135deg, #3d7dff 0%, #2e5bff 48%, #7a5cff 100%);
	background-size: 160% 100%;
	box-shadow: 0 14px 26px -12px rgba(46, 91, 255, .9);
	transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

.home-search-btn .icon {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-search-btn:hover {
	transform: translateY(-1px);
	background-position: 100% 0;
	box-shadow: 0 18px 30px -12px rgba(46, 91, 255, .95);
}

.home-search-btn:active {
	transform: translateY(0);
}

.home-hot-search {
	display: flex;
	align-items: center;
	gap: 14px;
	height: auto;
	margin-top: 14px;
	padding: 13px 4px 0;
	border-top: 1px dashed rgba(46, 107, 255, .16);
}

.home-hot-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	margin-right: 0;
	color: #4d576b;
	font-size: 13px;
}

.home-hot-title .icon {
	width: 16px;
	height: 16px;
	fill: rgba(255, 106, 61, .12);
	stroke: #ff6a3d;
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.home-hot-title span {
	margin-left: 0;
	font-size: 13px;
	font-weight: 400;
	color: #4d576b;
}

.home-hot-tags {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	overflow: visible;
	white-space: normal;
}

.home-hot-tags button {
	padding: 6px 14px;
	border: 1px solid rgba(46, 107, 255, .1);
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	color: #4d5870;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-hot-tags button:hover {
	color: var(--blue);
	background: #fff;
	border-color: rgba(46, 107, 255, .35);
	transform: translateY(-1px);
	box-shadow: 0 8px 16px -12px rgba(46, 107, 255, .8);
}

.home-hot-tags .home-hot-empty {
	padding: 0;
	border-radius: 0;
	background: none;
	color: #8b96ab;
	font-size: 13px;
	line-height: 30px;
	cursor: default;
}

/* 服务入口 */
.main-top-services {
	position: static;
	bottom: auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin-top: auto;
	padding: 0;
	padding-top: clamp(64px, 8vh, 100px);
}

.service-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 24px 24px 22px;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .48));
	border: 1px solid rgba(255, 255, 255, .85);
	box-shadow: 0 22px 44px -34px rgba(30, 60, 140, .65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
	animation: hero-rise-in .9s cubic-bezier(.2, .7, .2, 1) backwards;
}

.service-item:nth-child(1) { animation-delay: .3s; }
.service-item:nth-child(2) { animation-delay: .4s; }
.service-item:nth-child(3) { animation-delay: .5s; }
.service-item:nth-child(4) { animation-delay: .6s; }

.service-item::before {
	content: "";
	position: absolute;
	inset: auto -30% -55% -30%;
	height: 78%;
	background: radial-gradient(closest-side, var(--accent-soft), transparent);
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}

.service-item > * {
	position: relative;
	z-index: 1;
}

.service-item:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, .98);
	box-shadow: 0 34px 60px -32px rgba(35, 70, 160, .6);
}

.service-item:hover::before {
	opacity: 1;
}

.service-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	border-radius: 13px;
	color: var(--accent);
	background: linear-gradient(135deg, rgba(255, 255, 255, .9), var(--accent-soft));
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: 0 10px 20px -14px var(--accent);
}

.service-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-item strong {
	display: block;
	margin-bottom: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: #101a2c;
	white-space: normal;
	transition: color .25s ease;
}

.service-item:hover strong {
	color: var(--accent);
}

.service-item p {
	margin: 0;
	padding-right: 8px;
	color: #69748a;
	font-size: 13px;
	line-height: 1.8;
}

.service-arrow {
	position: absolute;
	top: 22px;
	right: 20px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--accent);
	background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(46, 107, 255, .14);
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: opacity .3s ease, transform .3s ease;
}

.service-arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-item:hover .service-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

@keyframes hero-rise-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
