/* ======================================
   以下仅作用于手机端，是WHY80移动端的 CSS优化（可直接复制到why80.com 列表css后面）
====================================== */
/* 基础（精简版） */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
ol,ul{list-style:none;}
table{border-collapse:collapse;border-spacing:0;}
a{text-decoration:none;}
img{max-width:100%;height:auto!important}
.clear{clear:both;}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -ms-text-size-adjust:100%;
    -webkit-text-size-adjust:100%;
    background:#f0f0f0;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* 容器样式 */
.wrap{
    width:96%;
    max-width:1068px;
    margin:0 auto;
}

/* 19寸以上显示器适配 */
@media only screen and (min-width: 1440px) {
    .wrap{
        max-width:1400px;
    }
}

/* 导航样式 - 适配80后生活网LOGO */
.header {
    padding: 15px 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    margin: 0 20px;
}
.logo a h1 {
    font-size: 2.2em;
    color: #e8603c;
    font-weight: bold;
}
.logo a h1 span{
    color: #f3af9d;
}

/* 菜单样式 */
.menu {
    z-index: 999;
    margin-right: 20px;
}
.menu ul.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.menu li {
    margin: 0 3px;
}
.menu li a {
    color: #333;
    font-size: 0.875em;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}
.menu li a i {
    margin-right: 6px;
    color: #e8603c;
}
.menu li a:hover, .menu li.active a {
    color: #e8603c;
    background-color: #fef0eb;
}

/* 位置导航（替代原top-heading） */
.location{
    width:100%;
    margin: 0 auto 15px;
    padding: 10px 0;
}
.location p{
    font-size: 1em;
    line-height: 1.5em;
    color: #e8603c;
    text-align: left;
    padding-left: 10px;
}
.location p a {
    margin: 0 5px;
}

/* 列表标题 */
.list-heading {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    border-bottom: 2px solid #e8603c;
}
.list-heading h2 {
    font-size: 1.6em;
    color: #e8603c;
    font-weight: bold;
    padding-left: 10px;
}
.list-heading h2 i {
    margin-right: 8px;
}

/* 列表核心样式 */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* 主内容区 */
.list-main {
    flex: 1;
    min-width: 350px;
    background: #fafafa; 
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 文章列表项样式（适配原有sinfo结构） */
.article-list {
    margin: 0;
    padding: 0;
}
.article-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.article-item:hover {
    border-left-color: #e8603c;
    box-shadow: 0 2px 8px rgba(232, 96, 60, 0.1);
    transform: translateY(-2px);
}
.article-item .article-img {
    flex-shrink: 0;
    width: 163px;
    height: 149px;
    border-radius: 4px;
    overflow: hidden;
}
.article-item .article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-item .article-content {
    flex: 1;
}
.article-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}
.article-item h3 a {
    color: #333;
    transition: color 0.3s ease;
}
.article-item h3 a:hover {
    color: #e8603c;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.article-meta span {
    display: flex;
    align-items: center;
}
.article-meta span i {
    margin-right: 5px;
    color: #e8603c;
}
.article-brief {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}
.article-more {
    text-align: right;
}
.article-more a {
    display: inline-block;
    padding: 6px 12px;
    background: #fef0eb;
    color: #e8603c;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}
.article-more a:hover {
    background: #e8603c;
    color: #fff;
}
.article-more a i {
    margin-left: 5px;
}

/* 分页样式（重点优化：兼容.page-numbers和.pagination，强化移动端） */
.pagination, .page-numbers {
    margin-top: 30px;
    text-align: center;
    padding: 0 10px; /* 移动端左右留白，避免贴边 */
}
.pagination ul, .page-numbers ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px; /* 缩小间距，适配小屏 */
    padding: 0;
    margin: 0;
}
.pagination li, .page-numbers li {
    margin: 0;
    flex-shrink: 0; /* 防止页码被挤压 */
}
.pagination li a, .page-numbers li a,
.pagination a, .page-numbers a { /* 兼容直接a标签的分页结构 */
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 28px; /* 保证页码按钮最小宽度，避免变形 */
    text-align: center; /* 文字居中 */
}
.pagination li a:hover, .page-numbers li a:hover,
.pagination li.active a, .page-numbers li.active a,
.pagination a:hover, .page-numbers a:hover {
    background: #e8603c;
    color: #fff;
}
.pagination li.prev a i, .pagination li.next a i,
.page-numbers li.prev a i, .page-numbers li.next a i {
    margin: 0 5px;
}

