﻿/* Resource Download Tool Styles */

/* 继承主站样式并增加特定页面样�?*/
.breadcrumb {
    display: flex;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tool-container {
    position: relative;
    padding: 20px;
    background-color: rgba(25, 25, 25, 0.8);
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 装饰元素 */
.mod-decoration {
    position: absolute;
    top: -30px;
    right: 50px;
    width: 60px;
    height: 60px;
    background-image: url('../images/items/Book.png');
    background-size: cover;
    transform: rotate(-15deg);
    z-index: 1;
    filter: drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
    animation: float-decoration 4s infinite ease-in-out;
    pointer-events: none;
}

.datapack-decoration {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 50px;
    height: 50px;
    background-image: url('../images/items/Arrow.png');
    background-size: cover;
    transform: rotate(10deg);
    z-index: 1;
    filter: drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
    animation: float-decoration 4s infinite ease-in-out 1s;
    pointer-events: none;
}

@keyframes float-decoration {
    0%, 100% {
        transform: translateY(0) rotate(-15deg);
    }
    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

/* 搜索和过滤部�?*/
.resource-search {
    position: relative;
    padding: 25px;
    margin-bottom: 30px;
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.resource-search:hover {
    background-color: rgba(45, 45, 45, 0.7);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.25);
}

.resource-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(86, 137, 64, 0.5) 25%, 
        rgba(86, 137, 64, 0.8) 50%, 
        rgba(86, 137, 64, 0.5) 75%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(139, 202, 67, 0.5);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box label {
    font-weight: bold;
    font-size: 1.1rem;
    color: #8bca43;
    min-width: 150px;
    text-shadow: 0 0 5px rgba(139, 202, 67, 0.5);
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(139, 202, 67, 0.7);
    box-shadow: 0 0 10px rgba(139, 202, 67, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(10, 10, 10, 0.5);
}

.search-button {
    padding: 12px 24px;
    background-color: #4C8C2B;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.search-button:hover {
    background-color: #5da135;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.search-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(0.5);
    pointer-events: none;
}

.search-button:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(0.8); }
}

/* 新的筛选布局样式 */
.filters-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.filters-left {
    flex: 0 0 250px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

.filters-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.select-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.button-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #bbb;
    transition: color 0.3s ease;
}

.filter-group:hover label {
    color: #8bca43;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(1px);
}

.filter-btn.active {
    background-color: #4C8C2B;
    border-color: #4C8C2B;
    color: white;
    box-shadow: 0 0 10px rgba(76, 140, 43, 0.5);
}

/* 资源类型筛选按�?- 特殊样式 */
.filters-left .filter-buttons {
    flex-direction: column;
    width: 100%;
}

.filters-left .filter-btn {
    text-align: left;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.filters-left .filter-btn:hover {
    padding-left: 20px;
}

/* 根据不同的资源类型更改活动按钮颜�?*/
.resource-type-filter .filter-btn[data-type="mod"].active {
    background-color: #8e44ad;
    border-color: #8e44ad;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}

.resource-type-filter .filter-btn[data-type="resourcepack"].active {
    background-color: #16a085;
    border-color: #16a085;
    box-shadow: 0 0 10px rgba(22, 160, 133, 0.5);
}

.resource-type-filter .filter-btn[data-type="datapack"].active {
    background-color: #f39c12;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.resource-type-filter .filter-btn[data-type="shader"].active {
    background-color: #3498db;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.resource-type-filter .filter-btn[data-type="modpack"].active {
    background-color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.resource-type-filter .filter-btn[data-type="plugin"].active {
    background-color: #27ae60;
    border-color: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

/* 着色器相关按钮样式 */
.shader-compatibility-filter .filter-btn.active {
    background-color: #3498db;
    border-color: #3498db;
}

/* 性能标签颜色 */
.performance-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 5px;
}

.performance-high {
    background-color: rgba(231, 76, 60, 0.7);
}

.performance-medium {
    background-color: rgba(243, 156, 18, 0.7);
}

.performance-low {
    background-color: rgba(46, 204, 113, 0.7);
}

.performance-potato {
    background-color: rgba(52, 152, 219, 0.7);
}

.performance-screenshot {
    background-color: rgba(155, 89, 182, 0.7);
}

/* 下拉选择框样式增�?*/
select {
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

select:focus {
    outline: none;
    border-color: rgba(139, 202, 67, 0.7);
    box-shadow: 0 0 10px rgba(139, 202, 67, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(10, 10, 10, 0.5);
}

optgroup {
    background-color: rgba(20, 20, 20, 0.9);
    font-family: 'Noto Sans', sans-serif;
    font-weight: bold;
    color: #8bca43;
}

option {
    background-color: rgba(30, 30, 30, 0.9);
    padding: 8px;
    font-family: 'Noto Sans', sans-serif;
    color: white;
}

/* 搜索结果部分美化 */
.resource-results {
    position: relative;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.results-info {
    text-align: center;
    padding: 20px;
    color: #aaaaaa;
    font-style: italic;
}

.message {
    padding: 10px;
    border-radius: 4px;
}

.message.info {
    background-color: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
}

.message.success {
    background-color: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
}

.message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 修改为固�?�?*/
    gap: 20px;
    margin-top: 20px;
}

/* 添加响应式处�?*/
@media (max-width: 1200px) {
    .resource-grid {
        grid-template-columns: repeat(4, 1fr); /* 中等屏幕4�?*/
    }
}

@media (max-width: 992px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板设备3�?*/
    }
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr); /* 小平�?大手�?�?*/
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: repeat(1, 1fr); /* 手机设备1�?*/
    }
}

/* 特定资源类型的网格样�?*/
.resource-grid[data-type="mod"] {
    border-top: 2px solid rgba(76, 140, 43, 0.3);
}

.resource-grid[data-type="resourcepack"] {
    border-top: 2px solid rgba(142, 68, 173, 0.3);
}

.resource-grid[data-type="datapack"] {
    border-top: 2px solid rgba(230, 126, 34, 0.3);
}

.resource-grid[data-type="shader"] {
    border-top: 2px solid rgba(52, 152, 219, 0.3);
}

.resource-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 202, 67, 0.3);
}

/* 不同类型的资源项样式 */
.resource-item-mod:hover {
    border-color: rgba(76, 140, 43, 0.5);
    box-shadow: 0 5px 15px rgba(76, 140, 43, 0.2);
}

.resource-item-resourcepack:hover {
    border-color: rgba(142, 68, 173, 0.5);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.2);
}

.resource-item-datapack:hover {
    border-color: rgba(230, 126, 34, 0.5);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.resource-item-shader:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.resource-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 保持1:1比例 */
    background-size: cover;
    background-position: center;
    background-color: #2c2c2c;
    position: relative;
    overflow: hidden; /* 确保内容不溢�?*/
}

/* 添加对图片的样式控制 */
.resource-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充整个区�?*/
}

