/*
Theme Name:   Hanvia Motors Child
Theme URI:    https://hanviamotors.com
Description:  Hanvia Motors B2B 汽车出口站子主题（父主题 GeneratePress）。所有定制模板与样式写在这里，父主题更新不丢改动。
Author:       Hanvia Motors Dev
Template:     generatepress
Version:      0.1.0
Text Domain:  hanvia-child
*/

/* ============================================================
   品牌色（取自产品需求文档 3.1 配色方案）
   主色 深蓝 #1a365d ｜ 强调 橙红 #e63946 ｜ CTA 绿 #2a9d8f
   ============================================================ */
:root {
	--hv-primary:  #1a365d;
	--hv-accent:   #e63946;
	--hv-cta:      #2a9d8f;
	--hv-gray-bg:  #f8f9fa;
	--hv-gray-dk:  #343a40;
}

/* ---------- 车辆列表（archive）网格 ---------- */
.hv-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 32px 0;
}
@media (max-width: 1100px) { .hv-vehicle-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .hv-vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .hv-vehicle-grid { grid-template-columns: 1fr; } }
.hv-card {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
	display: flex;
	flex-direction: column;
}
.hv-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.hv-card__thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--hv-gray-bg); }
.hv-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hv-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hv-card__title { font-size: 18px; font-weight: 600; color: var(--hv-primary); margin: 0; }
.hv-card__meta { font-size: 13px; color: #666; display: flex; flex-wrap: wrap; gap: 8px; }
.hv-card__meta span { background: var(--hv-gray-bg); padding: 2px 8px; border-radius: 4px; }
.hv-card__price { font-weight: 700; color: var(--hv-accent); margin-top: auto; }
.hv-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }

