/* ======================================================================
   home.css — 新版首页专用样式（2026-10-01 试点）
   作用域：.hm-main / .hm-footer（页头保持与内页一致），前缀 hm-
   不修改 index.css 任何规则；index.css 仍需加载（页头/菜单/QQ框依赖）
   断点约定与全站一致：≥1440 大屏 / ≤1199 小平板 / 768-980 / ≤767 手机
   ====================================================================== */

/* ---------- 基础作用域 ----------
   注意：字体/颜色只作用于 .hm-main/.hm-footer，head 区（logo/菜单/QQ）保持与内页
   完全一致（宋体 + topbg 蓝条），这是 2026-10-01 用户要求的"页头统一" */
.hm-main, .hm-footer {
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	color: #333;
	line-height: 1.65;
}
.hm-main a, .hm-footer a { text-decoration: none; }
/* 特异性停在 (0,0,1,0)，之后 home.css 里的具体链接颜色规则均可覆盖 */
.hm-main :where(a), .hm-footer :where(a) { color: #333; }
.hm-main :where(a:hover), .hm-footer :where(a:hover) { color: #CC0000; }
/* 列表清零只作用于内容区，避免压掉页头 .smenu 欢迎条的 margin:auto 居中 */
.hm-main ul, .hm-footer ul { margin: 0; padding: 0; }

.hm-wrap { max-width: 1400px; width: 92%; margin: 0 auto; }

@media (min-width: 1440px) {
	.hm-wrap { width: 94%; max-width: 1440px; }
}

/* ---------- 区块标题 ---------- */
.hm-sec-head {
	display: flex; align-items: baseline; gap: 12px;
	margin-bottom: 26px;
}
.hm-sec-head h2 {
	font-size: 26px; font-weight: 700; color: #22252B;
	margin: 0; line-height: 1.3;
	position: relative; padding-left: 14px;
}
.hm-sec-head h2::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 5px; height: 22px; border-radius: 3px; background: #CC0000;
}
.hm-sec-head .hm-en {
	font-size: 13px; color: #A5A8AE; letter-spacing: 1px; font-family: Arial, sans-serif;
}

/* ======================================================================
   1) Hero
   ====================================================================== */
.hm-hero {
	background:
		radial-gradient(900px 420px at 88% -10%, rgba(204,0,0,0.07), transparent 60%),
		radial-gradient(700px 380px at -5% 110%, rgba(0,102,153,0.08), transparent 60%),
		linear-gradient(180deg, #FBFBFC 0%, #F4F5F7 100%);
	border-bottom: 1px solid #ECECEF;
	overflow: hidden;
}
.hm-hero-grid {
	display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px;
	align-items: center; padding: 58px 0 54px;
}
.hm-hero-kicker {
	font-size: 13px; letter-spacing: 2px; color: #CC0000; font-weight: 600;
	margin: 0 0 14px;
}
.hm-h1 {
	font-size: 31px; line-height: 1.5; color: #22252B; font-weight: 700;
	margin: 0 0 16px;
}
.hm-h1 strong { color: #CC0000; }
.hm-hero-sub { font-size: 16px; color: #5A5E66; margin: 0 0 28px; }
.hm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hm-btn {
	display: inline-block; padding: 11px 28px; border-radius: 8px;
	font-size: 15px; font-weight: 600; line-height: 1.4; transition: all .2s;
}
.hm-btn-primary { background: #CC0000; color: #fff !important; box-shadow: 0 6px 16px rgba(204,0,0,0.25); }
.hm-btn-primary:hover { background: #A80000; color: #fff !important; box-shadow: 0 8px 20px rgba(204,0,0,0.32); }
.hm-btn-ghost { background: #fff; color: #333 !important; border: 1px solid #D9DBDF; }
.hm-btn-ghost:hover { border-color: #CC0000; color: #CC0000 !important; }

.hm-hero-points { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; }
.hm-hero-points li { font-size: 13px; color: #7A7E86; }
.hm-hero-points li::before {
	content: "✓"; color: #CC0000; font-weight: 700; margin-right: 6px;
}

/* hero 右侧图卡：蝴蝶右上 + 鸟左下错列，水平仅 ~12px 交错且落在图注内边距上，不遮文字 */
.hm-hero-visual { position: relative; min-height: 450px; }
.hm-photo {
	margin: 0; background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 18px 40px rgba(30, 34, 44, 0.16);
	border: 1px solid rgba(0,0,0,0.04);
}
.hm-photo img { display: block; width: 100%; height: auto; }
.hm-photo .hm-cap {
	display: block; font-size: 13px; color: #55595F; padding: 10px 14px; background: #fff;
	border-top: 1px solid #F0F0F2; line-height: 1.6;
}
.hm-photo { transition: transform .2s, box-shadow .2s; }
a.hm-photo:hover { transform: translateY(-3px); text-decoration: none; }
a.hm-photo-sub:hover { transform: rotate(-2deg) translateY(-3px); }
.hm-photo-main { position: absolute; top: 0; right: 0; width: 66%; z-index: 2; }
.hm-photo-sub {
	position: absolute; bottom: 0; left: 0; width: 36%; z-index: 3;
	transform: rotate(-2deg);
	box-shadow: 0 16px 34px rgba(30, 34, 44, 0.22);
}
.hm-badge {
	position: absolute; top: -14px; right: 4px; z-index: 4;
	background: #CC0000; color: #fff; font-size: 14px; font-weight: 700;
	padding: 9px 18px; border-radius: 999px;
	box-shadow: 0 8px 18px rgba(204,0,0,0.32);
	letter-spacing: 1px;
}

/* ======================================================================
   2) 核心业务
   ====================================================================== */
.hm-section { padding: 54px 0; }
.hm-svc-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.hm-svc-card {
	display: block; background: #fff; border: 1px solid #ECECEF; border-radius: 14px;
	padding: 28px 24px 22px; position: relative; overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hm-svc-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #CC0000, #FF6B6B);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.hm-svc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(30,34,44,0.10); border-color: #F0D5D5; }
.hm-svc-card:hover::before { transform: scaleX(1); }
.hm-svc-icon {
	width: 54px; height: 54px; border-radius: 12px; background: #FBEEEE;
	color: #CC0000; display: flex; align-items: center; justify-content: center;
	margin-bottom: 16px;
}
.hm-svc-icon svg { width: 30px; height: 30px; }
.hm-svc-card h3 { font-size: 17px; height: auto; color: #22252B; margin: 0 0 8px; font-weight: 700; }
.hm-svc-card:hover h3 { color: #CC0000; }
.hm-svc-card p { font-size: 13px; color: #7A7E86; margin: 0 0 14px; line-height: 1.7; }
.hm-more { font-size: 13px; color: #CC0000; font-weight: 600; }

/* ======================================================================
   3) 现货产品速览
   ====================================================================== */
.hm-prod { background: #F5F6F8; border-top: 1px solid #ECECEF; border-bottom: 1px solid #ECECEF; }
.hm-prod-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.hm-prod-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid #ECECEF; border-radius: 12px; padding: 20px 20px 16px;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hm-prod-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30,34,44,0.10); border-color: #E3C9C9; }
.hm-prod-card h3 {
	font-size: 16px; height: auto; font-weight: 700; margin: 0 0 4px;
	display: flex; align-items: center; gap: 8px;
}
.hm-prod-card h3 a { color: #22252B; }
.hm-prod-card:hover h3 a { color: #CC0000; }
.hm-prod-card h3::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: #CC0000; flex: none;
}
.hm-prod-list { list-style: none; margin: 8px 0 14px; padding: 0; flex: 1; }
.hm-prod-list li {
	font-size: 13px; color: #6B6F77; line-height: 1.55; padding: 5px 0;
	border-bottom: 1px dashed #EFEFF2;
	overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.hm-prod-list li:last-child { border-bottom: none; }
.hm-prod-list li a { color: #6B6F77; }
.hm-prod-list li a:hover { color: #CC0000; }

/* ======================================================================
   4) 技术中心 / 新闻 / 优惠侧栏
   ====================================================================== */
.hm-news-grid {
	display: grid; grid-template-columns: 1fr 1fr 0.78fr; gap: 26px; align-items: start;
}
.hm-news-grid > * { min-width: 0; }
.hm-colcard {
	background: #fff; border: 1px solid #ECECEF; border-radius: 14px; padding: 24px 26px;
}
.hm-colcard-feat { display: flex; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #F0F0F2; margin-bottom: 8px; }
.hm-colcard-feat > div { flex: 1; min-width: 0; }
.hm-colcard-feat img {
	width: 110px; height: 82px; object-fit: cover; border-radius: 8px; flex: none;
	background: #F4F5F7;
}
.hm-colcard-feat h3 { font-size: 16px; height: auto; margin: 0 0 6px; line-height: 1.45; }
.hm-colcard-feat h3 a { color: #22252B; }
.hm-colcard-feat h3 a:hover { color: #CC0000; }
.hm-colcard-feat p {
	font-size: 13px; color: #8A8E96; margin: 0; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-linklist { list-style: none; margin: 0; padding: 0; }
.hm-linklist li {
	padding: 8px 0 8px 18px; border-bottom: 1px dashed #F0F0F2; position: relative;
	font-size: 14px;
}
.hm-linklist li:last-child { border-bottom: none; }
.hm-linklist li::before {
	content: ""; position: absolute; left: 2px; top: 15px;
	width: 6px; height: 6px; border-radius: 2px; background: #E2B7B7;
}
.hm-linklist li a {
	color: #4A4E56; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-linklist li a:hover { color: #CC0000; }
.hm-colcard .hm-colfoot { text-align: right; padding-top: 10px; }
.hm-colcard .hm-colfoot a { font-size: 13px; color: #999; }
.hm-colcard .hm-colfoot a:hover { color: #CC0000; }

/* 侧栏：优惠 + 推荐 */
.hm-aside-card {
	background: #fff; border: 1px solid #ECECEF; border-left: 3px solid #CC0000;
	border-radius: 12px; padding: 18px 20px 8px; margin-bottom: 20px;
}
.hm-aside-card h3 { font-size: 16px; height: auto; color: #22252B; margin: 0 0 10px; font-weight: 700; }
.hm-aside-card h3 span { font-size: 12px; color: #B0B3B9; font-weight: 400; margin-left: 6px; font-family: Arial, sans-serif; }
.hm-aside-card ul { list-style: none; margin: 0; padding: 0; }
.hm-aside-card li { border-bottom: 1px dashed #F0F0F2; }
.hm-aside-card li:last-child { border-bottom: none; }
.hm-aside-card li a {
	display: block; padding: 8px 0; font-size: 13px; color: #6B6F77;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-aside-card li a:hover { color: #CC0000; }
.hm-aside-card.hm-promo li a { color: #CC0000; }

/* ======================================================================
   5) 页脚
   ====================================================================== */
.hm-footer { background: #22252B; color: #9AA0A8; margin-top: 0; }
.hm-ft-grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
	padding: 46px 0 36px;
}
.hm-ft-grid h4 {
	color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 600; letter-spacing: 1px;
}
.hm-ft-about p { font-size: 13px; line-height: 1.8; margin: 0 0 12px; }
.hm-ft-contact { font-size: 13px; line-height: 2; }
.hm-ft-contact a { color: #C6CBD2; }
.hm-ft-contact a:hover { color: #fff; }
.hm-ft-links { list-style: none; margin: 0; padding: 0; }
.hm-ft-links li { margin-bottom: 9px; }
.hm-ft-links a { font-size: 13px; color: #9AA0A8; }
.hm-ft-links a:hover { color: #fff; }
.hm-ft-bar {
	border-top: 1px solid #33373E; padding: 18px 0; text-align: center; font-size: 12.5px;
	line-height: 2;
}
.hm-ft-bar, .hm-ft-bar a { color: #7C828B; }
.hm-ft-bar a:hover { color: #fff; }
.hm-ft-bar .hm-sep { margin: 0 10px; color: #4A4E55; }
.hm-ft-kw { margin-top: 4px; }
.hm-ft-kw a { margin: 0 6px; }

/* ======================================================================
   响应式
   ====================================================================== */
@media (max-width: 1199px) {
	.hm-hero-grid { gap: 32px; padding: 44px 0 42px; }
	.hm-h1 { font-size: 26px; }
	.hm-svc-grid, .hm-prod-grid { grid-template-columns: repeat(2, 1fr); }
	.hm-news-grid { grid-template-columns: 1fr 1fr; }
	.hm-news-grid .hm-aside-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
	.hm-aside-card { margin-bottom: 0; }
	.hm-ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.hm-hero-visual { min-height: 400px; }
}

@media (max-width: 980px) {
	.hm-hero-grid { grid-template-columns: 1fr; }
	.hm-hero-visual { min-height: 300px; max-width: 560px; margin: 6px auto 0; width: 100%; }
	.hm-photo-main { position: relative; top: auto; right: auto; width: 100%; }
	.hm-photo-sub { display: none; }
	.hm-badge { top: -12px; }
}

@media (max-width: 767px) {
	.hm-section { padding: 36px 0; }
	.hm-sec-head { margin-bottom: 18px; }
	.hm-sec-head h2 { font-size: 21px; }
	.hm-hero-grid { padding: 30px 0 34px; gap: 24px; }
	.hm-h1 { font-size: 21px; }
	.hm-hero-sub { font-size: 14px; margin-bottom: 20px; }
	.hm-btn { padding: 9px 20px; font-size: 14px; }
	.hm-hero-visual { min-height: 0; }
	.hm-badge { font-size: 12px; padding: 6px 13px; }
	.hm-svc-grid, .hm-prod-grid, .hm-news-grid { grid-template-columns: 1fr; }
	.hm-linklist li a { white-space: normal; }
	.hm-news-grid .hm-aside-col { grid-column: auto; display: block; }
	.hm-aside-card { margin-bottom: 16px; }
	.hm-photo-main { width: 100%; }
	.hm-ft-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
	.hm-ft-bar { padding: 14px 0; }
	.hm-hero-points { flex-wrap: wrap; gap: 10px 18px; }
}
