body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    position: relative;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    filter: brightness(0.7); /* 调整背景图片的亮度 */
}

.bg-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.bg-container img#thumbnailImage {
    opacity: 1;
    z-index: 1;
}

.bg-container img#highResImage.loaded {
    opacity: 1;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 10px;
    padding: 20px;
    background: transparent;
}

header #date-time .time {
    font-size: 2.5em; /* 缩小字体 */
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header #date-time .date {
    font-size: 1.2em; /* 缩小字体 */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header .search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10px;
}

header .search-box input {
    padding: 10px;
    font-size: 1em;
    border: 2px solid #6a89cc;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 400px;
    color: #333;
}

header .search-box button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #6a89cc;
}

header .search-box button:hover {
    color: #3c6382;
}

header .search-box input::placeholder {
    color: #333;
}

.left-links {
    position: absolute;
    top: 0;
    left: 10px;
    display: flex;
    gap: 10px;
}

.left-links a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(106, 137, 204, 0.8);
    border-radius: 5px;
    font-size: 0.9em;
}

.left-links a:hover {
    background: rgba(60, 99, 130, 0.8);
}

.right-links {
    position: absolute;
    top: 0;
    right: 10px;
    background: rgba(106, 137, 204, 0.8);
    border-radius: 5px;
    padding: 5px 10px;
}

.right-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.right-links li {
    display: inline;
}

.right-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.right-links a:hover {
    text-decoration: underline;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 20px;
    position: relative;
    z-index: 1;
    height: calc(100% - 240px); /* 确保内容高度 */
}

@media (min-width: 768px) {
    .content {
        flex-direction: row;
    }
}

aside, main {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: none;
    font-size: 0.85em;
}

aside {
    max-height: calc(100% - 20px);
}

aside::-webkit-scrollbar {
    width: 0; /* Safari和Chrome */
    height: 0;
    display: none; /* 强制隐藏滚动条 */
}

main {
    flex: 2;
    max-height: calc(100% - 20px);
    overflow-y: auto; /* 整体滚动 */
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none; /* 隐藏滚动条 */
}

main::-webkit-scrollbar {
    width: 0; /* Safari和Chrome */
    height: 0;
    display: none; /* 强制隐藏滚动条 */
}

h2 {
    border-bottom: 2px solid #6a89cc;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.2em;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 0.85em;
    line-height: 1.5;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*max-height: calc(100% - 40px);*/
}

main .card-container{
    
}

aside .card-container{
    max-height: calc(100% - 40px);
}

.left-column .card-container {
    overflow-y: auto; /* 独立滚动 */
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none; /* 隐藏滚动条 */
}

.left-column .card-container::-webkit-scrollbar {
    width: 0; /* Safari和Chrome */
    height: 0;
    display: none; /* 强制隐藏滚动条 */
}

.left-column .card-container .card {
    flex: 1 1 100%; /* 每行一个卡片 */
}

.main-column .card-container .card {
    flex: 1 1 calc(33.33% - 10px); /* 每行三个卡片 */
}

.right-column .card-container {
    overflow-y: auto; /* 独立滚动 */
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none; /* 隐藏滚动条 */
}

.right-column .card-container::-webkit-scrollbar {
    width: 0; /* Safari和Chrome */
    height: 0;
    display: none; /* 强制隐藏滚动条 */
}

.right-column .card-container .card {
    flex: 1 1 100%;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    font-size: 0.85em;
    height: 28px;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    flex-shrink: 0;
}

.card .card-content {
    flex-grow: 1;
    min-width: 0;
}

.card .title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .separator {
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin: 5px 0;
}

.card .description {
    font-size: 0.8em;
    color: #ddd;
    text-shadow: none;
    display: -webkit-box; /* 必须结合 -webkit-line-clamp */
    -webkit-box-orient: vertical; /* 垂直布局 */
    -webkit-line-clamp: 1; /* 显示的行数 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 使用省略号表示超出部分 */
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid #6a89cc;
}

footer p {
    color: #fff;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

footer a#contact-link {
    color: #ffeb3b;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(106, 137, 204, 0.8);
    border-radius: 5px;
}

footer a#contact-link:hover {
    background: rgba(255, 235, 59, 0.8);
    color: #333;
}

.search-engine-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.search-engine-button {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(106, 137, 204, 0.8);
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
}

.search-engine-button:hover {
    background: rgba(60, 99, 130, 0.8);
}

.left-links {
    display: none;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10px;
}

.right-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.right-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    background: rgba(106, 137, 204, 0.8);
    border-radius: 5px;
    transition: background 0.3s;
}

.right-links a:hover {
    background: rgba(60, 99, 130, 0.8);
}

