/* Daylight Inspired Theme */
:root {
    --bg: #f6f9ff;
    --bg-alt: rgba(255, 255, 255, 0.9);
    --glow-1: #2563eb;
    --glow-2: #38bdf8;
    --text: #0f172a;
    --text-muted: #4b5563;
    --border-color: rgba(148, 163, 184, 0.35);
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: rgba(15, 23, 42, 0.08);
    --shadow-strong: rgba(15, 23, 42, 0.16);
}

body {
    background: linear-gradient(180deg, #fdfdfc 0%, #f1f5ff 40%, #e0ecff 100%);
    color: var(--text);
    font-family: 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    padding-top: 100px; /* 为固定导航栏留出空间 */
    position: relative;
    z-index: 1;
}

/* 子页面标题区域 */
.page-header {
    padding-top: 120px !important; /* 为固定导航栏和top-bar留出空间 */
    position: relative;
    z-index: 1;
}

.page-header.bg-primary {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(96, 165, 250, 0.65) 45%, rgba(56, 189, 248, 0.55) 100%) !important;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.2);
}

/* 主要内容 */
.main-content {
    position: relative;
    z-index: 1;
}

/* --- Dynamic Background --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}
.aurora-container {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(220px);
}
.aurora {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25; /* 柔和日光 */
}
.aurora-1 {
    width: 70vmax; height: 70vmax;
    background: var(--glow-1);
    top: 50%; left: 50%;
    animation: move1 60s infinite alternate; /* 更慢的动画 */
}
.aurora-2 {
    width: 60vmax; height: 60vmax;
    background: var(--glow-2);
    top: 50%; left: 50%;
    animation: move2 65s infinite alternate; /* 更慢的动画 */
}
@keyframes move1 {
    from { transform: translate(-60%, -40%) rotate(0deg); }
    to { transform: translate(-40%, -60%) rotate(30deg); } /* 减少旋转角度 */
}
@keyframes move2 {
    from { transform: translate(-40%, -60%) rotate(0deg); }
    to { transform: translate(-60%, -40%) rotate(-30deg); } /* 减少旋转角度 */
}

.grid-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: none;
    animation: none;
}
@keyframes panGrid {
    from { background-position: 0 0; }
    to { background-position: 4rem 4rem; }
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 80px;
}
.navbar-brand {
    margin-right: 2rem;
}
.navbar-brand img {
    transition: all 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500; 
    transition: color 0.3s;
    padding: 0.75rem 1rem !important;
}
.nav-link.active, .nav-link:hover { color: var(--text) !important; }

/* Hero Section */



.hero-image-container {
    position: relative;
    max-width: 100%;
    height: auto;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow-soft);
    transition: transform 0.6s ease;
}

.hero-image-container img:hover {
    transform: scale(1.05);
}





/* --- Buttons --- */
.btn-primary-main {
    background: var(--glow-1);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary-main:hover {
    background: #1d4ed8; /* Deeper tech blue */
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.35);
    transform: translateY(-2px);
}

