/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #963401;
  --primary-dark: #7a2a01;
  --primary-light: #b84a1a;
  --primary-bg: #fdf5f0;
  --text-dark: #333333;
  --text-gray: #2A2A2A;
  --text-light: #2A2A2A;
  --bg-white: #ffffff;
  --bg-gray: #f8f8f8;
  --border-color: #e5e5e5;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header-top {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: rgba(255, 255, 255, 0.9);
}

.header-top a:hover {
  color: #fff;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
}

.logo-text span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  font-weight: normal;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  padding: 8px 18px;
  font-size: 15px;
  color: white;
  position: relative;
  font-weight: 500;
}



/* .main-nav a:hover,
.main-nav a.active {
  
}
} */

.main-nav a:hover::after,
.main-nav a.active::after {
  content: "";
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 2px;
    background: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Footer ===== */
.footer {
  background: #333333;
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-col h4 {
  color: #e85a1a;
  font-size: 18px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 1);
}

.footer-links p {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 1);
}

.footer-links a:hover {
  color: #e85a1a;
}

.footer-links span {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 1);
}

.footer-contact strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover > img {
  transform: translateY(-3px);
}

/* Social QR Bubble */
.footer-social a {
  position: relative;
  display: inline-block;
}

.social-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 116px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 10px 10px 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 99;
}

.social-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.footer-social a:hover .social-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 4px;
  color: #999;
  font-size: 12px;
  margin-bottom: 6px;
  overflow: hidden;
}

.social-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.social-pop-text {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

.footer-qr {
  display: flex;
  gap: 35px;
  justify-content: flex-end;
}

.qr-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-label {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.qr-box {
  width: 95px;
  height: 95px;
  background: #fff;
}

.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, var(--primary), var(--primary-dark));
  padding: 120px 0 60px;
  text-align: center;
  color: #fff;
  margin-top: 90px;
}

.page-banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.8;
}

.breadcrumb {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.7;
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
     content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #963401;
    opacity: 0.5;
    margin: 8px auto 0;
}

.section-title p {
  font-size: 15px;
  color: #7C7C7C;
  margin-top: 8px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 52, 1, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ===== Home Page Specific ===== */
.hero-banner {
 
    width: 100%;
  color: #fff;
}
.hero-content img {
      width: 100%;
      height: 600px;
          margin-top: 78px;
}

/* Hero Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
  animation: carouselFade 0.6s ease;
}

.carousel-slide img {
  width: 100%;
  height: 900px;
  object-fit: cover;
  display: block;
}

@keyframes carouselFade {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  opacity: 0.85;
  transition: var(--transition);
}

.carousel-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 30px;
}

.carousel-arrow.next {
  right: 30px;
}

.carousel-arrow img {
  width: 30px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.carousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.carousel-dots .dot.active {
  background: #fff;
  transform: scale(1.25);
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 5px;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
  background: #fff;
  color: var(--primary);
  font-weight: bold;
}

.hero-content .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

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

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-gray);
}

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

.product-card {
  /* border-radius: 8px; */
  overflow: hidden;
  /* box-shadow: var(--shadow); */
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); */
}

.product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--primary);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 17px;
    margin-bottom: 8px;
    text-align: center;
    color: #2A2A2A;
    font-weight: 500;
}

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

/* ===== Story Page ===== */
.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text h3 {
  font-size: 24px;
  color: #2A2A2A;
  margin-bottom: 20px;
}
.story-text h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #963401;
    opacity: 0.5;
    margin: 4px 0px 0 0;
}

.story-text p {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

.story-image {
  height: 400px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--primary);
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  top: 15px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 400px;
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Culture Grid (Story Page) */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.culture-card {
  overflow: hidden;
}



.culture-img {
  height: 220px;
  overflow: hidden;
}

.culture-img img {
  width: 100%;
  object-fit: cover;
}



.culture-text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}



.culture-text h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.culture-text p {
  font-size: 14px;
  color: var(--text-gray);
}

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

