html {
    scroll-behavior: smooth;
}

body {
    font-family:  "Microsoft YaHei", "Songti SC", serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image:
            linear-gradient(to bottom, rgba(0,0,0,0) 0%, #1f2223 100%),
            url("../photos/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

a {
    text-decoration: none;
    color: #fff;
}

h1 {
    margin: 50px;
    font-size: 64px;
    font-weight: Bold;
    color: #fff;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: inline-block;
    text-align: left;
}

.logo {
    display: block;
    margin: 60px auto;
    max-width: 600px;
    width: 100%;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 24px;
    box-sizing: border-box;
}

.header {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px auto;
}

.header a:hover {
    box-shadow: 0 0 10px #222;
}

#github-c {
    background-color: #393E46;
    border: none;
    outline: none;
    cursor: row-resize;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    padding: 20px;
}

#qq-c {
    background-color: #393E46;
    border: none;
    outline: none;
    cursor: row-resize;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    padding: 20px;
}

#discord-c {
    background-color: #393E46;
    border: none;
    outline: none;
    cursor: row-resize;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    padding: 20px;
}

.intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    text-align: center;
}


#clear-btn {
    display: inline-block !important;
    margin: 4px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: none !important;
    background-color: #024C3D !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

#clear-btn:hover {
    background-color: darkslategray !important;
}

#search-input {
    display: block;
    margin: 0 auto 12px auto;
    padding: 12px 12px;
    border-radius: 30px;
    font-size: 16px;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    border: none;
}

#tag-list {
    text-align: center;
    margin-bottom: 24px;
}

#tag-list button {
    display: inline-block;
    margin: 4px;
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    background-color: #87CEEB;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#tag-list button:hover {
    background-color: #6F8FAF;
}

#file-list {
    text-align: center;
}

.file-item {
    display: inline-block;
    vertical-align: top;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 450px;
    margin: 12px;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.file-item .filename {
    font-size: 20px;
    color: #333;
    margin-bottom: 6px;
    word-break: break-word;
    text-align: center;
    background-color: lightgray;
    border-radius: 15px;
}

.file-item img {
    width: 300px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
}

.file-item div:last-child {
    text-align: center;
}

.file-item a,
.file-item button {
    display: inline-block;
    margin: 4px 2px;
    padding: 4px 6px;
    border-radius: 4px;
    border: none;
    background-color: #40B5AD;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.file-item a:hover,
.file-item button:hover {
    background-color: #008080;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}


