/* BlogBox v0.6 自定义样式 */
/* 作者: Bill */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-logo h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -0.25rem;
    display: block;
}

.nav-menu {
    flex-grow: 1;
    margin: 0 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-item.active .nav-link,
.nav-link[href="/about/"] {
    font-weight: 700;
    color: #1f2937;
}

.nav-link.disabled {
    color: #9ca3af !important;
    cursor: not-allowed;
}

/* 搜索框样式 */
.nav-search {
    margin-left: auto;
    margin-right: 1rem;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    padding: 0.45rem 0.9rem;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.875rem;
    width: 220px;
    color: #374151;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    padding: 0.45rem 0.9rem;
    background-color: #2563eb;
    color: white;
    border: 1px solid #2563eb;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.search-btn:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* 用户操作按钮 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    padding: 0.45rem 0.9rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 卡片样式 */
.section-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-card-alt {
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #0ea5e9;
    margin-right: 0.5rem;
}

/* 文章卡片样式 */
.article-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.article-summary {
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.article-stats {
    font-size: 0.875rem;
    color: #6c757d;
}

.article-stats i {
    margin-right: 0.25rem;
}

/* 特色功能卡片 */
.feature-card {
    background-color: #fff;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 统计卡片 */
.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 底部样式 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.375em 0.75em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-primary {
    background-color: #007bff;
}

.bg-success {
    background-color: #28a745;
}

.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.bg-info {
    background-color: #17a2b8;
}

.bg-light {
    background-color: #f8f9fa;
    color: #212529;
}

/* 文本样式 */
.text-primary { color: #007bff; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-muted { color: #6c757d; }
.text-center { text-align: center; }
.text-md-end { text-align: right; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* 间距工具类 */
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-3 { margin-right: 1rem; }
.ms-2 { margin-left: 0.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.p-4 { padding: 1.5rem; }

/* 布局工具类 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 显示工具类 */
.justify-content-center {
    justify-content: center;
}

/* Font Awesome图标替代 */
.fas, .fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-rocket:before { content: "🚀"; }
.fa-newspaper:before { content: "📰"; }
.fa-star:before { content: "⭐"; }
.fa-robot:before { content: "🤖"; }
.fa-video:before { content: "📹"; }
.fa-comments:before { content: "💬"; }
.fa-chart-line:before { content: "📈"; }
.fa-eye:before { content: "👁"; }
.fa-heart:before { content: "❤"; }
.fa-comment:before { content: "💬"; }
.fa-file-alt:before { content: "📄"; }
.fa-3x { font-size: 3rem; }

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        margin: 0;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .text-md-end {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示样式 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 24/06/13:15:00, Bill(cursor.static.css.style)+为header统一样式 */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.2rem 0 1rem 0;
    background: transparent;
}
.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 2px;
    margin: 0;
}
.header-nav {
    display: flex;
    gap: 1.5rem;
}
.header-nav a {
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.header-nav a.active,
.header-nav a:hover {
    color: #0ea5e9;
}
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .header-title {
        font-size: 1.3rem;
    }
    .header-nav {
        gap: 1rem;
    }
} 