Beyond Instant Canopy
A collection page of Eurmax
About
/* 重置基础样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif; background: #f8f9fc; /* 页面背景保持浅灰,但卡片本身无白底 */ line-height: 1.5; color: #1e2a3e; } /* 容器宽度与居中 */ .wrap1200 { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; width: 100%; } /* 保留原有模板路径类名,不破坏语义 */ .storefront\view\default_html5\template\pages\product\category.tpl { display: block; } /* ========= 核心布局:左右两列等高,顶部+底部同时对齐,无白底无边框 ========= */ .categoryInfo { display: flex; flex-wrap: wrap; gap: 2rem; /* 列间距(桌面端) */ align-items: stretch; /* 使两列高度相等,顶部和底部自然对齐 */ background: transparent; /* 移除白底 */ border-radius: 0; /* 移除圆角边框 */ padding: 0; /* 移除内边距 */ box-shadow: none; /* 移除阴影边框 */ transition: none; } /* 左侧视频列:与右侧弹性宽度相等,且自动撑满父容器高度 */ .media-col { flex: 1; min-width: 260px; display: flex; flex-direction: column; } /* 右侧文字列:同样弹性宽度,自动继承等高 */ .text-col { flex: 1; min-width: 240px; display: flex; flex-direction: column; } /* 视频容器:保持16:9比例,无边框无阴影 */ .video-wrapper { position: relative; width: 100%; background: #000; /* 视频黑底,非白底边框,符合要求 */ border-radius: 0; overflow: hidden; box-shadow: none; transition: none; } .video-wrapper iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: none; } /* 老旧浏览器备用方案 */ @supports not (aspect-ratio: 16/9) { .video-wrapper { padding-bottom: 56.25%; height: 0; position: relative; } .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } } /* 右侧标题样式 */ .text-col .cate-pic { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; color: #1f3b4c; letter-spacing: -0.01em; border-left: 5px solid #e67e22; padding-left: 1rem; background: transparent; } /* 段落样式 */ .text-col p { font-size: 1rem; color: #2c3e44; margin-bottom: 1.25rem; text-align: justify; background: transparent; } /* 最后一个段落底部不留多余空白 */ .text-col p:last-of-type { margin-bottom: 0; } /* 段落中的链接样式 */ .text-col p a { color: #e67e22; text-decoration: none; font-weigh