/* ==========================================================================
   开运智能装备 - 现代企业站样式
   主题: 工业橘红 + 深炭灰
   ========================================================================== */

:root {
  --color-primary: #e54b1b;
  --color-primary-dark: #b8390f;
  --color-primary-light: #ff6b35;
  --color-accent: #1e293b;
  --color-accent-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #fdf6f3;
  --color-bg-dark: #1a1410;
  --color-border: #eaddd7;
  --color-border-light: #f5ebe6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --container: 1240px;
  --header-h: 80px;
  --topbar-h: 36px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

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

.section-bg-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--color-bg-dark);
  color: #cbd5e1;
  font-size: 13px;
  height: var(--topbar-h);
  line-height: var(--topbar-h);
}

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

.topbar a {
  color: #cbd5e1;
}

.topbar a:hover {
  color: #fff;
}

.topbar-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.topbar-social {
  display: flex;
  gap: 16px;
}

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

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

.logo img {
  max-height: 56px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

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

.nav a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav a:hover::after,
.nav a.active::after {
  width: 24px;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
}

.header-cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.header-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #b8390f 0%, #e54b1b 100%);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.35) 0%,
    rgba(26, 20, 16, 0.15) 35%,
    rgba(26, 20, 16, 0.65) 75%,
    rgba(26, 20, 16, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
  color: #fff;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: #ffb088;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .accent {
  color: var(--color-primary-light);
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

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

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hero pagination */
.hero-pagination {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-pagination button {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transition: var(--transition);
}

.hero-pagination button.active {
  background: var(--color-accent);
  width: 48px;
}

/* ===== Section heading ===== */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding: 0 32px;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-head .eyebrow::before { left: 0; }
.section-head .eyebrow::after { right: 0; }

.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-head p {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto;
}

.section-head .head-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
}

.section-head .head-link:hover {
  color: var(--color-accent);
}

/* ===== Services / Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #1e293b, #475569);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #b8390f, #e54b1b);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

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

.feature-card .feature-list {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-light);
}

.feature-card .feature-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.feature-card .feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

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

.about-preview .about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
}

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

.about-preview .about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(229, 75, 27, 0.3) 100%);
}

.about-preview .about-image .exp-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.about-preview .about-image .exp-badge .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.about-preview .about-image .exp-badge .label {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.3;
}

.about-preview .about-text .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-preview .about-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-preview .about-text p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.about-stat {
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

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

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

/* ===== Product tabs ===== */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.product-tab {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}

.product-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.product-card .product-img {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-card .product-img .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.product-card .product-img .cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(184, 57, 15, 0.92);
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.product-card .product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.product-card .product-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

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

.product-card .product-link::after {
  content: "→";
  transition: var(--transition);
}

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

.product-card:hover .product-link::after {
  transform: translateX(4px);
}

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

.news-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card .news-img {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}

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

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

.news-card .news-img .date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--color-text);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.news-card .news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.news-card .news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.news-card .news-link::after {
  content: "→";
  transition: var(--transition);
}

.news-card:hover .news-link {
  color: var(--color-accent);
}

.news-card:hover .news-link::after {
  transform: translateX(4px);
}

/* ===== Stats band ===== */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 200, 100, 0.18), transparent 40%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

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

.stat-item .num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}

.stat-item .num .suffix {
  color: var(--color-accent);
  font-size: 32px;
}

.stat-item .label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Page banner ===== */
.page-banner {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 57, 15, 0.88), rgba(26, 20, 16, 0.75));
}

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

.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-banner .breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

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

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

.page-banner .breadcrumb .sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== About page ===== */
.about-page {
  padding: 64px 0;
}

.about-page .about-intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 48px;
}

.about-page .about-intro h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.about-page .about-intro p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-light);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.about-section:nth-child(even) .about-section-image {
  order: 2;
}

.about-section-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

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

.about-section-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

.about-section-text h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

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

.about-section-text ul {
  margin-top: 16px;
}

.about-section-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--color-text);
}

.about-section-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--color-success);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Products page ===== */
.products-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
}

.product-sidebar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.product-sidebar .sidebar-head {
  padding: 20px 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.product-sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
  color: var(--color-text);
  transition: var(--transition);
}

.product-sidebar ul li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding-left: 28px;
}

.product-sidebar ul li a.active {
  background: linear-gradient(90deg, rgba(229, 75, 27, 0.08), transparent);
  color: var(--color-primary);
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
  padding-left: 21px;
}

.product-sidebar ul li a .count {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 999px;
}

.product-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.product-main-head h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.product-main-head .result-count {
  font-size: 14px;
  color: var(--color-text-light);
}

.product-main-head .result-count strong {
  color: var(--color-accent);
}

.products-page .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}

.empty-state .icon {
  font-size: 56px;
  margin-bottom: 16px;
  color: var(--color-border);
}

/* ===== Product detail ===== */
.product-detail-page {
  padding: 32px 0 64px;
}

.breadcrumb-bar {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 32px;
}

.breadcrumb-bar a {
  color: var(--color-text-light);
}

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

.breadcrumb-bar .sep {
  margin: 0 8px;
  color: var(--color-text-muted);
}

