/* 移动端样式 - 基于rem适配 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    font-size: 0.28rem;
    line-height: 1.5;
}

/* PC端访问适配 - 重写以确保更高优先级 */
@media screen and (min-width: 768px) {

    html,
    body {
        background-color: #f6f6f6 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .mobile-container {
        width: 730px !important;
        max-width: 730px !important;
        margin: 0 auto !important;
        background-color: #fff !important;
        position: relative !important;
        border-left: 1px solid #eee !important;
        border-right: 1px solid #eee !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05) !important;
    }

    .mobile-header {
        width: 730px !important;
        max-width: 730px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .mobile-nav {
        width: 730px !important;
        max-width: 730px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-100%) !important;
    }

    .mobile-nav.active {
        transform: translateX(-50%) translateY(0) !important;
    }

    .back-to-top {
        right: calc(50% - 365px - 1.2rem) !important;
    }

    .mobile-footer {
        width: 730px !important;
        max-width: 730px !important;
        margin: 0 auto !important;
    }

    .mobile-main {
        width: 730px !important;
        max-width: 730px !important;
        margin: 0 auto !important;
    }
}

a {
    color: #333;
    text-decoration: none;
}

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

ul,
li {
    list-style: none;
}

/* 容器 - 移动端默认样式 */
.mobile-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* 头部样式 */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 0.88rem;
    background-color: #f44336;
    padding: 0 0.2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    height: 0.6rem;
}

.mobile-logo img {
    height: 100%;
}

.mobile-nav-toggle {
    width: 0.5rem;
    height: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 0.04rem;
    background-color: #fff;
    border-radius: 0.02rem;
    transition: all 0.3s;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(0.13rem) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-0.13rem) rotate(-45deg);
}

.mobile-search {
    position: relative;
    width: 3.5rem;
}

.mobile-search input {
    width: 100%;
    height: 0.6rem;
    border: none;
    border-radius: 0.3rem;
    padding: 0 0.7rem 0 0.2rem;
    font-size: 0.24rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.mobile-search button {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 0.28rem;
}

.mobile-nav {
    position: fixed;
    top: 0.88rem;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.3s;
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0.2rem;
}

.mobile-nav li {
    width: 33.33%;
    text-align: center;
    margin-bottom: 0.2rem;
}

.mobile-nav a {
    display: block;
    padding: 0.15rem 0;
    border-radius: 0.1rem;
    background-color: #f8f8f8;
    margin: 0 0.1rem;
}

/* 分类导航菜单样式优化 */
.mobile-category-menu {
    margin-top: 0.88rem;
    background-color: #fff;
    padding: 0.2rem 0;
    border-bottom: 1px solid #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 0.2rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    margin-bottom: 0.2rem;
}

.category-item i {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f44336;
    font-size: 0.46rem;
    margin-bottom: 0.1rem;
    line-height: 1;
}

/* 图标样式修复 */
.icon-suanming,
.icon-bazi,
.icon-xingzuo,
.icon-qiming,
.icon-hehun,
.icon-shengxiao,
.icon-huangli,
.icon-rili,
.icon-jiri {
    font-size: 0.46rem;
    line-height: 1;
}

/* 主内容区 */
.mobile-main {
    width: 100%;
    padding: 0;
    padding-top: 0.2rem;
    padding-bottom: 1rem;
    background-color: #fff;
    margin: 0 auto;
    position: relative;
}

/* 轮播图 */
.mobile-slider {
    border-radius: 0.1rem;
    overflow: hidden;
    margin-bottom: 0.3rem;
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s;
}

.slider-item {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.slider-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.15rem 0.2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 0.3rem;
}

.slider-pagination {
    position: absolute;
    bottom: 0.2rem;
    right: 0.2rem;
    display: flex;
}

.slider-pagination span {
    width: 0.16rem;
    height: 0.16rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 0.05rem;
}

.slider-pagination span.active {
    background-color: #fff;
}

/* 栏目公共样式 */
.mobile-section {
    background-color: #fff;
    border-radius: 0;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.15rem;
    box-shadow: none;
    border-bottom: 1px solid #f5f5f5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    border-bottom: 0.01rem solid #eee;
    padding-bottom: 0.15rem;
}

.section-header h2 {
    font-size: 0.32rem;
    position: relative;
    padding-left: 0.2rem;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05rem;
    bottom: 0.05rem;
    width: 0.06rem;
    background-color: #f44336;
    border-radius: 0.03rem;
}

.section-header .more {
    font-size: 0.24rem;
    color: #999;
}

/* 文章列表样式优化，接近神卜网 */
.article-item {
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 0.01rem solid #f5f5f5;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-link {
    display: flex;
}

.article-image {
    width: 2rem;
    height: 1.4rem;
    margin-right: 0.15rem;
    border-radius: 0.06rem;
    overflow: hidden;
    background-color: #f9f9f9;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info.no-thumb {
    width: 100%;
}

.article-title {
    font-size: 0.28rem;
    margin-bottom: 0.12rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: #333;
    font-weight: normal;
}

.article-meta {
    color: #999;
    font-size: 0.22rem;
    display: flex;
    align-items: center;
}

.article-meta span {
    margin-right: 0.2rem;
}

.article-desc {
    font-size: 0.24rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.1rem;
}

/* 底部 */
.mobile-footer {
    width: 100%;
    background-color: #222;
    padding: 0.3rem 0;
    color: #999;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.footer-nav {
    margin-bottom: 0.3rem;
}

.footer-nav a {
    color: #bbb;
    padding: 0 0.2rem;
}

.footer-nav span {
    color: #666;
}

.footer-copyright {
    font-size: 0.24rem;
    line-height: 1.8;
}

.footer-copyright a {
    color: #999;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 0.3rem;
    bottom: 1rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: none;
    z-index: 90;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 0.4rem;
}

/* 栏目页样式 */
.category-header {
    margin-bottom: 0.1rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.6), rgba(233, 234, 235, 0.5));
    padding: 0.1rem 0.1rem;
    /*border-radius: 0.1rem;
    box-shadow: 0 0.03rem 0.1rem rgba(52, 152, 219, 0.1);*/
    color: #fff;
}

