/* 牛得很量化交易软件官网样式 */
:root {
    --primary-color: #1a3a6c; /* 深蓝色，金融行业常用 */
    --secondary-color: #2c5aa0; /* 较浅的蓝色 */
    --accent-color: #e63946; /* 强调色，红色 */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a3a6c;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family:
        "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-img {
    height: 40px; /* 调整logo高度 */
    width: auto; /* 保持宽高比 */
    margin-right: 0.5rem;
}

.navbar-brand .brand-name {
    color: white;
}

.navbar-brand .brand-suffix {
    color: var(--accent-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

/* 横幅样式 */
.hero-section {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: white;
    padding: 6rem 0;
    margin-top: 56px; /* 导航栏高度 */
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: 100% 100%;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c1121f;
    border-color: #c1121f;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 节标题样式 */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 功能卡片 */
.feature-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-card .card-text {
    color: #666;
}

/* 产品图片 */
.product-img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

/* 表格样式 */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer .footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.5rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        font-size: 1.3rem;
    }
}

/* 工具类 */
.bg-light-section {
    background-color: var(--light-bg);
}

.text-primary-color {
    color: var(--primary-color);
}

.text-accent-color {
    color: var(--accent-color);
}

/* 使用说明页面样式 */
.pro-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: white;
    padding: 4rem 0;
    margin-top: 56px;
}

.pro-content {
    padding: 3rem 0;
}

.pro-sidebar {
    position: sticky;
    top: 80px;
}

.pro-sidebar .nav-link {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.pro-sidebar .nav-link:hover,
.pro-sidebar .nav-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: rgba(26, 58, 108, 0.05);
}

.pro-step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.pro-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.pro-steps {
    counter-reset: step-counter;
}

.screenshot {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem 0;
}

/* 图标样式 */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 58, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    z-index: 1100;
}