.breadcrumb-bar .current {
  color: var(--color-text);
}

.product-detail-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.product-gallery .main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.product-gallery .thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery .thumbs button {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  transition: var(--transition);
}

.product-gallery .thumbs button.active,
.product-gallery .thumbs button:hover {
  border-color: var(--color-accent);
}

.product-gallery .thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-info .product-cat {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(229, 75, 27, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-weight: 500;
}

.product-info .product-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.product-info .product-attrs {
  margin-bottom: 24px;
}

.product-info .product-attrs .attr-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.product-info .product-attrs .attr-label {
  width: 100px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.product-info .product-attrs .attr-value {
  flex: 1;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.product-cta-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, rgba(229, 75, 27, 0.06), rgba(30, 41, 59, 0.04));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.product-cta-box .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-cta-box .contact-line .label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.product-cta-box .contact-line .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.product-detail-section {
  margin-bottom: 48px;
}

.product-detail-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  position: relative;
}

.product-detail-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -16px;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.product-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}

.product-content :where(h1, h2, h3, h4) {
  margin: 24px 0 12px;
  color: var(--color-text);
  font-weight: 600;
}

.product-content p {
  margin-bottom: 16px;
}

.product-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.product-content ul,
.product-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.product-content ul li,
.product-content ol li {
  margin-bottom: 8px;
  list-style: inherit;
}

.product-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.product-content table td,
.product-content table th {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

.product-content table th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

/* ===== News list page ===== */
.news-list-page {
  padding: 48px 0;
}

.news-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-filter a {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: var(--transition);
}

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

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

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

.news-list .news-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.news-list .news-list-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-list .news-list-item .news-pic {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.news-list .news-list-item .news-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-list .news-list-item:hover .news-pic img {
  transform: scale(1.05);
}

.news-list .news-list-item .news-info {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
}

.news-list .news-list-item .news-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.news-list .news-list-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-list .news-list-item .news-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.news-list .news-list-item .news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== News detail ===== */
.news-detail-page {
  padding: 32px 0 64px;
}

.news-detail {
  max-width: 880px;
  margin: 0 auto;
}

.news-detail .news-head {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.news-detail .news-head .news-cat {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 16px;
}

.news-detail .news-head h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 20px;
}

.news-detail .news-head .news-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-detail .news-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.news-detail .news-content :where(h1, h2, h3, h4) {
  margin: 28px 0 16px;
  color: var(--color-text);
  font-weight: 600;
}

.news-detail .news-content p {
  margin-bottom: 18px;
}

.news-detail .news-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}

.news-detail .news-content ul,
.news-detail .news-content ol {
  margin: 18px 0;
  padding-left: 28px;
}

.news-detail .news-content ul li,
.news-detail .news-content ol li {
  margin-bottom: 10px;
  list-style: inherit;
}

.news-detail .news-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.news-detail .news-content table td,
.news-detail .news-content table th {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
}

.news-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.news-nav a {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 12px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

/* ===== Contact page ===== */
.contact-page {
  padding: 64px 0;
}

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

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card:nth-child(2) .icon {
  background: linear-gradient(135deg, #1e293b, #475569);
}

.contact-card:nth-child(3) .icon {
  background: linear-gradient(135deg, #b8390f, #e54b1b);
}

.contact-card .icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.contact-card .info .label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-card .info .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.contact-card .info .value a {
  color: inherit;
}

.contact-card .info .value a:hover {
  color: var(--color-accent);
}

.contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--color-bg-alt);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 75, 27, 0.12);
}

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

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 20px;
}

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

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-dark);
  color: #cbd5e1;
}

.footer-main {
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

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

.footer-col ul li a {
  font-size: 14px;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about .logo img {
  max-height: 48px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.footer-contact-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--color-accent);
}

.footer-contact-item a {
  color: #94a3b8;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #64748b;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

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

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .features,
  .product-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-page .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-preview,
  .about-section,
  .contact-grid,
  .product-detail-head {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-section:nth-child(even) .about-section-image {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .news-list .news-list-item {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
  .section {
    padding: 56px 0;
  }
  .container {
    padding: 0 16px;
  }
  .topbar {
    display: none;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 99;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 16px;
  }
  .nav a::after {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .logo-text .name {
    font-size: 15px;
  }
  .logo-text .tagline {
    font-size: 10px;
  }
  .logo img {
    max-height: 40px;
  }
  .hero {
    height: 460px;
  }
  .hero-content {
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .products-page {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    position: static;
  }
  .product-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .product-sidebar ul li {
    flex: 1;
  }
  .product-sidebar ul li a {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
  }
  .product-sidebar ul li a.active {
    border-left-width: 1px;
    padding-left: 14px;
  }
  .product-sidebar ul li a .count {
    display: none;
  }
  .product-sidebar .sidebar-head {
    display: none;
  }
  .news-list .news-list-item {
    grid-template-columns: 1fr;
  }
  .news-list .news-list-item .news-info {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  .page-banner {
    height: 200px;
  }
  .page-banner h1 {
    font-size: 28px;
  }
  .news-detail .news-head h1 {
    font-size: 22px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .features,
  .product-grid,
  .news-grid,
  .products-page .product-grid,
  .stats-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
