﻿/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  color: #101820;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-adi .logo-img {
  width: 120px;
  height: auto;
}

.logo-divider {
  width: 1px;
  height: 40px;
  background: #000;
}

.logo-macnica .macnica-text {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: 2px;
}

.btn-login {
  padding: 10px 22px;
  background: #0067B9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #005299;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,50,92,1) 0%, rgba(0,50,92,1) 8.3%, rgba(0,50,92,0.27) 46.4%, rgba(0,50,92,0) 64.3%, rgba(0,50,92,0) 81.4%, rgba(0,50,92,0) 100%);
}

.hero-content {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.hero-main-title {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.14);
  border-radius: 16px;
  color: #fff;
  font-size: 14px;
  width: fit-content;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-line1,
.hero-title-line2 {
  font-size: 46px;
  font-weight: 400;
  color: #fff;
  line-height: 1.32;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  padding: 14px 28px;
  background: #0067B9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #005299;
}

.btn-outline {
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

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

.hero-categories {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.category-item {
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}



.btn-cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  color: #003366;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
  max-width: 300px;
  height: 60px;
  box-sizing: border-box;
}

.btn-cta-hero:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ===== Intro Section ===== */
.intro {
  padding: 60px 0;
  background: #fff;
}

.intro-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
}

.intro-text-highlight {
  color: #0067B9;
  font-weight: 500;
}

/* ===== Applications Section ===== */
.applications {
  padding: 60px 0 0;
  background: #f8f9fa;
}

/* 白色背景层：tabs + tab-content + products + videos，宽度 100% 通栏 */
.tabs-panel {
  background: #fff;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #101820;
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  padding: 36px 24px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: #0067B9;
}

.tab-btn.active {
  color: #0067B9;
  border-bottom-color: #0067B9;
  font-weight: 600;
}

/* ===== Sub Tabs (二级切换) ===== */
.sub-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}

.sub-tab-btn {
  padding: 8px 20px;
  background: #F2F4F7;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.sub-tab-btn:hover {
  color: #0067B9;
  border-color: #0067B9;
}

.sub-tab-btn.active {
  background: #0067B9;
  color: #fff;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  color: #101820;
  margin-bottom: 16px;
}

.app-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.app-features {
  margin-bottom: 32px;
}

.app-features li {
  font-size: 15px;
  color: #333;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-features li i {
  color: #0067B9;
  font-size: 14px;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #0067B9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-detail:hover {
  background: #005299;
}

/* ===== Products Section (inside Applications) ===== */
.products {
  padding: 48px 0 24px;
}

.products-header {
  margin-bottom: 32px;
  text-align: left;
}

.products-title {
  font-size: 24px;
  font-weight: 700;
  color: #101820;
  margin-bottom: 8px;
  text-align: left;
}

.products-subtitle {
  font-size: 14px;
  color: #E8450E;
  text-align: left;
}

/* ===== Vue v-cloak & loading states ===== */
[v-cloak] {
  display: none;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 60px 0;
  font-size: 16px;
  color: #666;
}

.error-state {
  color: #d33;
}

.carousel-wrapper {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
}

.product-card {
  width: calc(25% - 18px);
  flex-shrink: 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: #0067B9;
  margin-bottom: 8px;
  display: block;
}

.product-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-link {
  font-size: 13px;
  color: #0067B9;
  font-weight: 500;
}

