/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 使用国内源引入美观的字体 */
@import url('https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 头部样式 */
header {
    background-color: #3498db;
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 500;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 主体内容 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 文件列表 */
.file-list {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
}

.file-item.folder {
    font-weight: bold;
}

.file-icon {
    font-size: 2em;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    color: #3498db;
}

.file-name {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.file-name:hover {
    color: #3498db;
}

.file-meta {
    color: #666;
    margin-right: 15px;
    font-size: 0.9em;
}

.download-btn {
    background-color: #3498db;
    color: white;
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 悬浮按钮 */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.floating-btn:hover {
    background-color: white;
    transform: translateY(-8px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-icon {
    font-size: 1.7em;
    margin-bottom: 2px;
    color: #3498db;
}

.btn-text {
    font-size: 0.65em;
    color: #333;
    line-height: 1.1;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 页脚 - 确保样式优先级 */
html body footer {
    background-color: #2c3e50 !important;
    color: white !important;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
    border-top: 3px solid #3498db;
    width: 100% !important;
    clear: both;
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

/* 页脚内容容器 */
html body footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 版权信息 */
html body footer .footer-content .copyright-info {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 版权信息文本 */
html body footer .footer-content .copyright-info span {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 版权信息链接 */
html body footer .footer-content .copyright-info a {
    color: #3498db !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* 链接悬停效果 */
html body footer .footer-content .copyright-info a:hover {
    color: #5dade2 !important;
    text-decoration: underline;
}

/* 二维码弹窗 */
#qr-code {
    text-align: center;
    margin: 20px 0;
}

/* 链接分享弹窗 */
#share-link {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

#copy-link {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#copy-link:hover {
    background-color: #2980b9;
}

/* 投诉建议弹窗 */
#complaint-form textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

#complaint-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#complaint-form button:hover {
    background-color: #2980b9;
}

/* 预览页面 */
.preview-container {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.preview-content {
    width: 100%;
    height: 600px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 管理员页面 */
.admin-container {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #3498db;
    font-weight: 500;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.login-form button:hover {
    background-color: #2980b9;
}

/* 统计数据样式 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1 1 200px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-item h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
}

.stat-item p {
    font-size: 32px;
    color: #3498db;
    font-weight: 700;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* 筛选表单 */
.filter-form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.filter-form input,
.filter-form select {
    padding: 8px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.filter-form button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* 分页 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
}