.category-title {
    font-size: 0.34rem;
    margin-bottom: 0.1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(224, 21, 21, 0.1);
    color: #333;
}

.category-desc {
    font-size: 0.24rem;
    color: #666;
    line-height: 1.4;
}

.subcategory-nav {
    background-color: #fff;
    border-radius: 0.1rem;
    margin-bottom: 0.3rem;
    padding: 0.2rem;
    box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, 0.05);
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
}

.subcategory-item {
    padding: 0.1rem 0.2rem;
    background-color: #f5f5f5;
    border-radius: 0.1rem;
    margin: 0.1rem;
    font-size: 0.26rem;
}

/* 列表页样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
    font-size: 0.26rem;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb .separator {
    margin: 0 0.1rem;
}

.breadcrumb .current {
    color: #f44336;
}

.hot-list {
    padding: 0 0.1rem;
}

.hot-item {
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 0.01rem solid #f2f2f2;
}

.hot-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-title {
    flex: 1;
    font-size: 0.28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-meta {
    color: #999;
    font-size: 0.24rem;
}

/* 内容页相关文章 */
.related-articles .related-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.1rem;
}

.related-articles .related-item {
    width: 50%;
    padding: 0.1rem;
    box-sizing: border-box;
}

.related-articles .related-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f8f8f8;
    border-radius: 0.1rem;
    overflow: hidden;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.05);
}

.related-articles .related-image {
    width: 100%;
    height: 1.8rem;
    object-fit: cover;
}

.related-articles .related-info {
    padding: 0.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-articles .related-title {
    font-size: 0.26rem;
    line-height: 1.4;
    margin-bottom: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 0.73rem;
}

.related-articles .related-meta {
    font-size: 0.24rem;
    color: #999;
    margin-top: auto;
}

.comment-form {
    margin-bottom: 0.3rem;
}

.comment-form textarea {
    width: 100%;
    height: 2rem;
    border: 0.01rem solid #eee;
    border-radius: 0.1rem;
    padding: 0.2rem;
    resize: none;
    font-size: 0.28rem;
}

.form-actions {
    text-align: right;
    margin-top: 0.2rem;
}

.btn-submit {
    padding: 0.15rem 0.3rem;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 0.1rem;
    font-size: 0.28rem;
    cursor: pointer;
}

.comment-item {
    display: flex;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 0.01rem solid #f2f2f2;
}

.comment-avatar {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.2rem;
}

.comment-body {
    flex: 1;
}

.comment-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}

.comment-user .name {
    font-weight: bold;
    color: #f44336;
}

.comment-user .time {
    font-size: 0.24rem;
    color: #999;
}

.comment-content {
    font-size: 0.28rem;
    line-height: 1.6;
}

.page-navigation {
    text-align: center;
    margin-top: 0.3rem;
    font-size: 0.28rem;
}

