/*
 * 服务商城官网样式。版式参照 App 官网 home/home.css，配色取自 mall/common/theme/tokens.scss：
 * 主色 #2156E8 / 深 #1740B0 / 浅底 #E8EFFE、文字 #0F1B2D、页底 #F2F4F8、banner 深蓝 #0F1B3D，六分类色对同 category.ts。
 * 不引外部字体（Google Fonts 在大陆不可用），中文走系统黑体。
 */
:root {
	--primary: #2156E8;
	--primary-dark: #1740B0;
	--primary-light: #E8EFFE;
	--navy: #0F1B3D;
	--navy-2: #16275A;
	--navy-sub: #B8C4E6;
	--text: #0F1B2D;
	--text-2: #3A4352;
	--text-3: #5B6575;
	--text-4: #6B7484;
	--bg: #FFFFFF;
	--soft: #F2F4F8;
	--card: #FFFFFF;
	--line: #E3E6EB;
	--border: #CDD3DC;
	--accent: #FF8A3D;
	--shadow: 0 4px 16px rgba(15, 27, 45, 0.05);
	--num: 'DIN Alternate', 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.7 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
	overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; font-weight: 900; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 860px; }
.sec { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); display: flex; flex-direction: column; gap: 48px; }
.sec-tight { gap: 36px; }
section[id] { scroll-margin-top: 69px; }  /* 吸顶导航高度，锚点跳转不被挡住 */
.band-navy { background: var(--navy); color: #fff; }
.band-soft { background: var(--soft); }

.eyebrow { font-size: 14px; color: var(--primary); letter-spacing: 0.16em; font-weight: 700; }
.eyebrow-light { color: #7FA2FF; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.sec-head p { color: var(--text-3); }
.band-navy .sec-head p { color: var(--navy-sub); }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ── 导航 ── */
.nav { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-in { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); min-height: 44px; font-size: 20px; font-weight: 900; letter-spacing: 0.04em; }
.brand small { font-size: 14px; font-weight: 500; color: var(--text-4); margin-left: 8px; letter-spacing: 0.08em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.nav-links a { color: var(--text-2); padding: 10px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-cta { background: var(--primary); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ── 按钮 ── */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; padding: 14px 28px; border-radius: 14px; min-height: 56px; }
.btn-primary { background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(33, 86, 232, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.btn-ghost:hover { color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.btn-off { color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); cursor: default; }

/* ── 首屏 ── */
.hero { background: linear-gradient(180deg, #F5F8FF, #FFFFFF 85%); border-bottom: 1px solid var(--line); }
.hero-in { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow-line { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-weight: 500; }
.eyebrow-line i { width: 28px; height: 2px; background: var(--primary); }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.12; font-weight: 900; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; }
.dots { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--text-3); }
.dots li { display: flex; align-items: center; gap: 8px; }
.dots li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* 手机示意：服务商城首页 */
.phone-col { flex: 0 1 320px; margin: 0 auto; min-width: 0; }
.phone { width: 100%; max-width: 320px; border-radius: 44px; padding: 10px; background: #0F1B2D; box-shadow: 0 24px 60px rgba(15, 27, 61, 0.28); }
.screen { position: relative; width: 100%; height: 620px; border-radius: 34px; overflow: hidden; background: var(--soft); display: flex; flex-direction: column; font-size: 12px; }
.s-head { background: var(--primary); color: #fff; padding: 34px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.s-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.s-logo { flex: 0 0 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; }
.s-search { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 999px; padding: 5px 5px 5px 14px; color: #8A93A3; box-shadow: 0 6px 18px rgba(8, 24, 80, 0.18); }
.s-search b { background: var(--primary); color: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 500; }
.s-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.s-banner { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: 0 8px 24px rgba(15, 27, 61, 0.22); }
.s-banner div { display: flex; flex-direction: column; gap: 2px; }
.s-banner b { font-size: 14px; }
.s-banner span { color: var(--navy-sub); font-size: 11px; }
.s-banner i { font-style: normal; background: #fff; color: var(--navy); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 11px; white-space: nowrap; }
.s-cats { background: #fff; border-radius: 12px; padding: 12px 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 4px; text-align: center; color: var(--text-2); }
.s-cats span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.s-cats i { width: 34px; height: 34px; border-radius: 10px; }
.s-hot { background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.s-hot > b { font-size: 13px; }
.s-item { display: flex; gap: 10px; align-items: center; }
.s-item i { flex: 0 0 36px; height: 36px; border-radius: 8px; }
.s-item div { display: flex; flex-direction: column; min-width: 0; }
.s-item span { font-weight: 700; color: var(--text); }
.s-item small { color: var(--text-4); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tabbar { display: flex; justify-content: space-around; align-items: center; height: 54px; background: #fff; border-top: 1px solid #E8EBEF; color: var(--text-4); }
.s-tabbar .on { color: var(--primary); font-weight: 700; }
.c-ssl { background: #E8EFFE; box-shadow: inset 0 0 0 2px #2156E8; }
.c-server { background: #E2F5F1; box-shadow: inset 0 0 0 2px #0B7F69; }
.c-web { background: #EEEBFD; box-shadow: inset 0 0 0 2px #5B3FD6; }
.c-mini { background: #E5F6EA; box-shadow: inset 0 0 0 2px #178A42; }
.c-ai { background: #FCE8F1; box-shadow: inset 0 0 0 2px #B8245F; }
.c-ops { background: #FFF1DE; box-shadow: inset 0 0 0 2px #A85A00; }

/* ── 六大服务 ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 14px; padding: 28px; box-shadow: 0 0 0 1px var(--line), var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 0 0 1px var(--fg), 0 10px 28px rgba(15, 27, 45, 0.08); transform: translateY(-2px); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--text-3); font-size: 15px; }

/* ── 服务流程 ── */
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: none; }
.flow li { background: var(--navy-2); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px rgba(127, 162, 255, 0.18); }
.flow b { font-family: var(--num); font-size: 26px; color: #7FA2FF; }
.flow h3 { font-size: 18px; font-weight: 700; }
.flow p { color: var(--navy-sub); font-size: 14px; }

/* ── 保障 ── */
.split { flex-direction: row; flex-wrap: wrap; gap: 40px 72px; }
.split .sec-head { flex: 1 1 320px; min-width: 0; }
.facts { flex: 2 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { flex: 0 0 160px; font-weight: 700; }
.facts dd { flex: 1 1 280px; margin: 0; color: var(--text-3); }

/* ── 热门服务 ── */
.more { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 10px 0; }
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.good { background: var(--card); border-radius: 14px; padding: 24px; box-shadow: 0 0 0 1px var(--line), var(--shadow); display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--fg); }
.good .tag { align-self: flex-start; font-size: 12px; color: var(--fg); background: var(--bg); border-radius: 6px; padding: 2px 10px; font-weight: 700; }
.good h3 { font-size: 18px; font-weight: 700; }
.good p { color: var(--text-3); font-size: 14px; }
.good dl { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.good dl div { display: flex; justify-content: space-between; gap: 12px; }
.good dt { color: var(--text-4); }
.good dd { margin: 0; color: var(--text-2); text-align: right; }

/* ── 常见问题 ── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 14px; padding: 0 24px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-size: 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--text-4); border-bottom: 2px solid var(--text-4); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 0 22px; color: var(--text-3); }

/* ── 咨询 ── */
.cta { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.2; }
.cta-copy p { color: var(--navy-sub); }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { font-size: 14px; color: var(--navy-sub); }

/* ── 页脚 ── */
.foot { background: #0B142E; }
.foot-in { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; font-size: 14px; color: #8E9AC0; }
.foot-org { display: flex; flex-direction: column; gap: 6px; }
.foot-org b { color: #fff; font-size: 16px; }
.foot-org a { color: #8E9AC0; }
.foot-org a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: flex-start; }
.foot-links a { padding: 10px 0; color: #B8C4E6; }
.foot-links a:hover { color: #fff; }

@media (max-width: 720px) {
	.nav-links a:not(.nav-cta) { display: none; }
	.brand small { display: none; }
	.screen { height: 580px; }
	.facts dt { flex-basis: 100%; }
	.cards, .goods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.faq summary::after, .card { transition: none; }
}
