/* ===================================
    CSS Variables - Ivy League Academic Style
   =================================== */
:root {
  /* Ivy League Academic Style Variables */
  --oxford-blue: #002147;   /* Primary color: Oxford deep blue */
  --warm-gold: #C5A059;     /* Accent color: parchment warm gold */
  --light-gray: #F8F9FA;    /* Background color: very light cool gray */
  --white: #FFFFFF;         /* Polar snow white */
  --border-color: #E2E8F0;  /* Minimalist solid border */
  --text-main: #333333;     /* Body text color */
  --text-muted: #666666;    /* Secondary/muted text */
  --shadow-sm: 0 4px 12px rgba(0, 33, 71, 0.05); /* Subtle shadow */

  /* Mapped variables for existing component styles */
  --color-primary: #002147;
  --color-primary-hover: #C5A059;
  --color-primary-light: #F8F9FA;
  --color-secondary: #C5A059;
  --color-secondary-hover: #B8904A;

  --color-text-heading: #002147;
  --color-text-body: #333333;
  --color-text-secondary: #333333;
  --color-text-muted: #666666;

  --color-border: #E2E8F0;
  --color-border-light: #E2E8F0;

  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F9FA;
  --color-bg-tertiary: #F8F9FA;
  --color-bg-card: #FFFFFF;

  --color-link: #002147;
  --color-link-hover: #C5A059;

  --color-overlay-dark: rgba(0, 33, 71, 0.8);

  --color-tag-bg: #F8F9FA;
  --color-tag-bg-hover: #E2E8F0;

  /* Social media colors */
  --color-social-facebook: #3b5998;
  --color-social-twitter: #1da1f2;
  --color-social-linkedin: #0077b5;
  --color-social-whatsapp: #25D366;
  --color-social-pinterest: #bd081c;
  --color-social-email: #777;
}

/* ===================================
    Reset & Base - 基础重置与排版
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--light-gray);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--oxford-blue);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--oxford-blue);
  transition: color 0.3s;
}

a:hover {
  color: var(--warm-gold);
}

/* ===================================
    Layout - 布局样式（通用）
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* ===================================
    Animations - 滚动显示动画（通用）
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease forwards;
}

.animate-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fade-left 0.6s ease forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  animation: scale-in 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-left {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  to { opacity: 1; transform: scale(1); }
}

/* ===================================
    Buttons - 按钮样式（通用）
   =================================== */
.btn-primary {
  background-color: var(--oxford-blue);
  color: var(--warm-gold);
  padding: 14px 28px;
  border-radius: 4px; /* Minimal corner radius */
  font-weight: 600;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid var(--oxford-blue);
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--oxford-blue);
  transform: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--oxford-blue);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--oxford-blue);
  background-color: var(--light-gray);
  color: var(--oxford-blue);
  transform: none;
}

/* ===================================
    Navbar - 导航栏（通用）
   =================================== */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--oxford-blue);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
}

.navbar-btn {
  background-color: var(--white);
  color: var(--oxford-blue);
  border: 1px solid var(--oxford-blue);
  padding: 8px 20px;
  border-radius: 4px;
}

.navbar-btn:hover {
  background-color: var(--oxford-blue);
  color: var(--warm-gold);
}

/* ===================================
    Footer - 页脚（通用）
   =================================== */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--oxford-blue);
  margin-bottom: 16px;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer ul {
  list-style: none;
}

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

.footer ul a {
  color: var(--text-main);
  font-size: 15px;
}

