/* 老年模式全局样式 */
:root {
    --elderly-primary-color: #0056b3;
    --elderly-secondary-color: #6c757d;
    --elderly-background-color: #f8f9fa;
    --elderly-text-color: #333333;
    --elderly-border-color: #dee2e6;
    --elderly-header-bg: #004085;
    --elderly-header-text: #ffffff;
}

/* 全局老年模式样式 */
body.elderly-mode {
    font-size: 20px !important;
    line-height: 1.8 !important;
    background-color: var(--elderly-background-color) !important;
    color: var(--elderly-text-color) !important;
}

/* 老年模式下的链接样式 */
body.elderly-mode a {
    font-size: 20px !important;
    /* color: #fff !important; */
    text-decoration: none !important;
}

body.elderly-mode a:hover {
    /* color: #003366 !important; */
    text-decoration: none !important;
}

/* 老年模式下的标题样式 */
body.elderly-mode h1, 
body.elderly-mode h2, 
body.elderly-mode h3, 
body.elderly-mode h4, 
body.elderly-mode h5, 
body.elderly-mode h6 {
    font-size: 1.8em !important;
    font-weight: bold !important;
    /* color: var(--elderly-primary-color) !important; */
    /* margin-bottom: 1rem !important; */
}
body.elderly-mode .sidebar-recent-news .news-title{
        font-size: 20px !important;

}
/* 老年模式下的导航栏样式 */
body.elderly-mode .navbar {
    padding: 0 1rem !important;
}

body.elderly-mode .nav-link {
    font-size: 20px !important;
    padding: 15px 20px !important;
    font-weight: bold !important;
}

/* 老年模式下的按钮样式 */
body.elderly-mode .btn {
    font-size: 20px !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
}

body.elderly-mode .btn-primary {
    background-color: var(--elderly-primary-color) !important;
    border-color: var(--elderly-primary-color) !important;
}

/* 老年模式下的卡片样式 */
body.elderly-mode .card {
    border: 2px solid var(--elderly-border-color) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

body.elderly-mode .card-header {
    font-size: 20px !important;
    font-weight: bold !important;
    /* padding: 15px !important; */
    /* background-color: var(--elderly-primary-color) !important; */
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
}

body.elderly-mode .card-body {
    padding: 20px 20px 0 20px !important;
}

/* 老年模式下的表单样式 */
body.elderly-mode .form-control {
    font-size: 20px !important;
    padding: 12px !important;
    border: 2px solid var(--elderly-border-color) !important;
    height: auto !important;
}

body.elderly-mode .input-group {
    margin-bottom: 20px !important;
}

/* 老年模式下的列表样式 */
body.elderly-mode .list-group-item {
    font-size: 20px !important;
    padding: 5px 15px !important;
    /* margin-bottom: 10px !important; */
    border-radius: 8px !important;
}

/* 老年模式下的新闻列表样式 */
body.elderly-mode .notification-list {
    flex-wrap: nowrap !important;
    flex-direction: column !important;
}

body.elderly-mode .notification-list li {
    font-size: 20px !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    margin-right: 0 !important;
}

body.elderly-mode .notification-list li:nth-child(2n) {
    margin-right: 0 !important;
}

body.elderly-mode .news-title-truncate {
    max-width: calc(100% - 100px) !important;
    font-size: 20px !important;
}

body.elderly-mode .news-time {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* 老年模式下的滚动容器样式 */
body.elderly-mode .news-scroll-container {
    /*height: 60px !important;*/
    overflow: hidden !important;
}

body.elderly-mode .notification-list a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 老年模式下的搜索框样式 */
body.elderly-mode .input-group {
    height: 50px !important;
}
body.elderly-mode .focusBox .txt-bg {
    height: 50px !important;
}
body.elderly-mode .input-group .form-control {
    font-size: 20px !important;
    height: 100% !important;
}
body.elderly-mode .top-news-excerpt {
    font-size: 20px !important;
    /*height: 100% !important;*/
}
body.elderly-mode .input-group-append .btn {
    font-size: 20px !important;
    height: 100% !important;
    padding: 0 30px !important;
}

/* 老年模式下的会员状态栏样式 */
body.elderly-mode .member-status-bar {
    font-size: 20px !important;
    padding: 15px !important;
    background-color: #e3f2fd !important;
    border-bottom: 3px solid var(--elderly-primary-color) !important;
}

body.elderly-mode .member-welcome {
    font-size: 20px !important;
}

body.elderly-mode .member-actions .btn {
    font-size: 20px !important;
    padding: 10px 20px !important;
}

/* 老年模式下的轮播图样式 */
body.elderly-mode .focusBox {
    height: 400px !important;
    width: 100% !important;
    overflow: hidden !important;
}

body.elderly-mode .focusBox .pic {
    width: 100% !important;
    height: 100% !important;
}

body.elderly-mode .focusBox .pic li {
    width: 100% !important;
    height: 100% !important;
}

body.elderly-mode .focusBox .pic li a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

body.elderly-mode .focusBox .pic li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.elderly-mode .focusBox .txt {
    height: 60px !important;
}

body.elderly-mode .focusBox .txt li {
    height: 50px !important;
    line-height: 50px !important;
    font-size: 20px !important;
}
body.elderly-mode .mb-4, .my-4 {
    margin-bottom: 0!important;
}
body.elderly-mode .focusBox .num li a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 20px !important;
}

/* 老年模式下的会员风采样式 */
body.elderly-mode .member-style-item {
    height: 80px !important;
    padding: 20px !important;
}

body.elderly-mode .member-style-title h5 {
    font-size: 20px !important;
    font-weight: bold !important;
}

/* 老年模式下的侧边栏样式 */
body.elderly-mode .sidebar-card {
    border-top: 3px solid var(--elderly-primary-color) !important;
    margin-bottom: 30px !important;
}

body.elderly-mode .sidebar-card .card-header-title {
    font-size: 20px !important;
    font-weight: bold !important;
    padding: 15px !important;
}

body.elderly-mode .sidebar-card .card-body {
    padding: 20px !important;
}

/* 老年模式下的面包屑导航样式 */
body.elderly-mode .breadcrumb {
    font-size: 20px !important;
    padding: 15px !important;
    background-color: #e3f2fd !important;
    border-radius: 8px !important;
}

/* 老年模式下的分页样式 */
body.elderly-mode .el-news-pegination li a {
    font-size: 20px !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
}

/* 老年模式下的响应式调整 */
@media (max-width: 768px) {
    body.elderly-mode {
        font-size: 16px !important;
    }
    
    body.elderly-mode .nav-link {
        font-size: 20px !important;
        padding: 10px 15px !important;
    }
    
    body.elderly-mode .btn {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }
}

/* 老年模式下所有col都占满整行 */
body.elderly-mode [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-top: 10px !important;
}


/* 老年模式切换按钮样式 */
.elderly-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: var(--elderly-primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.elderly-mode-toggle:hover {
    background-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.elderly-mode-toggle.active {
    background-color: #6c757d;
}

.elderly-mode-toggle.active:hover {
    background-color: #5a6268;
}