* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* 日间模式的默认颜色 */
  --bg-primary: #f8f9fa;
  --bg-secondary: #e9ecef;
  --floating-element: rgba(231, 76, 60, 0.15);
  --area-bg: #ffffff;
  --text-color: #333;
  --white: #ffffff;
  --black: rgba(0, 0, 0, 0.9);

  /* 活力红色系 */
  --primary-red: #e74c3c; /* 主红色 */
  --secondary-red: #c0392b; /* 深红色，用于重点强调 */
  --light-red: #f1948a; /* 浅红色，用于悬停效果 */
  --hover-red: #fadbd8; /* 最浅的红色 */

  /* 辅助色 */
  --accent-blue: #3498db; /* 点缀用的蓝色 */
  --accent-yellow: #f1c40f; /* 点缀用的黄色 */

  /* 添加响应式尺寸变量 */
  --page-padding: clamp(15px, 3vw, 40px);
  --content-padding: clamp(10px, 2vw, 30px);
  --card-gap: clamp(10px, 2vw, 20px);
}

/* 背景动画 */
.bgAnimation {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.2);
}
.area {
  background: var(--area-bg);
  width: 100%;
  height: 100vh;
  min-height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}
.circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.circles li {
  position: absolute;
  list-style: none;
  width: 20px;
  height: 20px;
  display: block;
  background: var(--floating-element);
  bottom: -150px;
  animation: animate 25s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}
.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}
.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}
.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}
.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}
.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}
.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0.2;
  }
}

/* header */
header {
  width: 100%;
  padding: var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
}
.header-left .logo {
  max-width: clamp(80px, 15vw, 120px);
  height: auto;
  transition: all 0.3s ease;
}
.header-left .logo:hover {
  transform: none;
}
.header-left a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  color: var(--primary-red);
  font-size: clamp(1.2em, 3vw, 1.8em);
  font-weight: 600;
  transition: all 0.3s ease;
}
.header-left a:hover {
  transform: scale(1.05);
  color: var(--secondary-red);
}

/* 语言切换按钮 */
.header-right {
  display: flex;
  align-items: center;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--light-red);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
  height: 36px;
}

