/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

/* 取消 el-main 内部边距 */
:root {
  --el-main-padding: 0 !important;
}

.el-main {
  padding: 0 !important;
}

/* ========== 首页样式 ========== */
.fn-home {
  width: 100%;
}

/* Hero 区域 */
.hero-section {
  background: linear-gradient(to bottom, #fff 60%, #f5f7fa 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 160px 20px 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* 顶部标题区 */
.hero-header {
  margin-bottom: 30px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* NAS 标签 - 左下直角样式 */
.hero-tag {
  display: inline-block;
  background: linear-gradient(135deg, #6B9BFF 0%, #5A8FEF 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 20px 20px 20px 0;
  margin-left: 14px;
  vertical-align: top;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

/* 功能特点 - 文字列表 */
.hero-features {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-item {
  font-size: 18px;
  color: #555;
  position: relative;
}

.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: #ccc;
  border-radius: 50%;
}

/* 按钮组 */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

/* 覆盖 Element Plus 内置的按钮间隔 */
.hero-buttons .el-button + .el-button {
  margin-left: 0 !important;
}

.hero-buttons .el-button {
  padding: 12px 36px;
  font-size: 15px;
  border-radius: 24px !important;
}

/* 主图 */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  max-width: 100%;
  max-height: 480px;
  border-radius: 10px 10px 0 0;
}

/* ========== 功能展示区 - 设备兼容性 ========== */
.fn-features {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px 120px;
  background: linear-gradient(0deg, #fff 0%, #edf5ff 100%);
}

.fn-features-inner {
  margin-bottom: 16px;
  width: 100%;
}

.fn-features-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.fn-features-title h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  color: #333;
  margin-bottom: 8px;
}

.fn-features-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  margin-bottom: 32px;
  margin-top: 4px;
}

.fn-features-desc p {
  margin-bottom: 2px;
}

.fn-features-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fn-feature-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.fn-feature-tag img {
  width: 22px;
  height: auto;
  margin-bottom: 4px;
}

.fn-feature-tag .tag-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
  margin-top: 4px;
  margin-bottom: 2px;
}

.fn-feature-tag .tag-desc {
  font-size: 12px;
  line-height: normal;
  color: #666;
}

/* 设备兼容性展示 */
.fn-features {
  position: relative;
  padding: 50px 20px;
  background: linear-gradient(0deg, #FFF 0%, #EDF5FF 100%);
  overflow: hidden;
}

.fn-features-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 2;
}

.fn-features-title {
  text-align: center;
  margin-bottom: 30px;
}

.fn-features-title h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  color: #333;
}

.fn-features-desc {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 30px;
}

.fn-features-desc p {
  margin-bottom: 8px;
}

.fn-features-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fn-feature-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fn-feature-tag img {
  width: 22px;
  height: auto;
  margin-bottom: 4px;
}

.fn-feature-tag .tag-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 2px;
  color: #333;
}

.fn-feature-tag .tag-desc {
  font-size: 12px;
  line-height: normal;
  color: #666;
}