.resource-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.resource-type-mod {
    background-color: #4C8C2B;
}

.resource-type-resourcepack {
    background-color: #8e44ad;
}

.resource-type-datapack {
    background-color: #e67e22;
}

.resource-type-shader {
    background-color: #3498db;
}

.resource-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-name {
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: #8bca43;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 为不同资源类型定制标题颜�?*/
.resource-item-mod .resource-name {
    color: #8bca43;
}

.resource-item-resourcepack .resource-name {
    color: #9b59b6;
}

.resource-item-datapack .resource-name {
    color: #e67e22;
}

.resource-item-shader .resource-name {
    color: #3498db;
}

.resource-author {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 特定资源类型的附加元素样�?*/
.mod-loaders {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.loader-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #dddddd;
    font-weight: 500;
}

.loader-fabric {
    border-left: 3px solid #dbb4dc;
}

.loader-forge {
    border-left: 3px solid #e67e22;
}

.loader-neoforge {
    border-left: 3px solid #bf360c;
}

.loader-quilt {
    border-left: 3px solid #5865F2;
}

.resourcepack-resolution {
    margin-bottom: 10px;
}

.resolution-tag {
    font-size: 0.8rem;
    padding: 2px 8px;
    background-color: rgba(142, 68, 173, 0.2);
    color: #9b59b6;
    border-radius: 4px;
    font-weight: bold;
}

.shader-info {
    margin-bottom: 10px;
}

.shader-compatible {
    font-size: 0.8rem;
    padding: 2px 8px;
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 4px;
    font-weight: 500;
}

.resource-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888888;
}

.resource-downloads, .resource-updated {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource-versions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.version-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #cccccc;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-btn {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-btn.active {
    background-color: #4C8C2B;
    border-color: #4C8C2B;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 5px;
    color: #aaaaaa;
}

/* 默认加载状�?*/
.resource-grid.loading {
    position: relative;
    min-height: 200px;
}

.resource-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4C8C2B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 资源详情模态框 */
.resource-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 202, 67, 0.3);
    animation: detail-slide-in 0.3s ease-out;
}