.lang-switch:hover {
  background: white;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.lang-switch .lang-slider {
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background-color: var(--primary-red);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.lang-switch[data-lang="en"] .lang-slider {
  left: calc(50% + 2px);
}

.lang-switch .lang-options {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.lang-text {
  padding: 6px 8px;
  font-weight: 500;
  font-size: clamp(14px, 2.5vw, 16px);
  transition: color 0.3s ease;
  flex: 1;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.lang-switch[data-lang="zh"] .lang-text:first-child,
.lang-switch[data-lang="en"] .lang-text:last-child {
  color: white;
}

.lang-switch[data-lang="zh"] .lang-text:last-child,
.lang-switch[data-lang="en"] .lang-text:first-child {
  color: #666;
}

/* main */
/* content1 */
.content1 {
  padding-top: clamp(15px, 3vw, 20px);
  text-align: center;
}
.content1 h2 {
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: clamp(15px, 3vw, 30px);
  color: var(--secondary-red);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.search {
  width: fit-content;
  margin: 0 auto;
  height: clamp(45px, 8vw, 60px);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  padding: 0 clamp(15px, 2vw, 20px);
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid var(--light-red);
}
.search:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-red);
}
.item {
  margin: 0 clamp(8px, 1.5vw, 15px);
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--text-color);
}
.search:hover .item {
  opacity: 1;
}
.search-box {
  width: clamp(180px, 30vw, 240px);
  transition: all 0.3s ease-in-out;
}
/* .search:hover .search-box {
  width: clamp(260px, 50vw, 440px);
} */
.search-btn {
  width: 100%;
  border: none;
  text-align: center;
  outline: none;
  background: transparent;
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--black);
  padding: 0 10px;
  opacity: 0.7;
}
.search-btn::placeholder {
  color: var(--primary-red);
  opacity: 0.7;
}
.search:hover .search-btn::placeholder {
  color: rgba(119, 119, 119, 0.9);
}

.search .fa-x {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search .fa-x.visible {
  opacity: 1;
  visibility: visible;
}

/* content2 */
.content2 {
  position: relative;
  width: clamp(90%, 95%, 1400px);
  margin: clamp(20px, 4vw, 50px) auto;
  padding: var(--content-padding);
  border-radius: 20px;
  /* background: rgba(255, 255, 255, 0.8); */
  backdrop-filter: blur(10px);
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

/* 面包屑 */
.breadcrumb {
  padding: clamp(8px, 2vw, 12px) clamp(10px, 2vw, 20px);
  /* background: rgba(255, 255, 255, 0.9); */
  border-radius: 10px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
  margin-bottom: clamp(15px, 3vw, 30px);
}
.breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb-link {
  color: var(--black);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.breadcrumb-link:hover {
  color: var(--secondary-red);
  background-color: rgba(231, 76, 60, 0.1);
}
.breadcrumb-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.breadcrumb-link:hover::after {
  transform: scaleX(1);
}
.current {
  color: var(--secondary-red);
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 4px;
  background-color: rgba(231, 76, 60, 0.1);
}
.separator {
  margin: 0 4px;
  color: #94a3b8;
  user-select: none;
}

/* 分类卡片列表 */
#category-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  box-sizing: border-box;
  padding: 0;
  min-height: 0;
  transition: all 0.3s ease;
}

/* 分类卡片 */
.category {
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.category .title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.category i {
  /* font-size:32px; */
  font-size: clamp(24px, 4vw, 32px);
  color: var(--primary-red);
}
.category h3 {
  /* font-size:1.5em; */
  font-size: clamp(1.2em, 3vw, 1.5em);
  color: var(--text-color);
}
.category p {
  margin: 15px 0 25px;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 16px);
}
.category .btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
  flex-wrap: nowrap;
}
.category .btn {
  flex: 1;
  min-width: 90px;
  max-width: 130px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  background: var(--primary-red);
  border: 2px solid var(--primary-red);
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: clamp(14px, 2.5vw, 16px);
  cursor: pointer;
  white-space: nowrap;
}
.category .btn:hover {
  color: var(--secondary-red);
  border-color: var(--light-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.category .btn i {
  font-size: 0.9em;
}

.category .download-intro {
  background: transparent;
  color: var(--primary-red);
}

.category .download-intro:hover {
  background: var(--hover-red);
  color: var(--secondary-red);
  border-color: var(--light-red);
  transform: translateY(-2px);
}

.category .view-products:hover {
  background: var(--secondary-red);
  border-color: var(--secondary-red);
  transform: translateY(-2px);
  color: var(--hover-red);
}

/* 产品卡片列表 */
#product-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 50px;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  box-sizing: border-box;
  padding: 0;
  min-height: 300px;
  transition: min-height 0.3s ease, margin 0.3s ease;
}

/* 产品卡片 */
.product {
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-header i {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--primary-red);
  margin-right: 10px;
}
.product-header h3 {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-color);
  margin: 0;
}

/* 产品卡片标题样式修改 */
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-code-icon {
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.qr-code-icon i {
  color: var(--primary-red);
  font-size: clamp(16px, 2.5vw, 20px);
}

.qr-code-icon:hover {
  transform: scale(1.1);
}

/* 二维码模态框样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.qr-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qr-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

#qrcode {
  width: 100%;
  height: 100%;
}

.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 30px;
  background: white;
  padding: 4px;
  border-radius: 4px;
  z-index: 10;
}

.qr-tip {
  color: var(--text-color);
  margin: 15px 0;
  font-size: 14px;
}

.qr-close {
  padding: 8px 20px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-close:hover {
  background: var(--secondary-red);
}

/* 无产品提示的样式 */
#product-wrapper > p {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-red);
  font-size: clamp(14px, 2.5vw, 16px);
  opacity: 0.9;
  grid-column: 1 / -1;
}
/* 添加 header 二维码图标样式 */
.header-qr {
  color: var(--primary-red);
  font-size: 38px;
  cursor: pointer;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.header-qr:hover {
  transform: scale(1.1);
  color: var(--secondary-red);
}

/* 文件列表 */
.file-list {
  padding: 10px;
  max-height: 250px;
  overflow-y: auto;
  flex: 1;
}
.file-list::-webkit-scrollbar {
  width: 6px;
}
.file-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.file-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-red);
  border-radius: 3px;
}
.file-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-red);
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
  gap: 8px;
}
.file-item:last-child {
  border-bottom: none;
}
.file-name {
  flex: 1;
  font-size: clamp(12px, 2vw, 14px);
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.download-btn {
  padding: 6px 12px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(12px, 2vw, 14px);
  white-space: nowrap;
}
.download-btn:hover {
  background-color: var(--secondary-red);
  transform: translateY(-1px);
}
.download-btn i {
  font-size: clamp(12px, 2vw, 14px);
}
.card-footer {
  padding: 12px 10px 8px;
  border-top: 1px solid #eee;
  margin-top: auto;
}
.download-all-btn {
  width: 100%;
  padding: 8px 15px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: clamp(12px, 2vw, 14px);
}
.download-all-btn:hover {
  background-color: var(--secondary-red);
  transform: translateY(-1px);
}

.footer {
  width: 100%;
  padding: clamp(15px, 3vw, 25px) 0;
  margin-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(231, 76, 60, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--page-padding);
}

.footer-text {
  margin-bottom: clamp(10px, 2vw, 15px);
  font-size: clamp(12px, 2vw, 14px);
  color: var(--text-color);
  opacity: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 15px);
}

