/* ============================================================
   HDW Website — Modern Industrial Style
   Primary: #1a3a5c (Deep Blue) | Accent: #d4a843 (Gold)
   ============================================================ */

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

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5078;
  --primary-dark: #0f2640;
  --accent: #d4a843;
  --accent-light: #e6c56d;
  --text: #2d3436;
  --text-light: #636e72;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e4e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 72px;
}

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

body {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

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

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-stat {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: transform var(--transition);
}

.hero-stat:hover {
  transform: translateY(-4px);
}

.hero-stat .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 6px;
}

/* --- Hero Slider --- */
.hero-slider {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-slides {
  position: relative;
  min-height: 320px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.hero-slide h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-slide h1 span {
  color: var(--accent-light);
}

.hero-slide .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-slide-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 12px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 30px;
  transition: background var(--transition), transform var(--transition);
}

.hero-slide-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-slide .hero-stats {
  margin-top: 20px;
}

/* Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

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

.hero-dot.active,
.hero-dot:hover {
  background: var(--accent-light);
  transform: scale(1.3);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border-left: 3px solid var(--accent);
  transition: transform var(--transition);
}

.about-stat:hover {
  transform: translateY(-3px);
}

.about-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.about-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Products Section --- */
.products-search {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.products-search input {
  width: 100%;
  max-width: 480px;
  padding: 12px 20px 12px 44px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 16px center no-repeat;
}

.products-search input:focus {
  border-color: var(--primary);
}

/* --- Products Layout: Sidebar + Grid --- */
.products-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.products-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
}

.products-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 20px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.products-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-family: inherit;
}

.products-sidebar-item:hover {
  background: rgba(26,58,92,0.04);
  color: var(--primary);
}

.products-sidebar-item.active {
  background: rgba(26,58,92,0.06);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--accent);
}

.products-sidebar-item .sidebar-count {
  float: right;
  font-size: 0.78rem;
  opacity: 0.6;
  color: var(--text-light);
}

.products-main {
  flex: 1;
  min-width: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.product-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8ecf1, #dce3ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2.5rem;
}

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

.product-card-body {
  padding: 16px;
}

.product-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-card-body .product-category {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(212,168,67,0.1);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}

/* --- Solutions Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.solution-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.solution-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.solution-icon {
  width: 56px;
  height: 56px;
  background: rgba(26,58,92,0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.solution-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Cases Section --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.case-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.case-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8ecf1, #dce3ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-body {
  padding: 20px;
}

.case-card-body .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.case-tag {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(26,58,92,0.08);
  color: var(--primary);
}

.case-card-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.case-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact / Footer --- */
.contact {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 40px;
}

.contact .section-header h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.contact-col h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.contact-col p,
.contact-col li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.contact-col a {
  color: var(--accent-light);
  transition: opacity var(--transition);
}

.contact-col a:hover {
  opacity: 0.8;
}

.contact-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--text-light);
  color: #fff;
}

