﻿
/* Font Awesome 7.1 精简本地版本 - 只包含我们需要的图标 */
/* 主字体定义 */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("data:font/woff2;base64,d09GMgABAAAAAA7wABAAAAAAI8wAA") format("woff2");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("data:font/woff2;base64,d09GMgABAAAAAA7wABAAAAAAI8wAA") format("woff2");
}

/* 品牌字体定义 */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("data:font/woff2;base64,d09GMgABAAAAAA8wABAAAAAAJNAAA") format("woff2");
}

/* 基础样式 */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* 字体 */
.fa,
.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

/* 尺寸类 */
.fa-lg {
    font-size: 1.33333em;
    line-height: 0.75em;
    vertical-align: -0.0667em;
}

.fa-sm {
    font-size: 0.875em;
}

.fa-1x {
    font-size: 1em;
}

.fa-2x {
    font-size: 2em;
}

.fa-3x {
    font-size: 3em;
}

/* 具体图标定义 - Font Awesome 7.1 版本 */
.fa-home:before {
    content: "\f015";
}

.fa-circle-info:before {
    content: "\f05a";
}
/* 7.1 中的信息图标 */
.fa-capsules:before {
    content: "\f46b";
}

.fa-seedling:before {
    content: "\f4d8";
}

.fa-apple-whole:before {
    content: "\f5d1";
}
/* 7.1 中的苹果图标 */
.fa-leaf:before {
    content: "\f06c";
}

.fa-spa:before {
    content: "\f5bb";
}

.fa-boxes:before {
    content: "\f468";
}

.fa-magnifying-glass:before {
    content: "\f002";
}
/* 7.1 中的搜索图标 */
.fa-phone:before {
    content: "\f095";
}
/* 7.1 中统一为 fa-phone */
.fa-user-circle:before {
    content: "\f2bd";
}

.fa-industry:before {
    content: "\f275";
}

.fa-microscope:before {
    content: "\f610";
}

.fa-shield-halved:before {
    content: "\f3ed";
}
/* 7.1 中的盾牌图标 */
.fa-clock-rotate-left:before {
    content: "\f1da";
}
/* 7.1 中的历史图标 */
.fa-award:before {
    content: "\f559";
}

.fa-eye:before {
    content: "\f06e";
}

.fa-weixin:before {
    content: "\f1d7";
}

.fa-weibo:before {
    content: "\f18a";
}

.fa-qq:before {
    content: "\f1d6";
}

.fa-envelope:before {
    content: "\f0e0";
}

.fa-location-dot:before {
    content: "\f3c5";
}
/* 7.1 中的位置图标 */
.fa-clock:before {
    content: "\f017";
}

.fa-check:before {
    content: "\f00c";
}

.fa-bars:before {
    content: "\f0c9";
}
/* 导航栏折叠图标 */

/* 旋转动画 */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


:root {
    --primary-blue: #0d6efd;
    --secondary-blue: #0a58ca;
    --light-blue: #e8f4ff;
    --dark-blue: #084298;
    --accent-gold: #ffc107;
    --accent-green: #198754;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-shadow: 0 5px 20px rgba(13, 110, 253, 0.1);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    padding-top: 80px;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}


/* 新版导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--nav-bg) !important;
    box-shadow: var(--nav-shadow);
    padding: 0;
    height: 80px;
}

    .navbar.scrolled {
        height: 70px;
        box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
    }

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* 导航栏品牌样式 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark-blue) !important;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.brand-icon {
    color: var(--accent-green);
    font-size: 2.2rem;
    margin-right: 10px;
    position: relative;
}

    .brand-icon:after {
        content: '';
        position: absolute;
        width: 40px;
        height: 40px;
        background-color: rgba(25, 135, 84, 0.1);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
}

/* 导航链接样式 */
.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 5px;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 10px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

    .nav-link i {
        margin-right: 8px;
        font-size: 1.1rem;
        color: var(--primary-blue);
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        color: var(--primary-blue) !important;
        background-color: rgba(13, 110, 253, 0.05);
    }

        .nav-link:hover i {
            transform: translateY(-2px);
        }

    .nav-link.active {
        color: var(--primary-blue) !important;
        font-weight: 600;
    }

        .nav-link.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 15px;
            right: 15px;
            height: 3px;
            background-color: var(--primary-blue);
            border-radius: 3px 3px 0 0;
        }

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    border-top: 3px solid var(--primary-blue);
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

    .dropdown-item i {
        margin-right: 10px;
        color: var(--primary-blue);
        width: 20px;
        text-align: center;
    }

    .dropdown-item:hover {
        background-color: var(--light-blue);
        color: var(--primary-blue);
        padding-left: 25px;
    }

/* 导航栏按钮 */
.navbar-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white !important;
    border-radius: 8px;
    padding: 10px 20px !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .navbar-btn i {
        color: white !important;
        margin-right: 8px;
    }

    .navbar-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
        color: white !important;
    }

/* 响应式调整 */
@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 10px 0;
    }

        .navbar.scrolled {
            height: auto;
        }

    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .nav-link.active:after {
        display: none;
    }

    .nav-link.active {
        background-color: var(--light-blue);
    }
}

/* 页面内容样式 */
.page-content {
    min-height: 70vh;
    padding: 40px 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    background-size: 100% 100%;
    opacity: 0.85;
    color: white;
    padding: 40px 0 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

    .page-header:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23084298' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    }

    .page-header h1 {
        font-weight: 800;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 1.1rem;
        opacity: 0.9;
        max-width: 700px;
    }

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
        background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    }

/* 页脚样式 */
footer {
    background-color: #1a2a3a;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

    footer h5 {
        color: var(--accent-gold);
        margin-bottom: 20px;
        font-weight: 600;
        font-size: 1.2rem;
    }

    footer a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s;
    }

        footer a:hover {
            color: white;
            text-decoration: underline;
        }

.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* 内容示例样式 */
.content-section {
    padding: 40px 0;
}

.section-title {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: var(--primary-blue);
        border-radius: 3px;
    }

    .section-title.center {
        text-align: center;
    }

        .section-title.center:after {
            left: 50%;
            transform: translateX(-50%);
        }

/* 特色区域 */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: white;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

    .feature-box:hover {
        border-color: var(--primary-blue);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-blue), rgba(13, 110, 253, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.feature-box h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

/* 演示页面切换按钮 */
.demo-nav {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

    .demo-nav h5 {
        color: var(--dark-blue);
        margin-bottom: 15px;
    }

.demo-btn {
    margin: 5px;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 图标检测样式 */
.icon-test {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}

/* 兼容性提示 */
.compatibility-alert {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffc107;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 300px;
}
