/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: repeating-linear-gradient(
        45deg,
        #ff6b6b,
        #ff6b6b 10px,
        #4ecdc4 10px,
        #4ecdc4 20px,
        #f9ca24 20px,
        #f9ca24 30px
    );
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid #333;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #333;
    transform: rotate(-2deg);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: rotate(-2deg) scale(1); }
    to { transform: rotate(-2deg) scale(1.05); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-container {
    max-width: 600px;
    flex: 1;
    min-width: 300px;
}

.refresh-btn {
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    color: #333;
    border: 3px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.refresh-btn:hover {
    transform: rotate(-1deg) scale(1.1);
    box-shadow: 8px 8px 0 #ff6b6b;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .refresh-btn {
        align-self: center;
    }
}

#search-input {
    width: 100%;
    padding: 15px;
    border: 3px solid #333;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #fff;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    transform: scale(1.05);
    box-shadow: 8px 8px 0 #ff6b6b;
}

/* 主内容区样式 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 文档列表样式 */
.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.doc-card {
    background: linear-gradient(135deg, #ff9ff3, #feca57, #48dbfb, #1dd1a1);
    background-size: 400% 400%;
    animation: cardGradient 10s ease infinite;
    border: 4px solid #333;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 8px 8px 0 #333;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(1deg);
}

.doc-card:nth-child(even) {
    transform: rotate(-1deg);
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #f9ca24, #6c5ce7);
}

.doc-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.05);
    box-shadow: 12px 12px 0 #ff6b6b;
    animation: cardHover 0.5s ease-out;
}

@keyframes cardGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cardHover {
    0% { transform: translateY(0) rotate(1deg) scale(1); }
    50% { transform: translateY(-15px) rotate(-1deg) scale(1.08); }
    100% { transform: translateY(-10px) rotate(0deg) scale(1.05); }
}

.doc-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #fff;
    transform: rotate(-1deg);
    display: inline-block;
}

.doc-card:nth-child(even) h3 {
    transform: rotate(1deg);
}

.doc-preview {
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed #333;
}

.doc-meta {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    border: 2px solid #333;
    display: inline-block;
    transform: rotate(-1deg);
}

/* 下载链接样式 */
.doc-download {
    margin-top: 15px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border: 3px solid #333;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
    display: inline-block;
    transform: rotate(-1deg);
}

.download-btn:hover {
    transform: rotate(1deg) scale(1.1);
    box-shadow: 8px 8px 0 #ff6b6b;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
}

/* 下载链接容器样式 */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

/* 小尺寸下载按钮 */
.download-btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    transform: rotate(0deg);
    align-self: flex-start;
}

/* 下载分段容器 */
.download-sections {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    padding: 2px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 4px 4px 0 #333;
}

/* 四分段容器 */
.download-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

/* 五分段容器 */
.download-sections.five {
    grid-template-columns: repeat(5, 1fr);
}

/* 下载分段链接 */
.download-section {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.download-section:hover {
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 3px 3px 0 #4ecdc4;
}

/* 下载说明文字 */
.download-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 10px;
    border: 2px dashed #333;
}

/* 下载标题 */
.doc-download h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    text-shadow: 2px 2px 0 #ff9ff3;
    transform: rotate(-1deg);
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    padding: 8px 16px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 4px 4px 0 #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .download-btn.small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .doc-download h4 {
        font-size: 1rem;
        padding: 6px 12px;
    }
}

/* 文档内容样式 */
.doc-content {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #f9ca24, #6c5ce7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border: 5px solid #333;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 10px 10px 0 #333;
    display: none;
    position: relative;
    overflow: hidden;
}

.doc-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid #333;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #ff6b6b;
    position: relative;
    z-index: 1;
}

.content-header h2 {
    color: #333;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 #ff9ff3;
    transform: rotate(-1deg);
    display: inline-block;
}

.back-btn {
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    color: #333;
    border: 3px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.back-btn:hover {
    transform: rotate(-1deg) scale(1.1);
    box-shadow: 8px 8px 0 #4ecdc4;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

@keyframes buttonPulse {
    from { transform: rotate(-1deg) scale(1.1); }
    to { transform: rotate(-1deg) scale(1.15); }
}

#markdown-content {
    line-height: 1.8;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

#markdown-content h1, #markdown-content h2, #markdown-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    display: block;
    text-shadow: none;
}

#markdown-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

#markdown-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#markdown-content h3 {
    font-size: 1.5rem;
}

#markdown-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transform: none;
}

#markdown-content ul, #markdown-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
    background-color: transparent;
    padding: 0 0 0 30px;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

#markdown-content li {
    margin-bottom: 8px;
    font-weight: normal;
    transform: none;
}

#markdown-content code {
    background-color: #f8f9fa;
    color: #333;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
    border: none;
}

#markdown-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-shadow: none;
}

#markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    border: none;
    font-size: 0.9rem;
}

#markdown-content blockquote {
    border-left: 4px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    color: #666;
    font-weight: normal;
    background-color: #f8f9fa;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transform: none;
}

#markdown-content a {
    color: #007bff;
    font-weight: normal;
    text-decoration: underline;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: color 0.2s ease;
}

