/* ============================================
   Welielec Homepage — SK-on Inspired Design
   参考 http://chn.sk-on.com/ 首页流转图效果
   ============================================ */

/* --- CSS Variables --- */
:root {
  --hp-blue: #00509e;
  --hp-blue-dark: #003a75;
  --hp-green: #00c9a7;
  --hp-green-dark: #00a88b;
  --hp-dark: #0a1628;
  --hp-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
  --hp-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --hp-font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --hp-max-width: 1200px;
}

/* --- Reset body for single-screen --- */
html.home-page,
body.home-page {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: var(--hp-font);
  background: var(--hp-dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

body.home-page {
  min-height: 100vh;
  position: relative;
}

/* ============================================ */
/* BACKGROUND CAROUSEL — SK-on 风格全屏背景     */
/* ============================================ */

#bg-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#bg-carousel .bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 静态背景图 — 拉伸铺满全屏，完整显示整张图片 */
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

#bg-carousel .bg-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* ============================================ */
/* HEADER                                       */
/* ============================================ */

.home-header {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 120px;
}

.home-header .inner {
  width: 100%;
  max-width: var(--hp-max-width);
  margin: 0 auto;
  padding: 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.home-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.home-header .logo-img {
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: transparent;
}

.home-header .logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-header .logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: var(--hp-text-shadow);
}

.home-header .logo-text small {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.home-header .util {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}

.home-header .util a,
.home-header .util button {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--hp-font);
  text-shadow: var(--hp-text-shadow);
  transition: color 0.2s;
  padding: 0;
}

.home-header .util a:hover,
.home-header .util button:hover {
  color: var(--hp-green);
}

.home-header .util .lang-switch {
  display: flex;
  gap: 6px;
}

.home-header .util .lang-switch button {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.home-header .util .lang-switch button.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.home-header .util .lang-switch button:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.home-header .util .sitemap-link {
  font-size: 0.85rem;
}

/* ============================================ */
/* MAIN CONTENT LAYOUT — 左右50%分割 (SK-on风格) */
/* ============================================ */

.home-main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--hp-max-width);
  margin: 0 auto;
  display: flex;
  height: calc(100vh - 120px - 100px); /* minus header and bottom bar */
  min-height: 450px;
}

.home-main .col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home-main .col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================ */
/* LEFT: SLOGAN AREA — SK-on KV Copy 风格       */
/* ============================================ */

.slogan-area {
  padding: 0 60px 40px 0;
  position: relative;
}

.slogan-area .slogan-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.slogan-area .slogan-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slogan-area .slogan-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 201, 167, 0.15);
  border: 1px solid rgba(0, 201, 167, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--hp-green);
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: none;
}

/* 主标题 — SK-on 风格: 大字号 + 文字阴影 */
.slogan-area .slogan-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: var(--hp-text-shadow);
  letter-spacing: -1px;
}

.slogan-area .slogan-title .hl {
  color: var(--hp-green);
}

/* 副标题 — SK-on 风格 */
.slogan-area .slogan-subtitle {
  font-size: 24px;
  color: #fff;
  line-height: 1.8;
  max-width: 440px;
  text-shadow: var(--hp-text-shadow);
}

.slogan-area .slogan-buttons {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.slogan-area .slogan-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  text-shadow: none;
}

.slogan-area .slogan-buttons .btn-accent {
  background: linear-gradient(135deg, var(--hp-green), var(--hp-green-dark));
  color: #000;
  box-shadow: 0 4px 16px rgba(0,201,167,0.3);
}

.slogan-area .slogan-buttons .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,201,167,0.4);
}

.slogan-area .slogan-buttons .btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.slogan-area .slogan-buttons .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ============================================ */
/* CAROUSEL CONTROLS — 仅文字轮播               */
/* ============================================ */

.carousel-controls {
  position: absolute;
  bottom: 25px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 10;
}

.carousel-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 25px;
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 7px;
  margin-top: 3px;
  transition: width 0.3s ease-out;
  flex-shrink: 0;
}

.carousel-controls .dot.active {
  width: 22px;
  background: var(--hp-green);
}

.carousel-controls .play-btn,
.carousel-controls .pause-btn {
  width: 15px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 5px;
  margin-top: 0;
  padding: 0;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
  display: none;
}

.carousel-controls .play-btn.show,
.carousel-controls .pause-btn.show {
  display: block;
}

.carousel-controls .play-btn:hover,
.carousel-controls .pause-btn:hover {
  color: #fff;
}

/* ============================================ */
/* RIGHT: NAVIGATION MENU BLOCKS                */
/* ============================================ */

.nav-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-menu .menu-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  text-decoration: none;
  color: #fff;
}