.product-link:hover {
  text-decoration: underline;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.carousel-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 可切换状态：prev/next 统一蓝色样式 */
.carousel-btn {
  background: #0052A3;
  color: #fff;
}

.carousel-btn:hover {
  background: #003d7a;
}

.carousel-prev {
  left: -22px;
}

.carousel-next {
  right: -22px;
}

/* 切换到头（不可再点）状态：灰底深箭头 */
.carousel-btn.disabled {
  background: #F2F4F7;
  color: #333;
}

.carousel-btn.disabled:hover {
  background: #0052A3;
  color: #fff;
}

/* ===== Videos Section (inside Applications) ===== */
.videos {
  padding: 24px 0 48px;
}

.videos-header {
  margin-bottom: 32px;
  text-align: left;
}

.videos-title {
  font-size: 24px;
  font-weight: 700;
  color: #101820;
  margin-bottom: 8px;
  text-align: left;
}

.videos-subtitle {
  font-size: 14px;
  color: #E8450E;
  text-align: left;
}

.video-card {
  width: calc(33.333% - 16px);
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,103,185,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s;
}

.video-thumbnail:hover .video-play-btn {
  background: rgba(0,103,185,1);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  color: #101820;
  margin-top: 12px;
  line-height: 1.4;
}

.video-card:hover .video-title {
  color: #0067B9;
}

/* ===== Activity Section ===== */
.activity {
  padding: 56px 0;
  background: #004680;
}

.activity-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.activity-info {
  flex: 1;
  max-width: 560px;
}

.activity-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #FF7E00;
  color: #fff;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.activity-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.activity-desc {
  font-size: 15px;
  color: #B9D2EC;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-activity-time {
  padding: 16px 32px;
  background: #0067B9;
  color: #fff;
  border: none;
  border-radius: 61px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-activity-time:hover {
  background: #005299;
}

.activity-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top:40px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-number {
  width: 34px;
  height: 34px;
  background: #fff;
  color: #004680;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-detail {
  flex: 1;
}

.step-subtext {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: #fff;
}

.footer-top {
  padding: 40px 0;
}

.footer-company {
  max-width: 100%;
}

.footer-logo-adi .footer-logo-img {
  width: 140px;
  margin-bottom: 17px;
}

.footer-logo-macnica .footer-logo-img {
  width: 191px;
  margin-bottom: 17px;
}

.footer-company-desc {
  font-size: 14px;
  color: #000;
  line-height: 26px;
  margin-bottom: 12px;
}

.footer-company-desc a {
  color: #0067B9;
}

.footer-company-desc a:hover {
  text-decoration: underline;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #000;
  margin: 25px 0;
}

.footer-bottom {
  background: #303030;
  padding: 42px 0;
  text-align: center;
}

.footer-qr-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 25px;
}

.footer-qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.qr-item {
  text-align: center;
}

.qr-code {
  width: 142px;
  height: 142px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 12px;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-label {
  font-size: 14px;
  color: #fff;
}

/* ===== 浏览器升级提示 ===== */
.browser-upgrade-tip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.browser-upgrade-box {
  max-width: 480px;
  margin: 0 20px;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.browser-upgrade-box h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 16px;
}

.browser-upgrade-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.link-info{
  color: #00ffde;
  text-decoration:underline;
}


@media (min-width: 1900px) {
    .hero-bg-img{
      height:auto;
      position: relative;
      top: -81%;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {

  .container {
    padding: 0 40px;
  }

  .header-inner {
    padding: 18px 40px;
  }

  .product-card {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 992px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 14px 24px;
  }

  .hero {
    height: 460px;
  }

  .hero-content {
    left: 40px;
    max-width: 500px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 36px;
  }

  .hero-main-title {
    font-size: 40px;
  }

  .app-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-image img {
    height: 280px;
  }

  .activity-layout {
    flex-direction: column;
    gap: 40px;
  }

  .footer-divider {
    margin: 20px 0;
  }

  .product-card {
    width: calc(50% - 12px);
  }

  .video-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .logo-macnica .macnica-text {
    font-size: 16px;
  }

  .hero {
    height: 400px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 28px;
  }

  .hero-main-title {
    font-size: 32px;
    left: 20px;
  }

  .hero-categories {
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 24px;
  }

  .tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 14px;
  }

  .product-card {
    width: calc(100% - 0px);
  }

  .video-card {
    width: calc(100% - 0px);
  }

  .activity-title {
    font-size: 26px;
  }

  .footer-qr-codes {
    gap: 24px;
  }

  .qr-code {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 360px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-main-title {
    font-size: 26px;
  }

  .activity-title {
    font-size: 22px;
  }

  .footer-qr-codes {
    flex-direction: column;
    align-items: center;
  }
}


