.case-detail-page {
  min-height: 100vh;
  background: #f8f9fa;
  
  .page-header {
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    
    .header-left {
      display: flex;
      align-items: center;
      gap: 16px;
      
      .back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        color: #495057;
        cursor: pointer;
        transition: all 0.2s;
        
        &:hover {
          background: #e9ecef;
          color: #212529;
        }
        
        svg {
          stroke-width: 2;
        }
      }
      
      .breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #6c757d;
        font-size: 14px;
        
        span:last-child {
          color: #212529;
          font-weight: 500;
        }
        
        svg {
          stroke-width: 2;
          opacity: 0.5;
        }
      }
    }
    
    .header-actions {
      display: flex;
      gap: 12px;
      
      .action-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background: white;
        color: #495057;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
        
        &:hover {
          border-color: #007bff;
          color: #007bff;
        }
        
        &.favorite-btn.active {
          background: #fff3cd;
          border-color: #ffc107;
          color: #856404;
          
          svg {
            fill: #ffc107;
          }
        }
        
        svg {
          stroke-width: 2;
        }
      }
    }
  }
  
  .main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    
    @media (max-width: 1200px) {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  
  .left-section {
    .cover-image {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      background: white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      margin-bottom: 24px;
      
      .cover-img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        display: block;
      }
      
      .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.3) 0%,
          transparent 30%,
          transparent 70%,
          rgba(0, 0, 0, 0.3) 100%
        );
        
        .case-badges {
          position: absolute;
          top: 16px;
          left: 16px;
          display: flex;
          gap: 8px;
          
          .badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            color: white;
            
            &.project-type {
              background: rgba(0, 123, 255, 0.9);
            }
            
            &.space-type {
              background: rgba(40, 167, 69, 0.9);
            }
            
            &.rendering-level {
              background: rgba(255, 193, 7, 0.9);
              color: #212529;
            }
          }
        }
      }
    }
    
    .basic-info {
      background: white;
      padding: 24px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      
      .case-name {
        font-size: 28px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 24px 0;
        line-height: 1.3;
      }
      
      .meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        
        .meta-item {
          display: flex;
          align-items: flex-start;
          gap: 12px;
          
          svg {
            color: #6c757d;
            margin-top: 2px;
            flex-shrink: 0;
          }
          
          .meta-content {
            flex: 1;
            
            .meta-label {
              display: block;
              font-size: 12px;
              color: #6c757d;
              margin-bottom: 4px;
              text-transform: uppercase;
              letter-spacing: 0.5px;
            }
            
            .meta-value {
              display: block;
              font-size: 16px;
              font-weight: 500;
              color: #212529;
            }
            
            .team-badge {
              display: inline-block;
              margin-left: 8px;
              padding: 2px 8px;
              background: #e3f2fd;
              color: #1976d2;
              border-radius: 12px;
              font-size: 11px;
              font-weight: 500;
            }
          }
        }
      }
    }
  }
  
  .right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    .info-section {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      
      .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 16px 0;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      
      &.internal-section {
        border: 2px solid #e3f2fd;
        background: #fafbfc;
        
        .section-title {
          color: #1976d2;
        }
      }
    }
    
    .style-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      
      .style-tag {
        padding: 6px 12px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 20px;
        font-size: 13px;
        color: #495057;
        transition: all 0.2s;
        
        &:hover {
          background: #e9ecef;
          border-color: #adb5bd;
        }
      }
    }
    
    .review-content {
      position: relative;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid #007bff;
      
      .quote-icon {
        position: absolute;
        top: -8px;
        left: 12px;
        font-size: 32px;
        color: #007bff;
        background: white;
        padding: 0 4px;
      }
      
      .review-text {
        margin: 0;
        font-style: italic;
        color: #495057;
        line-height: 1.6;
      }
    }
    
    .stats-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      
      .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
        
        .stat-icon {
          width: 40px;
          height: 40px;
          background: #007bff;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          flex-shrink: 0;
          
          svg {
            stroke-width: 2;
          }
        }
        
        .stat-content {
          flex: 1;
          
          .stat-value {
            display: block;
            font-size: 20px;
            font-weight: 600;
            color: #212529;
            line-height: 1;
          }
          
          .stat-label {
            display: block;
            font-size: 12px;
            color: #6c757d;
            margin-top: 2px;
          }
        }
      }
    }
    
    .internal-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      
      .internal-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
        
        &:last-child {
          border-bottom: none;
        }
        
        .internal-label {
          font-size: 13px;
          color: #6c757d;
          font-weight: 500;
        }
        
        .internal-value {
          font-size: 14px;
          color: #212529;
          font-weight: 500;
        }
        
        .internal-badge {
          padding: 4px 12px;
          border-radius: 12px;
          font-size: 12px;
          font-weight: 500;
          background: #e9ecef;
          color: #495057;
          
          &.excellent {
            background: #d4edda;
            color: #155724;
          }
        }
      }
    }
  }
}

// 加载状态
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f8f9fa;
  
  .loading-spinner {
    text-align: center;
    
    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #e9ecef;
      border-top: 4px solid #007bff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 16px;
    }
    
    p {
      color: #6c757d;
      font-size: 14px;
      margin: 0;
    }
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

// 错误状态
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f8f9fa;
  
  .error-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    
    svg {
      color: #dc3545;
      margin-bottom: 16px;
    }
    
    h3 {
      font-size: 20px;
      font-weight: 600;
      color: #212529;
      margin: 0 0 8px 0;
    }
    
    p {
      color: #6c757d;
      margin: 0 0 24px 0;
      line-height: 1.5;
    }
    
    .btn {
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      
      &.btn-primary {
        background: #007bff;
        color: white;
        
        &:hover {
          background: #0056b3;
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .case-detail-page {
    .page-header {
      padding: 16px;
      flex-direction: column;
      gap: 16px;
      align-items: stretch;
      
      .header-left {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
      }
      
      .header-actions {
        justify-content: center;
      }
    }
    
    .main-content {
      padding: 16px;
      gap: 16px;
    }
    
    .left-section {
      .cover-image .cover-img {
        height: 300px;
      }
      
      .basic-info {
        padding: 16px;
        
        .case-name {
          font-size: 24px;
        }
        
        .meta-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }
      }
    }
    
    .right-section .info-section {
      padding: 16px;
    }
  }
}