/* 卡片操作按钮（对比/加询盘） */
.hv-card__actions { display: flex; border-top: 1px solid #eee; }
.hv-act {
	flex: 1; border: none; background: #fff; padding: 10px 4px; cursor: pointer;
	font-size: 12px; font-weight: 600; color: var(--hv-primary); transition: background .15s ease;
}
.hv-card__actions .hv-act + .hv-act { border-left: 1px solid #eee; }
.hv-act:hover { background: var(--hv-gray-bg); }
.hv-act.is-active { background: var(--hv-cta); color: #fff; }

/* 详情页对比/车篮按钮 */
.hv-detail-actions { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.hv-detail-actions .hv-act { flex: 1; border: 1px solid #d0d5dd; border-radius: 6px; padding: 10px 12px; }

/* 悬浮托盘 */
.hv-trays { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 9998; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: 92vw; }
.hv-tray { align-items: center; gap: 14px; background: var(--hv-primary); color: #fff; padding: 10px 16px; border-radius: 40px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hv-tray--cart { background: var(--hv-cta); }
.hv-tray__label { font-weight: 600; font-size: 14px; }
.hv-tray__count { background: rgba(255,255,255,.25); border-radius: 12px; padding: 1px 9px; margin-left: 4px; }
.hv-tray__go { background: #fff; color: var(--hv-primary) !important; padding: 7px 16px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 13px; }
.hv-tray--cart .hv-tray__go { color: var(--hv-cta) !important; }
.hv-tray__clear { background: transparent; border: none; color: #fff; cursor: pointer; font-size: 14px; opacity: .8; }

/* 对比表 */
.hv-compare-wrap { overflow-x: auto; margin: 16px 0 40px; }
.hv-compare { border-collapse: collapse; width: 100%; min-width: 600px; }
.hv-compare th, .hv-compare td { border: 1px solid #e6e6e6; padding: 12px; text-align: center; font-size: 14px; }
.hv-compare thead th { background: var(--hv-gray-bg); vertical-align: top; }
.hv-compare__rowhead { background: var(--hv-gray-bg); color: #667085; font-weight: 600; text-align: left !important; white-space: nowrap; }
.hv-compare__img { width: 100%; max-width: 180px; border-radius: 6px; display: block; margin: 0 auto 8px; }
.hv-compare__name { color: var(--hv-primary); font-weight: 700; font-size: 15px; }
.hv-compare thead a { text-decoration: none; }

/* 询盘清单 */
.hv-inq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0; }
.hv-inq-item { display: flex; gap: 12px; align-items: center; background: var(--hv-gray-bg); border-radius: 8px; padding: 10px; }
.hv-inq-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.hv-inq-item a { color: var(--hv-primary); font-weight: 600; text-decoration: none; display: block; }
.hv-inq-item span { color: var(--hv-accent); font-weight: 700; font-size: 14px; }

/* ---------- 列表页：左筛选 + 右网格 ---------- */
.hv-archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin: 24px 0; }
@media (max-width: 768px) { .hv-archive-layout { grid-template-columns: 1fr; } }
.hv-filters { background: var(--hv-gray-bg); border-radius: 8px; padding: 20px; align-self: start; position: sticky; top: 20px; }
.hv-filters__title { color: var(--hv-primary); font-size: 18px; margin: 0 0 14px; }
.hv-filters__label { display: block; font-size: 13px; color: #667085; margin: 12px 0 4px; font-weight: 600; }
.hv-filters select,
.hv-filters input[type="search"] { width: 100%; padding: 9px 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; font-size: 14px; box-sizing: border-box; }
.hv-filters__reset { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: #667085; }
.hv-archive-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.hv-result-count { color: #667085; font-size: 14px; font-weight: 600; }
.hv-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hv-sort select { padding: 7px 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; }
.hv-no-results { text-align: center; padding: 60px 20px; }
.hv-no-results p { color: #667085; margin-bottom: 16px; }

/* ---------- 营销标签 ---------- */
.hv-badge {
	display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
	color: #fff; background: var(--hv-accent); padding: 2px 8px; border-radius: 4px;
}

/* ---------- 车辆详情页 ---------- */
.hv-vehicle-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin: 32px 0; }
@media (max-width: 768px) { .hv-vehicle-detail { grid-template-columns: 1fr; gap: 24px; } }
.hv-vehicle-detail__media img { width: 100%; border-radius: 8px; }
.hv-vehicle-detail__title { color: var(--hv-primary); margin: 0 0 8px; }
.hv-tax-line { color: #666; font-size: 14px; margin-bottom: 16px; }
.hv-price-box {
	background: var(--hv-gray-bg); border-left: 4px solid var(--hv-accent);
	padding: 16px 20px; border-radius: 4px; margin: 16px 0;
}
.hv-price-box .hv-price { font-size: 28px; font-weight: 800; color: var(--hv-accent); }

/* ---------- 参数表 ---------- */
.hv-specs { width: 100%; border-collapse: collapse; margin: 16px 0; }
.hv-specs th, .hv-specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.hv-specs th { color: #888; font-weight: 500; width: 45%; }
.hv-specs td { color: var(--hv-gray-dk); font-weight: 600; }

/* ---------- CTA 按钮 ---------- */
.hv-cta-btn {
	display: inline-block; background: var(--hv-cta); color: #fff !important;
	font-weight: 700; padding: 14px 28px; border-radius: 6px; text-decoration: none;
	font-size: 16px; transition: filter .2s ease;
}
.hv-cta-btn:hover { filter: brightness(.92); }
.hv-cta-btn--whatsapp { background: #25D366; }

/* ---------- 详情页 CTA 按钮组 ---------- */
.hv-vehicle-cta { display: flex; gap: 12px; margin: 8px 0 20px; flex-wrap: wrap; }

/* ---------- 询盘表单 ---------- */
.hv-inquiry { background: var(--hv-gray-bg); border-radius: 8px; padding: 24px; margin: 16px 0; }
.hv-inquiry__title { color: var(--hv-primary); margin: 0 0 16px; font-size: 20px; }
.hv-inquiry__vehicle { background: #fff; border-left: 3px solid var(--hv-cta); padding: 8px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.hv-inquiry__ok { background: #e7f6f2; border: 1px solid var(--hv-cta); color: #1d6b5f; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: 600; }
.hv-inquiry__row { display: flex; gap: 12px; margin-bottom: 12px; }
.hv-inquiry__row > * { flex: 1; min-width: 0; }
@media (max-width: 600px) { .hv-inquiry__row { flex-direction: column; } }
.hv-inquiry__form input,
.hv-inquiry__form select,
.hv-inquiry__form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid #d0d5dd; border-radius: 6px;
	font-size: 15px; background: #fff; box-sizing: border-box;
}
.hv-inquiry__form textarea { margin-bottom: 14px; }
.hv-inquiry__form input:focus,
.hv-inquiry__form select:focus,
.hv-inquiry__form textarea:focus { outline: 2px solid var(--hv-cta); border-color: var(--hv-cta); }
.hv-inquiry__form .hv-cta-btn { border: none; cursor: pointer; width: auto; }

/* ---------- 全站悬浮按钮 ---------- */
.hv-float { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.hv-float a {
	width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.hv-float__wa  { background: #25D366; }
.hv-float__top { background: var(--hv-primary); }

/* ---------- 站点 Logo ---------- */
.site-logo img { max-height: 52px; width: auto; }
.main-title, .site-description { display: none; } /* Logo 已含品牌名，隐藏重复文字标题 */

/* ---------- 语言切换器 ---------- */
.hv-lang-switcher { display: inline-flex; align-items: center; white-space: nowrap; margin-left: 10px; }
.hv-lang-switcher ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.hv-lang-switcher li { margin: 0; }
.hv-lang-switcher a { display: flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 13px; border-radius: 4px; text-decoration: none; }
.hv-lang-switcher .current-lang a,
.hv-lang-switcher li a:hover { background: rgba(0,0,0,.06); }
.hv-lang-switcher img { vertical-align: middle; }

/* ============================================================
   首页 front-page
   ============================================================ */
/* 脱离 GeneratePress 的 flex 容器：区块纵向、全宽铺满 */
.home .site-content,
.hv-fullwidth .site-content { display: block; }
.home #primary,
.hv-fullwidth #primary { width: 100%; max-width: 100%; padding: 0; float: none; }
.home .inside-article, .home .entry-content,
.hv-fullwidth .inside-article, .hv-fullwidth .entry-content { margin: 0; padding: 0; }
.home .hv-hero, .home .hv-section,
.hv-fullwidth .hv-hero, .hv-fullwidth .hv-section { width: 100%; }

.hv-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hv-section { padding: 60px 0; }
.hv-section--gray { background: var(--hv-gray-bg); }
.hv-section__title { text-align: center; color: var(--hv-primary); font-size: 32px; margin: 0 0 36px; }

/* Hero */
.hv-hero {
	background: linear-gradient(135deg, #1a365d 0%, #0d2138 100%);
	color: #fff; padding: 80px 20px; text-align: center;
}
.hv-hero__inner { max-width: 820px; margin: 0 auto; }
.hv-hero__title { color: #fff; font-size: 44px; line-height: 1.15; margin: 0 0 18px; }
.hv-hero__sub { font-size: 19px; color: #c9d6e5; margin: 0 0 28px; }
.hv-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hv-hero__trust { margin-top: 32px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: #9fb3cc; font-size: 14px; }
.hv-hero__trust span::before { content: "✓ "; color: var(--hv-cta); }
@media (max-width: 600px) { .hv-hero__title { font-size: 32px; } }

/* Hero 快速搜索条 */
.hv-hero-search { display: flex; gap: 0; max-width: 720px; margin: 28px auto 0; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hv-hero-search select { border: none; border-right: 1px solid #eee; padding: 0 12px; font-size: 15px; border-radius: 8px 0 0 8px; background: #fff; color: #333; max-width: 150px; }
.hv-hero-search input { flex: 1; border: none; padding: 14px 14px; font-size: 15px; min-width: 0; outline: none; }
.hv-hero-search .hv-cta-btn { padding: 12px 24px; white-space: nowrap; }
@media (max-width: 560px) {
	.hv-hero-search { flex-wrap: wrap; }
	.hv-hero-search select, .hv-hero-search input { width: 100%; max-width: 100%; border-radius: 8px; border-right: none; }
	.hv-hero-search .hv-cta-btn { width: 100%; margin-top: 6px; }
}

/* 优势卡片 */
.hv-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hv-adv { text-align: center; padding: 28px 20px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.hv-adv__icon { font-size: 40px; margin-bottom: 12px; }
.hv-adv__title { color: var(--hv-primary); font-size: 18px; margin: 0 0 8px; }
.hv-adv__desc { color: #667085; font-size: 14px; margin: 0; }

/* 服务流程 */
.hv-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.hv-flow__step { text-align: center; }
.hv-flow__num {
	width: 52px; height: 52px; line-height: 52px; border-radius: 50%; margin: 0 auto 12px;
	background: var(--hv-cta); color: #fff; font-weight: 800; font-size: 22px;
}
.hv-flow__title { color: var(--hv-primary); font-size: 16px; margin: 0 0 6px; }
.hv-flow__desc { color: #667085; font-size: 13px; margin: 0; }

/* 底部 CTA 区 */
.hv-section--cta { background: linear-gradient(135deg, #1a365d 0%, #0d2138 100%); }
.hv-section--cta .hv-inquiry { background: rgba(255,255,255,.97); }

/* Hero 背景图 */
.hv-hero { background-size: cover; background-position: center; }

/* 数字信任条 */
.hv-stats { background: var(--hv-primary); padding: 36px 0; }
.hv-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 600px) { .hv-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.hv-stat__num { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.hv-stat__label { color: #9fb3cc; font-size: 14px; margin-top: 6px; }

/* 宣传视频 */
.hv-video {
	position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
	background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.hv-video::after { content: ""; position: absolute; inset: 0; background: rgba(13,33,56,.35); }
.hv-video__play {
	position: relative; z-index: 2; width: 78px; height: 78px; border-radius: 50%; border: none; cursor: pointer;
	background: var(--hv-accent); color: #fff; font-size: 28px; padding-left: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.3);
	transition: transform .2s ease;
}
.hv-video__play:hover { transform: scale(1.08); }
.hv-video__hint { position: absolute; bottom: 16px; z-index: 2; color: #fff; font-size: 13px; background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 20px; }

/* 客户评价 */
.hv-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.hv-tm { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.hv-tm__quote { color: #475467; font-style: italic; line-height: 1.6; margin: 0; flex: 1; }
.hv-tm__person { display: flex; align-items: center; gap: 12px; }
.hv-tm__person img { border-radius: 50%; object-fit: cover; }
.hv-tm__person strong { display: block; color: var(--hv-primary); }
.hv-tm__person span { display: block; font-size: 13px; color: #98a2b3; }

/* 认证 + 合作伙伴 */
.hv-certs { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 32px; }
.hv-cert { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e6e6e6; border-radius: 30px; padding: 10px 20px; font-weight: 600; color: var(--hv-primary); }
.hv-cert__icon { font-size: 20px; }
.hv-partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hv-partner { background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 14px 26px; font-weight: 700; color: #98a2b3; letter-spacing: .5px; }

/* FAQ */
.hv-faq__item { background: var(--hv-gray-bg); border-radius: 8px; margin-bottom: 12px; padding: 0 20px; border: 1px solid #eee; }
.hv-faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--hv-primary); list-style: none; position: relative; padding-right: 28px; }
.hv-faq__item summary::-webkit-details-marker { display: none; }
.hv-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--hv-accent); }
.hv-faq__item[open] summary::after { content: "–"; }
.hv-faq__item p { margin: 0 0 16px; color: #667085; line-height: 1.6; }

/* ============================================================
   About 富页面
   ============================================================ */
.hv-page-hero { background-size: cover; background-position: center; color: #fff; padding: 72px 0; text-align: center; }
.hv-page-hero h1 { color: #fff; font-size: 40px; margin: 0 0 10px; }
.hv-page-hero p { color: #c9d6e5; font-size: 18px; margin: 0; }
.hv-h2 { color: var(--hv-primary); font-size: 28px; margin: 0 0 16px; }

/* 两栏：文字 + 图 */
.hv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .hv-split { grid-template-columns: 1fr; } }
.hv-split__text p { color: #475467; line-height: 1.7; margin: 0 0 14px; }
.hv-split__media img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* 时间线 */
.hv-timeline { position: relative; padding-left: 20px; }
.hv-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #d7dee8; }
.hv-tl { position: relative; padding: 0 0 26px 28px; }
.hv-tl::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--hv-cta); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--hv-cta); }
.hv-tl__year { font-weight: 800; color: var(--hv-accent); }
.hv-tl__body strong { color: var(--hv-primary); display: block; margin: 2px 0; }
.hv-tl__body p { color: #667085; margin: 0; font-size: 14px; }

/* 图廊 */
.hv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .hv-gallery { grid-template-columns: 1fr; } }
.hv-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* 团队 */
.hv-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.hv-member { text-align: center; }
.hv-member img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.hv-member strong { display: block; color: var(--hv-primary); font-size: 17px; }
.hv-member span { display: block; color: #98a2b3; font-size: 14px; }

/* Services 页卡片 */
.hv-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.hv-svc { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.hv-svc__icon { font-size: 40px; display: block; margin-bottom: 10px; }
.hv-svc h2 { color: var(--hv-primary); font-size: 20px; margin: 0 0 10px; }
.hv-svc p { color: #475467; margin: 0 0 12px; }
.hv-svc ul { margin: 0; padding-left: 18px; color: #667085; }
.hv-svc li { margin-bottom: 6px; }
