* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #0f0;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.terminal-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #555;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.button.red { background-color: #ff5f56; }
.button.yellow { background-color: #ffbd2e; }
.button.green { background-color: #27c93f; }

.terminal-title {
    font-size: 14px;
    font-weight: bold;
}

.terminal-content {
    padding: 20px;
    min-height: 600px;
}

.welcome-message {
    margin-bottom: 30px;
    text-align: center;
}

.welcome-message h1 {
    color: #0f0;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.category-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-btn {
    background-color: #000;
    color: #0f0;
    border: 2px solid #0f0;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.category-btn:hover {
    background-color: #0f0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.5);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(50, 50, 70, 0.5);
    border-radius: 8px;
    border: 1px solid #444;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* 代理开关样式 */
.proxy-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin-left: auto;
}

/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #00ff00;
    color: #000;
    padding: 15px 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border: 1px solid #555;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #666;
    transition: .4s;
}

input:checked + .slider {
    background-color: #00ff00;
    border-color: #00ff00;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #000;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 内容区域布局 */
.content-area {
    min-height: 400px;
    width: 100%;
}





.filter-btn {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: #0f0;
    color: #000;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background-color: #000;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
}

.loading-message {
    text-align: center;
    padding: 50px;
    color: #0f0;
}

/* 资源卡片样式 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resource-card {
    background-color: #111;
    border: 1px solid #333;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.resource-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.resource-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0f0;
}

.resource-meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.resource-description {
    flex: 1;
    font-size: 14px;
    margin-bottom: 15px;
    color: #ddd;
}

.download-btn {
    background-color: #0f0;
    color: #000;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.download-btn:hover {
    background-color: #00cc00;
    transform: scale(1.05);
}

/* 资源卡片按钮组 */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.preview-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: #004499;
    transform: scale(1.05);
}

.detail-btn {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.detail-btn:hover {
    background-color: #444;
    transform: scale(1.05);
}

/* 资源详情样式 */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-image {
    width: 100%;
    max-width: 300px;
    border: 1px solid #333;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-meta-item {
    background-color: #111;
    padding: 5px 10px;
    border: 1px solid #333;
    font-size: 14px;
}

.detail-description {
    background-color: #111;
    padding: 15px;
    border: 1px solid #333;
    line-height: 1.6;
}

.detail-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.detail-subject-tag {
    background-color: #0f0;
    color: #000;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* 下载文件区域样式 */
.download-files-section {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(50, 50, 70, 0.5);
    border-radius: 8px;
    border: 1px solid #444;
}

.download-files-section h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.file-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-group {
    background-color: rgba(30, 30, 50, 0.5);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #333;
}

.file-group-title {
    color: #88cc88;
    margin-bottom: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-group-title::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.file-group.collapsed .file-group-title::after {
    transform: rotate(-90deg);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.file-group.collapsed .file-list {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(20, 20, 40, 0.5);
    border-radius: 4px;
    border: 1px solid #222;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background-color: rgba(40, 40, 60, 0.5);
}

.file-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.file-name {
    flex: 1;
    color: #cccccc;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #888;
    font-size: 12px;
    margin-right: 15px;
    min-width: 80px;
    text-align: right;
}

.file-download-btn {
    background-color: #006600;
    color: #00ff00;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.file-download-btn:hover {
    background-color: #008800;
}

.no-files-message {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
}

.error-message {
    color: #ff6666;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(100, 20, 20, 0.2);
    border-radius: 6px;
}

.retry-btn {
    display: block;
    margin: 0 auto;
    background-color: #006666;
    color: #00ffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background-color: #008888;
}

/* 预览iframe样式 */
.preview-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 全屏切换按钮样式 */
.fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 1px solid #00ff00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.fullscreen-toggle:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-icon {
    font-size: 20px;
}

/* 全屏模式下的样式调整 */
:fullscreen .preview-iframe-container,
:-webkit-full-screen .preview-iframe-container,
:-moz-full-screen .preview-iframe-container {
    height: 100vh;
    width: 100vw;
}

:fullscreen .preview-iframe,
:-webkit-full-screen .preview-iframe,
:-moz-full-screen .preview-iframe {
    height: 100vh;
    width: 100vw;
}

/* 预览控制栏 */
.preview-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    gap: 15px;
}

.preview-control-btn {
    background-color: #0f0;
    color: #000;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.preview-control-btn:hover {
    background-color: #00cc00;
    transform: scale(1.05);
}

/* 免责声明样式 */
.disclaimer-container {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(30, 30, 50, 0.8);
    border-top: 2px solid #444;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer-content h3 {
    color: #88cc88;
    margin-bottom: 15px;
    font-size: 18px;
}

.disclaimer-content p {
    margin-bottom: 10px;
}

/* 响应式布局调整 */
@media (min-width: 1400px) {
    /* 响应式调整已简化，移除了侧边广告相关样式 */
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    font-family: 'Courier New', monospace;
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #0f0;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
}

.modal-content.large {
    width: 90%;
    max-height: 90vh;
}

.modal-content.fullscreen {
    width: 95%;
    height: 95vh;
    max-height: 95vh;
    margin: 2.5% auto;
    display: flex;
    flex-direction: column;
}

.modal-content.fullscreen .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    color: #0f0;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #0f0;
    text-decoration: none;
    cursor: pointer;
}

/* 年份和主题列表样式 */
.year-grid,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.year-item,
.subject-item {
    background-color: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.year-item:hover,
.subject-item:hover {
    background-color: #0f0;
    color: #000;
}

.year-item.selected,
.subject-item.selected {
    background-color: #0f0;
    color: #000;
    font-weight: bold;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    background-color: #000;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #0f0;
    color: #000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 关于模态框内容样式 */
.about-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.about-content h2 {
    color: #0f0;
    margin-top: 20px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.about-content h3 {
    color: #0f0;
    margin-top: 15px;
    margin-bottom: 10px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-content strong {
    color: #0f0;
}

.about-link {
    color: #0f0;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.about-link:hover {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.about-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-list li {
    margin-bottom: 10px;
}

.about-image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.about-image {
    max-width: 100%;
    max-height: 300px;
    border: 2px solid #0f0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.about-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 25px 0;
    position: relative;
}

.about-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* 提示框样式 */
.about-tooltip-container {
    position: relative;
    display: inline-block;
}

.about-tooltip-trigger {
    color: #0f0;
    text-decoration: underline;
    cursor: pointer;
}

.about-tooltip-text {
    visibility: hidden;
    background-color: #000;
    color: #0f0;
    text-align: center;
    border: 1px solid #0f0;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Courier New', monospace;
    font-weight: normal;
}

.about-tooltip-container:hover .about-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 滚动条样式 */
.about-content::-webkit-scrollbar {
    width: 8px;
}

.about-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: #33ff33;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}