/* ============================================================
   XINPOP EDGE ENHANCEMENT LAYER (v2.0.81)
   统一高端增强层：1600px / 全端响应式 / 滚动动画 / 触控优化
   ============================================================ */

/* ---------- 正文内容排版兜底（v2.0.50） ----------
   覆盖全模板文章详情页正文容器，确保规范排版：
   行高 / 首行缩进 / 段落间距 / 标题层级 / 图片自适应 / 引用 / 列表 / 表格
   若模板自身已定义更精细的正文样式，其特异性高于此处兜底。 */
.article-content, .a-body, .article-body, .article-content area,
#content .content, .detail .content, article .content,
section .body, div .body {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article-content p, .a-body p, .article-body p, .body p,
.content p, article p {
    margin: 0 0 1.1em 0;
    text-indent: 2em;
    line-height: 1.9;
    text-align: justify;
}
.article-content p:first-child, .a-body p:first-child,
.article-body p:first-child, .body p:first-child, .content p:first-child {
    text-indent: 2em;
}
.article-content h1, .a-body h1, .article-body h1, .body h1, .content h1,
.article-content h2, .a-body h2, .article-body h2, .body h2, .content h2,
.article-content h3, .a-body h3, .article-body h3, .body h3, .content h3,
.article-content h4, .a-body h4, .article-body h4, .body h4, .content h4 {
    margin: 1.6em 0 0.8em 0;
    line-height: 1.45;
    text-indent: 0;
    font-weight: 700;
}
.article-content h1, .a-body h1 { font-size: 1.7em; }
.article-content h2, .a-body h2 { font-size: 1.45em; }
.article-content h3, .a-body h3 { font-size: 1.25em; }
.article-content h4, .a-body h4 { font-size: 1.1em; }
.article-content img, .a-body img, .article-body img, .body img, .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2em auto;
    border-radius: 4px;
}
.article-content blockquote, .a-body blockquote, .article-body blockquote,
.body blockquote, .content blockquote {
    margin: 1.4em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--primary, #0d9488);
    background: rgba(128, 128, 128, 0.06);
    color: #555;
    line-height: 1.9;
}
.article-content ul, .a-body ul, .article-body ul, .body ul, .content ul,
.article-content ol, .a-body ol, .article-body ol, .body ol, .content ol {
    margin: 0 0 1.1em 2.2em;
    padding: 0;
    line-height: 1.9;
}
.article-content li, .a-body li, .article-body li, .body li, .content li {
    margin: 0.3em 0;
    line-height: 1.9;
}
.article-content table, .a-body table, .article-body table, .body table, .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95em;
}
.article-content th, .a-body th, .article-body th, .body th, .content th,
.article-content td, .a-body td, .article-body td, .body td, .content td {
    border: 1px solid #ddd;
    padding: 0.7em 0.9em;
    text-align: left;
    line-height: 1.7;
}
.article-content th, .a-body th, .article-body th, .body th, .content th {
    background: rgba(128, 128, 128, 0.08);
    font-weight: 700;
}
.article-content a, .a-body a, .article-body a, .body a, .content a {
    color: var(--primary, #0d9488);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content hr, .a-body hr, .article-body hr, .body hr, .content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2em 0;
}
.article-content strong, .a-body strong, .article-body strong, .body strong, .content strong { font-weight: 700; }
.article-content em, .a-body em, .article-body em, .body em, .content em { font-style: italic; }
@media (max-width: 768px) {
    .article-content, .a-body, .article-body, .body, .content {
        font-size: 15px;
        line-height: 1.85;
    }
    .article-content p, .a-body p, .article-body p, .body p, .content p { text-indent: 2em; }
}

/* 宽度1600px骨架 */
.edge-lg { max-width: 1600px !important; }
@media (min-width: 1600px) {
    .edge-line { max-width: 1600px !important; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1024px) {
    .edge-hide-tablet { display: none !important; }
}
@media (max-width: 768px) {
    [class*="edge-block"] { padding-left: 14px !important; padding-right: 14px !important; }
}
/* 滚动浮现动画 */
.edge-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.25,.8,.25,1), transform .7s cubic-bezier(.25,.8,.25,1);
    will-change: opacity, transform;
}
.edge-reveal.edge-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .edge-reveal { opacity: 1; transform: none; transition: none; }
}
/* 图片懒加载淡入 */
.edge-lazy { opacity: 0; transition: opacity .6s ease; }
.edge-lazy.edge-loaded { opacity: 1; }
/* 卡片悬停光影 */
.edge-card { transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease, border-color .3s ease; }
.edge-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px -12px rgba(15,23,42,.18), 0 4px 12px -4px rgba(15,23,42,.08); }
/* 移动端安全区 & 触控优化 */
@supports (padding: env(safe-area-inset-bottom)) {
    .edge-mobile-footer { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 768px) {
    a, button { -webkit-tap-highlight-color: transparent; }
    .edge-touch { touch-action: manipulation; }
}
/* 细滚动条 */
.edge-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.edge-scroll::-webkit-scrollbar-thumb { background: rgba(15,23,42,.25); border-radius: 3px; }
/* 渐变文字强调 */
.edge-grad-text {
    background: linear-gradient(100deg, var(--primary,#0d9488), var(--primary-light,#5eead4) 55%, var(--secondary,#1e3a5f));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 大屏栅格 */
@media (min-width: 1600px) { .edge-grid-more { gap: 32px; } }
.edge-fs-list a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(128,128,128,.12); font-size: 15px; }

/* ============================================================
   XINPOP 字体层级统一 (v2.0.81)
   主导航 20px / 左侧导航 18px / 正文内容 18px
   ============================================================ */
/* 主导航 20px（覆盖各模板 navbar/nav/nav-menu/nav-inner 等命名差异） */
.navbar a, .navbar ul a, .navbar li a, .navbar .nav a,
.nav a, .nav-menu a, .nav-menu li a, .nav-inner a, .navbar-inner a,
.navbar .inner a, nav.nav a, header nav a, .main-nav a, .navi a, .b-nav a,
.nav ul a, .nav li a, .top-nav a, .m-nav a, .navbar-nav a, .nav-box a, .nav-wrap a {
    font-size: 20px !important;
}
/* 左侧导航 18px（side/sidebar/aside 等） */
.side a, .side li a, .sidebar a, .sidebar li a, aside a,
.side-nav a, .sidebar-nav a, .sidebar-menu a, .sidebar-list a, .side-list a,
.side-card a, .side-menu a, .sidebar-card a, .sidebar-box a,
.side li, .sidebar li, .side-list li, .sidebar-list li {
    font-size: 18px !important;
}
/* 正文内容 18px（覆盖编辑器内联字号，保留标题层级） */
.body p, .content p, .article-content p, .article-body p, .a-body p,
article p, .detail p, .article-detail p, .news-content p, .text p,
main p, .main p, .doc p, .section-content p, .rich-text p, .entry-content p {
    font-size: 18px !important;
}
.article-content, .a-body, .article-body, .article-content-wrap,
.detail .content, article .content, main .content, .article-detail,
#content .content, section .body, div .body, .news-content, .rich-text {
    font-size: 18px;
}
@media (max-width: 1024px) {
    .navbar a, .navbar ul a, .navbar li a, .nav a, .nav-menu a, .nav-menu li a,
    .navbar-inner a, .nav-inner a, nav.nav a, header nav a, .main-nav a {
        font-size: 17px !important;
    }
    .side a, .sidebar a, aside a, .side-list a, .sidebar-list a {
        font-size: 16px !important;
    }
}
@media (max-width: 768px) {
    .navbar a, .navbar ul a, .navbar li a, .nav a, .nav-menu a, .nav-menu li a,
    .navbar-inner a, .nav-inner a, nav.nav a, header nav a {
        font-size: 15px !important;
    }
    .body p, .content p, article p, .article-content p, .a-body p {
        font-size: 16px !important;
    }
    .side a, .sidebar a, aside a, .side-list a, .sidebar-list a {
        font-size: 16px !important;
    }
}

/* 厂商署名（软性广告，链接至官网） */
.xp-powered{margin-top:10px;font-size:12px;line-height:1.7;text-align:center;opacity:.88}
.xp-powered a{color:inherit;text-decoration:underline}
.xp-powered a:hover{opacity:1;text-decoration:underline}