@keyframes detail-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.resource-detail.hidden {
    display: none;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

#detail-title {
    font-size: 1.5rem;
    color: #8bca43;
    margin: 0;
}

.close-detail {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-detail:hover {
    color: white;
    transform: scale(1.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .detail-content {
        flex-direction: row;
    }
}

.detail-left {
    flex: 1;
}

.detail-right {
    flex: 2;
}

.detail-gallery {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(139, 202, 67, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    min-height: 120px; /* 确保在图片加载前有最小高�?*/
    padding-bottom: 100%; /* 保持1:1比例 */
    height: 0;
}

.detail-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(139, 202, 67, 0.3);
    border-top: 3px solid #8bca43;
    border-radius: 50%;
    margin-top: -15px;
    margin-left: -15px;
    animation: image-spin 1s linear infinite;
    z-index: 0;
}

@keyframes image-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#detail-image {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    object-fit: cover; /* 保持图片比例并填充整个区�?*/
}

.detail-gallery:hover #detail-image {
    transform: scale(1.03);
}

.detail-meta {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
}

.meta-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #aaaaaa;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.detail-tag {
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.8rem;
    color: #dddddd;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #8bca43;
    border-bottom: 1px solid rgba(139, 202, 67, 0.3);
    padding-bottom: 8px;
}

.detail-description {
    line-height: 1.6;
    color: #dddddd;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: auto; /* 使内容可以水平滚动，防止大表格等内容溢出 */
}

.detail-description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.detail-description a {
    color: #8bca43;
    text-decoration: none;
}

.detail-description a:hover {
    text-decoration: underline;
}

/* 额外支持其他HTML元素的样�?*/
.detail-description h1, 
.detail-description h2, 
.detail-description h3, 
.detail-description h4 {
    color: #8bca43;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.detail-description h1 { font-size: 1.8em; }
.detail-description h2 { font-size: 1.5em; }
.detail-description h3 { font-size: 1.2em; }
.detail-description h4 { font-size: 1.1em; }

.detail-description p {
    margin-bottom: 15px;
}

.detail-description ul, 
.detail-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.detail-description li {
    margin-bottom: 5px;
}

.detail-description code, 
.detail-description pre {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 2px 4px;
    color: #E0E0E0;
}

.detail-description pre {
    padding: 10px;
    overflow-x: auto;
    margin: 15px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-description blockquote {
    border-left: 4px solid #8bca43;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: rgba(139, 202, 67, 0.1);
    font-style: italic;
}

/* 表格样式 */
.detail-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    display: block;
    overflow-x: auto;
}

.detail-description th, 
.detail-description td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    text-align: left;
}

.detail-description th {
    background-color: rgba(0, 0, 0, 0.3);
}

.detail-description tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

.detail-versions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 202, 67, 0.2);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.version-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 202, 67, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.version-name {
    font-weight: bold;
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.version-type-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: normal;
    margin-left: 0.5rem;
}

.version-type-badge.release {
    background-color: rgba(76, 175, 80, 0.7);
}

.version-type-badge.beta {
    background-color: rgba(255, 152, 0, 0.7);
}

.version-type-badge.alpha {
    background-color: rgba(244, 67, 54, 0.7);
}

.version-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.meta-small-label {
    color: #aaaaaa;
    font-size: 0.85em;
    font-weight: normal;
}

.version-game-version, .version-loaders, .version-date {
    color: #BBBBBB;
    font-size: 0.9rem;
}

.file-size {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
    text-align: center;
}

.version-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.version-game-version, .version-loaders {
    color: #BBBBBB;
    flex: 1;
    min-width: 100px;
}

.version-download {
    padding: 8px 15px;
    background-color: #4C8C2B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.version-download:hover {
    background-color: #5da135;
    transform: translateY(-2px);
}

/* 关于部分 */
.resource-info {
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    border-top: 2px solid rgba(139, 202, 67, 0.5);
}

.resource-info h2 {
    color: #8bca43;
    margin-bottom: 20px;
    text-align: center;
}

.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section h3 {
    color: #8bca43;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaaaaa;
    text-align: center;
}

