/* ============================================================
   号易号卡官网 - 自定义样式
   主色调：科技蓝 + 生态绿
   ============================================================ */

:root {
    --brand-primary: #0d6efd;
    --brand-secondary: #10b981;
    --brand-dark: #0a1f44;
    --brand-gradient: linear-gradient(135deg, #0d6efd 0%, #10b981 100%);
    --brand-gradient-soft: linear-gradient(135deg, #eaf3ff 0%, #e9fbf3 100%);
    --brand-text-dark: #1e293b;
    --brand-text-muted: #64748b;
    --brand-radius: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--brand-text-dark);
    background-color: #f8fafc;
}

/* ========== 导航栏 ========== */
.navbar-brand img,
.navbar-brand svg {
    margin-right: 8px;
}

/* ========== Hero 区域 ========== */
.hero-section {
    background: var(--brand-gradient);
    color: #fff;
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.hero-section::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 30px;
}

/* Hero 四个核心按钮 */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 44px;
}
.btn-hero {
    min-width: 170px;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}
.btn-hero:hover {
    background: #fff;
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-hero-main {
    background: #fff;
    color: var(--brand-primary);
    border-color: #fff;
}
.btn-hero-main:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-primary);
}

/* ========== 联系方式卡片 ========== */
.contact-cards {
    margin-top: -52px;
    position: relative;
    z-index: 2;
}
.contact-card {
    background: #fff;
    border-radius: var(--brand-radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 22px;
    height: 100%;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--brand-secondary);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.contact-card .icon {
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: 50%;
    background: var(--brand-gradient-soft);
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin: 0 auto 12px;
}
.contact-card .label {
    color: var(--brand-text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.contact-card .value {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-all;
}

/* ========== 通用卡片 ========== */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 26px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 4px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.article-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--brand-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.article-card .card-cover {
    height: 180px;
    background: var(--brand-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.article-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card .card-body {
    padding: 18px;
}
.article-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}
.article-card .card-title a {
    color: var(--brand-text-dark);
    text-decoration: none;
}
.article-card .card-title a:hover {
    color: var(--brand-primary);
}
.article-card .card-excerpt {
    color: var(--brand-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .card-meta {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ========== 文章详情 ========== */
.article-content {
    background: #fff;
    border-radius: var(--brand-radius);
    padding: 36px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    line-height: 1.85;
    font-size: 1rem;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    margin: 1.4em 0 0.6em;
}
.article-content h2 { font-size: 1.45rem; border-bottom: 1px solid #eef2f7; padding-bottom: 8px; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 1em; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.article-content blockquote {
    border-left: 4px solid var(--brand-primary);
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    color: var(--brand-text-muted);
    margin: 1em 0;
}
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.article-content table th, .article-content table td { border: 1px solid #e2e8f0; padding: 8px 12px; }
.article-content table th { background: #f8fafc; }

/* 面包屑 */
.breadcrumb-nav {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
    margin-bottom: 16px;
}
.breadcrumb-nav a { color: var(--brand-primary); text-decoration: none; }

/* ========== 友情链接 ========== */
.friend-links a {
    display: inline-block;
    margin: 0 18px 10px 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.friend-links a:hover { color: #fff; }

/* ========== 页脚 ========== */
.footer-section {
    background: var(--brand-dark);
    color: #cbd5e1;
    padding: 40px 0 26px;
    margin-top: 60px;
}
.footer-section h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    margin-top: 28px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ========== 分页 ========== */
.pagination .page-link {
    color: var(--brand-primary);
}
.pagination .page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* ========== 图库缩略图 ========== */
.img-gallery-thumb {
    height: 140px;
    object-fit: cover;
    background: #f1f5f9;
}

/* ========== 通用工具 ========== */
.text-brand { color: var(--brand-primary); }
.bg-brand-gradient { background: var(--brand-gradient); }

@media (max-width: 767.98px) {
    .hero-section { padding: 56px 0 64px; }
    .hero-buttons .btn-hero { min-width: 130px; padding: 10px 18px; font-size: 0.92rem; }
    .article-content { padding: 20px; }
}

/* ============================================================
   移动端底部导航栏（仅 < md 屏幕显示）
   ============================================================ */
body {
    /* 预留移动端底部导航高度，避免内容被遮挡 */
    padding-bottom: 0;
}
@media (max-width: 767.98px) {
    body.mnav-active {
        padding-bottom: 76px;
    }
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 -6px 24px rgba(10, 31, 68, 0.12);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav .mobile-bottom-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.78rem;
    border-radius: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.mobile-bottom-nav .mobile-bottom-item i {
    font-size: 1.25rem;
    line-height: 1;
}
.mobile-bottom-nav .mobile-bottom-item:active {
    transform: scale(0.94);
}
.mobile-bottom-nav .mobile-bottom-item.active {
    color: var(--brand-primary);
    font-weight: 600;
    background: var(--brand-gradient-soft);
}
.mobile-bottom-nav .mobile-bottom-highlight {
    color: #ffffff;
    background: var(--brand-gradient);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
    font-weight: 600;
}
.mobile-bottom-nav .mobile-bottom-highlight.active {
    color: #ffffff;
    background: var(--brand-gradient);
}
