/* fashion-horizon-111725/frontend/public/styles.css */

/* =========================================
   1. 基础变量与全局设置 (Variables & Reset)
   ========================================= */
   :root {
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #EAEAEA;
    --color-black: #1A1A1A;
    --color-text-body: #333333;
    --color-text-muted: #666666;
    
    --font-primary: "Source Han Sans CN", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Pico CSS Override - 极简配置 */
    --pico-font-family: var(--font-primary);
    --pico-background-color: var(--color-white);
    --pico-color: var(--color-text-body);
    --pico-primary: var(--color-black);
    --pico-primary-background: var(--color-black);
    --pico-primary-hover: #000000;
    --pico-border-radius: 0; /* 直角设计 */
    --pico-spacing: 1.5rem;
    --pico-typography-spacing-vertical: 1rem;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
  /* 移除 Pico 默认的容器限制，实现全屏布局 */
  body > header, body > main, body > footer {
    padding: 0;
    max-width: 100%;
  }
  
  /* 通用容器 */
  .container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 2rem;
  }
  
  /* 辅助类 */
  .text-center { text-align: center; }
  .text-uppercase { text-transform: uppercase; }
  .mt-0 { margin-top: 0 !important; }
  .mb-0 { margin-bottom: 0 !important; }
  .fw-bold { font-weight: 700; }
  .fw-light { font-weight: 300; }
  
  /* =========================================
     2. 导航栏 (Navigation)
     ========================================= */
  nav.custom-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
  }
  
  .brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-black);
    text-decoration: none;
    text-transform: uppercase;
  }
  
  nav.custom-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
  }
  
  nav.custom-nav a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    --pico-text-decoration: none;
  }
  
  nav.custom-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-black);
    transition: width 0.3s ease;
  }
  
  nav.custom-nav a:hover::after {
    width: 100%;
  }
  
  /* 移动端适配 */
  @media (max-width: 900px) {
    nav.custom-nav {
      padding: 1rem 1.5rem;
      flex-direction: column;
      gap: 1rem;
    }
    nav.custom-nav ul {
      gap: 1.2rem;
      font-size: 0.8rem;
    }
  }
  
  /* =========================================
     3. 首页全屏轮播 (Hero Slider)
     ========================================= */
  .hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-black);
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 18秒总周期，3张图 */
    animation: slideShow 18s infinite; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 遮罩层增加文字可读性 */
  .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
  }
  
  .hero-text {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    text-align: center;
    opacity: 0;
    animation: textFade 18s infinite;
  }
  
  .hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    color: var(--color-white);
    text-transform: uppercase;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 0;
  }
  
  /* 动画延迟设置 */
  .slide:nth-child(1) { animation-delay: 0s; }
  .slide:nth-child(2) { animation-delay: 6s; }
  .slide:nth-child(3) { animation-delay: 12s; }
  
  .slide:nth-child(1) .hero-text { animation-delay: 0s; }
  .slide:nth-child(2) .hero-text { animation-delay: 6s; }
  .slide:nth-child(3) .hero-text { animation-delay: 12s; }
  
  @keyframes slideShow {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); } 
    33.33% { opacity: 1; transform: scale(1); } 
    38.33% { opacity: 0; }
    100% { opacity: 0; }
  }
  
  @keyframes textFade {
    0% { opacity: 0; transform: translateY(30px); }
    5% { opacity: 1; transform: translateY(0); } 
    33.33% { opacity: 1; transform: translateY(0); }
    38.33% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 0; }
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    animation: bounce 2s infinite;
    z-index: 20;
    font-size: 1.5rem;
    opacity: 0.8;
    cursor: pointer;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
  }
  
  @media (max-width: 768px) {
    .hero-text h2 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
  }
  
  /* =========================================
     4. 内容卡片区域 (Home Categories)
     ========================================= */
  .category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 60vh;
    width: 100%;
  }
  
  .category-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: var(--color-gray-light);
  }
  
  .category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .category-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-black);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  .category-card:hover img {
    transform: scale(1.08);
  }
  
  .category-card:hover .category-overlay {
    background: #FFFFFF;
    padding: 1.8rem 3.5rem; /* 轻微放大按钮 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }
  
  @media (max-width: 768px) {
    .category-cards {
      grid-template-columns: 1fr;
      height: auto;
    }
    .category-card {
      height: 350px;
    }
  }
  
  /* =========================================
     5. 网格展示系统 (Grid Gallery) - 女士/男士
     ========================================= */
  .page-header {
    text-align: center;
    padding: 6rem 1rem 3rem;
    margin-top: 3rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
  }
  
  .page-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .filter-tags {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
  }
  
  .filter-tag {
    font-size: 0.9rem;
    color: #999;
    padding-bottom: 4px;
    cursor: default;
    letter-spacing: 1px;
  }
  
  .filter-tag.active {
    color: var(--color-black);
    border-bottom: 1px solid var(--color-black);
  }
  
  /* 标准网格 */
  .grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 3rem 2rem;
    margin-bottom: 4rem;
  }
  
  .product-card {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* 竖向比例 */
    background-color: var(--color-gray-light);
    margin-bottom: 1rem;
  }
  
  .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  .product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
  }
  
  .card-meta {
    text-align: center;
  }
  
  .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
  }
  
  .card-detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
  }
  
  .product-card:hover .card-detail {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* 不对称网格 (Mixed) - 男士页面 */
  .grid-mixed {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 2rem;
  }
  
  .grid-item-wide { grid-column: span 8; grid-row: span 2; }
  .grid-item-tall { grid-column: span 4; grid-row: span 2; }
  .grid-item-std { grid-column: span 4; grid-row: span 1; }
  
  .full-width-banner {
    width: 100%;
    height: 60vh;
    position: relative;
    margin: 4rem 0;
    overflow: hidden;
  }
  .full-width-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .banner-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    backdrop-filter: blur(4px);
  }
  
  @media (max-width: 992px) {
    .grid-gallery { grid-template-columns: repeat(2, 1fr); }
    .grid-mixed { display: flex; flex-direction: column; }
    .grid-mixed > div { height: 400px; width: 100%; }
  }
  @media (max-width: 576px) {
    .grid-gallery { grid-template-columns: 1fr; }
  }
  
  /* =========================================
     6. 瀑布流布局 (Masonry) - 配饰
     ========================================= */
  .masonry-wrapper {
    column-count: 3;
    column-gap: 2rem;
  }
  
  .masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .masonry-item img {
    width: 100%;
    display: block;
    background-color: var(--color-gray-light);
  }
  
  .masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: var(--color-black);
  }
  
  .masonry-item:hover .masonry-overlay {
    transform: translateY(0);
  }
  
  @media (max-width: 768px) { .masonry-wrapper { column-count: 2; } }
  @media (max-width: 480px) { .masonry-wrapper { column-count: 1; } }
  
  /* =========================================
     7. 时尚故事 (Stories) & 关于我们
     ========================================= */
  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
  }
  
  .story-grid.reverse {
    direction: rtl;
  }
  .story-grid.reverse .story-content {
    direction: ltr;
  }
  
  .story-img img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  
  .story-content {
    padding: 2rem;
  }
  
  .story-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 1rem;
    display: block;
  }
  
  .story-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
  }
  
  .story-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
  }
  
  /* 关于我们 */
  .about-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .about-statement {
    font-size: 1.5rem;
    line-height: 2;
    font-weight: 300;
    margin-bottom: 4rem;
  }
  
  .about-visual {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.9;
  }
  
  @media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
    .story-title { font-size: 1.5rem; }
    .about-statement { font-size: 1.1rem; }
  }
  
  /* =========================================
     8. 页脚 (Footer)
     ========================================= */
  footer {
    padding: 4rem 0 2rem;
    text-align: center;
    background-color: var(--color-white);
  }
  
  .footer-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-gray-medium);
    margin: 0 auto 2rem;
  }
  
  .copyright {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-family: var(--font-primary);
  }
  
  /* 动态插槽，符合NextJS/Vue规范的预留类 */
  .slot-container { display: contents; } 