.category-btn {
  padding: 8px 24px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-white);
}

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

.products-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-item {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-item-img {
  height: 200px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--primary);
}

.product-item-info {
  padding: 15px;
  text-align: center;
}

.product-item-info h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.product-item-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Product Detail Page ===== */
.detail-section {
  background: var(--bg-white);
}

.detail-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.detail-img img {
  width: 100%;
}

.detail-info h2 {
  font-size: 22px;
  color: #2a2a2a;
  margin-bottom: 15px;
}

.detail-info h2 span {
  font-size: 15px;
  font-weight: normal;
  color: #666;
  margin-left: 8px;
}

.detail-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
  margin-bottom: 25px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.detail-price .label,
.detail-meta .label {
  color: #999;
  font-size: 14px;
}

.detail-price strong {
  font-size: 30px;
  color: #e8590c;
  line-height: 1;
}

.detail-price .unit {
  font-size: 13px;
  color: #e8590c;
}

.detail-meta li {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.detail-buy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
  max-width: 360px;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  text-align: center;
  transition: var(--transition);
}

.buy-btn:hover {
  background: var(--primary-dark);
}

/* Product Description */
.desc-section {
  background: #f0f0f0;
  padding: 60px 0 80px;
}

.desc-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 12px 0;
}

.desc-body {
  background: var(--bg-white);
  padding: 25px;
}

.desc-body img {
  width: 100%;
  display: block;
}

/* Related Products */


.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.related-item {
  display: block;
}



.related-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.related-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
  margin-top: 18px;
  transition: var(--transition);
}

.related-item:hover h3 {
  color: var(--primary);
}

.related-item p {
  font-size: 12px;
  color: #2a2a2a;
  text-align: center;
  margin-top: 6px;
}

/* ===== Process Page ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.process-step p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Tech Grid (Process Page) */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.tech-img {
  position: relative;
}

.tech-img::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed #9aa3b5;
}

.tech-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.tech-info {
  background: #f8f8f8;
  height:450px;
  margin-top: 20px;
}
.tech-info .info {
    padding: 30px 25px 40px;
}

.tech-info > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tech-info h3 {
  text-align: center;
  font-size: 18px;
  color: #94634a;
  letter-spacing: 1px;
  margin-bottom: 18px;
  font-weight: 500;
}

.tech-info p {
  font-size: 14px;
  color: #666;
  line-height: 2;
  text-align: justify;
}

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

.advantage-card {
  padding: 30px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.advantage-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

.partnership-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  margin-top: 60px;
}

.partnership-cta h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.partnership-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.partnership-cta .btn {
  background: #fff;
  color: var(--primary);
  font-weight: bold;
}

/* ===== News Layout (Left-Right) ===== */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.news-left {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
}

.news-left-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--primary);
}

.news-left-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.news-left-overlay h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-left-overlay p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 10px;
}

.news-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 12px;
}

.news-left-overlay .news-date {
  font-size: 13px;
  opacity: 0.7;
}

.news-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-list-item:first-child {
  padding-top: 0;
}

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

.news-list-item:hover {
  padding-left: 10px;
}

.news-list-item:hover h4 {
  color: var(--primary);
}

.news-list-content .news-date {
  display: inline-block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-list-content h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: var(--transition);
  color: var(--text-dark);
}

.news-list-content p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

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

.news-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card-img {
  height: 180px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
}

.news-card-content {
  padding: 20px;
}

.news-card-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card-content h3:hover {
  color: var(--primary);
}

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

/* News Tabs & List (News Page) */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.news-tabs a {
  padding: 6px 20px;
  font-size: 14px;
  color: var(--text-dark);
  border-radius: 20px;
}

.news-tabs a:hover {
  color: var(--primary);
}

.news-tabs a.active {
  background: var(--primary);
  color: #fff;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 35px;
  background: var(--bg-gray);
  padding: 20px;
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow);
}