.btn-secondary-main,
.btn-glow {
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-secondary-main:hover,
.btn-glow:hover {
    background: rgba(56, 189, 248, 0.25);
    color: var(--text);
    border-color: rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
}

/* Floating WeChat widget */
.floating-wechat {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 220px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px var(--shadow-soft);
    backdrop-filter: blur(10px);
    z-index: 2000;
}

.floating-wechat h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.floating-wechat p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.floating-wechat img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.floating-wechat .wechat-id {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.floating-wechat .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
}

@media (max-width: 991.98px) {
    .floating-wechat {
        display: none;
    }
}

.wechat-contact img {
    width: 160px;
    max-width: 100%;
    border-radius: 12px;
    margin: 0 auto 0.75rem;
    display: block;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.wechat-contact .wechat-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Bento Grid & Cards --- */
.bento-container { perspective: 1000px; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* 光标跟随光效 */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                              rgba(255, 255, 255, 0.45) 0%, 
                              rgba(59, 130, 246, 0.18) 20%, 
                              transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* 边框光效 */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
                              rgba(255, 255, 255, 0.45) 0%, 
                              transparent 50%, 
                              rgba(56, 189, 248, 0.25) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-card:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg) scale(1.02);
    border-color: rgba(37, 99, 235, 0.45);
    background: #ffffff;
    box-shadow: 
        0 20px 40px var(--shadow-soft),
        0 0 0 1px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.bento-card:hover::after { 
    opacity: 1; 
}

.bento-card.col-span-2 { grid-column: span 2; }
.bento-card.row-span-2 { grid-row: span 2; }

.bento-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 3;
    color: var(--text);
}
.bento-card p { 
    color: var(--text-muted); 
    position: relative;
    z-index: 3;
}
.bento-card .icon {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}
.bento-card h3,
.bento-card h4,
.bento-card h6 {
    position: relative;
    z-index: 3;
}
.bento-card ul,
.bento-card .btn {
    position: relative;
    z-index: 3;
}

.showcase-card {
    padding: 0;
    background: linear-gradient(145deg, #ffffff, #f1f5ff);
    display: flex;
    align-items: flex-end;
}
.showcase-card .content {
    padding: 1.5rem;
    width: 100%;
    background: linear-gradient(to top, rgba(4, 9, 30, 0.75) 0%, rgba(4, 9, 30, 0.15) 45%, transparent 100%);
    color: #fff;
}
.showcase-card .content h5,
.showcase-card .content p {
    color: inherit;
}
.showcase-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 1;
    z-index: -1;
}

/* --- General --- */
h1, h2 {
    font-weight: 700;
}
.lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.section-alt {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 4rem 0;
    color: rgba(226, 232, 240, 0.85);
    background: linear-gradient(160deg, #0b1220 0%, #111c2f 55%, #132544 100%);
    position: relative;
    overflow: hidden;
}
footer a {
    color: rgba(203, 213, 225, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover { color: #93c5fd; }

footer h5 {
    color: #fff;
}

footer .nav-link {
    color: rgba(226, 232, 240, 0.82) !important;
    padding: 0.25rem 0.5rem;
}

footer .nav-link:hover {
    color: #93c5fd !important;
}

footer hr {
    border-color: rgba(148, 163, 184, 0.2);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.35);
    color: rgba(226, 232, 240, 0.88);
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-icons a:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #93c5fd;
    transform: translateY(-2px);
}

footer .text-white {
    color: #f8fafc !important;
}

footer .text-white:hover {
    color: #93c5fd !important;
}

/* --- Custom Styles for Original Content --- */
/* 修复圆形图标变形问题 */
.feature-icon {
    width: 40px;  /* 减小尺寸，保持一致性 */
    height: 40px; /* 确保宽高相等 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止图标被压缩 */
    border-radius: 50%;
    background: var(--glow-1);
    color: #fff;
    aspect-ratio: 1 / 1; /* 强制保持1:1的宽高比 */
    position: relative; /* 添加定位上下文 */
    overflow: hidden; /* 确保内容不会溢出 */
}

.feature-icon i {
    font-size: 18px; /* 稍微减小图标大小 */
    position: absolute; /* 绝对定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 确保图标居中 */
}

.feature-icon i {
    font-size: 24px;
}

/* 隐藏顶部联系信息栏 */
.top-bar {
    display: none;
}

/* 提高卡片文字可读性 */
.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 24px var(--shadow-soft);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.45);
    background: #ffffff;
    box-shadow: 0 16px 30px var(--shadow-strong);
}

.card-title {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
}

.card .list-unstyled li {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--glow-1) !important;
}

/* 调整按钮样式，提高可见度 */
.bg-light {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
}

.bg-primary {
    background: linear-gradient(135deg, var(--glow-1) 0%, var(--glow-2) 100%) !important;
}



.btn-primary {
    background: var(--glow-1);
    border-color: var(--glow-1);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--glow-1);
    color: var(--glow-1);
}