.disclaimer a {
    color: #8bca43;
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* 新增样式开�?*/

/* 资源特定筛选选项 */
.resource-specific-filter {
    transition: all 0.3s ease-in-out;
}

/* 版本过滤选项 */
.version-filters {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.version-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.version-filter-group label {
    font-weight: bold;
    color: var(--minecraft-accent);
    margin-right: 0.5rem;
}

.version-filter {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    border-radius: 2px;
}

/* 类型特定视觉指示�?*/
.resource-item-modpack:hover {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.resource-item-modpack:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.8);
}

.resource-item-plugin {
    border-color: #90CAF9;
}

.resource-item-plugin:hover {
    box-shadow: 0 5px 15px rgba(144, 202, 249, 0.2);
}

/* 类型标签 */
.resource-type-modpack {
    background-color: rgba(231, 76, 60, 0.7);
}

.resource-type-plugin {
    background-color: rgba(33, 150, 243, 0.7);
}

/* 资源类型特有的标题颜�?*/
.resource-item-modpack .resource-name {
    color: #e74c3c;
}

.resource-item-plugin .resource-name {
    color: #90CAF9;
}

/* 分辨率标�?*/
.resolution-meta {
    margin-top: 0.5rem;
}

/* 筛选按钮组 - 特定类型颜色 */
.resolution-filter .filter-btn.active {
    background-color: rgba(156, 39, 176, 0.7);
    border-color: #9C27B0;
}

.shader-compatibility-filter .filter-btn.active {
    background-color: rgba(0, 150, 136, 0.7);
    border-color: #009688;
}

.plugin-server-filter .filter-btn.active {
    background-color: rgba(33, 150, 243, 0.7);
    border-color: #2196F3;
}

/* 版本项目样式改进 */
.version-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.version-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
}

.version-name {
    font-weight: bold;
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
}

.version-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.version-game-version, .version-loaders {
    color: #BBBBBB;
    flex: 1;
    min-width: 100px;
}

.version-download {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--minecraft-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
}

.version-download:hover {
    background: var(--minecraft-accent);
    transform: translateY(-2px);
}

.version-download.disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.no-versions {
    text-align: center;
    padding: 1rem;
    color: #AAAAAA;
    font-style: italic;
}

/* 版本标题和筛选器容器 */
.versions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.versions-header h3 {
    margin-bottom: 0;
    margin-right: 15px;
    flex: 1;
    min-width: 150px;
}

/* 版本筛选器容器 */
.version-filters {
    background: none;
    padding: 0;
    margin: 0;
}

.version-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.version-filter-group label {
    font-weight: bold;
    color: #8bca43;
    margin-right: 0;
}

.version-filter {
    min-width: 130px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 202, 67, 0.3);
    color: white;
    border-radius: 4px;
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .resource-detail {
        width: 95%;
    }
    
    .info-sections {
        grid-template-columns: 1fr;
    }

    .version-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-filter {
        width: 100%;
    }
    
    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .version-download {
        width: 100%;
    }

    .versions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .versions-header h3 {
        margin-bottom: 10px;
    }
    
    .version-filter-group {
        width: 100%;
    }
    
    .version-filter {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-content {
        flex-direction: column;
    }
} 

/* 模态框样式 */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #181818;
    border: 2px solid #555;
    border-radius: 6px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modal-appear 0.3s ease forwards;
}

