/* ===================================================
   宝誉新材官网 - 全局样式
   BaoYu New Materials - Global Stylesheet
   =================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a6fc4; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0f4e93; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section.alt-bg { background: #f7f9fc; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 12px;
}
.section-header h2 .en {
  font-size: 1.1rem;
  font-weight: 400;
  color: #888;
  margin-left: 8px;
}
.section-header p { color: #666; font-size: 1rem; }
.section-action { text-align: center; margin-top: 40px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: #1a6fc4; color: #fff; border-color: #1a6fc4; }
.btn-primary:hover { background: #0f4e93; border-color: #0f4e93; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: #1a6fc4; }
.btn-white { background: #fff; color: #1a6fc4; border-color: #fff; }
.btn-white:hover { background: #e8f0fb; }
.btn-full { width: 100%; display: block; }

/* ---- Language Bar ---- */
.lang-bar {
  background: #1a2340;
  color: #aab;
  font-size: 0.8rem;
  padding: 6px 0;
}
.lang-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a { color: #aab; }
.lang-switch a.active, .lang-switch a:hover { color: #fff; }
.lang-switch span { color: #556; }

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eaedf2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.logo-text { flex-direction: column; }
.logo-text strong { font-size: 1.3rem; color: #1a2340; font-weight: 700; }
.logo-text small { font-size: 0.7rem; color: #888; letter-spacing: 0.05em; }

.nav ul { display: flex; gap: 8px; }
.nav ul li a {
  display: block;
  padding: 8px 16px;
  color: #444;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.3;
}
.nav ul li a:hover,
.nav ul li a.active {
  background: #e8f0fb;
  color: #1a6fc4;
}
/* 导航英文小字 */
.nav-en {
  display: block;
  font-size: 0.68rem;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 1px;
}
.nav ul li a:hover .nav-en,
.nav ul li a.active .nav-en {
  color: #1a6fc4;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,25,60,0.75) 0%, rgba(26,111,196,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 24px;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content h1 .en-sub {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.85;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.92;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Advantages ---- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.adv-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.adv-card:hover {
  box-shadow: 0 8px 24px rgba(26,111,196,0.12);
  transform: translateY(-4px);
}
.adv-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.adv-icon svg { width: 100%; height: 100%; }
.adv-card h3 { font-size: 1.1rem; font-weight: 700; color: #1a2340; margin-bottom: 4px; }
.adv-card .en-tag { font-size: 0.78rem; color: #1a6fc4; letter-spacing: 0.05em; margin-bottom: 12px; }
.adv-card p { color: #666; font-size: 0.9rem; }

/* ---- Products Preview Grid ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.prod-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prod-card:hover {
  box-shadow: 0 8px 24px rgba(26,111,196,0.12);
  transform: translateY(-4px);
}
.prod-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4f8;
}
.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.05); }
.prod-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e84040;
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
}
.prod-info { padding: 20px; }
.prod-info h3 { font-size: 1.1rem; font-weight: 700; color: #1a2340; margin-bottom: 2px; }
.prod-info .en-tag { font-size: 0.78rem; color: #1a6fc4; margin-bottom: 10px; }
.prod-info p { font-size: 0.88rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.prod-link { font-size: 0.88rem; color: #1a6fc4; font-weight: 600; }
.prod-link:hover { color: #0f4e93; }

/* ---- Stats ---- */
.stats-section { background: #1a2340; padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num em { font-size: 1.8rem; font-style: normal; color: #5ba3f5; }
.stat-label { font-size: 0.85rem; color: #9ab; line-height: 1.4; }

/* ---- Applications ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}
.app-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #eaedf2;
  border-radius: 8px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.app-item:hover {
  border-color: #1a6fc4;
  box-shadow: 0 4px 16px rgba(26,111,196,0.1);
}
.app-icon { width: 48px; height: 48px; margin: 0 auto 12px; }
.app-icon svg { width: 100%; height: 100%; }
.app-item span { font-size: 0.88rem; color: #444; line-height: 1.5; }
.app-item span small { color: #888; font-size: 0.75rem; display: block; }

/* ---- CTA Section ---- */
.cta-section { padding: 64px 0; }
.cta-box {
  background: linear-gradient(135deg, #1a6fc4 0%, #0f4e93 100%);
  border-radius: 12px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.cta-box h2 { font-size: 1.9rem; margin-bottom: 16px; }
.cta-box h2 .en { font-size: 1.2rem; font-weight: 400; opacity: 0.8; margin-left: 8px; }
.cta-box p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; line-height: 1.8; }
.cta-box em { font-style: normal; opacity: 0.75; font-size: 0.9rem; }

/* ---- Footer ---- */
.footer { background: #1a2340; color: #aab; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-desc { color: #89a; line-height: 1.6; margin-top: 8px; }
.footer-desc-en { color: #78899a; font-size: 0.78rem; margin-top: 4px; }
.footer h4 { color: #dde; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.03em; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #aab; font-size: 0.85rem; transition: color 0.2s; }
.footer ul li a:hover { color: #5ba3f5; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 6px; }
.footer-contact a { color: #aab; }
.footer-contact a:hover { color: #5ba3f5; }
.footer-bottom {
  border-top: 1px solid #253050;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #778;
}
.footer-bottom a { color: #778; }
.footer-bottom a:hover { color: #5ba3f5; }
.footer-seo-tags { margin-top: 6px; opacity: 0.5; font-size: 0.72rem; }

/* ---- Back to Top ---- */
.back-top {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: #1a6fc4;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 1.2rem;
  z-index: 500;
  box-shadow: 0 4px 12px rgba(26,111,196,0.35);
  transition: background 0.2s;
}
.back-top:hover { background: #0f4e93; color: #fff; }
.back-top.show { display: block; }

/* ---- Page Banner ---- */
.page-banner {
  background: linear-gradient(135deg, #1a2340 0%, #1a6fc4 100%);
  padding: 56px 0 40px;
  color: #fff;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-banner h1 .en { font-size: 1.1rem; font-weight: 400; opacity: 0.75; margin-left: 8px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #1a6fc4;
  border: 1px solid #1a6fc4;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: #1a2340; margin-bottom: 16px; }
.about-text p { color: #555; margin-bottom: 14px; line-height: 1.8; }
.about-text hr { border: none; border-top: 1px solid #eaedf2; margin: 20px 0; }
.about-en { color: #888; font-size: 0.9rem; }

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.culture-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid #eaedf2;
  border-radius: 8px;
}
.culture-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.culture-card h3 { font-size: 1.1rem; font-weight: 700; color: #1a2340; margin-bottom: 4px; }
.culture-card p { color: #666; font-size: 0.9rem; }

.factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.factory-img-item { border-radius: 8px; overflow: hidden; position: relative; }
.factory-img-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.factory-img-item span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.85rem;
  color: #555;
  background: #f7f9fc;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.cert-item { text-align: center; }
.cert-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid #eaedf2;
  border-radius: 6px;
  margin-bottom: 8px;
}
.cert-item span { font-size: 0.85rem; color: #555; }
.cert-note { text-align: center; color: #aaa; font-size: 0.8rem; margin-top: 16px; }

/* ---- Products Page ---- */
.prod-nav-wrap {
  background: #f7f9fc;
  border-bottom: 1px solid #eaedf2;
  padding: 0;
}
.prod-cat-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.prod-cat-btn {
  padding: 16px 28px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.prod-cat-btn:hover,
.prod-cat-btn.active {
  color: #1a6fc4;
  border-bottom-color: #1a6fc4;
  background: #fff;
}

.product-detail-section { padding: 64px 0; }
.prod-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.prod-detail-grid.reverse > :first-child { order: 2; }
.prod-detail-grid.reverse > :last-child { order: 1; }
.prod-main-img {
  border-radius: 8px;
  overflow: hidden;
  background: #f0f4f8;
  aspect-ratio: 4/3;
}
.prod-main-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.prod-thumb-row img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.prod-thumb-row img:hover { border-color: #1a6fc4; }
.prod-cat-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #1a6fc4;
  border: 1px solid #1a6fc4;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.prod-detail-info h2 { font-size: 1.8rem; font-weight: 800; color: #1a2340; margin-bottom: 4px; }
.prod-en-name { font-size: 0.88rem; color: #888; margin-bottom: 20px; }
.prod-desc p { color: #555; margin-bottom: 12px; line-height: 1.8; }
.prod-desc-en { font-size: 0.88rem; color: #888; }
.prod-specs { margin: 24px 0; }
.prod-specs h4 { font-size: 0.95rem; font-weight: 700; color: #1a2340; margin-bottom: 12px; }
.spec-table th {
  background: #f0f4f8;
  color: #1a2340;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #dce4ed;
}
.spec-table td {
  padding: 9px 12px;
  font-size: 0.82rem;
  color: #555;
  border: 1px solid #dce4ed;
}
.spec-table tr:nth-child(even) td { background: #f7f9fc; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-item {
  padding: 28px 24px;
  border: 1px solid #eaedf2;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.service-item:hover { box-shadow: 0 6px 20px rgba(26,111,196,0.1); }
.service-num { font-size: 2rem; font-weight: 800; color: #dce8f8; margin-bottom: 8px; }
.service-item h3 { font-size: 1rem; font-weight: 700; color: #1a2340; margin-bottom: 8px; }
.service-item p { font-size: 0.88rem; color: #666; line-height: 1.7; }

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.contact-info-col h2 { font-size: 1.7rem; font-weight: 800; color: #1a2340; margin-bottom: 12px; }
.contact-intro { color: #666; margin-bottom: 32px; line-height: 1.8; font-size: 0.92rem; }
.contact-intro em { font-style: normal; color: #888; font-size: 0.85rem; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px;
  background: #e8f0fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 0.88rem; font-weight: 700; color: #1a2340; margin-bottom: 4px; }
.contact-item p { font-size: 0.88rem; color: #555; margin-bottom: 2px; }
.contact-sub { color: #888; font-size: 0.8rem; }

.qr-row { display: flex; gap: 24px; }
.qr-item { text-align: center; }
.qr-code-img {
  width: 150px; height: 150px;
  border: 2px solid #e0e5ec;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.qr-placeholder {
  width: 150px; height: 150px;
  border: 2px dashed #ccd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  font-size: 0.72rem;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}
.qr-item p { font-size: 0.85rem; color: #555; margin-top: 10px; font-weight: 500; }

.form-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 36px 32px;
}
.form-card h3 { font-size: 1.3rem; font-weight: 800; color: #1a2340; margin-bottom: 8px; }
.form-card > p { font-size: 0.88rem; color: #888; margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.required { color: #e84040; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d8e4;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a6fc4;
  box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: #aaa; margin-top: 12px; text-align: center; }


/* ---- Placeholder Image SVG ---- */
.placeholder-img {
  width: 100%; height: 100%;
  background: #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab;
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .prod-detail-grid { grid-template-columns: 1fr; }
  .prod-detail-grid.reverse > :first-child { order: 0; }
  .prod-detail-grid.reverse > :last-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .hero { min-height: 420px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { padding: 36px 24px; }
  .nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-top: 1px solid #eaedf2; padding: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.08); z-index: 999; }
  .nav ul.open { display: flex; }
  .nav ul li a { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .prod-thumb-row { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .lang-bar .container { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.8rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- EN Page Specific ---- */
.en-only { display: none; }
html[lang="en"] .en-only { display: block; }
html[lang="en"] .zh-only { display: none; }

/* ---- News Preview Section (首页) ---- */
.news-prev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .news-prev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-prev-grid { grid-template-columns: 1fr; } }

.news-prev-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-prev-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

.news-prev-img {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.news-prev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-prev-card:hover .news-prev-img img { transform: scale(1.06); }
.news-prev-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: #1a6fc4;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.news-prev-body { padding: 18px 20px 22px; }
.news-prev-date { color: #bbb; font-size: 0.8rem; margin-bottom: 8px; }
.news-prev-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.news-prev-body h3 a { color: #1a2340; }
.news-prev-body h3 a:hover { color: #1a6fc4; }
.news-prev-desc { color: #777; font-size: 0.88rem; line-height: 1.6; }