.btn-outline-primary:hover {
    background-color: var(--glow-1);
    color: var(--text);
}

.btn-outline-light {
    border-color: var(--text);
    color: var(--text);
}

.btn-outline-light:hover {
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--text);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text);
}

.text-dark {
    color: var(--text) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-dark {
    background-color: #050505 !important;
}

/* Client logo slider */
.client-logo-slider img {
    /* 统一为所有 Logo 添加浅色芯片底与轻微提亮 */
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 8px 20px var(--shadow-soft);
    filter: brightness(1.02) contrast(1.02);
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    max-height: 60px;
}

.client-logo-slider img:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px var(--shadow-strong);
}

/* 仅针对深色/灰色 Logo 提升可读性：为透明 PNG 增加浅色芯片底 + 轻微提亮 */
.client-logo-slider img[src*="china-shenhua"],
.client-logo-slider img[src*="china-life-insurance"],
.client-logo-slider img[src*="zgh"],
.client-logo-slider img[src*="cgn"],
.client-logo-slider img[src*="CGN"] {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 8px 20px var(--shadow-soft);
    filter: brightness(1.05) contrast(1.04);
}

/* 让每个 slide 居中承载，避免图片带内边距后偏移 */
.client-logo-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 表格漂浮块效果 */
.table-responsive {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    margin: 20px auto;
    max-width: 95%;
    box-shadow: 0 8px 32px var(--shadow-soft);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    padding: 20px;
}

.table-responsive:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

/* 表格样式优化 - 移除白色背景 */
.table-bordered {
    border-color: rgba(148, 163, 184, 0.3);
    margin-bottom: 0;
    background-color: transparent;
}

.table-bordered td, .table-bordered th {
    border-color: rgba(148, 163, 184, 0.3);
    background-color: transparent;
}

/* 表头样式 */
thead.bg-primary.text-white {
    background: rgba(37, 99, 235, 0.18) !important;
    color: var(--text) !important;
    border-bottom: 2px solid var(--glow-1);
}

thead.bg-primary.text-white th {
    color: var(--text) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
    background-color: transparent;
}

/* 表格单元格样式 - 透明背景 */
.table tbody tr {
    background: rgba(248, 250, 252, 0.6);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(56, 189, 248, 0.22);
}

.table tbody td {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.25);
    background-color: transparent;
}

.table .fw-bold {
    color: var(--glow-1);
    font-weight: 600 !important;
}

.table .text-success {
    color: #4caf50 !important;
    text-shadow: none;
}

.table .text-danger {
    color: #f44336 !important;
    text-shadow: none;
}

/* 覆盖Bootstrap默认的表格背景色 */
.table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
}

/* --- Solution Section Styles --- */

.solution-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 0;
}

.solution-header {
    margin-bottom: 50px;
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 20px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    animation: float 6s ease-in-out infinite;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.solution-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 为不同场景添加不同的背景色调 */
.solution-section:nth-child(odd) {
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.solution-section:nth-child(even) {
    background: #f1f5ff;
}

/* 应用场景导航卡片图标样式 */
.bento-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.bento-card .icon i {
    font-size: 1.5rem;
    color: white;
}

.bento-card:hover .icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.bento-card a {
    color: inherit;
    display: block;
    padding: 1.5rem;
}

.bento-card a:hover {
    color: inherit;
}

.bento-card h5 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.bento-card .small {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .solution-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .solution-title {
        font-size: 2rem;
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
    }
    
    .solution-icon i {
        font-size: 1.5rem;
    }
    
    .bento-card .icon {
        width: 50px;
        height: 50px;
    }
    
    .bento-card .icon i {
        font-size: 1.2rem;
    }
    
    /* Hero image container 响应式 */
    .hero-image-container {
        margin-bottom: 2rem;
    }
}
