/* 
  -------------------------------------------------------------
  SHJ56 Modern Theme - Premium Corporate UI (Bootstrap 5.3+)
  -------------------------------------------------------------
*/

:root {
    /* Premium Brand Colors */
    --bs-primary: #0C1844;
    /* Deep Navy - Trust & Authority */
    --bs-primary-rgb: 12, 24, 68;

    --bs-secondary: #2563EB;
    /* Vibrant Cobalt - Tech & Efficiency */
    --bs-secondary-rgb: 37, 99, 235;

    --bs-warning: #F59E0B;
    /* Amber - High Contrast Action */

    --bs-body-bg: #f8fafc;
    /* Cool Slate 50 instead of harsh white */
    --bs-body-color: #334155;
    /* Slate 700 for better readability */

    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Custom Soft Shadows */
    --shadow-soft-sm: 0 4px 6px -1px rgba(12, 24, 68, 0.05), 0 2px 4px -2px rgba(12, 24, 68, 0.05);
    --shadow-soft-md: 0 10px 15px -3px rgba(12, 24, 68, 0.08), 0 4px 6px -4px rgba(12, 24, 68, 0.04);
    --shadow-soft-lg: 0 20px 25px -5px rgba(12, 24, 68, 0.1), 0 8px 10px -6px rgba(12, 24, 68, 0.05);
}

body {
    letter-spacing: 0.015em;
    -webkit-font-smoothing: antialiased;
}

/* 
 * Glassmorphism Navbar Customizations 
 * Extended from standard Bootstrap .navbar
 */
.navbar-glass {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 24, 68, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glass.scrolled {
    box-shadow: var(--shadow-soft-md);
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-weight: 800;
    color: var(--bs-primary) !important;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.navbar-brand span {
    color: var(--bs-warning);
}

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: #475569 !important;
    /* Slate 600 */
    transition: color 0.2s;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--bs-secondary) !important;
}

/* Dropdown tweaks */
.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft-lg);
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: #475569;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(37, 99, 235, 0.08);
    /* Cobalt very light */
    color: var(--bs-secondary);
}

/* Overriding Bootstrap Primary Button */
.btn-primary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: var(--shadow-soft-md);
    transform: translateY(-1px);
}

.btn-warning {
    color: white !important;
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

.btn-warning:hover {
    background-color: #d97706;
    /* Amber 600 */
    border-color: #d97706;
}

/* Component Level Overrides */
.card {
    border-radius: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* =============================================
   全局配色统一补丁 v2
   ============================================= */

/* Page Header — 现代斜切几何风格 */
.page-header-modern {
    background: linear-gradient(135deg, #0C1844 0%, #1e3a6e 50%, #163266 100%);
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.page-header-modern::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 220px;
    height: 220px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* 新闻分类筛选器 — pill 风格 */
.news-filter-btn {
    border-radius: 2rem !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    background: white !important;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.4rem 1.2rem;
}

.news-filter-btn:hover,
.news-filter-btn.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 数字看板 */
.stats-counter {
    background: linear-gradient(135deg, #0C1844 0%, #1e3a6e 100%);
}

.stats-counter .counter-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #F59E0B;
    line-height: 1;
}

.stats-counter .counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
}

.stats-counter .counter-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    height: 60px;
    align-self: center;
}

/* 案例卡片 */
.case-card {
    border: 1px solid rgba(12, 24, 68, 0.06) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft-lg) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.case-card .industry-badge {
    font-size: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
    border-radius: 1rem;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
}

/* =============================================
   Footer — 深石板青色重设计 v2
   ============================================= */
.site-footer {
    background: var(--theme-footer-bg);
}

.footer-links a {
    color: var(--theme-footer-link-color);
    font-size: 0.925rem;
}

.footer-links a:hover {
    color: var(--bs-warning);
    transform: translateX(4px);
}

.site-footer .text-white-50 {
    color: var(--theme-footer-text-color);
}

.site-footer .border-top {
    border-color: var(--theme-footer-border-color);
}

/* =============================================
   About Page — Tab 导航统一风格
   ============================================= */
#aboutTabs .nav-link {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#aboutTabs .nav-link:hover {
    background: #f1f5f9 !important;
    color: #0C1844 !important;
    border-color: #94a3b8 !important;
}

#aboutTabs .nav-link.active {
    background: #0C1844 !important;
    color: #ffffff !important;
    border-color: #0C1844 !important;
    box-shadow: 0 4px 12px rgba(12, 24, 68, 0.25);
}

/* =============================================
   Global Utilities (Extracted from inline styles)
   ============================================= */
.shadow-soft {
    box-shadow: var(--shadow-soft-md);
}

.bg-body-bg {
    background-color: #f8fafc;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.hover-white {
    transition: color 0.2s;
}

.hover-white:hover {
    color: white !important;
}

.hover-primary {
    transition: color 0.2s;
}

.hover-primary:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer Config */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Archive / Modern Card Config */
.archive-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1rem;
    overflow: hidden;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(37, 99, 235, 0.1) !important;
}

.archive-card img.object-fit-cover {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.archive-card:hover img.object-fit-cover {
    transform: scale(1.08);
}

.archive-card .card-title a {
    transition: color 0.2s;
}

.archive-card:hover .card-title a {
    color: var(--bs-secondary) !important;
}

/* Entry Content Config */
.entry-content {
    color: var(--bs-body-color) !important;
    font-weight: 400;
    font-size: 1.05rem !important;
    line-height: 1.9;
}

.entry-content h2 {
    color: var(--bs-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid rgba(12, 24, 68, 0.05);
    padding-bottom: 0.5rem;
}

.entry-content h3 {
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    border-left: 4px solid var(--bs-secondary);
    padding-left: 1rem;
}

.entry-content p {
    margin-bottom: 1.75rem;
}

.entry-content ul {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 0.5rem;
    margin-bottom: 1.75rem;
}

.entry-content ul li {
    margin-bottom: 0.75rem;
}

.entry-content img {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft-md);
    margin: 2.5rem auto;
    display: block;
    max-width: 100%;
    height: auto;
}