.nav-menu .menu-item:last-child {
  border-bottom: none;
}

/* Hover 白色背景滑入效果 — SK-on 的 hvr-shutter-out-vertical */
.nav-menu .menu-item::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300509e" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>') 90% center no-repeat;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.3s ease-out;
}

.nav-menu .menu-item:hover::before,
.nav-menu .menu-item:focus::before,
.nav-menu .menu-item:active::before {
  transform: scaleY(1);
}

/* Menu content */
.nav-menu .menu-item .menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 60px;
  transition: padding 0.3s ease;
}

.nav-menu .menu-item:hover .menu-content {
  padding-left: 70px;
}

.nav-menu .menu-item .menu-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  text-shadow: var(--hp-text-shadow);
  transition: text-shadow 0.3s;
}

.nav-menu .menu-item:hover .menu-icon {
  text-shadow: none;
}

.nav-menu .menu-item .menu-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--hp-text-shadow);
  transition: color 0.3s;
  margin-bottom: 2px;
}

.nav-menu .menu-item:hover .menu-title,
.nav-menu .menu-item:focus .menu-title,
.nav-menu .menu-item:active .menu-title {
  color: var(--hp-green);
  text-shadow: none;
}

.nav-menu .menu-item .menu-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  text-shadow: none;
}

.nav-menu .menu-item:hover .menu-desc,
.nav-menu .menu-item:focus .menu-desc,
.nav-menu .menu-item:active .menu-desc {
  max-height: 50px;
  color: #555;
}

/* ============================================ */
/* BOTTOM: 2-COLUMN QUICK LINKS (JD + SOCIAL)   */
/* ============================================ */

.bottom-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

.bottom-bar .inner {
  width: 100%;
  max-width: var(--hp-max-width);
  margin: 0 auto;
  display: flex;
  height: 100px;
}

.bottom-bar .quick-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-shadow: var(--hp-text-shadow);
}

.bottom-bar .quick-link:last-child {
  border-right: none;
}

/* Bottom gradient underline on hover */
.bottom-bar .quick-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hp-blue), var(--hp-green));
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bottom-bar .quick-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.bottom-bar .quick-link:hover::before {
  transform: scaleX(1);
}

.bottom-bar .quick-link .ql-icon {
  font-size: 1.6rem;
  transition: transform 0.3s;
}

.bottom-bar .quick-link:hover .ql-icon {
  transform: scale(1.15);
}

.bottom-bar .quick-link .ql-arrow {
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bottom-bar .quick-link:hover .ql-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--hp-green);
}

/* --- ICP 备案号 --- */
.bottom-bar__icp {
  text-align: center;
  padding: 2px 0 6px;
  font-size: 11px;
}
.bottom-bar__icp a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.bottom-bar__icp a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 1280px) {
  .home-header .inner,
  .home-main,
  .bottom-bar .inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1024px) {
  .slogan-area .slogan-title {
    font-size: 2.4rem;
  }
  .nav-menu .menu-item .menu-title {
    font-size: 1.2rem;
  }
  .nav-menu .menu-item .menu-content {
    padding: 0 30px;
  }
  .slogan-area {
    padding: 0 30px 40px 0;
  }
}

@media (max-width: 768px) {
  body.home-page {
    overflow-y: auto;
    height: auto;
  }

  #bg-carousel {
    min-width: auto;
  }

  .home-header {
    height: 80px;
  }

  .home-header .logo-img {
    width: 40px;
    height: 40px;
  }

  .home-header .logo-text {
    font-size: 1rem;
  }

  .home-header .util {
    gap: 12px;
    padding-top: 6px;
  }

  .home-main {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .home-main .col-left {
    background: none;
    padding: 30px 0 50px;
  }

  .home-main .col-right {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .slogan-area {
    padding: 0;
    text-align: center;
  }

  .slogan-area .slogan-title {
    font-size: 1.8rem;
  }

  .slogan-area .slogan-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .slogan-area .slogan-buttons {
    justify-content: center;
  }

  .carousel-controls {
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
    margin-top: 24px;
  }

  .nav-menu .menu-item {
    flex: 0 0 auto;
    min-height: 60px;
  }

  .nav-menu .menu-item .menu-content {
    padding: 14px 24px;
  }

  .bottom-bar .inner {
    flex-wrap: nowrap;
    height: 70px;
    padding: 0;
  }

  .bottom-bar .quick-link {
    flex: 1;
    height: 70px;
    font-size: 0.9rem;
    gap: 8px;
    border-bottom: none;
  }

  .bottom-bar .quick-link .ql-icon {
    font-size: 1.3rem;
  }
}
