/* ============ 全局变量 ============ */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2647;
  --accent: #c9a961;
  --accent-light: #e8d5a3;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fc;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(26, 58, 107, 0.08);
  --shadow-hover: 0 8px 30px rgba(26, 58, 107, 0.15);
  --radius: 10px;
  --max-width: 1200px;
}

/* ============ 全局重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部导航 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.navbar-top {
  background: var(--primary-dark);
  color: #ddd;
  font-size: 13px;
  padding: 8px 0;
}
.navbar-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-top a { color: var(--accent-light); }
.navbar-top a:hover { color: var(--accent); }

.navbar-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-text .brand-cn {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}
.logo-text .brand-en {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* 英文模式下中文名会被替换为英文，桌面端隐藏重复的副标题（移动端由 560px 断点隐藏） */
@media (min-width: 561px) {
  html[lang="en"] .logo-text .brand-en { display: none; }
}

.nav-menu {
  display: flex;
  gap: 6px;
}
.nav-menu > li > a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  position: relative;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary);
  background: rgba(26, 58, 107, 0.06);
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
  width: 60%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}
.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-light);
  transition: 0.2s;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { background: var(--primary); color: var(--white); }

/* ============ Banner ============ */
.banner {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 38, 71, 0.85) 0%, rgba(15, 38, 71, 0.3) 60%, transparent 100%);
}
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 0 40px;
  color: var(--white);
}
.banner-content h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.banner-content h1 span { color: var(--accent); }
.banner-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 540px;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots span.active { background: var(--accent); width: 30px; border-radius: 6px; }

/* ============ 通用 Section ============ */
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
}

/* ============ 公司简介(首页) ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-text h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.intro-text p {
  color: var(--text-light);
  margin-bottom: 14px;
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-num span { font-size: 16px; color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}
.intro-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ 产品卡片 ============ */
.products-section { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-card-body {
  padding: 22px;
}
.cat-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 12px;
  background: #eef1f7;
  color: var(--primary);
  margin-bottom: 8px;
}
.cat-badge-main {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
}
.product-card-body h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.product-card-body .more {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}

/* ============ 优势/特色 ============ */
.advantages-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}
.advantages-section .section-title h2 { color: var(--white); }
.advantages-section .section-title p { color: rgba(255,255,255,0.7); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.adv-item {
  text-align: center;
  padding: 30px 20px;
}
.adv-icon {
  width: 64px;
  height: 64px;
  background: rgba(201, 169, 97, 0.15);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}
.adv-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}
.adv-item p {
  font-size: 13px;
  opacity: 0.8;
}

/* ============ 新闻列表 ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.news-info .date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.news-info h4 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-info p {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
}

/* ============ 内页 Banner ============ */
.page-banner {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), rgba(26, 58, 107, 0.7));
}
.page-banner .container {
  position: relative;
  text-align: center;
}
.page-banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.breadcrumb {
  font-size: 14px;
  opacity: 0.9;
}
.breadcrumb a:hover { color: var(--accent); }

/* ============ 关于我们 ============ */
.about-content {
  padding: 60px 0;
}
.about-text {
  max-width: 860px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}
.about-text h3 {
  color: var(--primary-dark);
  font-size: 22px;
  margin: 30px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.about-text p { margin-bottom: 14px; }
.about-text ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.about-text ul li {
  list-style: disc;
  margin-bottom: 6px;
  color: #555;
}

.qualifications {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.qual-card {
  background: var(--white);
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}
.qual-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.qual-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}
.qual-card h5 {
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 4px;
}
.qual-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ 产品列表页 ============ */
.product-categories {
  padding: 50px 0;
}
.category-section {
  margin-bottom: 60px;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bg);
}
.category-header h3 {
  font-size: 22px;
  color: var(--primary-dark);
}
.category-header h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 3px;
}
.category-header p {
  color: var(--text-light);
  font-size: 14px;
}

/* ============ 联系我们 ============ */
.contact-section {
  padding: 60px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info .info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-info .info-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 58, 107, 0.08);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info .info-item h5 {
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 4px;
}
.contact-info .info-item p {
  color: var(--text-light);
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e1e4eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fafbfe;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============ 页脚 ============ */
.footer {
  background: var(--primary-dark);
  color: #b8c4d6;
  padding: 55px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 12px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #b8c4d6;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-brand .logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.footer-brand .brand-cn { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #7a8aa0;
}
.footer-bottom a {
  color: #7a8aa0;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--accent); }

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(26,58,107,0.3);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--primary-dark); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 20px; }
  .mobile-toggle { display: flex; order: 3; }
  .lang-switch { order: 2; }

  .banner { height: 380px; }
  .banner-content h1 { font-size: 28px; }
  .banner-content p { font-size: 15px; }

  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .qualifications { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .banner { height: 320px; }
  .banner-content h1 { font-size: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-top { display: none; }

  /* 窄屏导航：压缩品牌块，语言按钮横排且满足 44px 点按面积 */
  .navbar-main .container { padding: 12px 16px; }
  .logo-text .brand-en { display: none; }
  .logo-text .brand-cn { font-size: 15px; }
  .logo-mark { width: 38px; height: 38px; font-size: 17px; }
  .lang-switch { margin-right: 2px; gap: 2px; }
  .lang-btn { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; }
  .mobile-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }

  /* iOS 聚焦输入框时不触发整页缩放 */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}