.modal h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal .modal-category {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(212,168,67,0.1);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.modal .modal-img {
  width: 100%;
  height: 280px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.modal .modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.modal .modal-body {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.9;
}

.modal .modal-body h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 20px 0 8px;
}

/* --- Scroll Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Image Lazy Loading Placeholder --- */
img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.lazy.loaded {
  opacity: 1;
}

.img-placeholder {
  background: linear-gradient(135deg, #e8ecf1, #dce3ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

/* --- Fallback / Error State --- */
.fallback-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.fallback-message .fallback-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: 768px - 1199px */
@media (max-width: 1199px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-slide h1 {
    font-size: 2.4rem;
  }

  .hero-slides {
    min-height: 280px;
  }

  .about-grid {
    gap: 40px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  /* Nav */
  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo-img {
    height: 36px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav-links.active {
    max-height: 400px;
    padding: 12px 0;
  }

  .nav-links a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 0 10px;
  }

  .hero-slide h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 0 10px;
  }

  .hero-slide .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .hero-slides {
    min-height: 200px;
  }

  .hero-slide-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    margin: 0 10px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  .hero-stat {
    padding: 20px 16px;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

  .hero-stat .stat-label {
    font-size: 0.8rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-stat {
    padding: 18px 12px;
  }

  .about-stat .stat-number {
    font-size: 1.5rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-search {
    padding: 0 10px;
  }

  .products-search input {
    font-size: 0.85rem;
    padding: 10px 20px 10px 40px;
    background-position: 12px center;
  }

  .products-layout {
    flex-direction: column;
    gap: 20px;
  }

  .products-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius);
  }

  .products-sidebar-title {
    width: 100%;
    border-bottom: none;
    padding: 4px 8px 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .products-sidebar-item {
    width: auto;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
  }

  .products-sidebar-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .products-sidebar-item .sidebar-count {
    display: none;
  }

  .products-tab {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Join Section */
  .join-layout {
    flex-direction: column;
    gap: 25px;
  }

  .join-content {
    min-width: 100%;
  }

  .join-content h3 {
    font-size: 1.1rem;
  }

  .join-content li {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* News & FAQ */
  #news .section-header {
    margin-bottom: 25px;
  }

  #news > .container > div {
    flex-direction: column;
    gap: 25px;
  }

  #news h3 {
    font-size: 1.1rem;
  }

  #news .faq-item {
    padding: 12px 14px;
  }

  #news .faq-item p {
    font-size: 0.8rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Modal */
  .modal {
    padding: 20px 16px;
    max-height: 90vh;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .hero-slide h1 {
    font-size: 1.3rem;
  }

  .hero-slides {
    min-height: 180px;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-header p {
    font-size: 0.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .nav-logo-img {
    height: 32px;
  }

  .hero-stat {
    padding: 16px 12px;
  }

  .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  .hero-stat .stat-label {
    font-size: 0.75rem;
  }

  .products-search input {
    font-size: 0.8rem;
    padding: 8px 16px 8px 36px;
    background-position: 10px center;
  }

  .join-content h3 {
    font-size: 1rem;
  }

  .join-content li {
    font-size: 0.8rem;
  }

  .contact-bottom p {
    font-size: 0.9rem;
  }
}

/* ============================================================
   Product Detail Page
   ============================================================ */

.product-detail-section {
  padding: 40px 0 80px;
  background: var(--bg-light);
  min-height: 60vh;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 32px;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,168,67,0.05);
}

/* Product Detail Content */
#product-detail-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Header */
.pd-header {
  padding: 36px 40px 24px;
  border-bottom: 1px solid var(--border);
}

.pd-header .pd-category {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(212,168,67,0.1);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pd-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.pd-header .pd-model {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Main Image */
.pd-main-image {
  width: 100%;
  max-height: 500px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.pd-img-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* Sections */
.pd-section {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
}

.pd-section:last-of-type {
  border-bottom: none;
}

.pd-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.pd-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.9;
}

.pd-text p {
  margin-bottom: 10px;
}

/* Gallery */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pd-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition);
}

.pd-gallery-item:hover {
  transform: scale(1.03);
}

.pd-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Scenes */
.pd-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pd-scene-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pd-scene-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Advantages */
.pd-advantages {
  list-style: none;
  padding: 0;
}

.pd-advantages li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px solid #f0f0f0;
}

.pd-advantages li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.pd-advantages li:last-child {
  border-bottom: none;
}

/* Specs Table */
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.pd-specs-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.pd-specs-table tr:last-child {
  border-bottom: none;
}

.pd-specs-table td {
  padding: 10px 16px;
}

.pd-specs-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  width: 35%;
  background: rgba(26,58,92,0.02);
}

.pd-specs-table td:last-child {
  color: var(--text-light);
}

/* Back button at bottom */
.pd-back-bottom {
  padding: 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Product Detail Responsive */
@media (max-width: 767px) {
  .pd-header,
  .pd-section,
  .pd-back-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pd-header h1 {
    font-size: 1.4rem;
  }

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

  .pd-scenes {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Image Protection
   ============================================================ */

/* Disable text/image selection on all product/detail images */
.product-card-img img,
.case-card-img img,
.pd-main-image img,
.pd-gallery-item img,
.pd-scene-item img,
.modal-img img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Image containers need relative positioning for overlay */
.product-card-img,
.case-card-img,
.pd-main-image,
.pd-gallery-item,
.pd-scene-item,
.modal-img {
  position: relative;
}

/* Transparent overlay — intercepts right-click to block "Save Image As" */
.img-protect-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent;
}

/* Watermark overlay — PNG自带透明度，CSS opacity 设为 1 */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  background-repeat: repeat;
}

/* ============================================================
   Mobile Touch Optimizations
   ============================================================ */

/* Touch-friendly button sizes */
button, 
a.btn,
input[type="submit"],
.hero-slide-btn,
.products-tab,
.products-sidebar-item,
.nav-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Prevent text selection on mobile */
@media (max-width: 767px) {
  body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  a, button, input {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  }
  
  /* Improve touch scrolling */
  .products-grid,
  .solutions-grid,
  .cases-grid {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Larger touch targets for mobile */
  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .products-sidebar-item {
    min-height: 36px;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve text readability on mobile */
  p, li, span {
    line-height: 1.6;
    word-wrap: break-word;
  }
  
  /* Mobile-optimized tables */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
