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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 50%, #b3e5fc 100%);
    min-height: 100vh;
    color: #333;
}

/* 字体样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
}

/* 所有文本使用Noto Sans SC字体 */
p, a, li, input, button, label, .date, span {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 容器样式 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #4fc3f7;
    font-size: 1.8rem;
    padding: 8px 15px;
    border-radius: 8px;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-links li a:hover {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

/* 自定义文件上传按钮样式 */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.custom-file-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3);
}

.custom-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.custom-file-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

.file-info {
    color: #666;
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

/* 管理后台样式 */
.admin-container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* 统计卡片样式 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-value {
    color: #4fc3f7;
    font-size: 2.5rem;
    font-weight: 700;
}

/* 管理区域样式 */
.admin-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.admin-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #4fc3f7;
    padding-bottom: 10px;
}

/* 表格样式 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.admin-table tr:nth-child(even) {
    background: #f8f9fa;
}

.admin-table tr:hover {
    background: rgba(79, 195, 247, 0.05);
}

/* 表单样式 */
.admin-form {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
}

.admin-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.admin-form input[type="number"] {
    width: 120px;
}

/* 操作按钮样式 */
.btn-edit,
.btn-reset,
.btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 5px;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.btn-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 轮播图列表样式 */
.slider-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* 图表过滤器样式 */
.chart-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.chart-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.chart-btn.active {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border-color: #4fc3f7;
}

/* 图表容器样式 */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 轮播图样式 */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 70px;
    border-radius: 20px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 公告栏样式 */
.announcements {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 70px;
}

.announcements h2 {
    color: #4fc3f7;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.announcement-item {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #4fc3f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.announcement-item h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.announcement-item h3 a:hover {
    color: #4fc3f7;
}

.announcement-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-top: auto;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* 表单样式 */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 70px auto;
}

.form-container h2 {
    color: #4fc3f7;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
    border-radius: 12px;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.btn {
    width: auto;
    max-width: 200px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 登录和注册页面的按钮恢复原来的样式 */
.form-container .btn {
    width: 100%;
    padding: 12px;
    max-width: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

/* 管理后台按钮样式 */
.admin-btn {
    width: auto;
    max-width: 200px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    margin-bottom: 20px;
}

/* 个人中心样式 */
.profile-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin: 70px auto;
}

.profile-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
}

.section-header {
    flex: 0 0 180px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 20px;
}

.profile-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-content {
    flex: 1;
}.account-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}


/* 安全设置样式 */
.security-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.security-info h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 1rem;
}

.security-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 按钮样式扩展 */
.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: #333;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.profile-container, .admin-container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.profile-container h2, .admin-container h2 {
    color: #4fc3f7;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.stat-card .stat-value {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Noto Sans SC', sans-serif;
}

.admin-section {
    margin-bottom: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
}

.admin-section h3 {
    color: #4fc3f7;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* 图表样式 */
.chart-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-btn {
    padding: 8px 16px;
    border: 1px solid #4fc3f7;
    background: white;
    color: #4fc3f7;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chart-btn:hover {
    background: #4fc3f7;
    color: white;
    transform: translateY(-1px);
}

.chart-btn.active {
    background: #4fc3f7;
    color: white;
    font-weight: 500;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 用户管理样式 */
.user-management-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Noto Sans SC', sans-serif;
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.users-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.users-table .loading {
    text-align: center;
    padding: 40px;
    background: transparent;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4fc3f7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 用户状态样式 */
.user-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-status.admin {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
}

.user-status.user {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    min-width: auto;
    max-width: none;
    width: auto;
}

.btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
}

.btn.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.btn.danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.btn.secondary {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .slider-container {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .form-container, .profile-container, .admin-container {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-container {
        height: 200px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .announcements {
        padding: 20px;
    }
}