/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    min-height: 700px;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 25px;
}

.user-info {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.avatar {
    font-size: 4rem;
    color: #00a1d6;
    margin-bottom: 15px;
}

.user-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.user-info p {
    color: #666;
    font-size: 0.9rem;
}

nav ul {
    list-style: none;
}

nav li {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    color: #555;
}

nav li:hover {
    background-color: #e9ecef;
    color: #667eea;
}

nav li.active {
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: white;
}

/* 外部链接样式 */
.external-link {
    padding: 0 !important;
    margin-bottom: 10px;
}

.external-link a {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.external-link a:hover {
    background-color: #e9ecef;
    color: #667eea;
    transform: translateY(-1px);
}

.system-status {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.system-status h4 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-status p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.status-online {
    color: #28a745;
    font-weight: bold;
}

.status-offline {
    color: #dc3545;
    font-weight: bold;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    padding: 30px;
    background-color: white;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    width: 100%;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(220, 53, 69, 0.3);
}

/* 消息样式 */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 个人资料样式 */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.profile-avatar {
    font-size: 5rem;
    color: #00a1d6;
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #333;
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.profile-details {
    margin-bottom: 30px;
}

.profile-details h4 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-weight: 500;
    color: #555;
}

/* 用户列表样式 */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#page-info {
    font-weight: 500;
    color: #555;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

td {
    padding: 15px;
    color: #555;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px !important;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn {
    background-color: #17a2b8;
    color: white;
}

.view-btn:hover {
    background-color: #138496;
}

/* 关于系统样式 */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-card p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.features, .tech-stack, .api-info {
    margin-bottom: 25px;
}

.features h4, .tech-stack h4, .api-info h4 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(135deg, #00a1d6, #fb7299);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.api-info ul {
    list-style: none;
    padding-left: 0;
}

.api-info li {
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-family: 'Courier New', monospace;
    color: #333;
}

/* 页脚样式 */
footer {
    background: #f8f9fa;
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

footer p {
    margin-bottom: 10px;
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #764ba2;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
