/* theme3 华酿红金 — 基于 moban3.html */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --hn-red: #B81C22;
  --hn-red-dark: #8B0000;
  --hn-gold: #D4AF37;
  --hn-gold-shadow: rgba(212, 175, 55, 0.35);
  --hn-text: #333;
  --hn-muted: #666;
  --hn-muted-light: #888;
  --hn-bg: #fafafa;
  --hn-bg-alt: #f5f5f5;
  --hn-max: 1200px;
  --hn-nav-h: 80px;
}

html { scroll-behavior: smooth; }

body.hn-site.theme-skin-huanian {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--hn-text);
  line-height: 1.6;
  background: var(--hn-bg);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.hn-preview-bar {
  background: #b45309;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}

/* —— 顶栏 —— */
.hn-header {
  background: linear-gradient(135deg, var(--hn-red) 0%, var(--hn-red-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hn-nav-container {
  max-width: var(--hn-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--hn-nav-h);
  gap: 16px;
  position: relative;
}

.hn-logo {
  display: flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}

.hn-logo-icon {
  width: 50px;
  height: 50px;
  background: var(--hn-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 22px;
  color: var(--hn-red);
  font-weight: bold;
  flex-shrink: 0;
}

.hn-logo-text h1 {
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 700;
  letter-spacing: 2px;
}

.hn-logo-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

.hn-nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.hn-nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0 clamp(12px, 2vw, 25px);
  min-height: var(--hn-nav-h);
  display: flex;
  align-items: center;
  transition: all 0.3s;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.hn-nav-menu a:hover,
.hn-nav-menu a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--hn-gold);
}

.hn-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.hn-nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.hn-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hn-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.hn-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— Banner —— */
.hn-banner {
  min-height: clamp(360px, 50vh, 500px);
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    linear-gradient(135deg, var(--hn-red-dark) 0%, var(--hn-red) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hn-banner--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

.hn-banner-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
}

.hn-banner h2 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: clamp(2px, 1vw, 5px);
}

.hn-banner p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.9);
}

.hn-banner-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--hn-gold);
  color: var(--hn-red-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--hn-gold-shadow);
}

.hn-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* —— 价格提示 —— */
.hn-price-notice {
  background: #fff8e1;
  border-left: 4px solid var(--hn-gold);
  padding: 15px 25px;
  margin: 0 auto;
  max-width: var(--hn-max);
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hn-price-notice--page { margin: 24px auto; width: calc(100% - 40px); }
.hn-price-notice--inline { margin: 24px 0; border-radius: 8px; }

.hn-price-notice p {
  color: #8B6914;
  font-size: 15px;
  flex: 1;
  min-width: 200px;
}

.hn-price-notice a {
  color: var(--hn-red);
  font-weight: 600;
  white-space: nowrap;
}

.hn-price-notice a:hover { color: var(--hn-red-dark); }

/* —— 通用板块 —— */
.hn-section { padding: clamp(48px, 8vw, 80px) 20px; }
.hn-section-inner { max-width: var(--hn-max); margin: 0 auto; }

.hn-section-header {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 60px);
}

.hn-section-header h3 {
  font-size: clamp(26px, 4vw, 32px);
  color: var(--hn-red);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.hn-section-header h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--hn-gold);
  margin: 15px auto 0;
}

.hn-section-header p {
  color: var(--hn-muted);
  font-size: 16px;
}

.hn-about { background: #fff; }

.hn-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.hn-about-text h4 {
  font-size: 24px;
  color: var(--hn-red);
  margin-bottom: 20px;
  font-weight: 600;
}

.hn-about-text p {
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.hn-about-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 30px;
  border: 2px solid var(--hn-red);
  color: var(--hn-red);
  border-radius: 30px;
  transition: all 0.3s;
  font-weight: 600;
}

.hn-about-btn:hover {
  background: var(--hn-red);
  color: #fff;
}

.hn-about-visual {
  min-height: 280px;
  height: clamp(280px, 38vw, 350px);
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  border: 2px dashed #ddd;
}

/* —— 产品 —— */
.hn-products {
  background: linear-gradient(to bottom, var(--hn-bg), var(--hn-bg-alt));
}

.hn-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 30px);
}

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

.hn-product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  text-align: center;
  display: block;
}

