﻿/* ===== DIY CONTENT STYLES (Scoped) ===== */

.diy {
  max-width: 800px;
line-height: 2;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1.2em;
}



.diy-bg {
  margin-top: 20px;
  padding: 15px;
  color: #6B8E23;
  background: #e8f4fc;
  border-left: 4px solid #3498db;
}

.diy-b {
  margin: 30px 0;
  padding: 20px;
  background: #f0f7ff;
  border-radius: 8px;
}

.diy-review {
 background: white;
  margin: 40px 0 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}



.diy-a {
  color: blue;
  text-decoration: underline lightblue 1px;
  text-underline-offset: 4px;
}



/* 单张图片 */
.diy-img {
  max-height: 100%;
  border-radius: 12px;
  margin-bottom: 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

  .diy-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /
  }

.diy-v {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* 保持16:9比例 */
}


/* 响应式调整 */

@media screen and (max-width: 768px) {
  .diy-2 {
    display: flex;
    flex-direction: column;
  }
  
  .diy-2 video {
    order: -1; /* 将视频移到最前面 */
    max-width: 100% !important;
    width: 100% !important; /* 确保视频宽度填满 */
    margin: 0 0 20px 0; /* 添加底部间距 */
    float: none;
    align-self: center; /* 居中视频 */
  }
}


