* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
}

.clear {
    display: block;
    height: 0;
    line-height: 0;
    overflow: hidden;
    clear: both;
    font-size: 0;
}

.clear_::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    line-height: 0;
    overflow: hidden;
}

.container, body, .wrap, .top, #header, .SMbox, .QQbox, .findbox, #footer, 
.wrap .content-t, .wrap .content-b, .wrap .content, .detail-card, .tags-section,
.data-grid, .pagination, .related-section, .tag-page-container, .articles-list,
.main-content, .featured-section, .latest-section {
    width: 1000px;
    max-width: 1000px;
    min-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

body {
    font-size: 13px;
    background-color: #0a0a0a;
    background-attachment: fixed;
    color: #000;
    scroll-behavior: smooth;
}

.wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding-bottom: 10px;
    padding-top: 2px;
}

.wrap .content-t, .wrap .content-b {
    height: 20px;
    background-color: #8B0000;
}

.wrap .content {
    background-color: #fff;
    padding: 15px;
}

.top {
    height: 180px;
    background: linear-gradient(to bottom, #8B0000, #CD0000);
    position: relative;
    border: none;
}

.top .logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 3px 3px 6px #000;
    text-align: center;
    padding: 0 20px;
}

#header {
    background-color: #8B0000;
    padding: 10px 0;
}

#menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

#menu a.active {
    background-color: #CD0000;
    border-radius: 3px;
}

.mobile-menu-btn {
    display: none;
    background-color: #CD0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.SMbox {
    background-color: #CD0000;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    margin: 10px 0;
}

.findbox {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
}

.findbox .title {
    font-weight: bold;
    margin-bottom: 10px;
}

.keylist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 15px;
}

.keylist li {
    background-color: #fff;
    padding: 5px 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.keylist li:hover {
    background-color: #8B0000;
    color: white;
}

.form {
    display: flex;
    gap: 10px;
}

.txtbox {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
}

.findbtn {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}

.notice {
    background-color: #FFFACD;
    border: 1px solid #FFD700;
    padding: 10px;
    margin-bottom: 20px;
    color: #8B4513;
}

.section-title {
    color: #8B0000;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.grid-header {
    display: flex;
    background-color: #f0f0f0;
    font-weight: bold;
}

.grid-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.grid-row.jtth {
    background-color: #fff;
}

.grid-row.jtjp {
    background-color: #f9f9f9;
}

.grid-cell {
    padding: 10px;
    border-right: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-cell:last-child {
    border-right: none;
}

.cell-name { width: 15%; }
.cell-domain { width: 15%; }
.cell-time { width: 10%; }
.cell-version { width: 10%; }
.cell-desc { width: 25%; }
.cell-tag { width: 10%; }
.cell-action { width: 15%; text-align: center; }

.grid-cell a, .article-item a, .related-list a, .featured-link, .tag-site-link {
    color: #0000EE;
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.page-link {
    display: inline-block;
    background-color: #8B0000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    margin: 0 3px;
}

.page-link.active {
    background-color: #CD0000;
    font-weight: bold;
}

.tags-section {
    margin: 30px 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 15px;
}

.tag .tag-count {
    font-size: 11px;
    opacity: 0.8;
}

.tag:hover {
    background-color: #8B0000;
    color: white;
}

#footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: 30px;
}

#copyright {
    text-align: center;
    line-height: 1.8;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #8B0000;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#back-to-top.show {
    display: flex;
}

.articles-list {
    margin-bottom: 20px;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.article-meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-detail .article-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.article-content {
    line-height: 1.8;
    margin: 20px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-tags {
    margin: 20px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
}

.related-date {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.site-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.default-logo {
    width: 80px;
    height: 80px;
    background-color: #8B0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-radius: 5px;
}

.detail-title {
    font-size: 24px;
    color: #333;
}

.detail-info {
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-info p {
    margin-bottom: 10px;
}

.game-image-container {
    margin: 20px 0;
    text-align: center;
}

.game-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.related-item {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 3px;
}

.related-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.tag-url-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tag-url-item {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
}

.tag-site-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.results-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.results-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.results-count {
    color: #666;
}

.no-results {
    text-align: center;
    padding: 30px 0;
}

.btn-reset {
    display: inline-block;
    margin-top: 15px;
    background-color: #8B0000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.featured-item {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.featured-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.featured-date {
    font-size: 12px;
    color: #666;
}

.view-more {
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 1000px) {
    .container, body, .wrap, .top, #header, .SMbox, .QQbox, .findbox, #footer, 
    .wrap .content-t, .wrap .content-b, .wrap .content, .detail-card, .tags-section,
    .data-grid, .pagination, .related-section, .tag-page-container, .articles-list,
    .main-content, .featured-section, .latest-section {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    #menu ul {
        display: none;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
    }
    
    #menu ul.show {
        display: flex;
    }
    
    .grid-header, .grid-row {
        flex-wrap: wrap;
    }
    
    .grid-cell {
        width: 50% !important;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .grid-cell:nth-child(odd) {
        border-right: 1px solid #ddd;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid, .tag-url-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-cell {
        width: 100% !important;
        border-right: none !important;
    }
    
    .featured-grid, .related-grid, .tag-url-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
}