/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

main {
    flex: 3;
    margin-right: 2rem;
}

.search-box {
    display: flex;
    margin-bottom: 2rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.content {
    background-color: white;
    padding: 1rem;
    color: rgba(107, 114, 128);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    justify-content: space-between;
    display: flex;
}

 a{
    display: inline-block;
    color: rgba(31, 41, 55);
    position: relative;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}
a:hover{
    color: #3498db;
}
.content a:hover {
  color: #3498db;
  transform: translateY(-2px);
}

.download-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

aside {
    flex: 1;
}

.sidebar-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    /*width:100%;
    white-space: nowrap;*/ /* 防止文本换行 */
    /*overflow: hidden;*/ /* 隐藏溢出的文本 */
    /*text-overflow: ellipsis;*/ /* 显示省略号 */
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: #3498db;
    text-decoration: none;
}

.sidebar-section a:hover {
    text-decoration: underline;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    main {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .download-items {
        grid-template-columns: 1fr;
    }
}



ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail_li {
    padding:20px;
    border-top: 1px solid ;
    border-color: rgba(229,231,235,var(--tw-border-opacity));
}


.justify-between {
    justify-content: space-between;
}
.flex {
    display: flex;
}

.copybtn, .losebtn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    padding:5px;
}
.losebtn {
    background-color: gray;
    font-size: 12px;
}


    .copybtn:hover {
        background-color: #0056b3;
    }
.lose {
    text-decoration: line-through;
}
.resourceurl, .lose {
    border: 1px dashed #DCDCDC;
    margin: 0 auto;
    padding: 2px;
    max-width: 600px;
    font-size: 13px;
    text-align: center;
    color: #A9A9A9;
}



.list_content {
    background-color: white;
    padding: 1rem;
    color: rgba(107, 114, 128);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    display: flex;
}

.list_container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 10px; 
    border-bottom: 1px solid #ccc; 
}


.pageshow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}
    .pageshow a {
        color: white;
        padding: 5px 10px;
        text-decoration: none;
        border: 1px solid #ddd;
        border-radius:6px;
        display: inline-block;
        background-color: #3498db;
    }
        .pageshow a:hover {
            background-color: #f0f0f0; 
        }