/* 状态栏样式 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: #000;
    color: white;
    font-size: 14px;
    height: 24px;
}

.status-icons {
    display: flex;
    gap: 5px;
}

/* 头部组件样式已移至 css/header.css */

/* 主要内容区域样式 */
.main-content {
    padding: 15px 15px 0px 15px;
}

.section {
    margin-bottom: 30px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0px 0px 8px 0px #3d790526;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 15px 15px 0px 15px;
}

.green-bar {
    width: 4px;
    height: 20px;
    background-color: #4caf50;
    margin-right: 10px;
    border-radius: 2px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 视频播放器样式 */
.video-player {
    position: relative;
    margin: 15px;
    height: 200px;
}

.video-player video {
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button i {
    font-size: 24px;
    color: #4caf50;
}

/* 新闻列表样式 */
.news-list {
    padding: 0 15px 15px;
}

.news-item {
    display: flex;
    align-items: center;
}
.news-item a {
    width: 100%;
    color: #333333;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.news-item:last-child {
    border-bottom: none;
}

.green-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-item span:last-child {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 推广横幅样式 */
.promo-banner {
    width: 100%;
    height: 100px;
    background: url(../imags/lsqy.png) no-repeat;
    background-size: 100% 100%;
}

.promo-banner h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 图片画廊样式 */
.image-gallery {
    padding: 0 15px 15px 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    font-size: 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0000007f;
    color: white;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}
.overlay span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 10px;
    display: block;
}

/* Swiper轮播样式 */
.swiper-container {
    width: calc(100% - 30px);
    padding: 15px 0 !important;
    /* margin-top: 15px; */
}

.swiper-wrapper {
    height: 250px;
}

.swiper-slide {
    height: 250px !important;
    position: relative;
    overflow: hidden;
}
.swiper-slide a{
    display: inline-block;
   width: 100%;
   height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0000007f;
    height: 36px;
    display: flex;
    align-items: center;
}
.swiper-slide .overlay span {
    color: #ffffff;
    font-family: PingFang SC;
    font-weight: medium;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 10px;
    display: block;
}

.slide-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.slide-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.slide-date {
    color: #ccc;
}

.slide-author {
    color: #4caf50;
    font-weight: 500;
}

/* Swiper分页器样式 */
.swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #4caf50;
}

/* Swiper导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* 图标导航样式 */
.icon-navigation {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-top: 15px;
}

.icon-item {
    width: calc(100% / 6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-item img {
    width: 26px;
    height: 26px;
    color: #4caf50;
}

.icon-item span {
    color: #555555;
    font-family: PingFang SC;
    font-weight: semibold;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: left;
    display: inline-block;
    word-break: break-all;
    /* 或者用下面的方式，每2个字后换行 */
    width: 2em;
    white-space: pre-line;
    text-align: center;
}

.icon-item.active {
    background: linear-gradient(180deg, #10a04c02 0%, #10a04c19 100%);
}

.icon-item.active span {
    color: #10a04c;
    font-family: PingFang SC;
    font-weight: semibold;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: left;
}
.icon-item::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #cfe2b7;
    margin-top: 5px;
}
.icon-item.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #4caf50;
    margin-top: 5px;
}

/* 数字看板样式 */
.dashboard-content {
    padding: 15px;
}
.dashboard-content .air {
    display: flex;
    align-items: center;
}
.dashboard-content .air img {
    width: 24px;
}
.dashboard-content .air span {
    color: #3c3e47;
    font-family: PingFang SC;
    font-weight: medium;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: left;
}
.dashboard-content iframe {
    width: 100%;
    height: 930px;
}

/* 美丽行动网格样式 */
.action-grid {
    margin-top: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.action-item {
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item img {
    width: 38px;
    color: #4caf50;
}
.action-item:nth-child(1),
.action-item:nth-child(2),
.action-item:nth-child(3) {
    border-bottom: 1px solid #e9ecef;
}
.action-item span {
    color: #555555;
    font-family: PingFang SC;
    font-weight: semibold;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: left;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: white;
    border-top: 1px solid #e9ecef;
    padding: 8px 0;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 18px;
    color: #666;
}

.nav-item.active i {
    color: #4caf50;
}

.badge {
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translateX(50%);
}

/* 动画效果 */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* .section {
    animation: fadeIn 0.5s ease-out;
} */

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* 文章详情弹窗样式 */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.article-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000007f;
    text-align: center;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-body .loading {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 40px 0;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-view-full {
    width: 109px;
    height: 36px;
    border-radius: 19px;
    background: #ffffff;
    border: 1px solid #428900;
    color: #428900;
    font-family: PingFang SC;
    font-weight: regular;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 2px;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-view-full:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 轮播图片点击效果 */
.guangzhou-swiper .swiper-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.guangzhou-swiper .swiper-slide:hover {
    transform: scale(1.02);
}

.guangzhou-swiper .swiper-slide:active {
    transform: scale(0.98);
}

.ecological-picture,
.ecological-picture2 .zskb-lj {
    padding: 15px;
}
.ecological-picture a img {
    width: 100%;
}
.ecological-picture2 {
    padding: 0;
}

/* 加载状态样式 */
.loading-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    min-height: 250px;
}

.loading-content {
    text-align: center;
    color: #666;
}

.loading-content i {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 15px;
    display: block;
}

.loading-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* 轮播图片样式优化 */
.guangzhou-swiper .swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guangzhou-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}

/* 轮播文字样式 */
.guangzhou-swiper .slide-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.guangzhou-swiper .slide-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.guangzhou-swiper .slide-date,
.guangzhou-swiper .slide-author {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

/* 天气质量table */
.shjpm-table {
    width: 100%;
    border-left: 1px solid #ced4c3;
    border-right: 1px solid #ced4c3;
    border-top: 1px solid #ced4c3;
    border-bottom: 1px solid #ced4c3;
    margin-bottom: 10px;
}
.shjpm-table thead tr th {
    background: #d6eecb;
    color: #333333;
    font-family: PingFang SC;
    font-weight: regular;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-align: center;
}
.shjpm-table thead tr th {
    height: 30px;
}
.shjpm-table thead tr th:nth-child(2) {
    border-right: 1px solid #ced4c3;
    border-left: 1px solid #ced4c3;
}

.shjpm-table tbody tr td {
    background: #f2f8e9;
    height: 30px;
    text-align: center;
    font-family: "Microsoft YaHei";
    color: #333333;
    font-family: PingFang SC;
    font-weight: regular;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 2px;
}
.shjpm-table tbody tr {
    border-top: 1px solid #ced4c3;
}
.shjpm-table tbody tr td:nth-child(2) {
    border-right: 1px solid #ced4c3;
    border-left: 1px solid #ced4c3;
}
.shjpm-table td .line {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.shjpm-table td .line .line-num {
    width: 125px;
    height: 12px;
    background: #d2d9c7;
    position: relative;
}
.shjpm-table td .line .line-num span {
    display: inline-block;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #60c658;
}
