/* =========================================================
   mgyun_leyu - 仿乐鱼模板自定义样式
   ========================================================= */

/* 全局 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
}

a { transition: all 0.3s; }

img { max-width: 100%; height: auto; }

/* ===== 列表/详情页 通用 hover 效果 ===== */
.hover-effect {
    transition: transform 0.3s, box-shadow 0.3s;
}
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
}
.hover-slide {
    transition: transform 0.25s ease;
}
.hover-slide:hover {
    transform: translateX(6px);
}

/* ===== 文章正文样式 ===== */
.article-content { line-height: 1.9; color: #333; font-size: 16px; }
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.6em;
    margin-bottom: .8em;
    font-weight: 700;
    color: #222;
}
.article-content h3 { font-size: 1.25rem; border-left: 4px solid #0d6efd; padding-left: 12px; }
.article-content p { margin-bottom: 1.2em; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2em; }

/* ===== 文章详情 hero 头图 ===== */
.article-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.article-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65));
    padding: 30px 16px;
}
.article-hero h1 { font-size: 1.8rem; max-width: 900px; line-height: 1.4; }
@media (min-width: 768px) {
    .article-hero { min-height: 380px; }
    .article-hero h1 { font-size: 2.2rem; }
}

/* ===== 分页 fanye ===== */
.fanye .pagination,
.fanye ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.fanye li, .fanye span, .fanye a {
    display: inline-block;
}
.fanye a, .fanye span {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
}
.fanye a:hover, .fanye li.active span, .fanye li.active a, .fanye .current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ===== 修补：原 module.css 在某些版本未保留的关键样式 ===== */

/* hero-10 备用样式（兜底） */
#hero-10.hero-10-section {
    position: relative;
    min-height: 480px;
    background: linear-gradient(135deg, #0b1233 0%, #1c1f3f 50%, #3d0b40 100%);
    color: #fff;
    padding: 90px 16px 90px;
    overflow: hidden;
}
.hero-10-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .5;
}
.hero-10-container {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
}
.hero-10-container h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.hero-10-container h1 strong { color: #ffc107; }
.hero-10-container p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 760px; margin: 0 auto 28px; }
.hero-10-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-10-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: #ffc107;
    color: #1c1f3f;
    transition: all .3s;
    border: 2px solid #ffc107;
}
.hero-10-buttons a:nth-child(2) {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.hero-10-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
@media (max-width: 576px) {
    .hero-10-container h1 { font-size: 1.7rem; }
}

/* stats-9 热力地图 */
.stats9-map-wrapper { max-width: 1100px; margin: 0 auto; }
.stats9-map { position: relative; }
.stats9-map img { width: 100%; display: block; border-radius: 12px; }
.heat-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, .7);
    animation: pulse 2s infinite;
}
.heat-dot span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.heat-dot.dot-1 { top: 32%; left: 70%; }
.heat-dot.dot-2 { top: 56%; left: 73%; }
.heat-dot.dot-3 { top: 28%; left: 47%; }
.heat-dot.dot-4 { top: 65%; left: 32%; }
.heat-dot.dot-5 { top: 40%; left: 18%; background: #fd7e14; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .6); }
    70% { box-shadow: 0 0 0 18px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* security-14 网络化安全体系 */
#security-14 {
    background: linear-gradient(135deg, #0b1233 0%, #2c1054 100%);
}
.security-14-network {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 460px;
}
.security-14-network .core-node,
.security-14-network .node {
    position: absolute;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(6px);
    color: #fff;
    text-align: center;
    width: 200px;
}
.core-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    background: rgba(13,110,253,.25);
    border-color: rgba(13,110,253,.6);
}
.node-top-left { top: 0; left: 0; }
.node-top-right { top: 0; right: 0; }
.node-bottom-left { bottom: 0; left: 0; }
.node-bottom-right { bottom: 0; right: 0; }
.node-title { font-weight: 700; margin: 6px 0; }
@media (max-width: 768px) {
    .security-14-network { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .security-14-network .core-node,
    .security-14-network .node {
        position: static;
        transform: none;
        width: auto;
    }
    .core-node { grid-column: span 2; order: -1; }
}

/* faq-11 时间线 */
.faq-11-title { font-size: 1.7rem; font-weight: 800; color: #1c1f3f; }
.faq-11-desc { color: #6c757d; }
.faq-11-timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding-left: 50px;
}
.faq-11-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #6f42c1);
}
.faq-11-step {
    position: relative;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.faq-11-icon {
    position: absolute;
    left: -50px;
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-11-step h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #222; }
.faq-11-step p { color: #6c757d; margin: 0; line-height: 1.7; }

/* app-14 区块 */
#app-14 {
    background: linear-gradient(135deg, #102a71 0%, #4d1077 100%);
}
.app14-rating-box {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
}
.btn-glass {
    background: rgba(255,255,255,.18);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}
.btn-glass:hover {
    background: rgba(255,255,255,.32);
    color: #fff;
}

/* news-10 卡片 */
.news10-item { transition: transform .25s, box-shadow .25s; }
.news10-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 .8rem 1.5rem rgba(0,0,0,.08) !important;
}
.news10-img-wrap {
    width: 220px;
    height: 140px;
    overflow: hidden;
    border-radius: 12px;
}
.news10-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .news10-img-wrap { width: 100%; height: 200px; }
}

/* why-us 卡片 */
.why-us-item { transition: transform .25s; }
.why-us-item:hover { transform: translateY(-4px); }

/* 顶部导航 active 颜色 */
#header-7 .navbar-nav .nav-link {
    color: #555;
    font-size: 15px;
}
#header-7 .navbar-nav .nav-link.active,
#header-7 .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* footer 链接 hover */
#footer-12 a:hover { color: #fff !important; }

/* py-6 备用 */
.py-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }

/* ===== 品牌 / 占位元素（代替外站图片）===== */

/* 头部 文字 logo */
.site-brand-text {
    font-size: 22px;
    color: #0d6efd !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.site-brand-text .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 优势卡片图标背景 */
.why-icon-wrap {
    width: 96px;
    height: 96px;
}

/* About 区域插画占位 */
.about-illustration {
    min-height: 240px;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    position: relative;
    overflow: hidden;
}
.about-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.1) 0, transparent 30%);
}

