/* assets/css/style.css - AIMCN.NET Design System */

/* 1. 基础重置与字体排版 */
html {
  scroll-behavior: smooth;
  color: #0F172A;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shared brand mark sizing */
header img[src*='7caae55c-2292-4c51-a6d7-89c6df3c3289.webp'] {
  width: auto;
  height: 48px;
  max-width: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  header img[src*='7caae55c-2292-4c51-a6d7-89c6df3c3289.webp'] {
    height: 64px;
    max-width: 64px;
  }

  #site-header > .max-w-7xl {
    height: 80px;
  }
}

@media (min-width: 1024px) {
  header img[src*='7caae55c-2292-4c51-a6d7-89c6df3c3289.webp'] {
    height: 80px;
    max-width: 80px;
  }

  #site-header > .max-w-7xl {
    height: 96px;
  }
}

footer img[src*='7caae55c-2292-4c51-a6d7-89c6df3c3289.webp'] {
  width: auto;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
}

body {
  color: #475569;
  line-height: 1.75;
  min-height: 100vh;
}

/* 2. 最小触控区域规范 (Min 44px) */
.tap-target-44 {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 3. 移动端抽屉绝对隐藏规则：
   未激活时强制 max-height:0、零 padding、零 border、隐藏且无指针事件，完全不占文档流高度 */
.mobile-drawer-closed {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.2s ease, visibility 0.2s;
}

.mobile-drawer-open {
  max-height: 100vh !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
  transition: max-height 0.35s ease-in-out, opacity 0.25s ease, visibility 0.25s;
}

/* 4. 头部吸顶状态过渡 (40-80px 滚动后生效) */
.site-header {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
}

/* 5. 卡片设计规范 (16px 圆角、极细高亮边框、克制微悬浮) */
.article-card {
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  background-color: #FFFFFF;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #BFDBFE;
}

/* 6. 响应式表格在移动端强制垂直堆叠，杜绝横向滚动溢出 */
@media (max-width: 768px) {
  .responsive-table, 
  .responsive-table thead, 
  .responsive-table tbody, 
  .responsive-table th, 
  .responsive-table td, 
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
  }

  .responsive-table tr {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.875rem;
    background-color: #FFFFFF;
  }

  .responsive-table td {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #F1F5F9;
    text-align: right;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #0F172A;
    text-align: left;
    padding-right: 1rem;
    flex-shrink: 0;
  }
}

/* 7. 手风琴 (Accordion) 折叠交互 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 800px;
  transition: max-height 0.35s ease-in-out;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* 8. 通用出版物级卡片与视觉交互 (Shared Editorial Components) */
.editorial-card {
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.editorial-card:hover {
  transform: translateY(-2px);
  border-color: #DBEAFE;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

/* 9. 紧凑型文献表格样式 (Compact Editorial Tables) */
.editorial-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.editorial-table th {
  background-color: #F8FAFC;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #E2E8F0;
}

.editorial-table td {
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  color: #475569;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.editorial-table tbody tr:last-child td {
  border-bottom: none;
}

.editorial-table tbody tr:hover td {
  background-color: #F8FAFC;
}

/* 10. 长文阅读区紧凑排版优化 (Prose Rhythm Optimization) */
.editorial-prose p {
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
  line-height: 1.7;
}

.editorial-prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.editorial-prose h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

/* 11. HERO EDITORIAL RIGHT-BLEED PHOTOGRAPHIC COMPOSITION
   Composition: [ PURE WHITE CONTENT AREA (40-45%) ] [ ULTRA-WIDE SOFT FADE (30-40%) ] [ FULL PHOTOGRAPH (RIGHT EDGE) ]
   The photograph is positioned absolute to the hero section, occupying the right 55-62% of the viewport and 100% height,
   reaching the right section edge with no card border, no shadow, and an expansive seamless gradient mask. */

.hero-bleed-section {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
  min-height: 480px;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-bleed-section {
    min-height: 520px;
  }
}

@media (min-width: 1280px) {
  .hero-bleed-section {
    min-height: 550px;
  }
}

/* Background Photographic Layer (Right 60% - 65% Bleed to Screen Edge) */
.hero-backdrop-bleed {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  z-index: 1;
}

@media (min-width: 1280px) {
  .hero-backdrop-bleed {
    width: 63%;
  }
}

@media (min-width: 1536px) {
  .hero-backdrop-bleed {
    width: 65%;
  }
}

.hero-backdrop-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  opacity: 1 !important;
}

@media (min-width: 1024px) {
  /* No overall mask that dims the subject - photograph stays 100% sharp and clear */
  .hero-backdrop-bleed {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* White gradient overlay exclusively on the LEFT edge of the image
     0% - 10%: Pure solid white to seamlessly merge with white canvas
     10% - 30%: Smooth soft fade emergence
     30% - 45%: Very subtle white trace
     50% - 100%: 100% completely transparent - subject, face, clothes, UI have normal contrast and 100% opacity */
  .hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to right,
      #FFFFFF 0%,
      #FFFFFF 10%,
      rgba(255, 255, 255, 0.82) 20%,
      rgba(255, 255, 255, 0.40) 34%,
      rgba(255, 255, 255, 0.10) 45%,
      rgba(255, 255, 255, 0) 54%
    );
  }

  .hero-backdrop-overlay-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to right,
      #FFFFFF 0%,
      #FFFFFF 10%,
      rgba(255, 255, 255, 0.82) 20%,
      rgba(255, 255, 255, 0.40) 34%,
      rgba(255, 255, 255, 0.10) 45%,
      rgba(255, 255, 255, 0) 54%
    );
  }
}

/* Mobile-only photographic visual with seamless top blend */
@media (max-width: 1023px) {
  .hero-mobile-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .hero-mobile-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-mobile-fade-top {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      #FFFFFF 0%,
      rgba(255, 255, 255, 0.7) 12%,
      rgba(255, 255, 255, 0) 35%
    );
  }
}

/* Legacy helper classes compatibility */
.hero-image-fade-wrapper {
  position: relative;
  width: 100%;
}
.hero-image-fade {
  position: relative;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-image-fade {
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.05) 15%,
      rgba(0, 0, 0, 0.25) 35%,
      rgba(0, 0, 0, 0.65) 55%,
      rgba(0, 0, 0, 0.92) 75%,
      #000000 90%,
      #000000 100%
    );
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.05) 15%,
      rgba(0, 0, 0, 0.25) 35%,
      rgba(0, 0, 0, 0.65) 55%,
      rgba(0, 0, 0, 0.92) 75%,
      #000000 90%,
      #000000 100%
    );
  }
  .hero-fade-overlay-white,
  .hero-fade-overlay-blue-tint,
  .hero-fade-overlay-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to right,
      #FFFFFF 0%,
      rgba(255, 255, 255, 0.95) 12%,
      rgba(255, 255, 255, 0.75) 28%,
      rgba(255, 255, 255, 0.30) 50%,
      transparent 75%
    );
  }
}