.page-navigation a {
    display: inline-block;
    padding: 0.1rem 0.25rem;
    margin: 0 0.05rem;
    background-color: #f5f5f5;
    border-radius: 0.1rem;
}

.page-navigation span {
    display: inline-block;
    padding: 0.1rem 0.25rem;
    margin: 0 0.05rem;
    background-color: #f44336;
    color: #fff;
    border-radius: 0.1rem;
}

/* 图标字体 */
/*@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.woff2') format('woff2'),
        url('../fonts/iconfont.woff') format('woff');
}

.icon-search,
.icon-view,
.icon-top {
    font-family: 'iconfont';
}

.icon-search:before {
    content: '\e608';
}

.icon-view:before {
    content: '\e602';
}

.icon-top:before {
    content: '\e605';
}

.icon-suanming:before {
    content: '\e61a';
}

.icon-bazi:before {
    content: '\e61b';
}

.icon-xingzuo:before {
    content: '\e61c';
}

.icon-qiming:before {
    content: '\e61d';
}*/

.author-info {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 0.2rem;
    border-radius: 0.1rem;
    margin: 0.3rem 0;
}

.author-avatar {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.2rem;
}

.author-name {
    font-size: 0.28rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.author-intro {
    font-size: 0.24rem;
    color: #666;
}

/* 内容页样式 */
.article-content {
    background-color: #fff;
    border-radius: 0.1rem;
    padding: 0.1rem;
    margin-bottom: 0.1rem;
    box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 0.1rem;
    border-bottom: 0.01rem solid #f2f2f2;
    padding-bottom: 0.1rem;
}

.article-header .article-title {
    font-size: 0.36rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
    display: block;
    font-weight: bold;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
}

.article-tags {
    margin-top: 0.15rem;
    width: 100%;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.05rem 0.15rem;
    background-color: #f5f5f5;
    border-radius: 0.1rem;
    font-size: 0.24rem;
    margin-right: 0.15rem;
    margin-bottom: 0.1rem;
    color: #666;
}

.article-summary {
    background-color: #f8f8f8;
    padding: 0.2rem;
    border-radius: 0.1rem;
    margin-bottom: 0.3rem;
    font-size: 0.26rem;
    color: #666;
    line-height: 1.6;
}

.article-text {
    font-size: 0.3rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.3rem;
}

.article-text img {
    max-width: 100%;
    height: auto;
    margin: 0.3rem auto;
    border-radius: 0.1rem;
    display: block;
}

.article-text p {
    margin-bottom: 0.2rem;
}

.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4 {
    margin: 0.4rem 0 0.2rem;
}

/* 添加ul、li样式 */
.article-text ul,
.article-text ol {
    margin: 0.2rem 0 0.3rem 0.4rem;
}

.article-text ul li {
    list-style: disc outside;
    margin-bottom: 0.15rem;
    line-height: 1.6;
}

.article-text ol li {
    list-style: decimal outside;
    margin-bottom: 0.15rem;
    line-height: 1.6;
}

/* 添加表格样式 */
.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.3rem 0;
    font-size: 0.28rem;
}

.article-text table th,
.article-text table td {
    border: 1px solid #e0e0e0;
    padding: 0.15rem;
    text-align: left;
}

.article-text table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.article-text table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.article-text table tr:hover {
    background-color: #f0f0f0;
}

/* 移动端表格响应式 */
@media screen and (max-width: 767px) {
    .article-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.read-permission {
    background-color: #f8f8f8;
    padding: 0.3rem;
    border-radius: 0.1rem;
    margin: 0.3rem 0;
    text-align: center;
}

.permission-tips {
    font-size: 0.28rem;
    color: #666;
}

.btn-pay {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.15rem 0.3rem;
    background-color: #f44336;
    color: #fff;
    border-radius: 0.1rem;
    font-size: 0.28rem;
}

.article-pages {
    text-align: center;
    margin: 0.3rem 0;
}

.article-nav {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 0.01rem solid #f2f2f2;
}

.prev-next {
    font-size: 0.28rem;
    line-height: 1.6;
}

.prev-next .prev,
.prev-next .next {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 栏目页相关项样式 */
.related-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.1rem;
}

.related-item {
    width: calc(33.33% - 0.2rem);
    padding: 0.1rem;
    box-sizing: border-box;
}

.related-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f8f8f8;
    border-radius: 0.1rem;
    overflow: hidden;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.05);
}

.related-item .thumb {
    width: 100%;
    height: 1.6rem;
    object-fit: cover;
}

.related-item .text {
    padding: 0.15rem;
    font-size: 0.26rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 0.73rem;
}