.footer-text span {
  white-space: nowrap;
}

.footer-text span:nth-child(3) {
  display: inline-block;
}

.footer-info {
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--text-color);
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(15px, 2.5vw, 25px);
}

.footer-info span {
  white-space: nowrap;
}

/* 响应式布局 */
@media (min-width: 1450px) {
  #category-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }

  #product-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-text,
  .footer-info {
    padding: 0 10px;
  }
}

@media (max-width: 1449px) and (min-width: 1200px) {
  #category-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }

  #product-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  #category-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  #product-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 修改移动端布局 */
@media (max-width: 767px) {
  .category .btn i {
    font-size: 0.85em;
  }
  #category-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #product-wrapper {
    grid-template-columns: 1fr;
    min-height: 200px;
  }
  #product-wrapper > p {
    min-height: 150px;
  }

  /* 调整移动端分类卡片样式 */
  .category {
    padding: 15px;
  }

  .category .title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .category i {
    font-size: clamp(18px, 3vw, 24px);
  }

  .category h3 {
    font-size: clamp(14px, 2.5vw, 16px);
    margin: 0;
  }

  .category p {
    margin: 8px 0 12px;
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.4;
    /* 限制描述文字为 2-3 行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.2em; /* line-height * 3 lines */
  }

  .category .btn-group {
    gap: 8px;
    margin-top: 15px;
  }

  .category .btn {
    min-width: 80px;
    height: 32px;
    padding: 6px 10px;
    font-size: clamp(12px, 2vw, 14px);
    gap: 4px;
  }

  .search-box[style*="width"] {
    width: clamp(260px, 60vw, 360px) !important;
  }

  .product {
    padding: 12px;
  }

  .product-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .file-list {
    padding: 8px;
    max-height: 200px;
  }

  .file-item {
    padding: 6px;
  }

  .download-btn {
    padding: 4px 8px;
  }

  .card-footer {
    padding: 10px 8px 6px;
  }

  .download-all-btn {
    padding: 6px 12px;
  }

  .qr-code-icon i {
    font-size: 16px;
  }

  .qr-content {
    padding: 20px;
    margin: 0 20px;
  }
  .header-qr {
    font-size: 30px;
    margin-left: 12px;
  }
  .footer {
    padding: clamp(12px, 2.5vw, 20px) 0;
    margin-top: clamp(15px, 2vw, 20px);
  }

  .footer-text,
  .footer-info {
    flex-direction: row;
    justify-content: center;
    gap: clamp(5px, 1.5vw, 8px);
  }

  .footer-text span:nth-child(3) {
    display: none;
  }

  .footer-text {
    font-size: clamp(11px, 1.8vw, 13px);
  }

  .footer-info {
    font-size: clamp(10px, 1.6vw, 12px);
  }

  .lang-switch {
    min-width: 80px;
    padding: 3px;
    height: 32px;
  }

  .lang-text {
    padding: 5px 6px;
    font-size: clamp(13px, 2.2vw, 15px);
  }
}

