*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --dark-gray: #1a1a1a;
  --yellow: #FFD700;
  --yellow-dark: #e6c200;
  --red: #CC0000;
  --red-dark: #990000;
  --white: #FFFFFF;
  --gray: #888;
  --light-gray: #c0c0c0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
}

/* 全局背景照片层 */
.bg-photo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: #000;
  background-image: url('../images/page-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.25;
  filter: brightness(0.6);
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(204, 0, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 215, 0, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.9) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 导航栏 */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid var(--yellow);
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.97);
  border-bottom-color: var(--red);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-nbg {
  font-size: 28px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 3px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: default;
}

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 10px;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--yellow);
  border-radius: 6px;
  list-style: none;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 1001;
  margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--white);
}

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

.dropdown-menu a:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--yellow);
}

.lang-switcher {
  display: flex;
  gap: 6px;
}

.lang-btn {
  padding: 5px 10px;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  background: transparent;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--yellow);
  color: var(--black);
}

.lang-btn:hover:not(.active) {
  background: rgba(255, 215, 0, 0.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--yellow);
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

/* 首屏 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Logo 放置区域 - 占页面50% */
.hero-logo-area {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  height: auto;
  width: min(50vw, 600px);
  max-height: 45vh;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: 2px;
  min-height: 1.2em;
}

.hero h2 {
  font-size: clamp(22px, 4.5vw, 42px);
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 3px;
  min-height: 1.2em;
}

.hero-line {
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 25px auto 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 1;
}

.arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40% { transform: translateY(8px) rotate(45deg); }
  60% { transform: translateY(4px) rotate(45deg); }
}

/* 每个section填满整个屏幕 */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

section h2 {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

/* 关于我们 */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: clamp(14px, 1.6vw, 17px);
  margin-bottom: 18px;
  text-align: justify;
  color: var(--light-gray);
  line-height: 1.8;
}

/* 为什么选择我们 */
.why-subtitle {
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--yellow);
  margin-bottom: 10px;
  font-weight: 500;
}

.why-desc {
  text-align: center;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--gray);
  margin-bottom: 50px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
}

.advantage-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 600;
}

.advantage-card p {
  font-size: 14px;
  color: var(--gray);
  text-align: left;
  margin-bottom: 0;
}

/* ========== 生产基地 - 中国地图 ========== */
.facilities-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
  font-size: clamp(14px, 1.5vw, 16px);
}

.facilities-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 地图大区域 */
.china-map-wrapper {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.china-map-container {
  position: relative;
  aspect-ratio: 21/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.china-map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.china-map-container svg {
  width: 100%;
  height: 100%;
}

.map-hint {
  text-align: center;
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
  opacity: 0.7;
}

/* 地图上的工厂标注点 */
.map-marker {
  cursor: pointer;
  transition: all 0.3s;
}

.map-marker circle {
  fill: var(--red);
  stroke: var(--yellow);
  stroke-width: 2;
  transition: all 0.3s;
}

.map-marker:hover circle {
  fill: var(--yellow);
  stroke: var(--red);
  r: 7;
}

.map-marker text {
  fill: var(--white);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* 工厂列表 */
.facility-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.facility-list h3 {
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.facility-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.facility-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  border-radius: 4px;
  cursor: default;
}

.facility-list-item:hover {
  background: rgba(255, 215, 0, 0.05);
}

.facility-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.facility-list-info {
  flex: 1;
  min-width: 0;
}

.facility-list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-list-city {
  font-size: 11px;
  color: var(--gray);
  display: block;
}

/* ========== 产品类别 - 横向填满 ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.1);
  padding: 22px 16px 18px;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.06);
  transform: translateY(-2px);
}

.product-icon {
  font-size: 36px;
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.product-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--yellow);
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 8px;
  font-weight: 600;
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card li {
  font-size: 11px;
  color: var(--light-gray);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

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

/* ========== 联系我们 - 3个QR码 ========== */
.contact-sub {
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--yellow);
  margin-bottom: 40px;
}

.contact-qr-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.qr-upload-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.qr-upload-box:hover {
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.05);
}

.qr-upload-icon {
  font-size: 48px;
  opacity: 0.6;
}

.qr-upload-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.qr-upload-hint {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.qr-upload-box.has-image {
  border-color: rgba(255, 215, 0, 0.3);
  padding: 12px;
}

.qr-upload-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--light-gray);
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.contact-item a {
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--white);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 15px;
  color: var(--gray);
}

/* ========== 页脚 - 固定中英双语 ========== */
footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid var(--yellow);
  padding: 50px 0 20px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-logo .logo-nbg {
  font-size: 32px;
}

.footer-logo .logo-sub {
  font-size: 11px;
}

.footer-info p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.footer-qr {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

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

.qr-code .qr-placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 4px;
}

.qr-code svg {
  width: 90%;
  height: 90%;
}

.qr-label {
  font-size: 12px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-contact h4 {
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--gray);
}

/* ========== 关键词弹窗 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-title {
  font-size: 20px;
  color: var(--yellow);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--yellow);
}

.modal-search {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.keyword-search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.keyword-search-input:focus {
  border-color: var(--yellow);
}

.keyword-search-input::placeholder {
  color: var(--gray);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

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

.keyword-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  position: sticky;
  top: 0;
  background: #111;
}

.keyword-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--light-gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.keyword-table tr:hover td {
  background: rgba(255, 215, 0, 0.04);
}

.keyword-category {
  color: var(--yellow);
  font-weight: 600;
}

.keyword-table .no-results {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  font-size: 15px;
}

/* ========== 工厂画廊 ========== */
.gallery-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
  font-size: clamp(14px, 1.5vw, 16px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.3s;
}

.gallery-item:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.gallery-hint {
  font-size: 13px;
  color: var(--gray);
}

/* ========== YouTube 链接 ========== */
.youtube-link-area {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.youtube-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.youtube-btn:hover {
  background: rgba(255, 0, 0, 0.25);
  border-color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.youtube-icon {
  width: 40px;
  height: 40px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.youtube-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.youtube-sub {
  font-size: 12px;
  color: var(--gray);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .contact-qr-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .qr-upload-box {
    min-height: 220px;
    padding: 20px 12px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    gap: 0;
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 12px 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0 0 0 20px;
    margin-top: 4px;
    min-width: auto;
  }

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

  .dropdown-toggle::after {
    content: ' ▾';
    font-size: 12px;
  }

  section {
    min-height: 100vh;
    padding: 80px 0;
  }

  section h2 {
    font-size: 24px;
  }

  .about-content p {
    font-size: 14px;
  }

  .facilities-layout {
    flex-direction: column;
  }

  .china-map-container {
    min-height: 280px;
  }

  .facility-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    min-height: 160px;
    padding: 16px 12px 14px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-card li {
    font-size: 10px;
  }

  .contact-qr-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qr-upload-box {
    min-height: 200px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .contact-social {
    flex-direction: column;
    gap: 10px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-container {
    max-width: 95vw;
    max-height: 90vh;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .hero-logo-img {
    width: min(70vw, 400px);
    max-height: 35vh;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .facility-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-icon {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .product-card {
    min-height: 140px;
    padding: 12px 8px 10px;
  }

  .product-card h3 {
    font-size: 12px;
  }

  .product-card li {
    font-size: 10px;
    padding: 2px 0;
  }

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