/* Modern Template Styles */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域自动扩展 */
.main-content {
    flex: 1;
}

/* 顶部导航栏 */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff !important;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* 导航链接 */
.nav-link {
    font-weight: 500;
    color: #526484 !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #42A5F5 !important;
    background: rgba(66, 165, 245, 0.1);
}

.nav-link.active {
    color: #42A5F5 !important;
    background: rgba(66, 165, 245, 0.15);
}

.nav-link .icon {
    font-size: 1rem;
    vertical-align: middle;
}

/* Hero Section */
.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.125rem;
    font-weight: 300;
}

/* 特性卡片 */
.feature {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon .icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 32px;
    border-radius: 50%;
}

/* 项目图标 */
.project-icon {
    margin: 0 auto;
    transition: all 0.3s ease;
}

.project-icon img {
    transition: all 0.3s ease;
}

.card:hover .project-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* 卡片阴影效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: #42A5F5;
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

.btn-outline-primary {
    border-color: #42A5F5;
    color: #42A5F5;
}

.btn-outline-primary:hover {
    background: #42A5F5;
    border-color: #42A5F5;
    color: #ffffff;
}

/* Section */
.nk-block-lg {
    padding: 4rem 0;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head .title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    margin-top: auto;
}

.footer h5, .footer h6 {
    color: #364a63;
}

.footer a {
    transition: all 0.2s ease;
}

.footer a:hover {
    color: #42A5F5 !important;
    transform: translateX(3px);
}

/* 代码块 */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 90%;
}

/* 文档目录 */
.nk-menu-link {
    display: block;
    padding: 0.5rem 0;
    color: #526484;
    transition: all 0.2s ease;
}

.nk-menu-link:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* 表格样式 */
.table-bordered {
    border-color: #e5e9f2;
}

.table-bordered th,
.table-bordered td {
    border-color: #e5e9f2;
}

.table-light {
    background-color: #f8f9fa;
}

/* 容器优化 */
.container-fluid.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 响应式 */
@media (max-width: 992px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        margin-bottom: 1rem !important;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }
    
    .nk-block-lg {
        padding: 2rem 0;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* 图标颜色 */
.bg-primary-dim {
    background: rgba(66, 165, 245, 0.1);
}

.text-primary {
    color: #42A5F5 !important;
}

.bg-success-dim {
    background: rgba(16, 185, 129, 0.1);
}

.bg-info-dim {
    background: rgba(59, 130, 246, 0.1);
}

.bg-warning-dim {
    background: rgba(251, 191, 36, 0.1);
}

.bg-danger-dim {
    background: rgba(239, 68, 68, 0.1);
}

.bg-purple-dim {
    background: rgba(139, 92, 246, 0.1);
}

.text-purple {
    color: #8b5cf6;
}

/* 支付结果页面 */
.nk-iv-wg3-list ul {
    list-style: none;
    padding: 0;
}

.nk-iv-wg3-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e9f2;
}

.nk-iv-wg3-list li:last-child {
    border-bottom: none;
}

.nk-iv-wg3-icon .icon-circle {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle-xxl {
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 48px;
}