#markdown-content a:hover {
    color: #0056b3;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border-color: transparent;
}

/* 图片样式 - 确保不超出容器 */
#markdown-content img {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 20px 0;
    transform: none;
}

#markdown-content img:hover {
    transform: none;
    box-shadow: none;
    transition: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 全局调整 */
    body {
        background-size: 30px 30px;
    }
    
    /* 头部调整 */
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
        transform: rotate(0deg);
        animation: none;
    }
    
    #search-input {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* 文档列表调整 */
    .doc-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doc-card {
        transform: rotate(0deg);
        padding: 20px;
    }
    
    .doc-card:hover {
        transform: translateY(-5px) rotate(0deg) scale(1.03);
    }
    
    .doc-card h3 {
        font-size: 1.3rem;
        transform: rotate(0deg);
    }
    
    /* 文档内容调整 */
    .doc-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .content-header h2 {
        font-size: 1.8rem;
        transform: rotate(0deg);
    }
    
    .back-btn {
        align-self: flex-end;
        transform: rotate(0deg);
        padding: 10px 20px;
    }
    
    #markdown-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    #markdown-content h1, #markdown-content h2, #markdown-content h3 {
        font-size: 1.5rem;
        transform: rotate(0deg);
        padding: 8px 16px;
    }
    
    #markdown-content p {
        font-size: 1rem;
        transform: rotate(0deg);
        padding: 12px;
    }
    
    /* 页脚调整 */
    footer p {
        font-size: 1rem;
        transform: rotate(0deg);
        padding: 8px 16px;
    }
}

/* 针对小屏幕手机的额外调整 */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .content-header h2 {
        font-size: 1.5rem;
    }
    
    #markdown-content h1, #markdown-content h2, #markdown-content h3 {
        font-size: 1.3rem;
    }
    
    .doc-card {
        padding: 15px;
    }
    
    .doc-content {
        padding: 15px;
    }
    
    #markdown-content {
        padding: 15px;
    }
}

/* 移动设备特定样式 */
.mobile-device {
    /* 禁用某些可能影响移动设备性能的动画 */
    animation-duration: 0.5s !important;
}

.mobile-device .doc-card {
    /* 简化移动设备上的卡片效果 */
    box-shadow: 4px 4px 0 #333;
}

.mobile-device .doc-card:hover {
    /* 简化移动设备上的悬停效果 */
    transform: translateY(-3px) scale(1.02);
}

.mobile-device #markdown-content {
    /* 简化移动设备上的内容区域 */
    box-shadow: 4px 4px 0 #ff6b6b;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
    color: #333;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 4px solid #333;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #333;
    font-weight: bold;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px;
    color: #333;
    background: linear-gradient(45deg, #f9ca24, #6c5ce7);
    border: 4px solid #333;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #333;
    font-weight: bold;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #fff;
}

/* 搜索结果为空 */
.no-results {
    text-align: center;
    padding: 50px;
    color: #333;
    background: linear-gradient(45deg, #48dbfb, #1dd1a1);
    border: 4px solid #333;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #333;
    grid-column: 1 / -1;
    font-weight: bold;
}

/* 留言区样式 - 悬浮窗 */
.comment-section {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #6c5ce7, #48dbfb);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    width: 350px;
    border: 5px solid #333;
    border-radius: 25px;
    box-shadow: 10px 10px 0 #333;
    z-index: 9998;
    transition: all 0.3s ease;
    overflow: hidden;
}

.comment-section:hover {
    transform: scale(1.05);
    box-shadow: 15px 15px 0 #ff6b6b;
}

/* 留言区头部 */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}

.comment-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #333;
    text-shadow: 2px 2px 0 #fff;
    transform: rotate(-1deg);
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    padding: 8px 16px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 4px 4px 0 #333;
}

/* 折叠按钮 */
.toggle-btn {
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    color: #333;
    border: 3px solid #333;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 3px 3px 0 #333;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    transform: rotate(180deg);
    box-shadow: 5px 5px 0 #ff6b6b;
}

/* 留言区内容 */
.comment-content {
    padding: 0 20px 20px;
    transition: all 0.3s ease;
}

/* 折叠状态 - 往右边收起 */
.comment-section.collapsed {
    width: auto;
    padding: 0;
}

.comment-section.collapsed .comment-content {
    display: none;
}

.comment-section.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.comment-section.collapsed .comment-header h3 {
    display: none;
}

.comment-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#comment-input {
    flex: 1;
    padding: 12px;
    border: 3px solid #333;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #fff;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.3s ease;
}

#comment-input:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 6px 6px 0 #ff6b6b;
}

#submit-comment {
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    color: #333;
    border: 3px solid #333;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

#submit-comment:hover {
    transform: rotate(-1deg) scale(1.1);
    box-shadow: 6px 6px 0 #4ecdc4;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .comment-section {
        bottom: 20px;
        right: 20px;
        width: 300px;
        padding: 15px;
    }
    
    .comment-section h3 {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    #comment-input {
        padding: 10px;
    }
    
    #submit-comment {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* 弹幕容器样式 */
