/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ===== 顶部透明导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled .nav-brand {
  color: #1a1a1a;
  text-shadow: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled .lang-switch {
  color: #333;
  border-color: rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled .nav-menu a {
  color: #333;
  text-shadow: none;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu li {
  position: relative;
}

/* 下拉菜单 */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  padding: 10px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  color: #333;
  text-shadow: none;
  white-space: nowrap;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  color: #c8102e;
  background: #f6f6f6;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
  background: #333;
}

/* ===== 首屏大图 ===== */
.hero {
  width: 100%;
  line-height: 0;
}

.hero img {
  width: 100%;
  height: auto;
}

/* ===== 关于我们简介 ===== */
.intro {
  padding: 96px 24px;
  text-align: center;
}

.intro .container {
  max-width: 860px;
  margin: 0 auto;
}

.intro h2 {
  font-size: 34px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.intro .lead {
  font-size: 17px;
  color: #555;
  margin-bottom: 28px;
}

.product-list {
  margin: 0 auto 28px;
  max-width: 640px;
  text-align: center;
}

.product-list li {
  position: relative;
  padding: 10px 0;
  font-size: 16px;
  color: #444;
  border-bottom: 1px solid #eee;
}

.product-list li:last-child {
  border-bottom: none;
}

.intro .note {
  font-size: 15px;
  color: #888;
}

/* ===== 代理产品 ===== */
.products {
  padding: 80px 24px;
  text-align: center;
}

.products .container {
  max-width: 1200px;
  margin: 0 auto;
}

.products h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 48px;
  letter-spacing: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-card .img-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.product-card img {
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-name {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 12px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 首页品牌 logo ===== */
.brands {
  padding: 0 24px 96px;
}

.brands .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 关于我们页 ===== */
.about-content {
  padding: 80px 24px;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-name h1 {
  font-size: 36px;
  color: #1a1a1a;
  letter-spacing: 2px;
}

.office-group {
  margin-bottom: 32px;
}

.office-group:last-child {
  margin-bottom: 0;
}

.office-group h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.office-group p {
  font-size: 16px;
  color: #555;
  margin-bottom: 6px;
}

/* ===== 联系我们页 ===== */
.contact-page {
  padding: 64px 24px 48px;
}

.office-block{
  margin-bottom: 72px;
}

.office-block-inner {
  max-width: 1200px;
  margin: 0 auto 72px;
  display: flex;
  align-items: stretch;
}

.office-block-inner:last-child {
  margin-bottom: 0;
}

.office-img {
  position: relative;
  flex: 1;
  min-height: 320px;
}

.office-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-info {
  flex: 1;
  background: #c8102e;
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.office-info h2 {
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.office-info p {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.office-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .office-block-inner {
    flex-direction: column;
  }

  .office-img {
    min-height: 240px;
  }

  .office-info {
    padding: 32px 24px;
  }
}

/* ===== 产品详情页 ===== */
.brand-intro {
  padding: 80px 24px 48px;
}

.brand-intro .container {
  max-width: 860px;
  margin: 0 auto;
}

.brand-intro h1 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 28px;
  letter-spacing: 2px;
  text-align: center;
}

.brand-intro p {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.9;
}

.showcase {
  padding: 48px 24px 80px;
}

.showcase .container {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase h2 {
  font-size: 28px;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.showcase-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.showcase-grid.cols-3 .showcase-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
}

.showcase-grid.cols-3 .showcase-img {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.showcase-grid.cols-3 .showcase-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.showcase-grid.cols-3 .showcase-item-caption {
  margin-top: 0;
  min-height: 0;
  padding: 16px 12px 20px;
}

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

.showcase-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.showcase-item-caption {
  display: block;
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.showcase-caption {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 32px;
  letter-spacing: 1px;
}

/* 产品 tab 展示 */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  margin-bottom: 36px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 0 0 auto;
  padding: 10px 22px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.tab:hover {
  background: #e0e0e0;
}

.tab.active {
  background: #c8102e;
  color: #fff;
}

.tab-panel {
  display: none;
}

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

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tab-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.tab-spec h3 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.spec-table th {
  width: 110px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.spec-table td {
  color: #333;
}

.tab-download {
  margin-top: 28px;
}

.tab-download h4 {
  font-size: 16px;
  color: #888;
  margin-bottom: 12px;
}

.tab-download a {
  display: inline-block;
  padding: 10px 22px;
  background: #c8102e;
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  transition: background 0.3s ease;
}

.tab-download a:hover {
  background: #a50d26;
}

@media (max-width: 800px) {
  .tab-panel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-group {
  margin-bottom: 64px;
}

.product-group h3 {
  font-size: 22px;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.download-list a {
  display: block;
  padding: 12px 20px;
  background: #f7f7f7;
  color: #333;
  border-radius: 6px;
  font-size: 15px;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.download-list a:hover {
  background: #c8102e;
  color: #fff;
}

.download {
  padding: 0 24px 96px;
}

.download .container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.download h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.download a {
  display: inline-block;
  padding: 12px 28px;
  background: #c8102e;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.download a:hover {
  background: #a50d26;
}

@media (max-width: 900px) {
  .showcase-grid,
  .showcase-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .showcase-grid,
  .showcase-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== 页脚 ===== */
.footer {
  background: #262626;
  color: #b0b0b0;
  padding: 64px 32px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  border-radius: 4px;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.col ul li {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.col ul li:last-child {
  margin-bottom: 0;
}

.col ul li a {
  color: inherit;
  transition: color 0.2s ease;
}

.col ul li a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid #3a3a3a;
  padding: 20px 32px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-cols {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0 20px;
  }

  .nav-brand {
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.open {
    max-height: 560px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 16px 0;
    color: #333;
    text-shadow: none;
  }

  .nav-menu a::after {
    display: none;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .dropdown a {
    padding: 12px 0;
    font-size: 15px;
  }

  .intro {
    padding: 64px 20px;
  }

  .intro h2 {
    font-size: 28px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 40px;
  }
}
