/* -------------------------
   基础设置
-------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* 容器宽度控制（留白感） */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------------
   导航栏
-------------------------- */
.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}

.main-nav a:hover {
  color: #000;
}

/* -------------------------
   首屏 Hero
-------------------------- */
.hero {
  padding: 80px 0 100px;
  background: #f7f7f7;
}

.hero-title {
  font-size: 34px;
  margin-bottom: 14px;
}

.hero-subtitle {
  max-width: 620px;
  color: #555;
  font-size: 15px;
}

/* -------------------------
   产品入口
-------------------------- */
.section-title {
  font-size: 22px;
  margin-bottom: 30px;
}

.products-preview {
  padding: 70px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.product-card {
  text-decoration: none;
  border: 1px solid #e4e4e4;
  padding: 18px;
  display: block;
  transition: border 0.2s ease;
}

.product-card:hover {
  border-color: #bfbfbf;
}

.product-info {
  margin-top: 14px;
}

.product-name {
  margin: 0 0 8px;
  color: #1a1a1a;
}

.product-desc {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* -------------------------
   产品页
-------------------------- */
.product-hero {
  padding: 50px 0 10px;
}

.product-title {
  font-size: 28px;
  margin: 0;
}

.product-image-section {
  padding: 20px 0 40px;
}

.product-main-image {
  border: 1px solid #e4e4e4;
}

.product-description {
  padding: 30px 0 80px;
}

.product-description h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.product-description p {
  color: #444;
  max-width: 760px;
  font-size: 15px;
}

/* -------------------------
   Footer
-------------------------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid #e9e9e9;
  font-size: 13px;
  color: #777;
  background: #fafafa;
}

/* -------------------------
   产品列表页
-------------------------- */

.products-hero {
  padding: 50px 0 20px;
}

.products-intro {
  max-width: 720px;
  color: #555;
  font-size: 15px;
}

.products-list {
  padding: 40px 0 80px;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 1px solid #e5e5e5;
  padding: 18px;
  margin-bottom: 28px;
}

.product-content h2 {
  margin: 0 0 10px;
}

.product-content p {
  margin-top: 0;
  color: #444;
}

.product-content ul {
  padding-left: 18px;
  margin: 10px 0 14px;
}

.product-content li {
  margin-bottom: 6px;
  color: #555;
}

.product-link {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 1px solid #aaa;
}

.product-link:hover {
  border-color: #000;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 1px solid #e5e5e5;
  padding: 18px;
  margin-bottom: 28px;

  text-decoration: none;
  color: inherit;

  transition: border 0.2s ease, background 0.15s ease;
  cursor: pointer;
}

.product-item:hover {
  border-color: #bfbfbf;
  background: #fafafa;
}

/* 产品分类标题样式 */
.category-title {
  font-size: 22px;
  margin: 42px 0 18px;
  border-left: 4px solid #111;
  padding-left: 10px;
}

.category-group {
  display: grid;
  gap: 24px;
}

.category-group .product-item h3 {
  font-size: 18px;
}



/* logo样式 */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #111;
}


.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-icon img {
  width: 60px;
  height: auto;
}

/* 默认：手机 —— 更小、更克制 */
.logo img {
  height: 40px;
  width:auto;
}

.logo-text {
  font-size: 16px;
  display: none;
}

.hero-title {
  font-size: 26px;
}

/* 产品：大屏时左右布局 */
@media (min-width: 820px) {
  .product-item {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
  
    .logo-text {
    display: inline-block;
    font-size: 18px;
    white-space: nowrap;
  }
}

/* 平板 / 桌面 */
@media (min-width: 768px) {

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .logo-text {
    font-size: 18px;
    display: inline-block;
    white-space: nowrap;
  }

  .hero-title {
    font-size: 40px;
  }
}