#danmaku-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* 弹幕样式 */
.danmaku {
    position: absolute;
    bottom: -50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border: 3px solid #333;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 5px 5px 0 #333;
    transform: rotate(1deg);
    animation: danmakuMove 8s ease-in-out forwards;
}

/* 弹幕动画 */
@keyframes danmakuMove {
    0% {
        bottom: -50px;
        right: 0;
        opacity: 0;
        transform: rotate(1deg) scale(0.8);
    }
    10% {
        bottom: 10%;
        right: 10%;
        opacity: 1;
        transform: rotate(-1deg) scale(1);
    }
    90% {
        bottom: 80%;
        right: 80%;
        opacity: 1;
        transform: rotate(1deg) scale(1);
    }
    100% {
        bottom: 100%;
        right: 100%;
        opacity: 0;
        transform: rotate(-1deg) scale(0.8);
    }
}

/* 登录界面样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(45deg, #6c5ce7, #48dbfb);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 40px;
    border: 5px solid #333;
    border-radius: 25px;
    box-shadow: 15px 15px 0 #333;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    text-shadow: 3px 3px 0 #fff;
    transform: rotate(-1deg);
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    padding: 10px 20px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 5px 5px 0 #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 3px solid #333;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #fff;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 8px 8px 0 #ff6b6b;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.login-btn, .cancel-btn {
    padding: 12px 24px;
    border: 3px solid #333;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    color: #333;
    box-shadow: 5px 5px 0 #333;
}

.login-btn:hover {
    transform: rotate(-1deg) scale(1.1);
    box-shadow: 8px 8px 0 #ff6b6b;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

.cancel-btn {
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    color: #333;
    box-shadow: 5px 5px 0 #333;
}

.cancel-btn:hover {
    transform: rotate(1deg) scale(1.1);
    box-shadow: 8px 8px 0 #4ecdc4;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

.login-error {
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 5px 5px 0 #333;
    display: none;
}

.login-error.show {
    display: block;
}

/* 管理界面样式 */
.admin-panel {
    display: none;
    background: linear-gradient(45deg, #6c5ce7, #48dbfb);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 40px;
    margin: 40px auto;
    border: 5px solid #333;
    border-radius: 25px;
    box-shadow: 15px 15px 0 #333;
    max-width: 900px;
}

.admin-panel.show {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #333;
}

.admin-header h2 {
    font-size: 2rem;
    color: #333;
    text-shadow: 3px 3px 0 #fff;
    transform: rotate(-1deg);
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    padding: 10px 20px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 5px 5px 0 #333;
}

.logout-btn {
    background: linear-gradient(45deg, #ff6b6b, #f9ca24);
    color: #333;
    border: 3px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: rotate(1deg) scale(1.1);
    box-shadow: 8px 8px 0 #4ecdc4;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border: 3px solid #333;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #333;
}

.admin-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 2px 2px 0 #ff9ff3;
    transform: rotate(-1deg);
    display: inline-block;
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    padding: 8px 16px;
    border: 3px solid #333;
    border-radius: 15px;
    box-shadow: 4px 4px 0 #333;
}

.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

#file-upload {
    flex: 1;
    padding: 10px;
    border: 3px solid #333;
    border-radius: 50px;
    background-color: #fff;
    box-shadow: 5px 5px 0 #333;
}

.upload-btn, .save-btn {
    background: linear-gradient(45deg, #4ecdc4, #6c5ce7);
    color: #333;
    border: 3px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 #333;
    transition: all 0.3s ease;
}

.upload-btn:hover, .save-btn:hover {
    transform: rotate(-1deg) scale(1.1);
    box-shadow: 8px 8px 0 #ff6b6b;
    animation: buttonPulse 0.5s ease-in-out infinite alternate;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#settings-editor {
    width: 100%;
    height: 300px;
    padding: 20px;
    border: 3px solid #333;
    border-radius: 20px;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    background-color: #fff;
    box-shadow: 5px 5px 0 #333;
    resize: vertical;
}

#settings-editor:focus {
    outline: none;
    transform: scale(1.01);
    box-shadow: 8px 8px 0 #4ecdc4;
}

.upload-status, .settings-status {
    padding: 15px;
    border: 3px solid #333;
    border-radius: 15px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.upload-status.show, .settings-status.show {
    display: block;
}

.upload-status.success, .settings-status.success {
    background-color: rgba(76, 205, 196, 0.8);
    color: #333;
    box-shadow: 5px 5px 0 #333;
}

.upload-status.error, .settings-status.error {
    background-color: rgba(255, 107, 107, 0.8);
    color: #333;
    box-shadow: 5px 5px 0 #333;
}

/* 页脚样式 */
footer {
    background: linear-gradient(45deg, #ff6b6b, #f9ca24, #4ecdc4, #6c5ce7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #333;
    margin-top: 50px;
}

footer p {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #fff;
    transform: rotate(-1deg);
    display: inline-block;
    background-color: #fff;
    padding: 10px 20px;
    border: 3px solid #333;
    border-radius: 50px;
    box-shadow: 5px 5px 0 #333;
}