/* ================= 动力电池解决方案专属 CSS ================= */
/* 基础与排版 */
.yy-sol-wrapper { font-family: inherit; color: #333; background: #fff; }
.yy-sol-section { padding: 90px 0; }
.yy-sol-section-bg { background: #f8f9fc; }
.yy-sol-title-wrap { text-align: center; margin-bottom: 60px; }
.yy-sol-title-wrap h2 { font-size: 36px; color: #111; font-weight: 700; margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 15px; }
.yy-sol-title-wrap h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--yy-primary); border-radius: 2px; }
.yy-sol-title-wrap p { font-size: 16px; color: #666; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* 1. 顶部 Hero Banner */
.yy-sol-hero { display: block; width: 100%; aspect-ratio: 1920 / 700; position: relative; background: url('/wp-content/uploads/2026/04/power-battery-solution3.jpg') no-repeat center center; background-size: contain; background-color: #001932; margin: 0; padding: 0; }
.yy-sol-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.yy-sol-hero .yy-container { position: relative; z-index: 2; width: 100%; }
.yy-sol-hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 15px; text-shadow: 0 4px 15px rgba(0,0,0,0.4); line-height: 1.2; letter-spacing: 2px; text-transform: uppercase; }
.yy-sol-hero p { font-size: 22px; font-weight: 500; margin: 0 auto; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

/* 2. 核心应用场景扩展模块 (视觉冲击) */
.yy-sol-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: -30px; position: relative; z-index: 10; padding: 0 15px; }
.yy-sol-app-card { background: #fff; border-radius: 12px; padding: 40px 25px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border-bottom: 4px solid transparent; }
.yy-sol-app-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); border-bottom-color: var(--yy-primary); }
.yy-sol-app-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: rgba(0,160,233,0.1); border-radius: 50%; color: var(--yy-primary); transition: var(--yy-transition); }
.yy-sol-app-card:hover .yy-sol-app-icon { background: var(--yy-primary); color: #fff; transform: scale(1.1); }
.yy-sol-app-card h3 { font-size: 20px; color: #222; margin-bottom: 10px; font-weight: 700; }
.yy-sol-app-card p { font-size: 14px; color: #777; margin: 0; line-height: 1.6; }

/* 3. 传统动力系统的痛点 (左右布局图文框) */
.yy-sol-painpoints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.yy-sol-pain-item { display: flex; align-items: flex-start; gap: 25px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: var(--yy-transition); border: 1px solid #f0f2f5; }
.yy-sol-pain-item:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.08); transform: translateY(-5px); }
.yy-sol-pain-icon { flex: 0 0 50px; height: 50px; color: #dc3545; }
.yy-sol-pain-text h4 { font-size: 22px; color: #111; margin-top: 0; margin-bottom: 15px; font-weight: 600; }
.yy-sol-pain-text p { font-size: 15px; color: #666; margin: 0; line-height: 1.7; }

/* 4. 我们的核心优势 (三列高亮卡片) */
.yy-sol-adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.yy-sol-adv-item { text-align: center; padding: 50px 30px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: var(--yy-transition); position: relative; overflow: hidden; z-index: 1; }
.yy-sol-adv-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(135deg, var(--yy-primary) 0%, #007bb5 100%); transition: height 0.4s ease; z-index: -1; }
.yy-sol-adv-item:hover::before { height: 100%; }
.yy-sol-adv-item:hover * { color: #fff !important; }
.yy-sol-adv-icon { width: 70px; height: 70px; margin: 0 auto 25px; color: var(--yy-primary); transition: var(--yy-transition); }
.yy-sol-adv-item h4 { font-size: 22px; color: #111; margin-bottom: 15px; font-weight: 700; }
.yy-sol-adv-item p { font-size: 15px; color: #666; line-height: 1.7; margin: 0; }

/* 5. 为什么选择我们 (2x2 网格) */
.yy-sol-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.yy-sol-why-item { display: flex; align-items: flex-start; gap: 25px; }
.yy-sol-why-icon { flex: 0 0 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; color: var(--yy-primary); box-shadow: 0 10px 25px rgba(0,160,233,0.15); font-size: 28px; }
.yy-sol-why-text h4 { font-size: 20px; color: #111; margin-top: 0; margin-bottom: 12px; font-weight: 600; }
.yy-sol-why-text p { font-size: 14.5px; color: #666; margin: 0; line-height: 1.7; }

/* 6. 制造实力与视频演示 (左右布局) */
.yy-sol-factory { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.yy-sol-factory-list { list-style: none; margin: 0; padding: 0; }
.yy-sol-factory-list li { position: relative; padding-left: 45px; margin-bottom: 25px; font-size: 18px; color: #333; font-weight: 500; line-height: 1.5; }
.yy-sol-factory-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--yy-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; }
.yy-sol-factory-list p { margin: 8px 0 0 0; font-size: 14.5px; color: #777; font-weight: 400; line-height: 1.6; }
/* 视频模块样式 */
.yy-yt-lazy { position: relative; width: 100%; aspect-ratio: 16/9; background-color: #000; cursor: pointer; border-radius: 8px; overflow: hidden; }
.yy-yt-lazy img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yy-yt-lazy .yy-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; color: rgba(255, 255, 255, 1); background: rgba(33, 33, 33, 0.8); border-radius: 12px; display: flex; align-items: center; justify-content: center; z-index: 2; transition: var(--yy-transition, all 0.3s ease); }
.yy-yt-lazy .yy-play-btn svg { width: 32px; height: 32px; }
.yy-yt-lazy:hover .yy-play-btn { color: #fff; background: var(--yy-primary, #ff0000); }
.yy-yt-lazy iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 3; }
/* 视频开始播放后隐藏播放按钮和背景 */
.yy-yt-lazy:has(iframe) { cursor: default; }
.yy-yt-lazy:has(iframe) .yy-play-btn { display: none; }
.yy-yt-lazy:has(iframe) img { display: none; }

/* 7. 底部询盘表单 (高端留白，双列自适应) */
.yy-sol-contact-box { max-width: 900px; margin: 0 auto; background: #fff; padding: 60px 70px; border-radius: 20px; box-shadow: 0 20px 80px rgba(0,0,0,0.08); border: 1px solid #f0f4f8; }
.yy-sol-contact-box h3 { text-align: center; font-size: 28px; color: #111; margin-bottom: 15px; font-weight: 700; }
.yy-sol-contact-box > p { text-align: center; color: #666; margin-bottom: 40px; font-size: 16px; }

/* 【核心技巧】：利用现代 CSS :has 选择器实现表单双列布局，无需修改组件 PHP */
.yy-sol-contact-box .yy-form { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 0; }
.yy-sol-contact-box .yy-form-group { width: 100%; margin-bottom: 0; }
.yy-sol-contact-box .yy-form-group:has(input[name="yy_name"]), .yy-sol-contact-box .yy-form-group:has(input[name="yy_phone"]) { width: calc(50% - 10px); }

/* 移动端适配 */
@media (max-width: 1024px) {
    .yy-sol-apps { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
    .yy-sol-adv { grid-template-columns: repeat(2, 1fr); }
    .yy-sol-factory { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .yy-sol-hero h1 { font-size: 32px; }
    .yy-sol-hero p { font-size: 16px; }
    .yy-sol-painpoints, .yy-sol-adv, .yy-sol-why { grid-template-columns: 1fr; }
    .yy-sol-contact-box { padding: 40px 25px; }
    .yy-sol-contact-box .yy-form-group:has(input[name="yy_name"]), .yy-sol-contact-box .yy-form-group:has(input[name="yy_phone"]) { width: 100%; }
}
