.publication-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
  
  .loading-detail {
    text-align: center;
    padding: 6rem 2rem;
    font-size: 1.125rem;
    color: #64748b;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  .detail-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
  }
  
  .detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
  }
  
  .detail-meta-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
  }
  
  .detail-meta-item {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  
  .detail-meta-item strong {
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
  }
  
  .detail-section {
    margin: 3rem 0;
  }
  
  .detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    letter-spacing: -0.015em;
  }
  
  .detail-section-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
  }
  
  .detail-section-content::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.9;
    font-weight: 700;
    color: #1e40af;
    margin-right: 0.25rem;
    margin-top: 0.1rem;
    padding-right: 0.15rem;
    font-family: Georgia, 'Times New Roman', serif;
  }
  
  .detail-section .btn-download {
    display: inline-block;
    text-decoration: none;
    background: var(--publication-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  }
  
  .detail-section .btn-download:hover {
    background: var(--publication-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 172, 254, 0.3);
  }
  
  .detail-section .btn-share {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--publication-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  }
  
  .detail-section .btn-share:hover {
    background: var(--publication-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
  }
  
  .detail-section .btn-share.btn-copied {
    background: var(--publication-blue-hover) !important;
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
    animation: successPulse 0.6s ease;
  }
  
  @keyframes successPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.08);
    }
    100% {
      transform: scale(1.05);
    }
  }
  
  .detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  
  .detail-keyword-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 0.625rem 1.125rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
  }
  
  .detail-keyword-tag:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
  }
  
  .detail-stats-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--publication-blue);
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    box-shadow: 0 10px 25px -5px rgba(79, 172, 254, 0.3);
  }
  
  .detail-stat {
    text-align: center;
    flex: 1;
  }
  
  .detail-stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.025em;
  }
  
  .detail-stat-label {
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .detail-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
  }
  
  .detail-actions .btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  }
  
  .detail-actions .btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
  }
  
  .detail-actions .btn-download:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -4px rgba(16, 185, 129, 0.2);
  }
  
  .detail-actions .btn-download:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
  }
  
  .detail-actions .btn-search {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
  }
  
  .detail-actions .btn-search:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
  }
  
  .error-detail {
    text-align: center;
    padding: 5rem 2rem;
  }
  
  .error-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
  }
  
  .error-detail-message {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .featured-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3);
  }
  
  #toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
  }
  
  .toast {
    background: #ffffff;
    color: #1e293b;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 0.9375rem;
    font-weight: 500;
    border-left: 4px solid #10b981;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .toast.show {
    opacity: 1;
    transform: translateX(0);
  }
  
  .toast.toast-success {
    border-left-color: #10b981;
  }
  
  .toast.toast-error {
    border-left-color: #ef4444;
  }
  
  @media (max-width: 768px) {
    .publication-detail-container {
      padding: 2rem 1.25rem;
    }
  
    .detail-title {
      font-size: 1.75rem;
      line-height: 1.3;
    }
  
    .detail-meta-section {
      grid-template-columns: 1fr;
      padding: 1.5rem;
      gap: 1rem;
    }
  
    .detail-stats-banner {
      flex-direction: column;
      gap: 2rem;
      padding: 2rem 1.5rem;
    }
  
    .detail-stat-number {
      font-size: 2.5rem;
    }
  
    .detail-actions {
      flex-direction: column;
    }
  
    .detail-actions .btn {
      min-width: 100%;
    }
  
    #toast-container {
      right: 1rem;
      left: 1rem;
      max-width: none;
    }
  
    .detail-section-title {
      font-size: 1.25rem;
    }
  
    .detail-section-content {
      font-size: 1rem;
      text-align: left;
    }
  }
  
  @media (max-width: 480px) {
    .publication-detail-container {
      padding: 1.5rem 1rem;
    }
  
    .detail-title {
      font-size: 1.5rem;
    }
  
    .detail-category {
      font-size: 0.8125rem;
      padding: 0.375rem 1rem;
    }
  
    .detail-meta-item {
      font-size: 0.875rem;
    }
  
    .detail-stat-number {
      font-size: 2rem;
    }
  
    .detail-stat-label {
      font-size: 0.875rem;
    }
  
    .detail-keyword-tag {
      font-size: 0.875rem;
      padding: 0.5rem 0.875rem;
    }
  }
  
  @media print {
    .back-btn,
    .detail-actions,
    #toast-container {
      display: none !important;
    }
  
    .publication-detail-container {
      max-width: 100%;
      padding: 0;
    }
  
    .detail-stats-banner {
      background: #f1f5f9 !important;
      color: #0f172a !important;
      box-shadow: none !important;
    }
  
    .detail-section-content {
      text-align: left;
    }
  }
  
  .detail-actions .btn:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
  }
  
  .detail-keyword-tag:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
  
  ::selection {
    background: #bfdbfe;
    color: #1e40af;
  }
  
  ::-moz-selection {
    background: #bfdbfe;
    color: #1e40af;
  }

  .detail-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .detail-section .detail-download-actions .btn-share {
    margin-top: 0;
  }
