/* ===== 全局 ===== */
body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1a1a2e;
}

/* ===== Hero 区域 ===== */
.hero-section {
    background: linear-gradient(135deg, #1a3a6b 0%, #2563eb 60%, #3b82f6 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.hero-section .lead {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
}

.hero-wave {
    margin-top: 60px;
    line-height: 0;
}

.hero-wave svg { display: block; }

.hero-icon-wrap {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.12);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== 页面顶部 banner ===== */
.page-header {
    background: linear-gradient(135deg, #1a3a6b 0%, #2563eb 100%);
    color: white;
    padding: 40px 0;
}

/* ===== 功能特点卡片 ===== */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37,99,235,0.12);
    border-color: #dbeafe;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

/* ===== 三板块入口 ===== */
.section-entry-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #dbeafe;
}

.section-entry-card > i {
    font-size: 40px;
}

/* ===== 博客卡片 ===== */
.blog-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.1);
    border-color: #dbeafe;
}

.blog-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.blog-card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 资源链接卡片 ===== */
.link-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.1);
    border-color: #bfdbfe;
}

.link-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2563eb;
}

.link-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 文件下载卡片 ===== */
.download-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: #d1fae5;
}

.file-icon-wrap {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ===== 分类标题 ===== */
.category-indicator {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ===== 软件页 ===== */
.sw-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    flex-shrink: 0;
}

.sw-download-icon {
    font-size: 60px;
    color: #2563eb;
    opacity: 0.8;
}

/* ===== 文章内容 ===== */
.post-content {
    line-height: 1.9;
    color: #374151;
    white-space: pre-wrap;
}

.post-content h2, .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-content li { margin-bottom: 0.4rem; }

/* ===== 页脚 ===== */
.footer {
    background: #1a1a2e;
    color: #e5e7eb;
    padding: 40px 0 30px;
}

.footer .text-muted { color: #9ca3af !important; }

.hover-link:hover { color: white !important; }

/* ===== 工具栏 / 按钮 ===== */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border: none;
}

.navbar .nav-link { transition: all 0.15s; }

/* ===== 联系页 ===== */
.contact-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hover-link-dark:hover { color: #1a1a2e !important; }