/* 超小屏幕设备保持两列布局 */
@media (max-width: 479px) {
  #category-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 5px;
  }

  #product-wrapper {
    grid-template-columns: 1fr;
    min-height: 150px;
  }

  #product-wrapper > p {
    min-height: 120px;
  }
  .header-qr {
    font-size: 24px;
    margin-left: 10px;
  }

  .category,
  .product {
    margin: 0;
  }

  .search-box {
    width: clamp(140px, 40vw, 180px);
  }

  .search-box[style*="width"] {
    width: clamp(200px, 70vw, 280px) !important;
  }

  .search {
    padding: 0 10px;
  }

  .item {
    margin: 0 8px;
  }

  .category {
    padding: 12px;
  }

  .category .title-group {
    gap: 6px;
  }

  .category i {
    font-size: clamp(16px, 2.5vw, 20px);
  }

  .category h3 {
    font-size: clamp(12px, 2vw, 14px);
  }

  .category p {
    font-size: 12px;
    margin: 6px 0 10px;
    /* 限制描述文字为 2 行 */
    -webkit-line-clamp: 2;
    max-height: 2.8em; /* line-height * 2 lines */
  }

  .category .btn-group {
    gap: 6px;
    width: 100%;
  }

  .category .btn {
    width: 100%;
    min-width: unset;
    height: 30px;
    padding: 5px 8px;
    font-size: 12px;
    gap: 3px;
  }

  .product {
    padding: 10px;
  }

  .product-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .product-header i {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-right: 8px;
  }

  .file-list {
    padding: 6px;
    max-height: 180px;
  }

  .file-item {
    padding: 5px;
    gap: 6px;
  }

  .file-name {
    font-size: 12px;
  }

  .download-btn {
    padding: 4px 6px;
    font-size: 12px;
  }

  .download-btn i {
    font-size: 12px;
  }

  .card-footer {
    padding: 8px 6px 4px;
  }

  .download-all-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .footer-text {
    font-size: clamp(10px, 1.6vw, 12px);
  }

  .footer-info {
    font-size: clamp(9px, 1.4vw, 11px);
    gap: clamp(10px, 2vw, 15px);
  }

  .lang-switch {
    min-width: 70px;
    padding: 2px;
    height: 28px;
  }

  .lang-text {
    padding: 4px 5px;
    font-size: clamp(12px, 2vw, 14px);
  }
}
@media (max-width: 359px) {
  .category .btn-group {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
  }

  .category .btn {
    width: 100%;
    min-width: unset;
    height: 30px;
    padding: 5px 8px;
    font-size: 12px;
    gap: 3px;
  }
}

/* 修改隐藏类 */
.hidden {
  display: none !important;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  opacity: 0;
}

/* tempDoc文件直接展示样式 */
.temp-doc-wrapper {
  width: clamp(90%, 95%, 1400px);
  margin: 20px auto;
  padding: var(--content-padding);
  /* background: rgba(255, 255, 255, 0.95); */
  border-radius: 15px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.temp-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(231, 76, 60, 0.2);
}

.temp-doc-title {
  font-size: clamp(20px, 4vw, 28px);
  color: var(--secondary-red);
  margin: 0;
  font-weight: 600;
}

.temp-doc-download-all {
  padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2vw, 25px);
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 2.5vw, 16px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
  white-space: nowrap;
}