/* 右侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}
.sidebar-widget {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.sidebar-widget h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #e8603c;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8603c;
    display: flex;
    align-items: center;
}
.sidebar-widget h3 i {
    margin-right: 8px;
}
/* 侧边栏链接样式 */
.sidebar-links li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.sidebar-links li:last-child {
    border-bottom: none;
}
.sidebar-links li a {
    color: #333;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: flex;
    align-items: center;
}
.sidebar-links li a:hover {
    color: #e8603c;
    padding-left: 5px;
}
/* 中国热点图标 */
.sidebar-links.hot-news li a i {
    margin-right: 8px;
    color: #e8603c;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f111";
}
/* 侧边栏图片 */
.sidebar-img {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
    padding: 0;
    list-style: none;
}
.sidebar-img li {
    width: calc(33.333% - 6.666px);
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
}
.sidebar-img li a {
    display: block;
    padding-top: 100%;
    background: #eee;
    position: relative;
}
.sidebar-img li a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
/* 赞助商文字链接样式 */
.sponsor-links {
    padding: 10px 0;
}
.sponsor-links li {
    padding: 8px 10px;
    border-bottom: 1px dashed #eee;
    border-radius: 4px;
    margin-bottom: 8px;
}
.sponsor-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.sponsor-links li a {
    color: #333;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: block;
}
.sponsor-links li a:hover {
    color: #e8603c;
    background-color: #fef0eb;
    padding-left: 5px;
    border-radius: 4px;
}

/* 页脚样式 */
.footer {
    background: #f8f8f8;
    margin-top: 40px;
    color: #666;
    padding: 30px 0 15px;
    border-radius: 8px 8px 0 0;
    width: 100%;
}
.footer .wrap {
    width:96%;
    max-width:1400px;
    margin:0 auto;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: space-between;
}
.fgrid h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8603c;
    display: flex;
    align-items: center;
}
.fgrid h3 i {
    margin-right: 10px;
    font-size: 1.2em;
}
.fgrid p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.fgrid p i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}
.fgrid a {
    color: #e8603c;
}
.fgrid a:hover {
    color: #d8502c;
    text-decoration: none;
}
.fgrid img {
    max-width: 120px;
    border-radius: 4px;
}

/* 版权信息 */
.copy-right {
    background: #fff;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e8603c;
    width: 100%;
}
.copy-right-left p {
    color: #666;
    font-size: 0.9em;
}

/* 所有链接的动态下划线效果 */
a {
    position: relative;
    color: #e8603c;
    font-weight: 500;
}
a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #e8603c;
    transition: width 0.3s ease;
}
/* 特殊链接样式重置（统一管理） */
.menu li a::after, .logo a::after, .toggleMenu::after,
.article-item h3 a::after, .article-more a::after,
.pagination li a::after, .page-numbers li a::after,
.sidebar-links li a::after, .sponsor-links li a::after,
.fgrid a::after {
    display: none;
}

/* 媒体查询（合并重复项，按屏幕尺寸从小到大排序） */
/* 移动端通用适配 (<=768px) */
@media only screen and (max-width:768px) {
    /* 导航 */
    .toggleMenu {
        display: block;
        background:#e8603c;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 20px;
    }
    .header {
        flex-wrap: wrap;
    }
    .menu ul.nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 10px;
    }
    .menu ul.nav.show {
        display: flex;
    }
    .menu li {
        margin: 5px 0;
    }

    /* 容器与布局 */
    .wrap {
        width: 95%;
    }
    .content {
        flex-direction: column;
        gap: 15px;
    }
    .list-main {
        min-width: unset;
        padding: 15px;
    }
    .sidebar {
        width: 100% !important;
    }
    .footer-main {
        gap: 20px;
    }
    .fgrid {
        flex: 100%;
        min-width: 100%;
    }

    /* 文章列表 */
    .article-item {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    .article-item .article-img {
        width: 100%;
        height: auto;
    }
    .article-meta {
        gap: 10px;
    }

    /* 分页优化：移动端适配 */
    .pagination li a, .page-numbers li a,
    .pagination a, .page-numbers a {
        padding: 6px 10px; /* 缩小按钮尺寸 */
        font-size: 0.9em; /* 缩小字体 */
        min-width: 24px; /* 适配小屏的最小宽度 */
        gap: 4px; /* 进一步缩小间距 */
    }
}

/* 小屏手机适配 (<=480px) */
@media only screen and (max-width:480px) {
    .logo a h1 {
        font-size: 1.8em;
    }
    .article-item h3 {
        font-size: 1.1em;
    }
    .list-heading h2 {
        font-size: 1.3em;
    }
    /* 超小屏分页 */
    .pagination li a, .page-numbers li a,
    .pagination a, .page-numbers a {
        padding: 5px 8px;
        font-size: 0.85em;
    }
}

/* PC端页脚布局 (>=769px) */
@media only screen and (min-width: 769px) {
    .fgrid {
        flex: 1;
        min-width: 200px;
        max-width: 25%;
    }
}