@keyframes modal-appear {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.close-modal {
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.loader-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.loader-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.loader-item label {
    cursor: pointer;
    color: #ddd;
    font-size: 1rem;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #444;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.apply-btn, .cancel-btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.apply-btn {
    background-color: #4CAF50;
    color: white;
}

.apply-btn:hover {
    background-color: #3e9142;
}

.cancel-btn {
    background-color: #555;
    color: white;
}

.cancel-btn:hover {
    background-color: #444;
}

/* 选项卡样�?*/
.detail-tabs {
    display: flex;
    border-bottom: 2px solid var(--minecraft-secondary);
    margin-bottom: 1rem;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    color: #AAAAAA;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'VT323', monospace;
    outline: none;
}

.tab-btn:hover {
    color: #FFFFFF;
}

.tab-btn.active {
    color: var(--minecraft-green);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--minecraft-green);
    animation: tab-indicator 0.3s ease;
}

@keyframes tab-indicator {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.tab-content {
    display: none;
    animation: fade-in 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Gallery 样式 */
.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery 全屏预览 */
.gallery-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-preview.active {
    opacity: 1;
    pointer-events: all;
}

.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-close:hover {
    color: var(--minecraft-green);
    transform: scale(1.2);
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-prev {
    left: 20px;
}

.preview-next {
    right: 20px;
}

.preview-nav:hover {
    background: var(--minecraft-green);
}

/* Changelog 样式 */
.detail-changelog {
    color: #E0E0E0;
    line-height: 1.6;
}

.changelog-version {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--minecraft-green);
    padding-left: 1rem;
}

.changelog-version-title {
    font-size: 1.1rem;
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.changelog-date {
    font-size: 0.9rem;
    color: #AAAAAA;
    margin-bottom: 0.75rem;
}

.changelog-changes {
    list-style-type: none;
    padding-left: 0;
}

.changelog-changes li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
}

.changelog-changes li::before {
    content: '�?;
    position: absolute;
    left: 0;
    color: var(--minecraft-green);
}

.changelog-changes li.added::before {
    content: '+';
    color: #4CAF50;
}

.changelog-changes li.removed::before {
    content: '-';
    color: #F44336;
}

.changelog-changes li.fixed::before {
    content: '�?;
    color: #2196F3;
}

.changelog-changes li.changed::before {
    content: '�?;
    color: #FF9800;
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .detail-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 auto;
        min-width: calc(50% - 0.5rem);
        text-align: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .detail-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
} 

/* 版本选项卡内容的样式调整 */
#tab-versions .versions-header {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

#tab-versions .versions-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#tab-versions .version-filters {
    margin-bottom: 1rem;
}

/* 确保版本列表在选项卡中有足够的空间 */
.detail-versions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

/* 移除滚动条相关样�?*/
/* 版本列表中的每个项目样式调整 */
#tab-versions .version-item {
    margin-bottom: 0.75rem;
} 

/* 响应式设计增�?*/
@media (max-width: 1200px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-container {
        flex-direction: column;
    }
    
    .filters-left {
        flex: 0 0 auto;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }
    
    .filters-left .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filters-left .filter-btn {
        width: auto;
    }
}

@media (max-width: 768px) {
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resource-detail {
        padding: 15px;
    }
    
    .info-sections {
        grid-template-columns: 1fr;
    }
    
    .version-filter-group {
        flex-direction: column;
    }
    
    .version-filter {
        width: 100%;
    }
    
    .version-info {
        flex-direction: column;
    }
    
    .version-download {
        margin-top: 10px;
    }
    
    .versions-header {
        flex-direction: column;
    }
    
    .versions-header h3 {
        margin-bottom: 10px;
    }
    
    .version-filter-group {
        width: 100%;
    }
    
    .version-filter {
        margin-bottom: 5px;
    }
    
    .search-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box label {
        margin-bottom: 5px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        margin-top: 10px;
    }
    
    .select-filters {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .detail-content {
        flex-direction: column;
    }
    
    .detail-left, .detail-right {
        width: 100%;
    }
    
    .detail-gallery {
        margin-bottom: 20px;
    }
    
    .detail-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        min-width: 100px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        padding: 10px;
    }
    
    .resource-grid {
        grid-gap: 15px;
    }
    
    .detail-content {
        padding: 10px;
    }
    
    .resource-search {
        padding: 15px;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .detail-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meta-item {
        margin-bottom: 10px;
    }
    
    .resource-name {
        font-size: 1rem;
    }
    
    .resource-author {
        font-size: 0.8rem;
    }
    
    .resource-stats {
        font-size: 0.7rem;
    }
}

/* 高分辨率屏幕适配 */
@media (min-width: 1600px) {
    .resource-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .select-filters {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
} 

.loader-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    max-width: 100%;
}

.loader-filter .filter-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

@media (max-width: 992px) {
    .loader-filter {
        justify-content: flex-start;
    }
    
    .loader-filter .filter-btn {
        flex-grow: 0;
        min-width: auto;
    }
} 

/* Related Tools Section */
.related-tools-section {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin: 2rem auto;
    border: 2px solid var(--minecraft-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    width: 100%;
}

.related-tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.related-tools-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.related-tools-subtitle {
    text-align: center;
    color: #AAAAAA;
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.related-tool-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 6px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(68, 189, 50, 0.3);
}

.related-tool-card .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.related-tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.related-tool-card h3 {
    color: var(--minecraft-green);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.related-tool-card p {
    color: #E0E0E0;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.relation-tag {
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .related-tools-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .related-tool-card {
        padding: 1.2rem;
    }
    
    .related-tool-card .tool-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .related-tools-section h2 {
        font-size: 1.5rem;
    }
}