.news-item-img {
  width: 220px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  flex: 1;
}

.news-item-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 14px;
  transition: var(--transition);
}

.news-item:hover .news-item-body h3 {
  color: var(--primary);
}

.news-item-body p {
  font-size: 13px;
  color: #999;
  line-height: 1.9;
}

.news-item-date {
  min-width: 90px;
  text-align: center;
  border-left: 1px solid #ddd;
  padding-left: 30px;
  color: var(--primary);
}

.news-item-date .day {
  display: block;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.news-item-date .ym {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

/* ===== Article Detail Page ===== */
.article-section {
  background: var(--bg-white);
}

.article-header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 35px;
}

.article-header h1 {
  font-size: 26px;
  color: #2a2a2a;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 13px;
  color: #999;
}

.article-meta span {
  margin: 0 12px;
}

.article-body {
  max-width: 900px;
  margin: 0 auto;
}

.article-body p {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 22px;
  text-indent: 2em;
}

.article-body img {
  display: block;
  width: 100%;
  margin: 10px auto 28px;
  border-radius: 4px;
}

.article-quote {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  margin: 30px 0;
}

.article-quote p {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-size: 14px;
}

.article-page {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 45px;
  padding-top: 20px;
  font-size: 14px;
}

.article-page a {
  color: #999;
}

.article-page a:hover {
  color: var(--primary);
}

.related-news-section {
  background: var(--bg-gray);
}

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

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

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

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

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 25px;
  color: var(--text-dark);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  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);
  box-shadow: 0 0 0 3px rgba(150, 52, 1, 0.1);
}

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

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

/* Contact Top (Dark Info + Map) */
.contact-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.contact-dark {
  background: #2b2b2b;
  color: #fff;
  padding: 45px 35px;
}

.contact-dark h3 {
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
}

.contact-card {
  background: #fff;
  color: var(--text-dark);
  padding: 25px 20px 30px;
}

.contact-card-title {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.contact-map {
  background: #e8eef5;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}

/* Message Panel */
.message-panel {
  background: var(--bg-gray);
  padding: 60px 50px;
}

.message-panel .section-title {
  margin-bottom: 40px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.required {
  color: #e4393c;
}

.message-submit {
  text-align: center;
  margin-top: 35px;
}

.message-submit .btn {
  padding: 10px 28px;
  font-size: 14px;
}

/* ===== Map Section ===== */
.map-section {
  height: 400px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(150, 52, 1, 0.3);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

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

  .carousel-slide img {
    height: 420px;
  }

  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }

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

  .features-grid,
  .products-grid,
  .process-steps,
  .advantages-grid,
  .news-grid,
  .culture-grid,
  .culture-text-grid,
  .tech-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .news-left {
    min-height: 300px;
  }

  .news-item {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .news-item-img {
    width: 100%;
    height: 200px;
  }

  .news-item-date {
    border-left: none;
    border-top: 1px solid #ddd;
    padding: 12px 0 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
  }

  .article-page {
    flex-direction: column;
    gap: 10px;
  }

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

  .story-content,
  .contact-wrapper,
  .detail-wrapper {
    grid-template-columns: 1fr;
  }

  .detail-img img {
    height: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-qr {
    justify-content: flex-start;
  }

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

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

  .timeline::before {
    left: 0;
  }

  .timeline-item::before {
    left: -6px;
  }

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

  .contact-top {
    grid-template-columns: 1fr;
  }

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

  .message-panel {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .products-list {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 50px 0;
  }
}

/* ===== Pagination ===== */
.section > div .current,
.section > div .num,
.section > div .prev,
.section > div .next {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  margin: 0 4px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.section > div .current {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.section > div .num {
  background: #f5f5f5;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.section > div .num:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.section > div .prev {
  background: #f5f5f5;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0 12px;
}

.section > div .prev:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.section > div .next {
  background: #f5f5f5;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0 12px;
}

.section > div .next:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
