/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: "Microsoft YaHei", sans-serif;
    outline: none;
}

/* 管理员容器 */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航 */
.admin-header {
    height: 60px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-header .logo a {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
}

.admin-header .user-info span {
    margin-right: 20px;
}

.admin-header .user-info a {
    color: #ddd;
    margin-left: 15px;
}

.admin-header .user-info a:hover {
    color: #fff;
}

/* 主体内容布局 */
.admin-main {
    display: flex;
    flex: 1;
}

/* 左侧菜单 */
.admin-sidebar {
    width: 200px;
    background-color: #34495e;
    color: #fff;
    height: calc(100vh - 60px);
    position: fixed;
    overflow-y: auto;
}

.menu li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.menu li a:hover, .menu li.active a {
    background-color: #2c3e50;
    border-left-color: #3498db;
}

.menu li a i {
    margin-right: 10px;
}

/* 主内容区 */
.admin-content {
    margin-left: 200px;
    padding: 20px;
    flex: 1;
}

.content-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.content-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.breadcrumbs {
    color: #666;
    font-size: 13px;
}

/* 统计卡片 */
.stat-cards, .stat-card {
    display: flex;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
}

.card-header i {
    font-size: 24px;
    color: #3498db;
}

.card-body .num {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-body .desc {
    font-size: 14px;
    color: #666;
}

.card-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.card-link a {
    color: #3498db;
    font-size: 13px;
}

/* 表格样式 */
.table-container {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    overflow-x: auto;
}

.data-table, .song-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td,
.song-table th, .song-table td,
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.data-table th, .song-table th, th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.data-table tr:hover, tr:hover {
    background-color: #f8f9fa;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #2ecc71;
    color: #fff;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-default {
    background-color: #eee;
    color: #333;
    margin-left: 10px;
}

.btn-default:hover {
    background-color: #7f8c8d;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2980b9;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.pagination a.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.page-nav {
    margin: 30px 0;
    text-align: center;
}

.page-nav a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.page-nav a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-table tr td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.info-table tr:nth-child(odd) {
    background-color: #f8f9fa;
}

/* 提示信息 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 批量导入样式 */
.batch-import textarea {
    width: 100%;
    height: 250px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    background: #fff;
    margin-bottom: 15px;
}

.batch-import textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.batch-import .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.batch-import .btn:hover {
    background: #0056b3;
}

.batch-import .tip-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.batch-import .example-code {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.5;
}

.batch-import .fail-list {
    margin-top: 10px;
    padding-left: 20px;
}

.batch-import .warning {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}

.import-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.import-tab {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.import-tab.active {
    border-color: #007bff;
    background: #eef7ff;
}

.import-content {
    display: none;
}

.import-content.active {
    display: block;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.file-upload-area input {
    display: none;
}

.file-info {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 歌曲管理样式 */
.copy-btn {
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-right: 8px;
}

.copy-btn:hover {
    background: #218838;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* 弹出层样式 */
.copy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.url-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    outline: none;
}

.modal-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.close-btn {
    padding: 8px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.close-btn:hover {
    background: #0056b3;
}

/* 筛选区样式 */
.filter-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: #333;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-btn {
    padding: 6px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    background: #0056b3;
}

/* 操作按钮样式 */
.operate-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.delete-btn {
    background: #dc3545;
    color: #fff;
}

/* 个人资料样式 */
.profile-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.profile-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.profile-info {
    line-height: 2.5;
    font-size: 14px;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    width: 120px;
    color: #666;
}

.info-value {
    color: #333;
}

/* 扫描文件样式 */
.scan-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.scan-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    background: #28a745;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.scan-btn:hover {
    background: #218838;
}

.result-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 15px;
}

.result-item {
    line-height: 2;
    font-size: 14px;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    color: #666;
}

/* 最近歌曲样式 */
.recent-song {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.recent-song h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.status-active {
    color: #2ecc71;
}

.status-inactive {
    color: #e74c3c;
}

/* 辅助样式 */
small {
    color: #666;
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }
    
    .admin-content {
        margin-left: 60px;
    }
    
    .menu li a span {
        display: none;
    }
    
    .menu li a i {
        margin-right: 0;
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}