/* ========== 设备动画容器 ========== */
.semi-lottie {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.semi-lottie svg {
  overflow: visible;
  width: 100%;
  height: auto;
  max-height: 426px;
}

/* 虚线背景闪烁 */
.semi-lottie .xiantiao-group {
  animation: xiantiaoPulse 3s ease-in-out infinite;
}

@keyframes xiantiaoPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========== 设备图标动画 ========== */
.semi-lottie .hw-icon {
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  will-change: transform, opacity;
}

/* Logo 保持原位无动画 */

/* 所有图片默认显示 */
.semi-lottie .png {
  opacity: 1;
}

/* 背景图片定位 */
.fn-features picture {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.fn-features picture img {
  height: 105px;
  width: auto;
  max-width: none;
}

@media (min-width: 1024px) {
  .fn-features picture img {
    height: 374px;
  }
}

.fn-lottie {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.fn-hardware-visual {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.fn-hardware-svg {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.fn-hardware-img {
  max-width: 100%;
  height: auto;
  max-height: 374px;
}

/* 背景图 */
.fn-hardware-bg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 105px;
  width: auto;
  max-width: none;
  z-index: 1;
}

@media (min-width: 1024px) {
  .fn-features {
    padding: 120px 0;
  }
  
  .fn-features-inner {
    margin-bottom: 40px;
    max-width: 1200px;
  }
  
  .fn-features-title {
    margin-bottom: 40px;
  }
  
  .fn-features-title h3 {
    font-size: 40px;
  }
  
  .fn-features-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 62px;
    margin-top: 8px;
  }
  
  .fn-features-tags {
    gap: 50px;
  }
  
  .fn-feature-tag img {
    width: 32px;
  }
  
  .fn-feature-tag .tag-name {
    font-size: 18px;
    line-height: 2;
  }
  
  .fn-feature-tag .tag-desc {
    font-size: 14px;
  }
  
  .fn-hardware-img {
    max-height: 400px;
  }
  
  .fn-hardware-bg {
    height: 374px;
  }
}

/* 产品中心 */
.products-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.product-card {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 50%;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* 关于我们 */
.about-section {
  padding: 80px 20px;
  background: #fff;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
}

.about-content p {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-stats {
  padding: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* ========== 主题按钮样式 ========== */

/* 按钮基础样式（A 标签模拟 el-button） */
.hero-buttons .btn-routeros,
.hero-buttons .btn-openwrt {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 20px;
  border: 1px solid #409eff;
  background-color: #409eff;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-sizing: border-box;
}

.hero-buttons .btn-routeros:hover,
.hero-buttons .btn-openwrt:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
  color: #fff;
}

.hero-buttons .btn-routeros:active,
.hero-buttons .btn-openwrt:active {
  background-color: #3a8ee6;
  border-color: #3a8ee6;
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-image {
    max-height: 300px;
    border-radius: 8px;
  }
  .hero-features {
    gap: 16px;
  }
  .feature-item:not(:last-child)::after {
    display: none;
  }
  .about-section .el-col {
    margin-bottom: 30px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .el-button {
    width: 200px;
    text-align: center;
  }
}

/* ========== 导航栏 ========== */
.fn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
}

@media (min-width: 1024px) {
  .fn-header {
    height: 60px;
  }
}

.fn-header-inner {
  display: flex;
  justify-content: center;
  height: 100%;
}

.fn-header-inner > * {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.fn-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0;
}

.fn-nav-logo .logo-icon {
  height: 30px;
  width: auto;
}

/* 桌面端导航 */
.fn-nav-desktop {
  display: none;
  max-width: 1200px;
  width: 100%;
  margin: 0 6px;
}

@media (min-width: 1024px) {
  .fn-nav-desktop {
    display: flex;
    justify-content: space-between;
  }
}

.fn-nav-left,
.fn-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 导航项 */
.fn-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.fn-nav-link {
  font-size: 14px;
  line-height: 20px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 600;
}

a.fn-nav-link {
  text-decoration: none;
}

.fn-nav-link:hover {
  color: #2563EB;
}

/* 弹出菜单 */
.fn-nav-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  margin-top: 12px;
}

.fn-nav-popup-right {
  right: 0;
  left: auto;
  transform: none;
}

.fn-nav-popup.show {
  display: block;
}

/* 只有有子菜单的导航项才显示弹出菜单 */
.fn-nav-item.has-popup:hover > .fn-nav-popup {
  display: block;
}

/* 填充导航项和下拉菜单之间的间隙，防止鼠标移动时消失 */
.fn-nav-item.has-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* 有子菜单的导航项显示下拉箭头 */
.fn-nav-item.has-popup > .fn-nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 4px solid #999;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  transition: transform 0.2s;
}

.fn-nav-item.has-popup:hover > .fn-nav-link::after {
  transform: rotate(180deg);
  border-top-color: #2563EB;
}

.fn-nav-popup-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.fn-nav-popup-item:hover {
  background: #f5f7fa;
  color: #2563EB;
}

/* 微信客服二维码下拉 */
.fn-nav-qrcode {
  padding: 12px;
  min-width: 160px;
}

/* 确保导航栏 SVG 图标正常大小 */
.fn-nav-link svg,
.fn-nav-login svg {
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 微信客服图片图标 */
.fn-nav-link .nav-icon-img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* 确保图标和文字垂直居中对齐 */
.fn-nav-link {
  display: inline-flex;
  align-items: center;
}

.fn-nav-qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fn-nav-qrcode-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: #f5f7fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

.fn-nav-qrcode-placeholder svg {
  margin-bottom: 8px;
}

/* 移动端微信客服 */
.fn-nav-item-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .fn-nav-item-mobile {
    display: block;
  }
}

.fn-nav-qrcode-mobile {
  display: none;
  position: static;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 8px 0;
}

.fn-nav-item-mobile.has-popup {
  flex-direction: column;
  align-items: flex-start;
}

.fn-nav-item-mobile.has-popup:hover > .fn-nav-qrcode-mobile {
  display: block;
}

/* 登录按钮 */
.fn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.fn-nav-login:hover {
  color: #2563EB;
}

/* 移动端导航 */
.fn-nav-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .fn-nav-mobile {
    display: none;
  }
}

.fn-nav-login-mobile {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.fn-nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  gap: 4px;
  cursor: pointer;
}

.fn-nav-hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #202327;
  transition: all 0.3s;
}

.fn-nav-toggle-input {
  display: none;
}

.fn-nav-toggle-input:checked ~ .fn-nav-mobile-menu {
  height: auto;
  max-height: calc(100vh - 52px);
}

.fn-nav-mobile-menu {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.fn-nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px;
}

.fn-nav-mobile-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fn-nav-mobile-link {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 移动端有子菜单的项显示下拉箭头 */
.fn-nav-mobile-section.has-popup > .fn-nav-mobile-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #999;
}

.fn-nav-mobile-sublink {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding-left: 16px;
}

/* 主内容区 */
.fn-main {
  padding-top: 60px;
  min-height: 100vh;
}

/* 主内容区 */
.fn-main {
  padding-top: 88px;
  min-height: calc(100vh - 88px);
}

/* ========== Footer 样式 ========== */

/* footer 整体 */
.fn-footer {
  background: #fff;
  border-top: 1px solid #eef0f4;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ---- 社交媒体图标行 ---- */
.footer-social-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

/* ---- 社交图标弹出层容器 ---- */
.social-popover {
  position: relative;
  display: inline-block;
}

.social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #666;
  transition: color 0.25s ease;
  font-size: 14px;
  cursor: pointer;
}

.social-link:hover {
  color: #333;
}

/* 圆形图标容器 */
.social-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f6f7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link:hover .social-icon-circle {
  background: #e8eaed;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* SVG图标 */
.social-svg {
  position: absolute;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.social-default { opacity: 1; }
.social-hover { opacity: 0; }

.social-link:hover .social-default { opacity: 0; }
.social-link:hover .social-hover { opacity: 1; }

/* ---- 弹出内容层 ---- */
.social-popover-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
}

.social-popover:hover .social-popover-content {
  display: block;
}

/* 小三角箭头 */
.social-popover-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #ebeef5;
}

.social-popover-content::before {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
  z-index: 1;
}

/* ---- 二维码弹框 ---- */
.qrcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qrcode-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ebeef5;
}

.qrcode-placeholder {
  width: 160px;
  height: 160px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  color: #c0c4cc;
  font-size: 13px;
  background: #fafafa;
  text-align: center;
  line-height: 1.5;
}

/* ---- 许可证、备案行 ---- */
.footer-info-row {
  font-size: 13px;
  color: #aaa;
  letter-spacing: 0.3px;
}

/* ---- 版权行 ---- */
.footer-copyright-row {
  font-size: 13px;
  color: #bbb;
}
