/* Leibal风格案例详情页面样式 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* 主容器 */
.leibal-main {
    padding-top: 72px; /* 导航栏高度 */
    min-height: 100vh;
    background-color: #fff;
}

/* Hero Section - 10列网格布局 */
.hero-section {
    padding: 0 16px;
    margin-bottom: 48px;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 0 64px;
        margin-bottom: 128px;
    }
    
    .hero-grid {
        display: grid;
        grid-template-columns: 3fr 7fr;
        gap: 32px;
        align-items: start;
    }
}

/* 左侧项目信息 */
.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding-bottom: 32px;
}

@media (max-width: 1023px) {
    .hero-info {
        min-height: auto;
        padding-bottom: 0;
    }
}

.hero-content {
    margin-bottom: 24px;
}

.project-title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    width: 60%;
}

@media (min-width: 1024px) {
    .project-title {
        font-size: 40px;
        margin-bottom: 16px;
    }
}

.project-designer {
    font-size: 18px;
    font-weight: 300;
    color: #666;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .project-designer {
        font-size: 20px;
        margin-bottom: 64px;
    }
}

/* 移动端图片 */
.mobile-hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 48px;
}

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

.mobile-moods-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 1024px) {
    .mobile-hero-image {
        display: none;
    }
}

/* 桌面端主图片 */
.hero-image-container {
    display: none;
}

@media (min-width: 1024px) {
    .hero-image-container {
        display: flex;
        justify-content: flex-end;
    }
    
    .desktop-hero-image {
        position: relative;
        height: 100vh;
        min-height: 100px;
        max-height: 800px;
        width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: flex-end;
    }
    
    .desktop-hero-image img {
        height: 100%;
        max-height: 800px;
        width: auto;
        object-fit: cover;
    }
    
    .desktop-moods-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        color: white;
        font-size: 12px;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        z-index: 10;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
}

/* 项目元数据 */
.project-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

@media (min-width: 1024px) {
    .project-metadata {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        margin-top: 0;
    }
}

.metadata-item {
    display: flex;
    flex-direction: column;
}

.metadata-label {
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
}

.metadata-value {
    font-weight: 300;
    color: #666;
}

/* Post Content Section */
.post-content-section {
    padding: 0 16px;
}

@media (min-width: 1024px) {
    .post-content-section {
        padding: 0 64px;
    }
}

.content-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 1024px) {
    .content-grid {
        display: grid;
        grid-template-columns: 8fr 2fr;
        gap: 32px;
    }
}

/* 左侧内容区 */
.content-left {
    display: block;
}

@media (min-width: 1024px) {
    .content-left {
        display: grid;
        grid-template-columns: 3fr 5fr;
        gap: 32px;
    }
}

/* 文字描述区域 */
.description-area {
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    .description-area {
        margin-bottom: 0;
    }
}

.sticky-content {
    position: relative;
}

@media (min-width: 1024px) {
    .sticky-content {
        position: sticky;
        top: 143px;
        width: 100%;
    }
}

.project-description {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
    color: #333;
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    .project-description {
        margin-bottom: 0;
    }
}

.project-description p {
    margin-bottom: 32px;
    margin-right: 32px;
}

.project-description p:last-child {
    margin-bottom: 0;
}

/* Design Details */
.design-details {
    margin-top: 48px;
}

@media (min-width: 1024px) {
    .design-details {
        margin-top: 96px;
    }
}

.details-title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
    .details-title {
        margin-bottom: 64px;
    }
}

.detail-card {
    margin-bottom: 32px;
}

.detail-link {
    display: block;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.05em;
}

.detail-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-link:hover .detail-overlay {
    opacity: 1;
}

.detail-overlay span {
    color: white;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-info {
    margin-bottom: 20px;
}

.detail-meta {
    margin-bottom: 4px;
}

.detail-brand {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-category {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.detail-name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.detail-price {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.detail-reference {
    font-size: 12px;
    font-weight: 300;
    color: #666;
}

.image-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #ddd;
    color: #666;
    cursor: pointer;
}

.image-link:hover {
    text-decoration-color: #000;
    color: #000;
}

/* 图片序列区域 */
.image-sequence {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 768px) {
    .image-sequence {
        gap: 64px;
    }
}

.sequence-item {
    position: relative;
    cursor: pointer;
}

.sequence-item img {
    width: 100%;
    height: auto;
    display: block;
}

.sequence-moods {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

.sequence-item:hover .sequence-moods {
    opacity: 1;
}

/* 右侧边栏 */
.content-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .content-sidebar {
        display: block;
    }
}

.sidebar-content {
    position: sticky;
    top: 143px;
}

.related-section {
    margin-bottom: 48px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.related-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
}

.sidebar-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 16px;
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-card:hover .sidebar-image img {
    transform: scale(1.03);
}

.sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-date {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

.sidebar-category {
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.sidebar-project-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sidebar-designer {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    font-style: italic;
}

/* 导航区域 */
.post-navigation {
    margin-top: 96px;
    padding: 40px 16px 0;
    border-top: 1px solid #eaeaea;
}

@media (min-width: 1024px) {
    .post-navigation {
        padding: 40px 64px 0;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 767px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }
}

.nav-btn {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    background: #fff;
    letter-spacing: -0.01em;
}

.nav-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

@media (max-width: 767px) {
    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

.nav-center {
    text-align: center;
    flex: 1;
}

@media (max-width: 767px) {
    .nav-center {
        order: -1;
        flex: none;
    }
}

.nav-current {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .project-title {
        font-size: 24px;
        width: 80%;
    }
    
    .project-designer {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .project-metadata {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .project-description p {
        margin-right: 0;
        margin-bottom: 24px;
    }
    
    .image-sequence {
        gap: 32px;
    }
    
    .details-title {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    .design-details {
        margin-top: 32px;
    }
}

/* 滚动动画 */
.sequence-item img,
.sidebar-image img,
.detail-image img {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 选择文本样式 */
::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
} 