.resources-container {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: calc(100vh - 150px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desc {
    color: #666;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.section-desc {
    color: #666;
    margin-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.resource-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-item {
    font-size: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.resource-meta {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* 品牌图标样式 */
.brand-icon {
    height: 140px;
    width: 140px;
    margin: 1rem auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 品牌特定图标 */
.xiaomi .brand-icon {
    background-image: url('../images/i4.png');
}

.redmi .brand-icon {
    background-image: url('../images/i3.png');
}

.oneplus .brand-icon {
    background-image: url('../images/i1.png');
}

.realme .brand-icon {
    background-image: url('../images/i2.png');
}

/* 新增OPPO图标样式 */
.oppo .oppo-icon {
    background-image: url('../images/i5.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 140px;
    height: 140px;
    margin: 1rem auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 修改透明度和悬浮效果 */
.resource-card:hover .brand-icon {
    opacity: 1;
    transform: scale(1.1);
}

.tips-section {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tip-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.tip-item:hover {
    transform: translateY(-5px);
    background: var(--gradient);
    color: white;
}

.tip-item:hover .tip-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(41,98,255,0.1);
}

.tool-card, .env-card, .twrp-card {
    position: relative;
    background: white;
    min-height: 220px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tools-icon { background-image: url('../images/tools.png'); }
.env-icon { background-image: url('../images/env.png'); }
.twrp-icon { background-image: url('../images/twrp.png'); }

.tool-card:hover, .env-card:hover, .twrp-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(41,98,255,0.15);
}

.tool-card:hover .resource-icon,
.env-card:hover .resource-icon,
.twrp-card:hover .resource-icon {
    opacity: 1;
    transform: scale(1.1);
}

.resource-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
}

/* Logo图标 */
.site-logo {
    background-image: url('../images/logo.png');
    width: 120px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.rom-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.rom-card .resource-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-image: url('../images/rom-icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.rom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(41,98,255,0.15);
}

.rom-card .resource-item {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    display: block;
    text-align: center;
}

.rom-card .resource-meta {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.access-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(41,98,255,0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.access-tip {
    color: #2962ff;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .resources-container {
        padding-top: 6rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        margin: 0.5rem 1rem;
    }

    .page-header {
        margin: 1rem;
    }

    .tips-section {
        margin: 2rem 1rem;
    }

    .resource-item {
        min-height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .brand-icon {
        width: 80px;
        height: 80px;
    }
}

/* Modal 样式 */
.modal {
    display: none; /* 初始隐藏 */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
