/* 邦谷环球投研 BGUGuide - Orange/Citrus Theme */

/* Smooth transitions */
a, button, .group img { transition-property: color, background-color, border-color, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
a, button { transition-duration: 150ms; }
.group img { transition-duration: 500ms; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Custom scrollbar - Orange theme */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fafaf9; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* Pagination - Orange theme */
.pagination { display: flex; gap: 0.375rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 2.25rem; height: 2.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 0.625rem; border-radius: 0.5rem;
    font-size: 0.875rem; font-weight: 500;
    background: transparent; color: #57534e;
    text-decoration: none; border: 1px solid transparent;
}
.pagination a:hover { background: #fff7ed; color: #ea580c; border-color: #fdba74; }
.pagination .active { background: linear-gradient(135deg, #f97316, #ea580c); color: #ffffff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Selection color - Orange theme */
::selection { background: #f97316; color: #ffffff; }

/* Print */
@media print {
    header, footer, aside, #mobile-menu, #back-to-top { display: none !important; }
    main { padding: 0 !important; }
    .article-content { max-width: 100% !important; }
    body { background: white !important; color: black !important; }
}

/* Article content - Professional Finance Blog Style */
.article-content { font-family: 'Noto Serif SC', Georgia, serif; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #7c2d12; letter-spacing: -0.025em; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #9a3412; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #44403c; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #44403c; line-height: 1.7; }
.article-content a { color: #ea580c; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #f97316; }
.article-content img { max-width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }
.article-content blockquote { border-left: 3px solid #f97316; padding: 1rem 1.5rem; background: #fff7ed; border-radius: 0 0.75rem 0.75rem 0; margin: 1.5rem 0; font-style: italic; color: #7c2d12; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.article-content th, .article-content td { border: 1px solid #d6d3d1; padding: 0.75rem 1rem; text-align: left; }
.article-content th { background: #fed7aa; font-weight: 600; color: #7c2d12; }
.article-content code { background: #fff7ed; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; color: #ea580c; }
.article-content pre { background: #1c1917; color: #e7e5e4; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content pre code { background: none; padding: 0; color: inherit; }

/* Category badge - Orange theme */
.category-badge {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c; font-size: 0.75rem; font-weight: 600;
    border-radius: 9999px; border: 1px solid #fdba74;
    transition: all 0.2s ease;
}
.category-badge:hover { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }

/* Navigation link active state */
.nav-link.active { color: #f97316; background: #fff7ed; }

/* Button primary - Orange gradient */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff; padding: 0.625rem 1.25rem;
    border-radius: 0.5rem; font-weight: 600;
    transition: all 0.2s ease;
}
.btn-primary:hover { background: linear-gradient(135deg, #ea580c, #c2410c); }

/* Button secondary */
.btn-secondary {
    background: #ffedd5; color: #c2410c;
    padding: 0.625rem 1.25rem; border-radius: 0.5rem;
    font-weight: 600; transition: all 0.2s ease;
}
.btn-secondary:hover { background: #fed7aa; }

/* Card hover - Orange border */
.card-hover:hover { border-color: #fdba74; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12); }

/* Gradient text - Orange theme */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ticker animation for market strip */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-scroll { animation: ticker-scroll 50s linear infinite; }
.ticker-scroll:hover { animation-play-state: paused; }

/* Toast/notification */
.toast { animation: toast-in 0.3s ease-out; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-1rem); }
    to { opacity: 1; transform: translateY(0); }
}
