/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@300;400;700&display=swap'); */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: #ffffff;
  color: #333;
}

.font-serif {
  font-family: 'Noto Serif SC', serif;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #C8102E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #be123c;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #C8102E;
  font-family: 'Noto Serif SC', serif;
}

.nav-brand p {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #666;
  margin-top: -0.25rem;
}

.nav-menu {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  margin-left: 2.5rem;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #E11D48;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8102E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  color: #E11D48;
}

/* 主内容区域 */
.main-content {
  padding-top: 80px;
}

/* 章节通用样式 */
.section {
  padding: 6rem 1rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #C8102E;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111;
  font-family: 'Noto Serif SC', serif;
}

.section-desc {
  font-size: 1.25rem;
  color: #666;
  font-weight: 300;
  max-width: 32rem;
  margin: 1rem auto 0;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.5s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-image {
  aspect-ratio: 4/4;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
}

/* .card:hover .card-image {
  transform: scale(1.1) rotate(2deg);
  -webkit-transform: scale(1.1) rotate(2deg);
  -moz-transform: scale(1.1) rotate(2deg);
  -ms-transform: scale(1.1) rotate(2deg);
  -o-transform: scale(1.1) rotate(2deg);
} */

.card-content {
  padding: 2rem;
  text-align: center;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  font-family: 'Noto Serif SC', serif;
}

.card-desc {
  color: #666;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* 产品卡片悬停效果 */
.product-card {
  transition: all 0.5s ease;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-card .product-image {
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1) rotate(2deg);
}

/* FAQ卡片悬停效果 */
.faq-card {
  transition: all 0.3s ease;
}

.faq-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faq-number {
  transition: transform 0.3s ease;
}

.faq-card:hover .faq-number {
  transform: scale(1.1);
}

/* 新闻卡片悬停效果 */
.news-card {
  transition: all 0.5s ease;
}

.news-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-card .news-image {
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.1);
}

/* 科技卡片悬停效果 */
.tech-card {
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tech-card .tech-icon {
  transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.1);
}

/* 统计数字悬停效果 */
.stat-number {
  transition: transform 0.3s ease;
}

.stat-number:hover {
  transform: scale(1.1);
}

/* 社交媒体图标悬停效果 */
.social-icon {
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* 按钮样式 */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #C8102E;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-outline {
  border-color: #e5e7eb;
  color: #374151;
  background: transparent;
}

.btn-outline:hover {
  border-color: #E11D48;
  color: #E11D48;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 图片轮播 */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
}

/* 成分卡片 */
.ingredient-card {
  transition: all 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 标签页切换 */
.tab-button {
  transition: all 0.3s ease;
  position: relative;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8102E;
  transition: width 0.3s ease;
}

.tab-button.active::after {
  width: 100%;
}

.tab-button.active {
  color: #C8102E;
  font-weight: 600;
}

/* 评分星星 */
.stars {
  color: #FBBF24;
}

/* 页脚样式 */
.footer {
  background-color: #111827;
  color: white;
  padding: 5rem 1rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.footer-brand h3 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #C8102E;
  margin-bottom: 1rem;
  font-family: 'Noto Serif SC', serif;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-brand .desc {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 300;
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #9ca3af;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: white;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.grid {
  display: grid;
}

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

.gap-10 {
  gap: 2.5rem;
}

/* 产品图片容器 */
.product-image-container {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-btn,
.pagination li a {
  width: 48px;
  height: 48px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
}

.page-btn:hover,
.pagination li a:hover {
  border-color: #C8102E;
  color: #C8102E;
}

.page-btn.active,
.pagination li.active a {
  background: #C8102E;
  color: white;
  border-color: #C8102E;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.products-list .on {
  background-color: #C8102E;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.products-list .on:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  -webkit-transform: translateY(-4px) scale(1.05);
  -moz-transform: translateY(-4px) scale(1.05);
  -ms-transform: translateY(-4px) scale(1.05);
  -o-transform: translateY(-4px) scale(1.05);
}

.pagination li {
  display: flex;
}

/* 文章内容样式 */
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #334155;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #334155;
}

.article-content a {
  color: #c8102e;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #36CFC9;
}

.article-content blockquote {
  border-left: 4px solid #c8102e;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #475569;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.article-content .highlight {
  background: linear-gradient(120deg, #c8102e 0%, #fed6e3 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* 相关文章卡片样式 */
.related-article-card {
  transition: all 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-5px);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8102e, #c8102e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

/* 浮动装饰元素 */
@keyframes pulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.3;
  }
}

.animate-pulse-custom {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}