[data-theme="light"] {
    --h1-color: #333;
    --content-container-color: #444;
    --cursor-color: #444;
    --qq-group-notice-color: #000;
    --qq-group-link-color: #000;
    --news-item-color: rgba(255, 255, 255, 0.7);
    --news-item-h3-color: #000;
    --news-item-news-time-color: #999;
    --news-item-p-color: #666;
    --news-nav-button-color: #333;
    --news-nav-button-background-color: rgba(255, 255, 255, 0.7);
    --news-nav-button-hover-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --h1-color: #e0e0e0;
    --content-container-color: #e0e0e0;
    --cursor-color: #e0e0e0;
    --qq-group-notice-color: #e0e0e0;
    --qq-group-link-color: #e0e0e0;
    --news-item-color: rgba(40, 40, 40, 0.7);
    --news-item-h3-color: #e0e0e0;
    --news-item-news-time-color: #aaaaaa;
    --news-item-p-color: #bbbbbb;
    --news-nav-button-color: #e0e0e0;
    --news-nav-button-background-color: rgba(40, 40, 40, 0.7);
    --news-nav-button-hover-color: rgba(40, 40, 40, 0.9);
}

h1 {
    color: var(--h1-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    z-index: 2;
    margin: 0;
    text-align: center;
    top: calc(50% - 75px);
}

.content-container {
    color: var(--content-container-color);
    position: absolute;
    top: calc(50% + 50px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    min-height: 1.2em;
    font-size: 16px;
    text-align: center;
    top: calc(50% - 25px);
}

.content-item {
    display: inline-block;
    -webkit-box-reflect: below 0 linear-gradient(transparent 50%, rgba(0, 0, 0, 0.3));
}

.fixed-symbol {
    display: inline-block;
    -webkit-box-reflect: below 0 linear-gradient(transparent 50%, rgba(0, 0, 0, 0.3));
}

.cursor {
    background-color: var(--cursor-color);
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.qq-group-notice {
    color: var(--qq-group-notice-color);
    position: absolute;
    top: calc(50% + 55px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    text-align: center;
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.qq-group-notice p {
    margin: 0;
    font-weight: 500;
}

.qq-group-link {
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.qq-group-link.nav-button {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    z-index: 8;
}

.qq-group-link.nav-button:hover {
    background: none;
    box-shadow: none;
    transform: none;
    border-bottom: 1px solid transparent;
}

.qq-group-link {
    color: var(--qq-group-link-color);
}

.qq-group-link:hover {
    border-bottom: 1px solid #000;
}

.news-container {
    position: absolute;
    top: calc(50% + 75px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 150px);
    max-width: none;
    background: transparent;
    border: none;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    top: calc(50% + 185px);
}

@media screen and (min-width: 481px) {
    .news-container {
        width: calc(100% - 150px);
        max-width: none;
    }
}

.news-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 120px;
}

.news-content {
    display: flex;
    height: 100%;
}

.news-item {
    background: var(--news-item-color);
    flex: 0 0 auto;
    width: 300px;
    padding: 15px;
    margin: 0 10px;
    border-radius: 8px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item h3 {
    color: var(--news-item-h3-color);
    margin: 0 0 5px 0;
    font-size: 16px;
}

.news-item .news-time {
    color: var(--news-item-news-time-color);
    font-size: 12px;
    margin: 0 0 5px 0;
}

.news-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.news-nav-button {
    color: var(--news-nav-button-color);
    background: var(--news-nav-button-background-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
}

.news-nav-button:hover {
    background: var(--news-nav-button-hover-color);
}

.news-nav-button img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.news-nav-left {
    margin-right: 15px;
}

.news-nav-right {
    margin-left: 15px;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 36px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
        top: calc(50% - 75px);
    }
    
    .content-container {
        font-size: 14px;
        top: calc(50% + 40px);
        width: 90%;
        top: calc(50% - 35px);
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 28px;
        width: 95%;
        top: calc(50% - 75px);
    }
    
    .content-container {
        font-size: 12px;
        top: calc(50% + 35px);
        width: 95%;
        top: calc(50% - 40px);
    }
    
    .qq-group-notice {
        top: calc(50% + 5px);
        width: 95%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 8;
        font-size: 14px;
    }
    
    .news-nav-button {
        display: none;
    }
    
    .news-content-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: 150px;
        touch-action: pan-x;
    }
    
    .news-content-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .news-content {
        overflow-x: visible;
    }
    
    .news-item {
        width: 250px;
        padding: 10px;
    }
    
    .news-container {
        top: calc(50% + 95px);
        width: 95%;
    }
    
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}

@media screen and (min-width: 1200px) {
    h1 {
        font-size: 56px;
        top: calc(50% - 80px);
    }
    
    .content-container {
        font-size: 18px;
        top: calc(50% + 60px);
        top: calc(50% - 20px);
    }
}