.hn-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hn-product-image {
  height: clamp(180px, 28vw, 250px);
  background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hn-product-image .product-img--placeholder {
  object-fit: contain;
  padding: 24px;
  opacity: 0.55;
}

.hn-product-info { padding: 25px 20px; }

.hn-product-info h4 {
  font-size: 18px;
  color: var(--hn-text);
  margin-bottom: 10px;
  font-weight: 600;
}

.hn-product-info p {
  color: var(--hn-muted-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.hn-product-tag {
  display: inline-block;
  padding: 5px 15px;
  background: var(--hn-red);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
}

.hn-product-note {
  text-align: center;
  margin-top: 40px;
  color: var(--hn-muted-light);
  font-size: 14px;
}

.hn-product-note a {
  color: var(--hn-red);
  font-weight: 600;
}

.hn-product-note a:hover { color: var(--hn-red-dark); }

/* —— 招商 —— */
.hn-join {
  background: linear-gradient(135deg, var(--hn-red) 0%, var(--hn-red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 20px;
}

.hn-join > h3 {
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: 20px;
  font-weight: 700;
}

.hn-join > p {
  font-size: clamp(16px, 2.5vw, 18px);
  margin-bottom: 36px;
  opacity: 0.9;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hn-join-btn {
  display: inline-block;
  padding: 15px 50px;
  background: var(--hn-gold);
  color: var(--hn-red-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hn-join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hn-join-features {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(36px, 6vw, 60px);
  flex-wrap: wrap;
}

.hn-join-feature { text-align: center; max-width: 160px; }

.hn-join-feature .icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 22px;
  border: 2px solid rgba(212, 175, 55, 0.5);
}

.hn-join-feature h5 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.hn-join-feature p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

/* —— 资讯 —— */
.hn-news { background: #fff; }

.hn-news-list {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.hn-news-item {
  display: flex;
  align-items: center;
  padding: clamp(16px, 3vw, 25px);
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
  color: inherit;
  gap: 16px;
}

.hn-news-item:hover {
  background: #fff5f5;
  padding-left: clamp(20px, 4vw, 35px);
}

.hn-news-item:last-child { border-bottom: none; }

.hn-news-date {
  min-width: 72px;
  text-align: center;
  flex-shrink: 0;
}

.hn-news-date .day {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--hn-red);
  line-height: 1;
}

.hn-news-date .month {
  font-size: 13px;
  color: var(--hn-muted-light);
  margin-top: 5px;
}

.hn-news-content { flex: 1; min-width: 0; }

.hn-news-content h4 {
  font-size: 17px;
  color: var(--hn-text);
  margin-bottom: 8px;
  transition: color 0.3s;
  font-weight: 600;
}

.hn-news-item:hover .hn-news-content h4 { color: var(--hn-red); }

.hn-news-content p {
  color: var(--hn-muted-light);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hn-news-more {
  text-align: center;
  margin-top: 30px;
}

.hn-news-more a {
  color: var(--hn-red);
  font-weight: 600;
  font-size: 15px;
}

.hn-news-more a:hover { color: var(--hn-gold); }

/* —— 联系 —— */
.hn-contact {
  background: linear-gradient(to bottom, var(--hn-bg-alt), var(--hn-bg));
}

.hn-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
}

.hn-contact-card {
  background: #fff;
  padding: clamp(28px, 4vw, 40px) 24px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.hn-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hn-contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--hn-red) 0%, var(--hn-red-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 26px;
}

.hn-contact-card h4 {
  font-size: 20px;
  color: var(--hn-text);
  margin-bottom: 15px;
  font-weight: 600;
}

.hn-contact-card p {
  color: var(--hn-muted);
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}

.hn-contact-card .highlight {
  color: var(--hn-red);
  font-weight: 700;
  font-size: 17px;
}

.hn-contact-extra { margin-top: 48px; }

/* —— 友商 —— */
.hn-peers { background: #fff; border-top: 1px solid #eee; }

.hn-peer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hn-peer-list a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #ffcdd2;
  border-radius: 20px;
  font-size: 14px;
  color: var(--hn-muted);
  background: #fff;
  transition: all 0.3s;
}

.hn-peer-list a:hover {
  border-color: var(--hn-red);
  color: var(--hn-red);
  background: #fff5f5;
}

/* —— 页脚 —— */
.hn-footer {
  background: #2c2c2c;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 20px;
  text-align: center;
}

.hn-footer-links {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.hn-footer-links a {
  font-size: 14px;
  transition: color 0.3s;
}

.hn-footer-links a:hover { color: var(--hn-gold); }

.hn-footer p {
  font-size: 14px;
  margin-bottom: 8px;
}

.hn-footer-meta { opacity: 0.85; }
.hn-footer-note { font-size: 13px !important; opacity: 0.7; margin-top: 8px; }

/* —— 内页 —— */
.hn-page-banner {
  background: linear-gradient(135deg, var(--hn-red) 0%, var(--hn-red-dark) 100%);
  color: #fff;
  padding: clamp(40px, 7vw, 64px) 20px clamp(32px, 5vw, 48px);
  text-align: center;
}

.hn-page-banner--compact { text-align: left; padding: 32px 20px 28px; }

.hn-page-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--hn-gold);
  margin-bottom: 10px;
}

.hn-page-banner h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 1px;
}

.hn-breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.hn-breadcrumb a:hover { color: var(--hn-gold); }
.hn-breadcrumb span { margin: 0 6px; opacity: 0.5; }

.hn-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.hn-back:hover { color: var(--hn-gold); }

.hn-page-body { padding-top: 0; }

.hn-prose {
  max-width: 860px;
  margin: 0 auto;
  color: #555;
  line-height: 1.9;
  font-size: 16px;
}

.hn-prose p { margin-bottom: 1em; }
.hn-prose img { max-width: 100%; height: auto; margin: 1em auto; border-radius: 8px; }
.hn-prose h2, .hn-prose h3 { color: var(--hn-text); margin: 1.4em 0 0.6em; }

.hn-empty { text-align: center; color: var(--hn-muted-light); padding: 40px 0; }

.hn-product-detail .hn-product-hero {
  max-width: 480px;
  margin: 0 auto 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.hn-product-detail .hn-product-hero .product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hn-product-detail .hn-product-hero .product-img--placeholder {
  object-fit: contain;
  padding: 40px;
  background: #f8f8f8;
  opacity: 0.55;
}

.hn-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.hn-product-meta span { color: var(--hn-muted-light); margin-right: 8px; }
.hn-product-meta strong { color: var(--hn-red); }

.hn-article-meta {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.hn-article-related {
  max-width: 860px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.hn-article-related h3 {
  font-size: 18px;
  color: var(--hn-red);
  margin-bottom: 16px;
}

.hn-article-related ul { list-style: none; }

.hn-article-related li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hn-article-related a {
  color: var(--hn-muted);
  transition: color 0.3s;
}

.hn-article-related a:hover { color: var(--hn-red); }

.hn-pagination {
  margin-top: 32px;
  text-align: center;
}

.hn-pagination ul {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.hn-pagination a,
.hn-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ffcdd2;
  border-radius: 20px;
  font-size: 14px;
  color: var(--hn-muted);
  background: #fff;
}

.hn-pagination a:hover,
.hn-pagination .active span {
  background: var(--hn-red);
  border-color: var(--hn-red);
  color: #fff;
}

/* —— 响应式 —— */
@media (max-width: 968px) {
  .hn-nav-toggle { display: flex; margin-left: auto; }

  .hn-nav-container { flex-wrap: wrap; padding-bottom: 0; }

  .hn-nav-container nav {
    width: 100%;
    order: 3;
    display: none;
  }

  .hn-nav-container nav.is-open { display: block; }

  .hn-nav-menu {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    background: linear-gradient(135deg, var(--hn-red-dark) 0%, var(--hn-red) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0 12px;
    margin: 0 -20px;
    width: calc(100% + 40px);
  }

  .hn-nav-menu { display: none; }
  .hn-nav-menu.open { display: flex; }

  .hn-nav-menu a {
    min-height: auto;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .hn-nav-menu a:hover,
  .hn-nav-menu a.active {
    border-left-color: var(--hn-gold);
    border-bottom-color: transparent;
  }

  .hn-about-grid { grid-template-columns: 1fr; }
  .hn-products-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-contact-grid { grid-template-columns: 1fr; }
  .hn-join-features { gap: 24px; }
}

@media (max-width: 576px) {
  .hn-products-grid { grid-template-columns: 1fr; }

  .hn-news-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hn-news-item:hover { padding-left: clamp(16px, 3vw, 25px); }

  .hn-price-notice { flex-direction: column; align-items: flex-start; }
}
