/**
 * YOS 资料站 v9 · 首页样式
 * 电影级宣发页 · 8 屏滚动
 */

@layer page-layout {
  /* 首页封面特殊样式 */
  .v9-hero--home {
    background: linear-gradient(180deg, var(--depth-1) 0%, var(--depth-2) 100%);
  }
  
  .v9-hero__sub {
    margin-top: var(--g-md);
    font-size: 14px;
    color: var(--parchment-ink);
    opacity: 0.7;
  }
  
  .v9-hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--g-md);
    margin-top: var(--g-xl);
  }
  
  .v9-hero__link {
    font-size: 13px;
    color: var(--foam-mute);
    transition: color var(--dur-fast) var(--ease-state);
  }
  
  .v9-hero__link:hover {
    color: var(--gold);
  }
  
  .v9-hero__scroll-hint {
    position: absolute;
    bottom: var(--g-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--g-sm);
    font-size: 12px;
    color: var(--foam-dim);
    animation: scroll-hint-bounce 2s ease-in-out infinite;
  }
  
  @keyframes scroll-hint-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
  }
  
  /* 档案目录 */
  .v9-toc-rail {
    padding: var(--g-2xl) 0;
  }
  
  .v9-toc-rail .v9-h2 {
    margin-bottom: var(--g-md);
  }
  
  .v9-toc-card {
    display: block;
    text-decoration: none;
  }
  
  .v9-toc-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: var(--g-sm) 0;
    color: var(--foam);
  }
  
  .v9-toc-card p {
    font-size: 13px;
    color: var(--foam-mute);
    margin: 0;
  }
  
  /* 产品证明 */
  .v9-proof-grid {
    padding: var(--g-2xl) 0;
  }
  
  .v9-proof-intro {
    margin-bottom: var(--g-xl);
  }
  
  .v9-proof-quote {
    margin-top: var(--g-lg);
    padding-left: var(--g-lg);
    border-left: 2px solid var(--gold);
    font-style: italic;
    color: var(--foam-mute);
  }
  
  .v9-proof-quote span {
    display: block;
    margin-top: var(--g-sm);
    font-size: 13px;
    font-style: normal;
    color: var(--foam-dim);
  }
  
  .v9-proof-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--g-md);
  }
  
  .v9-proof-stats--disclaimer {
    grid-template-columns: 1fr;
  }
  
  /* 三角色预览 */
  .v9-role-cards {
    padding: var(--g-2xl) 0;
  }
  
  .v9-role-cards__grid {
    display: flex;
    flex-direction: column;
    gap: var(--g-lg);
    margin-top: var(--g-xl);
  }
  
  .v9-role-card {
    padding: var(--g-xl);
  }
  
  .v9-role-card h3 {
    font-size: 20px;
    margin: var(--g-sm) 0;
  }
  
  .v9-role-card p {
    margin-bottom: var(--g-lg);
  }
  
  /* 海报 CTA */
  .v9-parchment {
    margin: var(--g-2xl) 0;
  }
  
  .v9-parchment__body .v9-btn-gold {
    margin-top: var(--g-lg);
    display: inline-flex;
  }
  
  /* 联系方式 */
  .v9-contact {
    padding: var(--g-2xl) 0;
  }
  
  .v9-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--g-md);
    margin-top: var(--g-xl);
  }
  
  .v9-contact__grid p {
    margin: var(--g-sm) 0;
  }
  
  .v9-contact__grid a {
    color: var(--gold);
    font-size: 14px;
  }
  
  .v9-contact__qr {
    width: 120px;
    height: 120px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--foam-dim);
  }
  
  /* 页脚罗盘 */
  .v9-footer__compass {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--g-md);
    opacity: 0.6;
  }
  
  /* 平板断点 */
  @media (min-width: 768px) {
    .v9-hero__ctas {
      flex-direction: row;
    }
    
    .v9-proof-stats {
      grid-template-columns: repeat(4, 1fr);
    }
    
    .v9-proof-stats--disclaimer {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .v9-contact__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* 电脑断点 */
  @media (min-width: 1280px) {
    .v9-hero__title-parchment {
      max-width: 700px;
    }
    
    .v9-toc-grid {
      gap: var(--g-lg);
    }
    
    .v9-proof-grid {
      gap: var(--g-xl);
    }
  }
}

@layer page-component {
  /* 数据计数器动画 */
  [data-counter] {
    transition: all var(--dur-slow) var(--ease-pagein);
  }
  
  /* 首页特有：封面羊皮纸悬停效果 */
  .v9-hero__title-parchment:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-panel), var(--shadow-glow-gold);
  }
  
  /* 目录卡片悬停 */
  .v9-toc-card:hover .v9-mono {
    color: var(--gold-soft);
  }
  
  .v9-toc-card:hover h3 {
    color: var(--gold);
  }
}
