/* ==================== Install Page Styles ==================== */

/* ============================================
   install.html 安装说明页面样式
   ============================================ */

/* Apple 风格 Hero 区域 - 标题居中 */
.install-hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 45px;
}

.install-hero h1,
.install-hero h3 {
  text-align: center;
}

/* 区块标题样式 */
.install-section {
  margin-bottom: 80px;
}

.install-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0 0 20px 0;
  margin: 0 0 35px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.install-section-title i {
  color: #259ad6;
  font-size: 28px;
}

/* 接线方式卡片 */
.install-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.install-card {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 154, 214, 0.08);
}

.install-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 154, 214, 0.15);
}

.install-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #259ad6, #1a7bb8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.install-card-icon i {
  font-size: 26px;
  color: #fff;
}

.install-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: center;
}

.install-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: center;
}

.install-card-img img {
  width: 100%;
  border-radius: 10px;
}

/* 状态灯说明 */
.status-lights {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.status-light-item {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.status-light {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-light span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.red-light {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

.red-light span {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.green-light {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.green-light span {
  background: linear-gradient(135deg, #4caf50, #388e3c);
}

.blue-light {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.blue-light span {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}

.status-light-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.status-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}

.status-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-row.blink .dot {
  animation: blink 1s infinite;
}

/* 各颜色闪烁独立 */
.blink-red .dot { background: #f44336; }
.blink-green .dot { background: #4caf50; }
.blink-blue .dot { background: #2196f3; }

/* 各颜色常亮独立 */
.solid-red .dot { background: #f44336; }
.solid-green .dot { background: #4caf50; }
.solid-blue .dot { background: #2196f3; }

.status-row.off .dot {
  background: #999;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 规范说明卡片 */
.spec-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.spec-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 154, 214, 0.15);
}

.spec-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #259ad6, #1a7bb8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.spec-icon i {
  font-size: 22px;
  color: #fff;
}

.spec-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #259ad6;
  margin-bottom: 15px;
}

.spec-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.spec-card ul li {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.spec-card ul li::before {
  content: '•';
  color: #259ad6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 四个注意点卡片 */
.install-warn-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.install-warn-card {
  flex: 1;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.install-warn-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 154, 214, 0.15);
}

.install-warn-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #259ad6;
  margin-bottom: 10px;
}

.install-warn-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* 接线步骤卡片 */
.wire-steps {
  margin-top: 30px;
}

.wire-steps h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wire-steps h2 i {
  color: #259ad6;
}

.wire-step-cards {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.wire-step-card {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.wire-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 154, 214, 0.15);
}

.wire-step-card .step-num {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #259ad6, #1a7bb8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 154, 214, 0.4);
  border: 3px solid #fff;
}

.wire-step-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wire-step-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* FAQ卡片 */
.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.faq-card {
  display: flex;
  gap: 25px;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(37, 154, 214, 0.08);
  transition: all 0.3s ease;
}

.faq-card:hover {
  box-shadow: 0 12px 40px rgba(37, 154, 214, 0.15);
}

.faq-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #259ad6, #1a7bb8);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-content {
  flex: 1;
}

.faq-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.faq-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}

.faq-content strong {
  color: #259ad6;
}

.faq-img {
  margin-top: 20px;
  text-align: center;
}

.faq-img img {
  max-width: 70%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .install-section-title {
    font-size: 22px;
  }
  
  .install-cards,
  .spec-cards,
  .install-warn-cards {
    flex-direction: column;
  }
  
  .status-lights {
    flex-direction: column;
  }
  
  .faq-card {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-num {
    margin: 0 auto;
  }
  
  .wire-step-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .wire-step-card {
    min-width: 160px;
  }
}

/* ============================================
   导航栏样式（与 help.css 保持一致）
   ============================================ */

/* 导航栏hover变粗+圆角背景 - 仅PC端 */
@media (min-width: 992px) {
    .main-menu > li > a {
        padding: 8px 16px !important;
        border-radius: 20px !important;
    }
    .main-menu > li > a:hover {
        font-weight: 900 !important;
        background-color: rgba(255,255,255,0.2) !important;
    }
    /* 导航项间距 */
    .main-menu > li {
        margin: 0 8px !important;
    }
    .main-menu > li {
        transform: none !important;
        transition: none !important;
    }
    .main-menu > li:hover {
        transform: none !important;
    }
    .main-menu > li a {
        transition: none !important;
        transform: none !important;
    }
    .main-menu .dropdown-menu li a:hover {
        font-weight: 900 !important;
    }
    .main-menu .dropdown-menu {
        border-radius: 12px !important;
        overflow: hidden;
    }

    /* 大卡片下拉菜单 - 仅PC端 */
    .has-mega-menu {
        position: relative;
    }
    .has-mega-menu .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        min-width: 510px;
        padding-top: 8px;
    }
    .has-mega-menu:hover .mega-menu {
        display: block;
    }
    .mega-menu-inner {
        display: flex;
        background: #fff;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        padding: 24px 20px 24px 24px;
        gap: 24px;
        align-items: center;
    }
    .mega-menu-left {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 140px;
    }
    .mega-menu-left.mega-col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        max-width: 320px;
    }
    .mega-menu-left.mega-col-2 a {
        width: auto;
    }
    .mega-menu-left a {
        color: #000 !important;
        font-size: 15px;
        padding: 10px 16px;
        border-radius: 10px;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s, font-weight 0.2s;
        white-space: nowrap;
    }
    .mega-menu-left a:hover {
        color: #259ad6 !important;
        font-weight: 700;
    }
    .mega-menu-right {
        flex: 0 0 auto;
        width: 200px;
        height: 250px;
        border-radius: 16px;
        overflow: hidden;
        margin-right: 4px;
        margin-left: 100px;
    }
    .mega-menu-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
    }
}

/* 移动端导航覆盖 */
@media (max-width: 991px) {
    /* 覆盖 Bootstrap 默认的 hover/open 浅灰背景 */
    .nav > li > a:hover,
    .nav > li > a:focus,
    .nav .open > a,
    .nav .open > a:focus,
    .nav .open > a:hover {
        background: transparent !important;
        color: #259ad6 !important;
    }

    /* 一级菜单：无箭头、无分隔线 */
    .main-menu > li {
        margin: 0 !important;
        display: block !important;
        border-bottom: none !important;
    }
    .main-menu > li > a {
        display: block !important;
        position: relative !important;
        padding: 12px 16px !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        border-bottom: none !important;
        background: none !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .main-menu > li > a:hover,
    .main-menu > li > a:active,
    .main-menu > li > a:focus {
        color: #259ad6 !important;
        background: transparent !important;
    }
    /* 去掉一级菜单箭头 */
    .main-menu > li > a::after {
        content: none !important;
    }
    .has-mega-menu.mobile-open > a::after {
        content: none !important;
        transform: none !important;
    }

    /* 搜索框隐藏 */
    .main-menu li.search {
        display: none !important;
        border-bottom: none !important;
    }

    /* 子菜单容器 */
    .has-mega-menu {
        position: static !important;
    }
    .has-mega-menu .mega-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .has-mega-menu:hover .mega-menu {
        display: none !important;
    }
    .has-mega-menu.mobile-open .mega-menu {
        display: block !important;
    }
    .mega-menu-inner {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    .mega-menu-right {
        display: none !important;
    }
    .mega-menu-left {
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .mega-menu-left.mega-col-2 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    /* 二级菜单：无箭头、无分隔线 */
    .mega-menu-left a {
        display: block !important;
        position: relative !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 10px 16px 10px 28px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-bottom: none !important;
        text-decoration: none !important;
        background: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mega-menu-left a::after {
        content: none !important;
    }
    .mega-menu-left a:hover,
    .mega-menu-left a:active {
        color: #259ad6 !important;
        background: transparent !important;
    }
}
