@charset "UTF-8";
/*
  Theme Name: 上海能辉科技专用中文前端
  Author: 上海能辉科技专用中文前端
  Description: 基于 DeePress开发框架 定制的中文站前端。
  Version: 1.3
  */

/* 下面导入你的CSS文件 */
@import url(./assets/css/index.css);

/* 你可以在这里写一些自定义的全局CSS样式 */
* {
    margin: 0;
    padding: 0
}

body {
    background: #f7f7f7;

}

.page-full-width {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-top: -5rem;
    background: #fff;
}

.page-full-width .row {
    margin-left: 0;
    margin-right: 0;
}

h2 {
    font-size: 20px;
}

#footer {
    font-size: 16px;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.article-c,
.box-b {
    width: 70%;
    text-align: left;
    padding: 20px;
    line-height: 35px;
    height: auto;
    margin: 0 auto;
    padding: 30px;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

p.article-time{
    border-bottom: 1px solid #eee;
}

.article-c h1 {
    padding: 14px;
}

.box-b {
    text-align: center;
    margin-bottom: 10px;
}

.box-c {
    background: white;
    border-color: #EEEEEE;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 6%);
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

/* 导航菜单样式 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-left: 10px;
}

.nav-menu {
    height: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.menu-items {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.menu-items li {
    margin: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.menu-items li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-items li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* 下拉菜单样式 */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children.active .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sub-menu li {
    margin: 0;
    width: 100%;
    display: block;
    height: auto;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding-left: 25px;
}

/* 三级菜单样式 */
.sub-menu .menu-item-has-children {
    position: relative;
}

.sub-menu .menu-item-has-children > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.sub-menu .menu-item-has-children:hover > a::after {
    transform: rotate(90deg);
}

/* 菜单项分隔线 */
.sub-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 菜单项激活状态 */
.menu-item-has-children.active > a {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* 菜单加载动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保菜单在高分辨率屏幕上的显示效果 */
@media (min-resolution: 2dppx) {
    .sub-menu {
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* 桌面端菜单样式确保优先级 */
@media screen and (min-width: 769px) {
    .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 200px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border-radius: 8px !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        z-index: 10000 !important;
        pointer-events: none !important;
    }
    
    .menu-item-has-children:hover .sub-menu,
    .menu-item-has-children.active .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .sub-menu .sub-menu {
        top: 0 !important;
        left: 100% !important;
        margin-left: 5px !important;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        flex-direction: column;
        gap: 20px;
    }

    .nav-right.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        width: 100%;
    }

    .menu-items {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-items li {
        width: 100%;
        margin: 10px 0;
    }

    .menu-items li a {
        display: block;
        padding: 10px 0;
    }

    .nav-search {
        width: 100%;
    }
    
    /* 移动端下拉菜单样式 */
    .menu-item-has-children > a {
        justify-content: space-between;
    }
    
    .sub-menu {
        position: static !important;
        background: rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 10px 0 0 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        display: none;
        pointer-events: auto !important;
    }
    
    .menu-item-has-children:hover .sub-menu {
        display: block;
    }
    
    .sub-menu li a {
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .sub-menu li a:hover {
        background: none;
        color: #007bff;
        padding-left: 0;
    }
    
    /* 移动端三级菜单 */
    .sub-menu .sub-menu {
        margin-left: 20px;
        background: rgba(0, 0, 0, 0.03);
    }
    
    .sub-menu .menu-item-has-children > a::after {
        content: '\f078';
        transform: none;
    }
    
    .sub-menu .menu-item-has-children.active > a::after {
        content: '\f077';
    }
}

/* 文章卡片网格布局 */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 文章卡片样式 */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.post-date,
.post-category {
    display: flex;
    align-items: center;
}

.post-category a {
    color: #666;
    text-decoration: none;
}

.post-category a:hover {
    color: #007bff;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 分页导航样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 4px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: white;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 15px;
    }
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-posts h2 {
    color: #666;
    font-size: 1.5rem;
    margin: 0;
}

/* 文章列表板块样式 */
.article-list-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.article-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-list-item {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.article-list-item:hover {
    background: white !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.article-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: 20px;
}

.article-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.article-list-item:hover .article-image img {
    transform: scale(1.05) !important;
}

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

.article-meta {
    margin-bottom: 12px;
}

.article-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #007bff;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 50px;
}

.read-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.read-more-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
}

.btn-circle {
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .article-content {
        height: auto;
        padding: 20px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-actions {
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .article-list-section {
        padding: 40px 0;
    }
    
    .article-list-wrapper {
        padding: 0 15px;
        gap: 20px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .article-excerpt {
        font-size: 13px;
    }
}