.temp-doc-download-all:hover {
  background-color: var(--secondary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.temp-doc-download-all i {
  font-size: 1.1em;
}

.temp-doc-list {
  padding: 15px;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.temp-doc-list::-webkit-scrollbar {
  width: 6px;
}

.temp-doc-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.temp-doc-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-red);
  border-radius: 3px;
}

.temp-doc-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-red);
}

.temp-doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 35px) clamp(20px, 3vw, 30px);
  margin-bottom: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-height: 80px;
}

.temp-doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.temp-doc-item:last-child {
  margin-bottom: 0;
}

.temp-doc-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 45px;
}

.temp-doc-icon {
  font-size: clamp(24px, 3.5vw, 28px);
  color: var(--primary-red);
  flex-shrink: 0;
}

.temp-doc-name {
  flex: 1;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: clamp(8px, 1.5vw, 12px) 0;
  line-height: 1.5;
}

.temp-doc-size {
  font-size: clamp(12px, 2vw, 14px);
  color: #666;
  white-space: nowrap;
  margin: 0 15px;
  flex-shrink: 0;
}

.temp-doc-download {
  padding: 6px 15px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 2vw, 14px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.temp-doc-download:hover {
  background-color: var(--secondary-red);
  transform: translateY(-1px);
}

.temp-doc-download i {
  font-size: 0.9em;
}

.temp-doc-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(231, 76, 60, 0.2);
  display: flex;
  justify-content: center;
}

/* 响应式调整 */
@media (max-width: 767px) {
  .temp-doc-wrapper {
    margin: 15px auto;
    padding: 15px;
  }

  .temp-doc-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .temp-doc-title {
    font-size: clamp(18px, 3.5vw, 24px);
  }

  .temp-doc-list {
    padding: 10px;
    max-height: 60vh;
  }

  .temp-doc-item {
    padding: clamp(15px, 2.5vw, 25px) clamp(15px, 2.5vw, 25px);
    min-height: 70px;
  }

  .temp-doc-info {
    gap: 12px;
    min-height: 40px;
  }

  .temp-doc-size {
    margin: 0 10px;
  }

  .temp-doc-download {
    padding: 6px 15px;
    font-size: clamp(13px, 2.2vw, 15px);
  }

  .temp-doc-footer {
    margin-top: 15px;
    padding-top: 12px;
  }

  .temp-doc-download-all {
    padding: 6px 15px;
    font-size: clamp(13px, 2.2vw, 15px);
  }
}

@media (max-width: 479px) {
  .temp-doc-wrapper {
    margin: 10px auto;
    padding: 10px;
  }

  .temp-doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .temp-doc-download {
    width: 100%;
    justify-content: center;
  }

  .temp-doc-info {
    flex-wrap: wrap;
  }

  .temp-doc-name {
    flex: 1;
    min-width: 200px;
  }

  .temp-doc-size {
    margin: 0;
    order: 3;
  }

  .temp-doc-download {
    order: 4;
    margin-left: auto;
  }

  .temp-doc-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .temp-doc-title {
    font-size: clamp(16px, 3vw, 20px);
  }

  .temp-doc-download-all {
    padding: 5px 12px;
    font-size: clamp(12px, 2vw, 14px);
  }

  .temp-doc-item {
    padding: clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
    min-height: 60px;
  }

  .temp-doc-info {
    flex-wrap: wrap;
  }

  .temp-doc-name {
    flex: 1;
    min-width: 200px;
  }

  .temp-doc-size {
    margin: 0;
    order: 3;
  }

  .temp-doc-download {
    order: 4;
    margin-left: auto;
  }

  .temp-doc-info {
    gap: 10px;
    min-height: 35px;
  }

  .temp-doc-icon {
    font-size: clamp(18px, 2.5vw, 22px);
  }

  .temp-doc-name {
    padding: clamp(5px, 1vw, 8px) 0;
    min-width: 180px;
  }
}

/* 隐藏content2 */
.content2.hidden {
  display: none;
}
