/* =====================
   全局基础样式
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #E8620A;
  --orange-dark: #c85108;
  --orange-light: #f07020;
  --dark-brown: #2D1A0E;
  --dark-brown-2: #3a2010;
  --text-dark: #1a1a1a;
  --text-mid: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f6f3;
  --border-light: #e8e0d8;
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s;
}

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

ul {
  list-style: none;
}

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

/* =====================
   顶部公告栏
===================== */
.announcement-bar {
  background: #f0ece8;
  color: var(--text-gray);
  font-size: 13px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: 0.02em;
}

/* =====================
   导航栏
===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.nav-item {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--orange);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================
   Hero Banner
===================== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 10, 0, 0.55) 0%,
    rgba(30, 15, 5, 0.35) 50%,
    rgba(60, 30, 10, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 40px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 0.8s ease both;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.06em;
  font-weight: 300;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   数据统计区
===================== */
.stats-section {
  background: var(--bg-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.stat-item {
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-big {
  font-size: 56px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 18px;
  color: var(--text-gray);
  font-weight: 400;
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* =====================
   公司介绍区
===================== */
.about-section {
  padding: 90px 0;
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 16px;
}

.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 14px;
  border-radius: 2px;
  transition: all 0.25s;
  letter-spacing: 0.04em;
}

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

/* =====================
   产品展示区
===================== */
.products-section {
  background: var(--bg-light);
  padding: 64px 0 80px;
}

/* 两栏布局：左侧标题+搜索，右侧产品网格 */
.products-section .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.products-header {
  text-align: left;
  position: sticky;
  top: 100px;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* products-header 下的 section-title 不要居中下划线 */
.products-header .section-title::after {
  display: none;
}

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

.section-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 22px;
  line-height: 1.8;
}

/* 搜索框 - 左对齐纯输入框 */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  padding: 0 10px;
}

.search-icon {
  color: #bbb;
  font-size: 15px;
  user-select: none;
  padding-right: 6px;
  font-style: normal;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-dark);
  width: 100%;
  padding: 9px 4px;
  font-family: var(--font);
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: #bbb;
}

.search-btn {
  display: none;
}

/* 产品卡片网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* 新品角标 - 左上角橙色梯形 */
.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px 3px 6px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1.6;
}

.product-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f8f7f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-tags {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
  flex: 1;
}

.product-tags span {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.btn-detail {
  display: block;
  text-align: center;
  padding: 11px 0;
  border-top: 1px solid var(--border-light);
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  margin: 0 -20px;
  margin-top: auto;
}

.btn-detail:hover {
  background: var(--orange);
  color: #fff;
}

/* =====================
   页脚
===================== */
.footer {
  background: var(--dark-brown);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

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

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

@media (max-width: 768px) {
  .hero-banner { height: 380px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }

  .navbar-inner { padding: 0 20px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    border-top: 1px solid var(--border-light);
    padding: 12px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-item { padding: 12px 24px; border-radius: 0; }
  .nav-toggle { display: flex; }

  .stats-grid { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { min-width: 46%; text-align: center; padding: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 280px; }

  .products-header { flex-direction: column; align-items: flex-start; }
  .products-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .stat-big { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}
