/* ============================================
   BestFakeID - Modern Bootstrap Design System
   ============================================ */

/* === CSS Variables & Color Palette === */
:root {
    /* Primary Colors - Professional Blue Palette */
    --bs-primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #6ea8fe;
    --primary-subtle: #cfe2ff;

    /* Secondary Colors */
    --secondary: #6c757d;
    --secondary-light: #adb5bd;

    /* Accent Colors */
    --accent-blue: #0dcaf0;
    --accent-success: #198754;
    --accent-warning: #ffc107;
    --accent-danger: #dc3545;

    /* Neutral Palette */
    --dark: #0f172a;
    --dark-blue: #1e293b;
    --slate: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --gray-lightest: #e2e8f0;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* === Base Typography === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.1;
}

/* === Navigation Bar === */
.navbar {
    background: var(--bg-primary) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark) !important;
}

.navbar-brand .text-primary {
    color: var(--bs-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--slate) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--bs-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 50%, #3d8bfd 100%);
    color: #ffffff;
    border-radius: var(--radius-2xl);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-2xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 45%;
    height: 150%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(25deg);
    border-radius: var(--radius-2xl);
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, 10%) scale(1.1); }
}

.hero-section .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.hero-section h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* === Statistics Cards === */
.stats-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--accent-blue));
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* === Section Headers === */
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: var(--primary-subtle);
    border-radius: var(--radius-full);
}

/* === Feature Cards === */
.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-lightest);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}
/* 
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(13, 110, 253, 0.03) 100%);
    opacity: 0;
    z-index: 1;
    transition: var(--transition-base);
}
*/
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* === Product Cards === */
.product-card {
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    background: var(--bg-primary);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.product-card .card-body {
    padding: 1.75rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    color: var(--gray);
    line-height: 1.6;
}

/* === Buttons === */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: none;
    font-size: 0.9375rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-gradient {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 50%, #3d8bfd 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
    position: relative;
    overflow: hidden;
}
/* 
.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3d8bfd 0%, #0d6efd 50%, #0a58ca 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
*/
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

.btn-gradient:hover::before {
    opacity: 1;
}

/* Ensure all button content stays above the gradient overlay */
.btn-gradient > *,
.btn-gradient span,
.btn-gradient i {
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

/* === Footer === */
.site-footer {
    background: var(--bg-dark);
    color: var(--gray-lighter);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.site-footer a {
    color: var(--gray-lighter);
    text-decoration: none;
    transition: var(--transition-fast);
}

.site-footer a:hover {
    color: var(--primary-light);
}

.site-footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

  /* 重置所有 footer 中的 ul 样式 */
  .site-footer ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* 重置所有 li 样式 */
.site-footer ul li {
    list-style-type: none;
    list-style-image: none;
    list-style-position: outside;
}

/* 移除任何伪元素 */
.site-footer ul li::before {
    content: none;
    display: none;
}


.footer-links li {
    margin-bottom: 0.75rem;
    padding: 0;
    list-style: none;
    display: block;
}

/* 最后一个 li 没有底部间距 */
.footer-links li:last-child {
    margin-bottom: 0;
}


.footer-links a,
.footer-link-button {
    /* 添加了 line-height 确保垂直对齐 */
    line-height: 1.5;
    /* 明确宽度为 auto */
    width: auto;
    display: inline-flex;
    align-items: center;
}

/* 图标不会被压缩 */
.footer-links a i,
.footer-link-button i {
    flex-shrink: 0;
}


.footer-link-button {
    font-family: inherit;
    text-align: left;  /* 确保文字左对齐 */
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;  /* 改为 center，垂直居中对齐 */
}



.contact-info {
    flex: 1;          /* 占据剩余空间 */
    min-width: 0;     /* 允许文本换行 */
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;     /* 桌面端不换行 */
    align-items: center;
}

.footer-badge {
    display: inline-flex;
    white-space: nowrap;   /* 文本不换行 */
    flex-shrink: 0;        /* 不允许收缩 */
    padding: 0.5rem 0.875rem;  /* 稍微减小内边距 */
}

/* 移动端才允许换行 */
@media (max-width: 767.98px) {
    .footer-badges {
        flex-wrap: wrap;
    }
}


/* === Utility Classes === */
.text-muted {
    color: var(--gray) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === Responsive Design === */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .feature-card {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* === Form Styles === */
.form-control, .form-select {
    border: 2px solid var(--gray-lightest);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* === Tables === */
.table {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--bg-light);
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-lightest);
}

/* === Alerts === */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* === Loading States === */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Scrollbar Styles === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-lighter);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
