html {
    scroll-behavior: smooth;
}

body {
    font-family:  "Microsoft YaHei", "Songti SC", serif;
    background-color: #1C1C1C;
    color: #333;
}

a {
    text-decoration: none;
    color: #fff;
}

.title {
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    display: block;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: Bold;
    text-align: center;
    padding: clamp(20px, 5vw, 120px);
    background-color: #212121;
    color: #f3f3f3;
    border-radius: 50px;
    transition: box-shadow 0.2s ease;
}

.title:hover {
    box-shadow: 12px 12px 12px rgba(0,0,0,0.1),
    -10px -10px 10px #3b3b3b;
}

.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 {
    width: 120px;
    height: 75px;
    margin: 0 auto;
    background-color: #3b3b3b;
    color: white;
    border: none;
    border-radius: 20px;
    display: block;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    align-content: center;
}


.intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    text-align: center;
}

#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: #5E5C5C;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#tag-list button:hover {
    background-color: #6F8FAF;
    transform: translateY(-2px);
}

#clear-btn {
    display: inline-block !important;
    margin: 4px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: none !important;
    background-color: #0D0D0D !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

#clear-btn:hover {
    background-color: #C4C4C4 !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-right: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#file-list {
    text-align: center;
}

.file-item {
    display: inline-block;
    vertical-align: top;
    border-radius: 6px;
    width: calc(100% - 24px);
    max-width: 450px;
    margin: 12px;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #212121;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}

.file-item:hover {
    box-shadow: 12px 12px 12px rgba(0,0,0,0.1),
    -10px -10px 10px #3b3b3b;
}

.file-item .filename {
    font-size: 20px;
    color: #F3F3F3;
    font-weight: bold;
    margin-bottom: 6px;
    word-break: break-word;
    text-align: center;
    background-color: #212121;
    border-radius: 15px;
}

.file-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 30px;
    margin: 20px auto 8px auto;
    cursor: pointer;
    display: block;
}

.file-item div:last-child {
    text-align: center;
}

.file-item a,
.file-item button {
    display: inline-block;
    margin: 10px 4px;
    padding: 8px 6px;
    border-radius: 6px;
    border: none;
    background-color: #525252;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.file-item a:hover,
.file-item button:hover {
    background-color: #696969;
    box-shadow: 0 0 10px #222;
    transform: scale(1.05);
}

.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;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666;
}
