/* 龙岩市新罗区嘉宇信息技术有限公司 - 网站样式 */

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0baccc 100%);
    border: none;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 表格样式 */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 进度条 */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
    height: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* 徽章 */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select {
    border-radius: 8px;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
}

/* 分页 */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    color: #495057;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* 警告框 */
.alert {
    border-radius: 11px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #0d6efd !important;
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 自定义颜色 */
.text-purple {
    color: #6f42c1;
}

.bg-purple {
    background-color: #6f42c1;
}

.text-orange {
    color: #fd7e14;
}

.bg-orange {
    background-color: #fd7e14;
}

/* 自定义颜色按钮 */
.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-orange:hover {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip-inner {
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

/* 模态框 */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* 下拉菜单 */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

/* 列表组 */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.list-group-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

/* 输入组 */
.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* 图片样式 */
.img-fluid {
    border-radius: 8px;
}

/* 业务系统卡片 */
.system-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

#business-systems .card {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
}

#business-systems .card:hover {
    border-color: rgba(13, 110, 253, 0.15);
}

/* 过渡效果 */
.transition {
    transition: all 0.3s ease;
}

/* 间距工具 */
.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* 边框工具 */
.border-light-2 {
    border: 2px solid #dee2e6;
}

.rounded-lg {
    border-radius: 15px;
}

/* 阴影工具 */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0baccc 100%);
}

/* 文本渐变 */
.text-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 悬停效果 */
.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* 透明度 */
.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

/* 自定义宽度 */
.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

/* 自定义高度 */
.h-10 {
    height: 10%;
}

.h-15 {
    height: 15%;
}

.h-20 {
    height: 20%;
}

.h-30 {
    height: 30%;
}

.h-40 {
    height: 40%;
}

.h-60 {
    height: 60%;
}

.h-70 {
    height: 70%;
}

.h-80 {
    height: 80%;
}

.h-90 {
    height: 90%;
}

/* 固定位置 */
.fixed-bottom-right {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.fixed-bottom-left {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1050;
}

.fixed-top-right {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1050;
}

.fixed-top-left {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1050;
}

/* ===== 主页专用样式 ===== */

/* Hero 欢迎区 */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Cpath d='M0 0h60v60H0z'/%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 70%);
    z-index: 1;
}

/* Hero 文字增强对比度 */
.hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

.hero-title-accent {
    color: #ffffff;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-lead {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.hero-btn-primary {
    color: #0d6efd !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    background-color: #ffffff !important;
    color: #0a58ca !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary i {
    color: #0d6efd !important;
}

/* Hero 统计数字 */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.hero-stat-item {
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    min-width: 110px;
}

.hero-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 区段图标徽章 */
.section-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 系统卡片 */
.sys-card {
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sys-card-accent {
    height: 4px;
    width: 100%;
    transition: height 0.35s ease;
}

.sys-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

.sys-card:hover .sys-card-accent {
    height: 6px;
}

.sys-card-arrow {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-8px);
}

.sys-card:hover .sys-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #0d6efd !important;
}

/* 迷你卡片（其他服务） */
.mini-card {
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
    border-color: rgba(13, 110, 253, 0.15) !important;
}

/* 自定义实心按钮 */
.btn-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border: none;
    color: #fff;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #432780 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111,66,193,0.3);
}

.btn-orange {
    background: linear-gradient(135deg, #fd7e14 0%, #e8650b 100%);
    border: none;
    color: #fff;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #e8650b 0%, #c5570a 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253,126,20,0.3);
}

/* 入场动画 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 0.5s ease-out both;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-banner .display-5 {
        font-size: 1.5rem;
    }

    .hero-stats {
        display: none !important;
    }

    .sys-card .card-body {
        padding: 1rem !important;
    }

    .section-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}