/**
 * 货主入驻优势页（/owner/onboard）样式。
 *
 * 只在本页加载（见 templates/owner_onboard.php 的 <link>），
 * 类名不带 vb- 前缀 —— 主题全站样式都是 vb- 前缀，两套不交叉。
 * 设计 token 与 vanby.css 的 :root 同源同值，品牌色一处改、两处生效。
 *
 * @package vanby-global
 */

:root {
	--brand: #9e211b;
	--brand-strong: #761713;
	--bg: #f4f3ef;
	--surface: #fff;
	--border: #d8d5cf;
	--text: #17191b;
	--muted: #666863;
	--ok: #2f7a4d;
	--hero-bg: #070909;
	--hero-red: #d94b3f;
	--pv-accent: #f0c6c0;
	--pv-line: rgba(255, 255, 255, .2);
	--tint: #faf3f2;

	--font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
		"Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-serif: "Cormorant Garamond", "Songti SC", "Noto Serif SC", "STSong",
		"SimSun", Georgia, serif;
	--font-num: "Helvetica Neue", Helvetica, "Segoe UI", Arial, "PingFang SC", sans-serif;

	--radius: 8px;
	--radius-sm: 6px;
	--shadow-sm: 0 1px 2px rgba(23, 25, 27, .04);
	--shadow-md: 0 8px 24px rgba(31, 27, 24, .1);
	--shadow-lg: 0 16px 48px rgba(31, 27, 24, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.fade { animation: none !important; }
}

/* ---------- 按钮 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid transparent; border-radius: 999px;
	font-family: var(--font-sans); font-weight: 500; cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
	text-align: center;
}
.btn--lg { min-height: 48px; padding: 12px 30px; font-size: 14px; }
.btn--md { min-height: 40px; padding: 9px 22px; font-size: 13px; }
.btn--hero { background: var(--hero-red); color: #fff; border-color: var(--hero-red); }
.btn--hero:hover { background: #e55b4f; border-color: #e55b4f; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217, 75, 63, .35); }
.btn--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-2px); }
.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg); border-color: var(--text); }
.btn__arrow { margin-left: 8px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 顶部导航 ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 28px; width: auto; display: block; }
.brand__tag { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.5); padding-left: 16px; border-left: 1px solid rgba(255,255,255,.22); }
.topbar__right { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(255,255,255,.78); }
.topbar__right a { transition: color .2s ease; }
.topbar__right a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; text-align: center;
	min-height: 100vh; display: grid; place-items: center;
	padding: 120px 24px 90px; color: #f4ede8;
	background: linear-gradient(180deg, #0b0606 0%, #0a0808 56%, var(--hero-bg) 100%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background:
		linear-gradient(180deg, rgba(7, 9, 9, 0) 62%, var(--hero-bg) 100%),
		radial-gradient(58rem 40rem at 50% -14%, rgba(217,75,63,.20), transparent 62%),
		radial-gradient(40rem 32rem at 92% 88%, rgba(158,33,27,.14), transparent 55%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0; opacity: .045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--pv-accent);
	margin-bottom: 28px;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 26px; height: 1px; background: rgba(240,198,192,.4); }
.hero__title { margin: 0; font-size: clamp(40px, 6.2vw, 78px); line-height: 1.12; font-weight: 500; letter-spacing: .01em; font-family: var(--font-serif); }
.hero__title em { font-style: italic; color: var(--hero-red); white-space: nowrap; }
.hero__desc { margin: 22px auto 0; max-width: 560px; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.72); }
.hero__desc b { color: #fff; font-weight: 500; }
.hero__actions { margin-top: 44px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 46px; display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--hero-red); }

/* 入场动画 */
.fade { animation: fadeUp .9s cubic-bezier(.22,.61,.36,1) both; }
.fade--1 { animation-delay: .08s; }
.fade--2 { animation-delay: .22s; }
.fade--3 { animation-delay: .38s; }
.fade--4 { animation-delay: .54s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- 区块通用 ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.section__title { margin: 10px 0 0; font-size: 34px; font-weight: 500; letter-spacing: .01em; font-family: var(--font-serif); }
.section__desc { margin: 10px auto 0; color: var(--muted); max-width: 620px; font-size: 14px; }

/* ---------- 主体分流卡 ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split__card {
	position: relative; background: var(--surface); border: 1px solid var(--border);
	border-radius: 14px; padding: 34px 30px; text-align: left; overflow: hidden;
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.split__card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.split__card--alt:hover { border-color: #b8a06a; }
.split__card::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
	border-radius: 50%; background: radial-gradient(circle, rgba(158,33,27,.07), transparent 70%);
	transition: transform .4s ease;
}
.split__card:hover::after { transform: scale(1.6); }
.split__tag { position: absolute; top: 20px; right: 20px; z-index: 1; font-size: 11px; letter-spacing: .08em; color: var(--brand); border: 1px solid #e8d3d0; background: #faf3f2; border-radius: 999px; padding: 3px 11px; }
.split__card--alt .split__tag { color: #8a7438; border-color: #e6dfc6; background: #faf7ec; }
.split__name { font-size: 22px; font-family: var(--font-serif); font-weight: 500; margin: 0; }
.split__sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.split__list { margin: 18px 0 0; }
.split__list li { position: relative; padding-left: 20px; font-size: 13px; color: var(--text); margin: 9px 0; }
.split__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.split__card--alt .split__list li::before { background: #b8a06a; }
.split__cta { margin-top: 24px; }

/* ---------- 权益卡（6 项） ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.benefit:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #faf3f2; color: var(--brand); margin-bottom: 16px; transition: transform .3s ease, background .3s ease, color .3s ease; }
.benefit:hover .benefit__icon { transform: translateY(-2px) rotate(-4deg); background: var(--brand); color: #fff; }
.benefit__icon svg { width: 21px; height: 21px; }
.benefit__title { font-size: 16px; font-weight: 600; margin: 0; }
.benefit__sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- 差异化：竖 tab + 内容联动 ---------- */
.darkband { background: var(--hero-bg); color: #fff; padding: 60px 0; }
.darkband .section__eyebrow { color: var(--pv-accent); }
.darkband .section__title { color: #fff; }
.darkband .section__desc { color: rgba(255,255,255,.6); }
.darkband .section__head { margin-bottom: 30px; }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.vtabs { display: flex; flex-direction: column; gap: 6px; position: relative; }
.vtabs__item {
	position: relative; display: flex; align-items: center; gap: 14px;
	padding: 16px 18px; border-radius: 10px; cursor: pointer; text-align: left;
	border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.62);
	font-family: var(--font-sans); font-size: 14px; width: 100%;
	transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.vtabs__item:hover { color: rgba(255,255,255,.88); }
.vtabs__item.is-active {
	color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
	border-color: var(--pv-line);
}
.vtabs__no { font-family: var(--font-serif); font-size: 13px; color: rgba(240,198,192,.6); width: 24px; flex: none; transition: color .25s ease; }
.vtabs__item.is-active .vtabs__no { color: var(--pv-accent); }
.vtabs__name { font-weight: 500; }
.vtabs__en { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 2px; }
/* 左侧竖条指示器：随激活项滑动 */
.vtabs__bar {
	position: absolute; left: 0; top: 0; width: 2px; height: 0;
	background: linear-gradient(var(--pv-accent), var(--hero-red));
	border-radius: 2px; transition: top .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1);
}
.vpanel {
	position: relative; border: 1px solid var(--pv-line); border-radius: 14px; overflow: hidden;
	display: grid;
	background:
		radial-gradient(30rem 22rem at 82% 8%, rgba(217,75,63,.12), transparent 55%),
		linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.vpanel__item { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 30px 34px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease, visibility .4s; }
.vpanel__item.is-active { opacity: 1; visibility: visible; transform: none; }
.vpanel__visual { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
/* 显式宽高：SVG 无 width/height 属性时，在 flex 容器里部分浏览器会算成 0 宽导致图形消失 */
.vpanel__visual svg { width: 260px; height: 150px; flex: none; display: block; }
.vpanel__title { margin: 0; font-size: 24px; font-weight: 500; font-family: var(--font-serif); }
.vpanel__desc { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.74); max-width: 560px; }
.vpanel__points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.vpanel__point { font-size: 12px; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; }

/* ---------- 流程 3 步 ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__no { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 22px; border: 1px solid #e8d3d0; color: var(--brand); background: #faf3f2; position: relative; z-index: 1; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.step:hover .step__no { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(158,33,27,.3); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 34px); width: calc(100% - 68px); height: 1px; background: var(--border); }
.step__time { display: inline-block; font-size: 11px; color: var(--brand); letter-spacing: .04em; background: #faf3f2; border: 1px solid #e8d3d0; border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.step__title { font-size: 17px; font-weight: 600; margin: 0; }
.step__sub { margin: 8px auto 0; font-size: 13px; color: var(--muted); max-width: 250px; line-height: 1.65; }

/* ---------- 费率 ---------- */
.fee { max-width: 600px; margin: 0 auto; }
.fee__note { display: flex; align-items: flex-start; gap: 12px; background: #fdf6e3; border: 1px solid #e8d9ab; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #6d5a1f; margin-bottom: 22px; }
.fee__note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.fee__table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fee__table th, .fee__table td { padding: 14px 18px; text-align: center; font-size: 14px; }
.fee__table th:first-child, .fee__table td:first-child { text-align: left; }
.fee__table thead th { background: var(--text); color: #fff; font-weight: 500; font-size: 13px; }
.fee__table tbody tr { transition: background .2s ease; }
.fee__table tbody tr:hover { background: #faf3f2; }
.fee__table tbody tr + tr { border-top: 1px solid var(--border); }
.fee__table td.amt { font-family: var(--font-num); }
.fee__table td.seller { color: var(--brand); font-family: var(--font-num); font-weight: 600; }
.fee__table td.buyer { color: #31586f; font-family: var(--font-num); }
.fee__foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- 分阶段陪伴 ---------- */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.jcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.jcard__phase { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.jcard__title { font-size: 17px; font-weight: 600; margin: 10px 0 0; }
.jcard__sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- CTA 收口 ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 110px 24px; color: #f4ede8; background: linear-gradient(180deg, #0b0606 0%, #0a0808 100%); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46rem 30rem at 50% 0%, rgba(217,75,63,.18), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; }
.cta__title { margin: 0; font-size: clamp(30px, 4.4vw, 52px); font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }
.cta__desc { margin: 16px auto 0; font-size: 14px; color: rgba(255,255,255,.7); max-width: 460px; }
.cta__actions { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 18px; }
.footer__req { font-size: 12px; color: var(--muted); line-height: 1.9; }
.footer__req b { color: var(--text); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.footer__links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer__links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.footer__copy { font-size: 12px; color: #a8a69f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
	.section { padding: 60px 0; }
	.section__title { font-size: 26px; }
	.split, .benefits, .flow, .journey { grid-template-columns: 1fr; }
	.step:not(:last-child)::after { display: none; }
	.tabs { grid-template-columns: 1fr; gap: 22px; }
	.vtabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
	.vtabs__item { flex: 0 0 auto; width: auto; padding: 12px 16px; }
	.vtabs__bar { display: none; }
	.vpanel { min-height: 0; }
	.fee__table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 560px) {
	.hero__title { font-size: 34px; }
	.hero__trust { gap: 16px; }
	.vpanel__item { padding: 24px 20px; }
}

/* ---------- 窄屏横滑指引（四大核心能力 tab） ---------- */
.vtabs-wrap { position: relative; }
.vtabs-more { display: none; }

@media (max-width: 860px) {
	/* grid 子项默认 min-width:auto，横滑行会撑破视口导致整页横向溢出 */
	.tabs > * { min-width: 0; }
	.vtabs-wrap { min-width: 0; width: 100%; }
	.vtabs {
		flex-direction: row;
		overflow-x: auto;
		max-width: 100%;
		padding-bottom: 6px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.vtabs::-webkit-scrollbar { display: none; }
	.vtabs__item { scroll-snap-align: start; }

	/* 右缘渐隐，暗示后面还有内容 */
	.vtabs-wrap::after {
		content: "";
		position: absolute; top: 0; right: 0; bottom: 6px; width: 76px;
		background: linear-gradient(90deg, rgba(7,9,9,0), var(--hero-bg) 78%);
		pointer-events: none;
		opacity: 0; transition: opacity .3s ease;
	}
	.vtabs-wrap.is-scrollable:not(.is-end)::after { opacity: 1; }

	.vtabs-more {
		display: inline-flex; align-items: center; gap: 5px;
		position: absolute; right: 0; top: 50%;
		transform: translateY(-50%);
		height: 30px; padding: 0 11px 0 9px;
		border: 0; border-radius: 999px;
		background: rgba(217,75,63,.94); color: #fff;
		font-size: 12px; letter-spacing: .02em; white-space: nowrap;
		box-shadow: 0 8px 20px rgba(217,75,63,.34);
		cursor: pointer; z-index: 2;
		opacity: 0; pointer-events: none;
		transition: opacity .3s ease;
	}
	.vtabs-more svg { width: 12px; height: 12px; flex: none; }
	.vtabs-wrap.is-scrollable:not(.is-end) .vtabs-more {
		opacity: 1; pointer-events: auto;
		animation: vhint 1.9s ease-in-out infinite;
	}
	@keyframes vhint {
		0%, 100% { transform: translateY(-50%) translateX(0); }
		50%      { transform: translateY(-50%) translateX(5px); }
	}
}

@media (max-width: 560px) {
	.vpanel__visual { height: 138px; margin-bottom: 16px; }
	.vpanel__visual svg { width: 234px; height: 135px; }
}

@media (prefers-reduced-motion: reduce) {
	.vtabs-more { animation: none !important; }
	.vtabs { scroll-behavior: auto; }
}
