/*
Theme Name: Lvxiang Pro
Theme URI: http://www.lvxiangjd.com
Author: Lvxiang
Description: Professional theme for Guangzhou Lvxiang Electromechanical - Agricultural Equipment Manufacturer
Version: 2.1.0
Tags: agricultural, industrial, corporate, professional, responsive
*/

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

:root {
  --teal: #2A9D8F;
  --teal-dark: #1F7A6E;
  --teal-light: #3DB8A8;
  --teal-lighter: #5DCBBB;
  --slate: #264653;
  --slate-light: #3A5A6A;
  --sand: #E9C46A;
  --sand-light: #F4D58A;
  --text-dark: #264653;
  --text-medium: #555;
  --text-light: #888;
  --bg-white: #fff;
  --bg-alt: #F8F9FA;
  --bg-gray: #f0f2f5;
  --border: #e0e0e0;
  --footer-dark: #264653;
  --footer-darker: #1A3038;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --container: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sand); }

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

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; color: var(--text-dark); }

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

/* ========== Top Bar ========== */
.top-bar {
  background: var(--slate);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--sand-light); }
.top-bar .tb-left span { margin-right: 24px; }
.top-bar .tb-left svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ========== Header ========== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }

.site-brand { display: block; text-decoration: none; }
.site-logo-img {
  max-height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ========== Navigation ========== */
.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_item > a {
  color: var(--teal);
  background: rgba(42,157,143,0.06);
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sand);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after { width: 24px; }

/* Dropdown */
.main-nav li { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 240px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  list-style: none;
  z-index: 1001;
  gap: 0;
  align-items: stretch;
}
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { display: block; width: 100%; }
.main-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-medium);
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav .sub-menu a:hover { color: var(--teal); background: var(--bg-alt); padding-left: 30px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }
.nav-toggle span + span { margin-top: 5px; }

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate), var(--teal));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: 0.15;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(38,70,83,0.88), rgba(42,157,143,0.75));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 80px 20px; max-width: 800px; }
.hero h1 { color: #fff; font-size: 42px; margin-bottom: 16px; letter-spacing: 2px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero .hero-sub { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 12px; letter-spacing: 1px; }
.hero .hero-tag { color: var(--sand-light); font-size: 15px; margin-bottom: 36px; letter-spacing: 4px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 1px;
}
.btn-primary { background: var(--sand); color: #fff; border-color: var(--sand); }
.btn-primary:hover { background: var(--sand-light); border-color: var(--sand-light); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,196,106,0.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--teal); border-color: #fff; }
.btn-green { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-green:hover { background: var(--teal-light); border-color: var(--teal-light); color: #fff; transform: translateY(-2px); }

/* ========== Section ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 32px; margin-bottom: 12px; position: relative; display: inline-block; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--sand));
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-subtitle { color: var(--text-light); font-size: 16px; max-width: 700px; margin: 0 auto; }

/* ========== Features ========== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--teal-lighter); }
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(42,157,143,0.25);
}
.feature-num { font-size: 36px; font-weight: 900; color: var(--teal); margin-bottom: 8px; line-height: 1; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ========== Products Grid ========== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--teal-lighter); }
.product-card-img { width: 100%; height: 220px; overflow: hidden; background: var(--bg-gray); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 18px; margin-bottom: 10px; }
.product-card-body h3 a { color: var(--text-dark); }
.product-card-body h3 a:hover { color: var(--teal); }
.product-card-body p { font-size: 14px; color: var(--text-medium); line-height: 1.7; margin-bottom: 16px; }
.product-link { font-size: 14px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.product-link:hover { gap: 10px; color: var(--sand); }

/* ========== About Section ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: 30px; margin-bottom: 20px; }
.about-content h2::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(90deg, var(--teal), var(--sand)); border-radius: 2px; margin-top: 12px; }
.about-content p { color: var(--text-medium); margin-bottom: 16px; line-height: 2; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.about-list li::before { content: '\2714'; color: var(--teal); font-weight: 900; flex-shrink: 0; margin-top: 2px; }

/* ========== Contact CTA ========== */
.contact-cta { background: linear-gradient(135deg, var(--slate), var(--teal)); color: #fff; padding: 60px 0; text-align: center; }
.contact-cta h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.contact-cta p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 28px; }

/* ========== Contact Info ========== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.contact-item { text-align: center; padding: 32px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-item-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(42,157,143,0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.contact-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.contact-item p { font-size: 15px; color: var(--text-medium); }

/* ========== Footer ========== */
.site-footer { background: var(--footer-dark); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: var(--sand); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--sand-light); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item .fc-icon { color: var(--sand); flex-shrink: 0; margin-top: 2px; }
.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.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sand-light); }

/* ========== Page Header ========== */
.page-header-bar {
  background: linear-gradient(135deg, var(--slate), var(--teal));
  color: #fff;
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-bar::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.page-header-bar h1 { color: #fff; font-size: 30px; }
.page-header-bar .breadcrumb { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 8px; }
.page-header-bar .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header-bar .breadcrumb a:hover { color: var(--sand-light); }

/* ========== Page Content ========== */
.page-content-wrap { padding: 60px 0; }
.page-content { max-width: 900px; margin: 0 auto; }
.page-content h2 { font-size: 26px; margin: 32px 0 16px; padding-left: 14px; border-left: 4px solid var(--teal); }
.page-content h3 { font-size: 20px; margin: 24px 0 12px; color: var(--slate); }
.page-content p { margin-bottom: 16px; color: var(--text-medium); line-height: 2; }
.page-content ul, .page-content ol { margin: 0 0 20px 20px; }
.page-content li { margin-bottom: 8px; color: var(--text-medium); }
.page-content img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow-sm); }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content table th, .page-content table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 14px; }
.page-content table th { background: var(--bg-alt); font-weight: 700; color: var(--text-dark); }
.page-content strong { color: var(--text-dark); }
.page-content .wp-block-image { margin: 24px 0; }

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    padding: 80px 0 20px;
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 24px; border-radius: 0; font-size: 16px; }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 24px;
    background: var(--bg-alt);
  }
  .hero h1 { font-size: 30px; }
  .hero .hero-sub { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar .tb-right { display: none; }
  .site-brand-sub { display: none; }
  .site-brand-name { font-size: 16px; }
  .hero { min-height: 380px; }
  .hero h1 { font-size: 24px; letter-spacing: 1px; }
  .hero .hero-tag { letter-spacing: 2px; font-size: 13px; }
  .btn { padding: 12px 28px; font-size: 14px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .page-header-bar { padding: 36px 0; }
  .page-header-bar h1 { font-size: 22px; }
}

/* ========== Utility ========== */
.text-center { text-align: center; }

/* ========== Product Detail Page ========== */
.product-detail { max-width: 900px; margin: 0 auto; padding: 40px 0; }
.product-detail-img { width: 100%; max-height: 500px; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 32px; background: var(--bg-gray); }
.product-detail-img img { width: 100%; height: auto; display: block; object-fit: cover; }
.product-detail-body { font-size: 16px; line-height: 1.9; color: var(--text-dark); }
.product-detail-body h2 { font-size: 22px; margin: 32px 0 16px; color: var(--slate); border-left: 4px solid var(--teal); padding-left: 14px; }
.product-detail-body h3 { font-size: 18px; margin: 24px 0 12px; color: var(--slate); }
.product-detail-body p { margin-bottom: 16px; }
.product-detail-body ul, .product-detail-body ol { margin: 0 0 16px 24px; }
.product-detail-body li { margin-bottom: 8px; line-height: 1.8; }
.product-detail-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.product-detail-body th, .product-detail-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.product-detail-body th { background: var(--bg-alt); font-weight: 700; }

/* Product Navigation */
.product-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.product-nav-prev, .product-nav-next {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
.product-nav-prev:hover, .product-nav-next:hover { color: var(--sand); }
.product-nav-prev.disabled, .product-nav-next.disabled { color: var(--text-light); pointer-events: none; }
.product-nav-back {
  font-size: 14px;
  color: var(--text-medium);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.product-nav-back:hover { color: var(--teal); border-color: var(--teal); }

@media (max-width: 600px) {
  .product-nav { flex-direction: column; text-align: center; }
}
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Override WordPress core styles */
.wp-block-cover { display: none !important; }
.screen-reader-text { display: none; }
img.emoji { display: none !important; }
