/* ===== CSS Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #e8a838;
  --accent-dark: #d4922e;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f5f7fa;
  --border: #e0e4e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 58, 92, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(26, 58, 92, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.logo-img {
  height: auto;
  max-height: 48px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  max-width: 420px;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,33,55,0.85) 0%, rgba(26,58,92,0.7) 40%, rgba(44,95,138,0.5) 100%);
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding-top: 80px;
}

.carousel-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.carousel-content h1 span {
  color: var(--accent);
}

.carousel-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,168,56,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.carousel-prev {
  left: 24px;
}

.carousel-next {
  right: 24px;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dots .dot:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.3);
}

.carousel-dots .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Features / Stats ===== */
.features {
  padding: 60px 0;
  background: #fff;
}

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

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--primary);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

/* ===== About Preview ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  text-align: center;
}

.about-image-placeholder svg {
  width: 80px;
  height: 80px;
  fill: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.about-text h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-number span {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 500;
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

a.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #e8edf2, #d5dce4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image svg {
  width: 60px;
  height: 60px;
  fill: var(--primary-light);
  opacity: 0.4;
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.product-info p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-link {
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card:hover .product-link {
  color: var(--accent);
  gap: 10px;
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.news-image {
  height: 200px;
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.news-image svg {
  width: 48px;
  height: 48px;
  fill: rgba(255,255,255,0.3);
}

.news-info {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-info h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.5;
}

.news-info p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(232,168,56,0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  font-size: 36px;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ===== Footer ===== */
.footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  font-size: 22px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ===== Contact Modal ===== */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.contact-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.contact-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.contact-modal-content {
  text-align: center;
}

