/* css/glassware.css */
/* 导航栏样式 */
header {
  background: #001F3F;
  padding: 10px 0;
  border-bottom: 2px solid #001028;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  max-width: 120px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}
.nav-links a:hover {
  color: #FDD835;
}
.lang-switcher select {
  background: #001F3F;
  color: #fff;
  border: 1px solid #fff;
  padding: 4px 8px;
}

/* 导航字体与首页保持一致 */
.nav-links a {
    font-size: 16px;
  }
  
  /* Hero Banner */
  .hero {
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-overlay {
    background: rgba(255,255,255,0.7);
    padding: 30px 50px;
    border-radius: 12px;
    text-align: center;
  }
  .hero-overlay h1 {
    font-size: 2.8rem;
    color: #002b5c;
  }
  .hero-overlay p {
    font-size: 1.2rem;
    color: #002b5c;
    margin-top: 10px;
  }
  
  /* 分类导航 */
  .filter-bar {
    text-align: center;
    padding: 20px 5%;
    background: #f7f9fc;
  }
  .filter-bar .filter-btn {
    background: #fff;
    border: 2px solid #002b5c;
    color: #002b5c;
    border-radius: 25px;
    padding: 8px 16px;
    margin: 0 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
  }
  .filter-bar .filter-btn.active,
  .filter-bar .filter-btn:hover {
    background: #002b5c;
    color: #fff;
  }
  
  /* 产品卡片 */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 24px;
    margin: 20px 5%;
  }
  .product-card {
    background: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform .3s, box-shadow .3s;
  }
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .product-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
  }
  .product-card h3 {
    font-size: 1rem;
    color: #333;
  }
  
  /* 我们的优势 */
  .advantages-section {
    background: #e6edf5;
    padding: 60px 5%;
  }
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #002b5c;
  }
  .advantages-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  .advantage-item {
    width: 250px;
    text-align: center;
  }
  .advantage-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #002b5c;
  }
  .advantage-item p {
    font-size: 1rem;
    color: #333;
  }
  
  /* 底部联系我们 */
  .contact-section {
    background: #002b5c;
    color: #fff;
    padding: 60px 5%;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .contact-info p {
    font-size: 1rem;
    margin: 12px 0;
  }
  .contact-form label {
    display: block;
    margin: 12px 0 6px;
    color: #fff;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    color: #333;
    background: #fff;
  }
  .contact-form button {
    margin-top: 16px;
    background: #fff;
    color: #002b5c;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  .contact-form button:hover {
    background: #f0f0f0;
  }
  
  /* Modal 弹窗 */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
  }
  .modal-content {
    background: #fff;
    color: #002b5c;         /* 全局深蓝文字 */
    width: 90%;
    max-width: 600px;
    margin: 80px auto;
    border-radius: 8px;
    position: relative;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .modal-close {
    font-size: 1.5rem;
    color: #002b5c;
    position: absolute;
    right: 16px;
    top: 8px;
    cursor: pointer;
  }
  .modal-body {
    display: flex;
    gap: 20px;
  }
  /* 左侧联系方式 */
  .modal-body .contact-info {
    flex: 1;
    background: #f7f9fc;
    padding: 20px;
    border-radius: 6px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
    color: #002b5c;        /* 深蓝 */
  }
  /* 右侧表单 */
  .modal-body .contact-form {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
  }
  .modal-body .contact-form label {
    color: #002b5c;        /* 深蓝 */
  }
  .modal-body .contact-form input,
  .modal-body .contact-form textarea {
    color: #002b5c;        /* 深蓝 */
    background: #fff;
  }
  
  /* 页脚 */
  .footer-container {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 5%;
  }
/* —— 强制 Modal 内文字为深蓝，并置顶 —— */
.modal-content {
    position: relative;
    z-index: 1001;
  }
  .modal-content * {
    color: #002b5c !important;
    position: relative;
    z-index: 1002;
  }
/* —— 针对英文页面，切换为正式衬线字体 —— */
html:lang(en) body {
    font-family: "Times New Roman", Times, serif !important;
  }
  
  /* 如果你希望连导航和弹窗也保持一致，可再加： */
  html:lang(en) .nav-links a,
  html:lang(en) .hero-overlay *,
  html:lang(en) .filter-bar .filter-btn,
  html:lang(en) .product-card h3,
  html:lang(en) .advantages-section *,
  html:lang(en) .contact-section *,
  html:lang(en) .modal-content * {
    font-family: "Times New Roman", Times, serif !important;
  }
      