* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f8fa;
    color: #303133;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 登录和注册表单样式 */
.login-form, .register-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-form:hover, .register-form:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.login-form h2, .register-form h2 {
    margin-bottom: 24px;
    text-align: center;
    color: #303133;
    font-size: 18px;
    font-weight: 600;
}

.success-message {
    background-color: #f0f9ff;
    color: #67c23a;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #67c23a;
    font-size: 14px;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    align-items: center;
}
}

.success-message {
    background-color: #f0f9eb;
    color: #67c23a;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #67c23a;
    font-size: 14px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #409eff;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #66b1ff;
}

.btn-primary:active {
    background-color: #3a8ee6;
}

.btn-secondary {
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-secondary:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.btn-success {
    background-color: #67c23a;
    color: #fff;
}

.btn-success:hover {
    background-color: #85ce61;
}

.btn-success:active {
    background-color: #5daf34;
}

.btn-danger {
    background-color: #f56c6c;
    color: #fff;
}

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

.btn-danger:active {
    background-color: #dd6161;
}

.btn-warning {
    background-color: #e6a23c;
    color: #fff;
}

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

.btn-warning:active {
    background-color: #cf9236;
}

.register-link, .login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.register-link a, .login-link a {
    color: #409eff;
    text-decoration: none;
}

.register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* 头部样式 */
.header {
    background-color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #409eff;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    border: 1px solid #e4e7ed;
}

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

.user-details {
    text-align: right;
    margin-right: 16px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: #303133;
}

.user-email {
    font-size: 12px;
    color: #909399;
}

.logout-btn {
    margin-left: 8px;
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    padding: 6px 12px;
    font-size: 12px;
}

.logout-btn:hover {
    color: #f56c6c;
    border-color: #fbc4c4;
    background-color: #fef0f0;
}

/* 内容区域样式 */
.content {
    margin-top: 24px;
}

.welcome-section {
    background-color: #ecf5ff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #d9ecff;
}

.welcome-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.welcome-section p {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #303133;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    flex: 1;
    margin-left: 12px;
    height: 1px;
    background-color: #e4e7ed;
}

.info-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
}

.info-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.info-label {
    width: 100px;
    font-weight: 500;
    color: #909399;
    font-size: 14px;
}

.info-value {
    flex: 1;
    font-size: 14px;
    color: #303133;
}

/* 应用列表样式 */
.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.app-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #ebeef5;
}

.app-card:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
    border-color: #c6e2ff;
}

.app-name {
    font-weight: 600;
    margin-bottom: 12px;
    color: #303133;
    font-size: 16px;
}

.app-description {
    font-size: 14px;
    color: #909399;
    margin-bottom: 16px;
    line-height: 1.5;
}

.app-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.app-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 12px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
}

table th {
    font-weight: 600;
    color: #606266;
    background-color: #fafafa;
}

table tr:hover {
    background-color: #f5f7fa;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.tag-success {
    background-color: #f0f9eb;
    color: #67c23a;
}

.tag-danger {
    background-color: #fef0f0;
    color: #f56c6c;
}

/* 信息提示框样式 */
.alert-box, .info-tip-box {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.6;
    font-size: 14px;
}

.alert-box {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.info-tip-box {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #0066cc;
}

.alert-box .icon, .info-tip-box .icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

/* 按钮样式 */
.btn-add {
    width: 32px;
    height: 32px;
    border: 1px solid #d9ecff;
    background-color: #ecf5ff;
    color: #409eff;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    background-color: #409eff;
    color: #fff;
}

.btn-reset {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.btn-reset:hover {
    background-color: #fde2e2;
}

.btn-default {
    background-color: #f5f7fa;
    color: #606266;
    border: 1px solid #dcdfe6;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

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

/* 用户资料卡片样式 */
.user-profile-card {
    background-color: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
}

.user-profile-card .avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.user-profile-card .nickname {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 8px;
}

.user-profile-card .user-id {
    font-size: 14px;
    color: #909399;
    margin-bottom: 20px;
}

.user-profile-card .info-row {
    display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #ebeef5;
        }

.user-profile-card .info-row:last-child {
    border-bottom: none;
}

.user-profile-card .info-row .label {
    font-size: 13px;
    color: #909399;
}

.user-profile-card .info-row .value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

/* 设置内容区域 */
.settings-content {
    background-color: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 24px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .app-list {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 16px;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .user-details {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 4px;
    }
}
