/* 账户管理页面样式 */
.admin-management {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-management h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.add-admin-btn {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.add-admin-btn:hover {
    background-color: #0077ed;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background-color: #f5f5f7;
    font-weight: 600;
    color: #1d1d1f;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.admin-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.admin-table td button {
    display: inline-block;
    margin: 0 4px;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table button {
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 轮播管理表格样式 */
.banner-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-table th {
    background-color: #f5f5f7;
    font-weight: 600;
    color: #1d1d1f;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.banner-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.banner-table td button {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-table td img {
    display: block;
    margin: 0 auto;
}

.banner-table tr:hover {
    background-color: #f9f9f9;
}

/* 弹出管理表格样式 */
.popup-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.popup-table th {
    background-color: #f5f5f7;
    font-weight: 600;
    color: #1d1d1f;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.popup-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.popup-table td button {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-table td img {
    display: block;
    margin: 0 auto;
}

.popup-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table button:hover {
    opacity: 0.9;
}

.admin-table button:first-child {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
}

.admin-table button:nth-child(2) {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.admin-table button:nth-child(3) {
    background-color: #ffcc00;
    color: #1d1d1f;
    border: none;
}

.admin-table button:last-child {
    background-color: #ff3b30;
    color: #ffffff;
    border: none;
}

/* 内容管理页面样式 */
.container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.container h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
}

/* 文章管理模块样式 */
.article-type-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 64px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.article-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.article-type-section:hover,
.article-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 封面图样式 */
.table img {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.table img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 表格行动画效果 */
.table tr {
    transition: all 0.3s ease;
}

.table tr:hover {
    background-color: #f5f5f7;
    transform: translateX(4px);
}

/* 按钮动画效果 */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* 操作栏样式优化 */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.action-bar a.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 模态框样式优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-lg);
    animation: appleModalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes appleModalIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content.closing {
    animation: appleModalOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

@keyframes appleModalOut {
    from { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .article-type-section,
    .article-section {
        padding: 16px;
    }
    
    .table img {
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .article-type-section,
    .article-section {
        padding: 12px;
    }
    
    .table img {
        max-width: 60px;
        max-height: 60px;
    }
}





/* 搜索栏样式 */
.search-bar {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.search-bar form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
    width: auto;
    display: flex;
    flex-direction: column;
}

.search-bar .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.search-bar input,
.search-bar select {
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.search-bar button {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    align-self: flex-end;
}

.search-bar button:hover {
    background-color: #0077ed;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f5f5f7;
    font-weight: 600;
    color: #1d1d1f;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
    font-size: 14px;
}

.table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
    font-size: 14px;
}

.table td button {
    display: inline-block;
    margin: 0 4px;
}

.table td img {
    display: block;
    margin: 0 auto;
}

.table tr:hover {
    background-color: #f9f9f9;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.btn-primary {
    background-color: #0071e3;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.btn-success {
    background-color: #34c759;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #30b755;
}

.btn-warning {
    background-color: #ff9500;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #ff8c00;
}

.btn-danger {
    background-color: #ff3b30;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #ff2d20;
}

.btn-info {
    background-color: #5ac8fa;
    color: #ffffff;
}

.btn-info:hover {
    background-color: #4bc0f4;
}

.btn-default {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-default:hover {
    background-color: #e8e8ed;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 36px;
}

.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group.half {
    flex: 1;
}

/* 输入组样式 */
.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.input-group button {
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

/* 表单操作按钮样式 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group input {
        border-radius: 8px;
        border-right: 1px solid #d2d2d7;
        margin-bottom: 8px;
    }
    
    .input-group button {
        border-radius: 8px;
    }
}

/* 答案组样式 */
.answer-group,
.answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.answer-item {
    margin-bottom: 0;
}

/* 正确答案样式 */
.correct-answer,
.correct-answers {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.correct-answer label,
.correct-answers label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

/* 难度选择样式 */
.difficulty,
.difficulty-levels {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.difficulty label,
.difficulty-levels label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

/* 复选框组样式 */
.checkbox-group,
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    z-index: 10;
    position: relative;
    min-height: 36px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    z-index: 10;
    position: relative;
    color: #333;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.checkbox-group label:hover,
.radio-group label:hover {
    background-color: #e8e8ed;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: auto;
    height: auto;
    margin: 0;
}

/* 单选按钮样式 */
.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    cursor: pointer;
}

.radio-label {
    font-size: 14px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-management {
        padding: 15px;
    }
    
    .admin-management h2 {
        font-size: 18px;
    }
    
    .add-admin-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .admin-table button {
        padding: 4px 8px;
        font-size: 12px;
        margin-right: 4px;
    }
    
    .container {
        padding: 20px;
    }
    
    .container h1 {
        font-size: 20px;
    }
    
    .action-bar {
        gap: 8px;
    }
    
    .action-bar button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .search-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar input,
    .search-bar select {
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    .admin-table button {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .container {
        padding: 16px;
    }
    
    .container h1 {
        font-size: 18px;
    }
    
    .action-bar button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .answer-group {
        grid-template-columns: 1fr;
    }
    
    .pagination ul {
        flex-wrap: wrap;
    }
    
    .pagination li {
        margin-bottom: 8px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* 分页控件样式 */
.pagination {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background-color: #f5f5f7;
    border-radius: 12px;
}

.pagination-controls {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
}

.pagination-controls::-webkit-scrollbar {
    height: 8px;
}

.pagination-controls::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pagination-controls::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.pagination-controls::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 确保滚动条样式只应用于分页控件，不影响其他元素 */
body::-webkit-scrollbar {
    /* 保持默认样式 */
}

body::-webkit-scrollbar-track {
    /* 保持默认样式 */
}

body::-webkit-scrollbar-thumb {
    /* 保持默认样式 */
}

.pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #d2d2d7;
    min-width: 36px;
    text-align: center;
}

.pagination li a:hover {
    background-color: #e8e8ed;
    border-color: #0071e3;
}

.pagination li.active a {
    background-color: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
}

.pagination li.disabled a {
    background-color: #f5f5f7;
    color: #86868b;
    border-color: #d2d2d7;
    cursor: not-allowed;
}

.pagination li.disabled a:hover {
    background-color: #f5f5f7;
    border-color: #d2d2d7;
}

.pagination-info {
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
    text-align: center;
}

/* 分页控件响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pagination ul {
        justify-content: center;
    }
    
    .pagination-info {
        text-align: center;
    }
}