/* 世界地图背景（纯 CSS 占位，热点在其上覆盖）*/
.world-map-bg {
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, #0b1233 0%, #1c1f3f 50%, #2c1054 100%);
    background-image:
        radial-gradient(ellipse at 18% 40%, rgba(13,110,253,.35) 0, transparent 14%),
        radial-gradient(ellipse at 32% 32%, rgba(13,110,253,.30) 0, transparent 12%),
        radial-gradient(ellipse at 47% 28%, rgba(13,110,253,.32) 0, transparent 14%),
        radial-gradient(ellipse at 70% 32%, rgba(13,110,253,.35) 0, transparent 16%),
        radial-gradient(ellipse at 73% 56%, rgba(13,110,253,.30) 0, transparent 14%),
        radial-gradient(ellipse at 30% 65%, rgba(13,110,253,.25) 0, transparent 12%),
        radial-gradient(ellipse at 50% 70%, rgba(13,110,253,.22) 0, transparent 12%),
        linear-gradient(135deg, #0b1233 0%, #1c1f3f 50%, #2c1054 100%);
    border: 1px solid rgba(255,255,255,.08);
}

/* App 区域手机占位 */
.app-mockup {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.16)) !important;
    border: 1px solid rgba(255,255,255,.2);
}

/* 详情页 hero 渐变背景占位 */
.article-hero-gradient {
    background: linear-gradient(135deg, #0b1233 0%, #1c1f3f 50%, #3d0b40 100%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(13,110,253,.35) 0, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(111,66,193,.35) 0, transparent 30%),
        linear-gradient(135deg, #0b1233 0%, #1c1f3f 50%, #3d0b40 100%);
}

/* 列表/资讯 无图占位 */
.list-card-placeholder,
.news-placeholder,
.rel-thumb-placeholder,
.list-no-img {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}
.list-no-img::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    opacity: .75;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
