/* ============================================
   Augct - Corporate Website Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1a5cb5;
  --primary-dark: #134a94;
  --primary-light: #2a7de8;
  --secondary: #f0f5ff;
  --accent: #e8f0fe;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
}
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 92, 181, 0.3);
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  width: 145px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  position: relative;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-item:hover, .nav-item.active {
  color: var(--primary);
  background: var(--secondary);
}
.nav-item .arrow {
  display: inline-block;
  font-size: 10px;
  margin-left: 4px;
  transition: var(--transition);
}
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
  padding: 8px 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
}
.nav-dropdown a:hover {
  color: var(--primary);
  background: var(--secondary);
  padding-left: 24px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search-box { display: flex; align-items: center; position: relative; }
.header-search-input { width: 180px; padding: 6px 32px 6px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; outline: none; transition: var(--transition); }
.header-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,181,0.1); }
.header-search-icon { 
  cursor: pointer;position: absolute; right: 10px; color: var(--text-light); 
  display: flex; align-items: center; pointer-events: auto; 
  top: 50%;
  transform: translateY(-50%);
  svg { pointer-events: none; }
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--text-gray);
  border-radius: var(--radius);
  overflow: hidden;
  /* border: 1px solid var(--border); */
  cursor: pointer;
}
.lang-btn {
  padding: 5px 5px;
  transition: var(--transition);
  color: var(--text-gray);
}
.lang-btn:hover { color: var(--primary); background: var(--secondary); }
.lang-btn.active { color: #fff; background: var(--primary); }
.lang-sp {
  display: inline-block;
  width: 0;
  height: 20px;
  border-left: 1px solid #ddd;
  margin: 0 5px;
  vertical-align: top;
}
/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ Hero Banner ============ */
@keyframes zoomInDeep {
  0% {
    opacity: 0;
    /* 初始状态：非常小 (0.1) + 非常远 (-1500px) */
    transform: scale(0.1) translateZ(-1500px);
  }
  100% {
    opacity: 1;
    /* 结束状态：正常大小 + 归位 */
    transform: scale(1) translateZ(0);
  }
}

.hero {
  margin-top: 70px;
  position: relative;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a5cb5 0%, #2a7de8 100%);
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 92, 181, 0.7);
}
.hero-content {
  perspective: 600px;
  animation: zoomInDeep 1.5s ease-in-out forwards;
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-content p {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero a {
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* ============ About Section ============ */
.about-section {
  padding: 60px 0;
  background: var(--bg-white);
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1.1;
}
.about-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.about-content .section-title {
  text-align: left;
  font-family: "Source Han Sans", Geneva, sans-serif;
  color: #03518b;
  font-size: 38px;
}
.about-content .section-title::after {
  margin: 12px 0 0;
}
.about-text {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  color: #555555;
}
.about-btn {
  font-family: Tahoma;
  font-size: 16px;
  color: #444444;
  text-decoration: none;
  border: 1px solid black;
  background: none;
}
.about-btn:hover {
  color: #fff;
  background: var(--primary);
}
/* ============ Career Section ============ */
.career-section {
  padding: 20px 0;
  background: var(--bg-white);
}
/* ============ News Section ============ */
.news-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.news-card {
  background: #fff;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-card-image {
  height: 100%;
  overflow: hidden; /* 关键：裁剪掉超出容器的遮罩部分 */
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-card-image img { 
  transform: scale(1.1); 
}

/* --- 核心修改部分 --- */
.news-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 81, 139, 0.7);
  z-index: 1;
  
  /* --- 1. 布局：内容必须贴顶 --- */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 关键：内容贴遮罩层顶部 */
  align-items: center;
  
  /* --- 2. 默认状态：遮罩层下沉 --- */
  /* 假设图片高200px，标题高约50px。
     我们要让遮罩层沉下去，只露出顶部的50px。
     所以向下移动：200px - 50px = 150px */
  transform: translateY(calc(100% - 34px)); 
  transition: transform 0.35s ease;
}

.overlay-content {
  padding: 0px 20px;
  color: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  
  /* --- 3. 悬停时的“居中”魔法 --- */
  /* 默认不动 */
  transform: translateY(0);
  transition: transform 0.35s ease;
}

/* 标题样式 */
.news-card-overlay h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 2.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 简介样式 */
.news-card-overlay p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  line-height: 2.0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: normal;
  font-style: normal;
  
  /* 默认隐藏简介 */
  opacity: 0; 
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

/* --- 4. 悬停交互 --- */

/* 遮罩层归位（浮上来） */
.news-card:hover .news-card-overlay {
  transform: translateY(0);
  /* justify-content: center; */
}

/* 内容被“推”到中间 */
/* 算法：(100vh - 内容高度) / 2。
   这里估算图片200px，内容约60px。(200-60)/2 = 70px 左右 */
.news-card:hover .overlay-content {
  transform: translateY(60%); 
}

/* 显示简介 */
.news-card:hover .news-card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

.dzb-btn {
  padding: 25px 50px;
  font-size: 28px;
  /* font-weight: 600; */
  border-radius: 5px;
  border: 1px solid #ddd;
}
.dzb-btn:hover {
  color: #fff;
  background: var(--primary);
}

/* ============ Products Section ============ */
.products-section {
  padding: 80px 0;
  background: var(--bg-white);
  margin: 0;
  /* padding: 0; */
  width: 100%;
  height: 100%;
  background-image: url('/images/bg.jpg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  background-size: cover;
  opacity: 1;
  transition: all, .3s;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.product-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.product-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-image .product-icon-fallback {
  color: var(--primary);
  font-size: 40px;
  font-weight: 700;
}
.product-card-body {
  padding: 24px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 125px; 
}
.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.product-desc {
  font-size: 15px;
  color: var(--text-gray);
}
.product-card-overlay {
  position: absolute;
  top: 0;    /* 从 body 的顶部开始 */
  left: 0;   /* 从 body 的左侧开始 */
  width: 100%;
  height: 100%;
  background: rgba(26, 92, 181, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-radius: 0 0 8px 8px;
}
.product-card:hover .product-card-overlay {
  transform: translateY(0);
}
.product-card-overlay span {
  color: #fff;
  font-size: 14px;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 4px;
}

/* ============ Contact Section ============ */
.contact-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.contact-card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}
.contact-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.contact-card-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============ Contact Form ============ */
.contact-form-section {
  padding-bottom: 80px;
  background: #fff;
}
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 181, 0.1);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ============ Footer ============ */
.footer {
  background: #1f2937;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  z-index: 100;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-qr {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 12px;
  text-align: center;
}
.footer-qr img { width: 100%; height: 100%; object-fit: contain; /* padding: 8px; */ }
.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-lang {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.footer-lang .lang-btn {
  color: rgba(255,255,255,0.6);
  padding: 4px 16px;
}
.footer-lang .lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ============ Side Widget ============ */
.side-widget {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-widget-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.side-widget-item:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}
.back-to-top { display: none; }
.back-to-top.show { display: flex; }

/* ============ Page Header ============ */
.page-header {
  background-image: url('/images/service.jpg');
  background-position: 50% 50%;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0);
  opacity: 1;
  /* background: linear-gradient(135deg, #1a5cb5 0%, #2a7de8 100%);*/
  margin-top: 90px;
  height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.85;
}

/* ============ Article Detail ============ */
.article-detail {
  padding: 60px 0;
}
.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  border-bottom-style: dashed;
}
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}
.article-content h3 { margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }

/* ============ Article List ============ */
.article-list {
  padding: 0 0 60px 0;
}
.article-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.article-list-item:hover { padding-left: 8px; }
.article-list-image {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.article-list-image img { width: 100%; height: 100%; object-fit: cover; }
.article-list-info { flex: 1; }
.article-list-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.article-list-title:hover { color: var(--primary); }
.article-list-summary {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-list-date {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ============ Pagination ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
}
.pagination a:hover, .pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 0;
  /* margin-bottom: 20px; */
  background: var(--bg-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 8px; color: var(--text-light); }
.breadcrumb-current { color: var(--text-dark); }

/* ============ Search Box ============ */
@media (max-width: 768px) {
  .header-search-box { display: none; }
}

/* ============ Loading / Empty State ============ */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}
.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}
.toast {
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ Mobile Nav ============ */
.mobile-nav { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-actions .lang-switch { display: none; }
  .mobile-toggle { display: flex; }

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

  .about-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .news-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section-title { font-size: 24px; }

  .form-row { grid-template-columns: 1fr; }

  .article-list-item { flex-direction: column; }
  .article-list-image { width: 100%; height: 200px; }
  .page-header { height: 200px; }
  .page-header h1 { font-size: 28px; }

  /* Mobile nav overlay */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav .nav-item {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }
  .mobile-nav .nav-item.expanded .nav-dropdown { display: block; }
  .mobile-lang-switch {
    display: flex;
    gap: 0;
    margin-top: 20px;
    /* border: 1px solid var(--border); */
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
  }
  .mobile-lang-switch .lang-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
  .mobile-lang-switch .lang-sp { 
    height: auto; 
    margin-right: 20px;
  }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero-content h1 { font-size: 24px; }
  .container { padding: 0 16px; }
}