.footer ul a:hover {
  color: var(--warm-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===================================
    Card - 卡片样式（通用）
   =================================== */
.card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a:hover .card {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
    Breadcrumb Styles 面包屑组件（通用）
   =================================== */
.wxkn-breadcrumb-wrapper {
  padding: 0.75rem 0;
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}

.wxkn-breadcrumb-wrapper--has-container {
  padding: 0.75rem 0;
}

.wxkn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-left: 1rem;
}

.wxkn-breadcrumb-wrapper--has-container .wxkn-breadcrumb {
  margin-left: 0;
}

.wxkn-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

.wxkn-breadcrumb a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 0.75rem;
  user-select: none;
}

.wxkn-breadcrumb-current {
  color: var(--color-text-heading);
  font-weight: 600;
}

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

.wxkn-breadcrumb--light .wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

.wxkn-breadcrumb--compact {
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb {
  font-size: 13px;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb-separator {
  margin: 0 0.5rem;
}

.wxkn-breadcrumb--float {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  background: none;
  border: none;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-left: 0;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a {
  color: var(--color-text-secondary);
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 8px;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

@media (max-width: 767px) {
  .wxkn-breadcrumb-wrapper {
    padding: 0.5rem 0;
  }

  .wxkn-breadcrumb {
    font-size: 13px;
    margin-left: 0;
  }

  .wxkn-breadcrumb-separator {
    margin: 0 0.5rem;
  }

  .wxkn-breadcrumb--float {
    bottom: 12px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb {
    font-size: 13px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
    margin: 0 6px;
  }
}

/* ===================================
    Prose - 内容排版样式（通用）
   =================================== */
.prose {
  color: var(--color-text-body);
  line-height: 1.8;
}

.prose h2, .prose h3, .prose h4 {
  color: var(--color-text-heading);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-text-heading);
  margin: 2rem 0;
}

.prose img {
  margin: 2.5rem 0;
}

.prose a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--color-link-hover);
}

/* ===================================
    Single Product Page - 产品详情页
   =================================== */
.single-product-page {

}

.single-product-page .text-body p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-product-page .text-body h2,
.single-product-page .text-body h3,
.single-product-page .text-body h4 {
  color: var(--color-text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.single-product-page .text-body h2 { font-size: 1.75rem; }
.single-product-page .text-body h3 { font-size: 1.5rem; }
.single-product-page .text-body h4 { font-size: 1.25rem; }

.single-product-page .text-body ul,
.single-product-page .text-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body ul { list-style-type: disc; }
.single-product-page .text-body ol { list-style-type: decimal; }
.single-product-page .text-body li { margin-bottom: 0.5rem; }

.single-product-page .product-card-bento {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.single-product-page .product-card-title {
  color: var(--color-text-heading);
  transition: color 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.single-product-page .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.single-product-page .product-card-bento:hover .card-overlay {
  opacity: 1;
}

.single-product-page .card-overlay-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: translate(0, 12px);
  opacity: 0;
  transition: all 0.35s ease;
}

.single-product-page .product-card-bento:hover .card-overlay-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

.single-product-page .form-card-hover {
  position: relative;
  overflow: hidden;
}

.single-product-page .form-card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-secondary);
  transition: width 0.5s ease;
}

.single-product-page .form-card-hover:hover::before {
  width: 100%;
}

.single-product-page .section-product-matrix {
  background: transparent;
}

/* ===================================
    Single Post Page - 博客详情页
   =================================== */
.single-post-page {

}

.single-post-page .single-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .single-post-page .single-post-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.single-post-page .single-post-main {
  padding-top: 100px;
  background-color: var(--color-bg-secondary);
}

.single-post-page .single-post-section {
  padding-top: 2rem;
}

.single-post-page .post-content .post-featured-image {
  margin-bottom: 2rem;
}

.single-post-page .post-content .post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-post-page .post-content .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.single-post-page .post-content .post-cat-label {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-post-page .post-content .post-date-label {
  color: var(--color-text-muted);
  font-size: 13px;
}

.single-post-page .post-content .post-title {
  color: var(--color-text-heading);
  margin-bottom: 2rem;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

.single-post-page .post-content .post-body {
  color: var(--color-text-body);
  line-height: 1.8;
  font-size: 16px;
}

.single-post-page .post-content .post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-post-page .post-content .post-tags .tags-label {
  color: var(--color-text-heading);
  font-size: 14px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.single-post-page .post-content .post-tags a {
  color: var(--color-primary);
  background: var(--color-tag-bg);
  font-size: 13px;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.single-post-page .post-content .post-tags a:hover {
  background: var(--color-tag-bg-hover);
}

.single-post-page .post-content .post-share {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.single-post-page .post-content .post-share .share-label {
  color: var(--color-text-heading);
  font-size: 14px;
  font-weight: 600;
}

.single-post-page .post-content .post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.single-post-page .post-content .post-share a:hover {
  transform: translateY(-2px);
}

.single-post-page .post-content .post-share a svg {
  width: 18px;
  height: 18px;
}

.single-post-page .post-content .post-share a.share-facebook:hover {
  background-color: var(--color-social-facebook);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-twitter:hover {
  background-color: var(--color-social-twitter);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-linkedin:hover {
  background-color: var(--color-social-linkedin);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-whatsapp:hover {
  background-color: var(--color-social-whatsapp);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-pinterest:hover {
  background-color: var(--color-social-pinterest);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-email:hover {
  background-color: var(--color-social-email);
  color: #fff;
}

.single-post-page .post-content .post-share a.share-copy:hover {
  background-color: var(--color-text-heading);
  color: #fff;
}

/* Sidebar */
.single-post-page .post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.single-post-page .post-sidebar .sidebar-widget {
  padding: 1.5rem;
}

.single-post-page .post-sidebar .sidebar-widget h4 {
  color: var(--color-text-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.single-post-page .related-posts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-post-page .related-posts-sidebar .related-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
}

.single-post-page .related-posts-sidebar .related-item:last-child {
  border-bottom: none;
}

.single-post-page .related-posts-sidebar .related-item:hover {
  background: var(--color-border-light);
}

.single-post-page .related-posts-sidebar .related-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.single-post-page .related-posts-sidebar .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-page .related-posts-sidebar .related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.single-post-page .related-posts-sidebar .related-title {
  color: var(--color-text-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.single-post-page .related-posts-sidebar .related-date {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ===================================
    Responsive - 通用响应式
   =================================== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