.contact-modal-content .modal-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.contact-modal-content .modal-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-content .modal-qr img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-modal-content .modal-phone {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.contact-modal-content .modal-phone-hint {
  font-size: 13px;
  color: var(--text-light);
}

.contact-modal-content .modal-phone a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.contact-modal-content .modal-phone a:hover {
  color: var(--accent);
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 40%, #2c5f8a 100%);
  padding: 160px 0 80px;
  text-align: center;
  color: #fff;
  position: relative;
}

.page-banner h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.page-banner .breadcrumb {
  font-size: 14px;
  opacity: 0.7;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-banner .breadcrumb a:hover {
  color: var(--accent);
}

.page-banner .breadcrumb span {
  margin: 0 8px;
}

/* ===== About Page ===== */
.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-detail.reverse {
  direction: rtl;
}

.about-detail.reverse > * {
  direction: ltr;
}

.about-detail-image {
  height: 350px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8edf2, #d5dce4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-detail-image svg {
  width: 64px;
  height: 64px;
  fill: var(--primary-light);
  opacity: 0.3;
}

.about-detail-text h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-detail-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: 50%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 450px;
  margin: 0 30px;
}

.timeline-content h4 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content .year {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar svg {
  width: 48px;
  height: 48px;
  fill: rgba(255,255,255,0.6);
}

.team-card h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

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

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.value-card h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Products Page ===== */
.product-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 24px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.category-btn:hover,
.category-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-detail-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.product-detail-image {
  height: 180px;
  background: linear-gradient(135deg, #e8edf2, #d5dce4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image svg {
  width: 48px;
  height: 48px;
  fill: var(--primary-light);
  opacity: 0.3;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding: 20px;
}

.product-detail-info h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-detail-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tag {
  padding: 3px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== News Page ===== */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-image {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-list-image svg {
  width: 40px;
  height: 40px;
  fill: rgba(255,255,255,0.3);
}

.news-list-info h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.news-list-info .meta {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-list-info p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .page-pre,
.pagination .page-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.pagination .page-pre svg,
.pagination .page-next svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pagination .page-pre:hover:not(.disabled),
.pagination .page-next:hover:not(.disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
}

.pagination .page-pre.disabled,
.pagination .page-next.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .page-num {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.pagination .page-num:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
}

.pagination .page-num-current {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
}

.pagination .page-info {
  margin-left: 16px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.pagination .page-info .page-current {
  color: var(--primary);
  font-weight: 700;
}

.pagination .page-info .page-total {
  color: var(--text);
  font-weight: 600;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-list {
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-info-text h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-light);
  font-size: 14px;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44,95,138,0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Checkcode row */
.checkcode-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkcode-img {
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.checkcode-img:hover {
  border-color: var(--primary-light);
}

/* Map placeholder */
.map-placeholder {
  height: 300px;
  background: linear-gradient(135deg, #e8edf2, #d5dce4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--primary-light);
  opacity: 0.3;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .logo-text {
    font-size: 14px;
    letter-spacing: 0.3px;
    max-width: 260px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  /* Header mobile fixes */
  .header {
    overflow: visible;
  }

  .nav {
    height: 60px;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    max-height: 36px;
    max-width: 100px;
  }

  .logo-text {
    font-size: 14px;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }

  .menu-toggle {
    display: flex;
    padding: 6px;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 20px;
    gap: 2px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 16px;
  }

  .hero-carousel {
    height: 50vh;
    min-height: 300px;
  }

  .carousel-content h1 {
    font-size: 32px;
  }

  .carousel-content p {
    font-size: 16px;
  }

  .hero-btns {
    display: none;
  }

  .carousel-content {
    display: none;
  }

  .carousel-overlay {
    display: none;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .btn {
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .about-preview,
  .about-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-detail.reverse {
    direction: ltr;
  }

  .about-image {
    height: 250px;
  }

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

  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .news-list-item {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-tagline {
    max-width: none;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    margin: 0;
    max-width: 100%;
  }

  .about-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .page-banner {
    padding: 110px 0 60px;
  }

  .page-banner h1 {
    font-size: 30px;
  }

  .pagination {
    gap: 8px;
    margin-top: 40px;
  }

  .pagination .page-pre,
  .pagination .page-next {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pagination .page-pre span,
  .pagination .page-next span {
    display: none;
  }

  .pagination .page-num,
  .pagination .page-num-current {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination .page-info {
    margin-left: 8px;
    font-size: 13px;
  }

  .contact-form {
    padding: 24px;
  }

  .checkcode-img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .logo {
    gap: 0;
  }

  .nav {
    height: 56px;
  }

  .nav-links {
    top: 56px;
    max-height: calc(100vh - 56px);
  }

  .carousel-content h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 16px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .feature-card h3 {
    font-size: 15px;
    min-height: 40px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .pagination {
    gap: 6px;
  }

  .pagination .page-numbers {
    gap: 4px;
  }

  .pagination .page-num,
  .pagination .page-num-current {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0 8px;
  }

  .pagination .page-info {
    display: none;
  }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid var(--primary-light);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon { fill: #22c55e; }
.toast.error .toast-icon { fill: #ef4444; }
.toast.info .toast-icon { fill: var(--primary-light); }

/* ===== Product Filter Animation ===== */
.product-detail-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-detail-card.hidden {
  display: none;
}

.product-detail-card.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

/* ===== Form Validation ===== */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-group .error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-group .error-msg.show {
  display: block;
}

/* ===== Loading Spinner on Button ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Pagination Extended States ===== */
.pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== News List Image ===== */
.news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== News Page Transition ===== */
.news-list-item {
  transition: var(--transition);
}

.news-list-item:hover {
  transform: translateX(4px);
}

/* ===== Share Tooltip ===== */
.share-btn {
  position: relative;
}

.share-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.share-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary);
}

.share-btn.copied .share-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ===== Floating Action Bar ===== */
.floating-bar {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.floating-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.fb-item {
  position: relative;
}

.fb-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  outline: none;
}

.fb-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fb-btn:hover svg {
  transform: scale(1.1);
}

.fb-btn:active {
  transform: scale(0.95);
}

/* WeChat - primary blue (matches site theme) */
.fb-wechat .fb-btn {
  background: var(--primary);
}
.fb-wechat .fb-btn:hover {
  background: var(--primary-light);
}

/* WhatsApp - brand green (kept for brand recognition) */
.fb-whatsapp .fb-btn {
  background: #25d366;
}
.fb-whatsapp .fb-btn:hover {
  background: #1fb855;
}

/* Email - accent gold (matches site accent) */
.fb-email .fb-btn {
  background: var(--accent);
}
.fb-email .fb-btn:hover {
  background: var(--accent-dark);
}

/* Back to Top - primary blue */
.fb-top .fb-btn {
  background: var(--primary);
}
.fb-top .fb-btn:hover {
  background: var(--accent);
}

/* ===== Popup ===== */
.fb-popup {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(12px) scale(0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.35s;
  pointer-events: none;
  white-space: nowrap;
}

.fb-popup-left {
  /* popup appears to the left of the button */
}

.fb-item:hover .fb-popup,
.fb-item.fb-active .fb-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  pointer-events: auto;
}

/* Popup arrow */
.fb-popup-arrow {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: #fff;
}

/* QR Code popup */
.fb-qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  min-width: 180px;
  text-align: center;
}

.fb-qr-wrap img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Text popup */
.fb-text-popup {
  background: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* Stagger animation - show: top to bottom, one by one with bounce */
.floating-bar.visible .fb-item:nth-child(1) {
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0s both;
}
.floating-bar.visible .fb-item:nth-child(2) {
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.floating-bar.visible .fb-item:nth-child(3) {
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.floating-bar.visible .fb-item:nth-child(4) {
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes fbPopIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.3);
  }
  60% {
    transform: translateY(5px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse animation for WhatsApp */
.fb-whatsapp .fb-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: fbPulse 2.5s ease-out infinite;
}

@keyframes fbPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .toast {
    top: 70px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .floating-bar {
    right: 16px;
    bottom: 80px;
    gap: 10px;
  }

  .fb-btn {
    width: 42px;
    height: 42px;
  }

  .fb-btn svg {
    width: 20px;
    height: 20px;
  }

  .fb-popup {
    right: calc(100% + 10px);
  }

  .fb-qr-wrap {
    min-width: 150px;
    padding: 12px;
  }

  .fb-qr-wrap img {
    width: 130px;
    height: 130px;
  }

  .contact-modal-box {
    padding: 24px 20px;
    max-width: 300px;
  }

  .contact-modal-content .modal-qr {
    width: 170px;
    height: 170px;
  }

  .contact-modal-content .modal-phone,
  .contact-modal-content .modal-phone a {
    font-size: 22px;
  }
}
